Issue #2508 has been updated by seph seph.
While the error about 2.3 is wrong, there's more complexity here. My ubuntu
hardy machine has rails 2.0 installed. puppet/feature/rails.rb should detect
this as being less than 2.1, but instead it incorrect thinks there's no
activerecord.
Poking at rails.rb, it looks like this is because activerecord 2.0 doesn't
export the ActiveRecord::VERSION things without active_record/version having
been required:
{{{
r...@puppet1:~# irb1.8
irb(main):001:0> $: << "/usr/share/rails/activerecord/lib"
=> ["/usr/local/lib/site_ruby/1.8",
"/usr/local/lib/site_ruby/1.8/x86_64-linux", "/usr/local/lib/site_ruby",
"/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/x86_64-linux", ".",
"/usr/share/rails/activerecord/lib"]
irb(main):002:0> require 'active_record'
=> true
irb(main):003:0> ::ActiveRecord::VERSION
NameError: uninitialized constant ActiveRecord::VERSION
from
/usr/share/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:266:in
`load_missing_constant'
from
/usr/share/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in
`const_missing'
from (irb):3
from :0
irb(main):004:0> require 'active_record/version'
=> []
irb(main):005:0> ::ActiveRecord::VERSION
=> ActiveRecord::VERSION
}}}
----------------------------------------
Bug #2508: misleading error about ActiveRecord versions
http://projects.reductivelabs.com/issues/2508
Author: seph seph
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Affected version: 0.24.8
Keywords:
lib/puppet/defaults.rb raises an error about requiring ActiveRecord 2.3. Luke
says this is wrong, that it's not that version.
I think I'm only hitting it because of #2102 anyhow.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---