Bug #2413
closedNoMethodError on Puppet 3.2 and Ruby 1.9.2
Description
- Ruby 1.9.2
- Puppet 3.2.0
There seems to be a conflict with Array monkey patching added in Puppet 3.2, but only under Ruby 1.9.2:
NoMethodError
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/puppet-3.2.0.rc1/lib/puppet/util/monkey_patches.rb:139:in `to_hash'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/util.rb:40:in `[]'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/util.rb:40:in `to_hash'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/util.rb:72:in `map_vals'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/script/color.rb:169:in `<class:Color>'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/script/color.rb:18:in `<module:Script>'
/usr/local/rvm/gems/ruby-1.9.2-p320@test_develop_pull_request_rb2-0/gems/sass-3.2.7/lib/sass/script/color.rb:3:in `<top (required)>'
The only primary platform this will affect is Debian Squeeze, all others use 1.9.3. The trouble is that 1.9.2 isn't officially supported by Puppet.
Updated by Dominic Cleal almost 12 years ago
- Assignee deleted (
Ohad Levy)
This would also go away if we removed Puppet from Foreman core, since the full Rails app is conflicting with Puppet-as-a-library. see #2414.
Updated by Greg Sutcliffe almost 12 years ago
We could add a ruby 1.9.3 package to our squeeze repo - but removing puppet is necessary anyway, and a better fix :)
Updated by Dominic Cleal almost 12 years ago
Greg Sutcliffe wrote:
We could add a ruby 1.9.3 package to our squeeze repo - but removing puppet is necessary anyway, and a better fix :)
I think shipping new Ruby packages is a really bad idea, especially as there are possible alternatives. I'm not sure if the removing Puppet work should be done for 1.2 or not, but if not then we should look at fixing the monkey patch in Puppet 3.2.0 (even though it's not a supported platform upstream).
Updated by Dominic Cleal over 11 years ago
- Status changed from New to Closed
I think this should be fixed, the monkey patching of Array has been removed in 3.2.0-rc2.