[Rubygems-developers] [ rubygems-Bugs-27868 ] rubygems 1.3.6 isn't compatible with rails 2.2.2

noreply at rubyforge.org noreply at rubyforge.org
Mon Feb 22 21:50:27 EST 2010


Bugs item #27868, was opened at 2010-02-22 05:08
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27868&group_id=126

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Wei Jen Lu (weijenlu)
Assigned to: Nobody (None)
Summary: rubygems 1.3.6 isn't compatible with rails 2.2.2

Initial Comment:
I updated rubygems to 1.3.6 and run my app which using rails 2.2.2. My app has exception: 

/Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/gem_dependency.rb:224:in `specification': undefined method `version_requirements=' for #<Gem::Dependency:0x24d2fe0> (NoMethodError)
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `plugins'
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `inject'
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `each'
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `inject'
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `plugins'
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:63:in `locate_plugins'
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:62:in `map'
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:62:in `locate_plugins'
         ... 34 levels...
        from /Users/weijen/.gem/ruby/1.8/gems/rails-2.2.2/lib/commands/server.rb:49
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
        from script/server:3

If I rollback to 1.3.5, then everything is fine.

Please help me. thanks.

My platform:

OS: Mac OS X 10.5.8
Ruby:  ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]

Wei Jen

----------------------------------------------------------------------

Comment By: Charles Ju (charlesju)
Date: 2010-02-22 18:50

Message:
I just updated to rubygems 1.3.6 and my app is on rails 2.2.2. My platform is OSX 10.6.2 and ruby at ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0].

1.3.5 is fine

undefined method `version_requirements=' for <Gem::Dependency type=:runtime name="json" requirements=">= 0">:Gem::Dependency
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/gem_dependency.rb:224:in `specification'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `plugins'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `inject'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `inject'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/locator.rb:81:in `plugins'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:63:in `locate_plugins'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:62:in `map'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:62:in `locate_plugins'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:27:in `all_plugins'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:22:in `plugins'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/plugin/loader.rb:45:in `add_plugin_load_paths'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:269:in `add_plugin_load_paths'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:135:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `send'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in `run'
/Users/charlesju/work/SyncManager/config/environment.rb:16
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'

Charles

----------------------------------------------------------------------

Comment By: Daniel Berger (djberg96)
Date: 2010-02-22 18:04

Message:
Time to vendor in rubygems? Can that be done?

Dan

----------------------------------------------------------------------

Comment By: Vidal Graupera (vgraupera)
Date: 2010-02-22 17:40

Message:
I hit the exact same problem. 

My platform is OS X 10.6.2 and ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]




----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27868&group_id=126


More information about the Rubygems-developers mailing list