On Feb 22, 2011, at 12:41 , James Tucker wrote:

> The following must be considered a bug:
> 
>>> require 'rubygems'
> => true
>>> Gem.activate('rails', '< 3.0.0.beta')
> => true
>>> require 'active_support/ordered_hash'
> Gem::LoadError: Unable to activate activesupport-3.0.4, but rails-2.3.9.pre 
> depends on activesupport (= 2.3.9.pre, runtime)
>       from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:265:in `activate'
>       from /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:198:in `try_activate'
>       from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
> `require'
>       from (irb):3
>>> Gem.activate('activesupport', '2.3.9.pre')
> => true
>>> require 'active_support/ordered_hash'
> => true
> 
> Replication environment is the same as my last.

This I can repro:

10020 % ruby -Ilib -rubygems -e 'Gem.activate("rails", "< 3.0.0.beta"); require 
"active_support/ordered_hash"'
./lib/rubygems.rb:265:in `activate': Unable to activate activesupport-3.0.4, 
but rails-2.3.9.pre depends on activesupport (= 2.3.9.pre, runtime) 
(Gem::LoadError)
        from ./lib/rubygems.rb:198:in `try_activate'
        from ./lib/rubygems/custom_require.rb:31:in `require'
        from -e:1

and I'm looking into it now...

_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to