diff options
author | Matt Robinson <matt@puppetlabs.com> | 2011-04-13 15:04:46 -0700 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2011-04-13 15:04:46 -0700 |
commit | 008770dba7946b67f252561fecd967c7fe67fd17 (patch) | |
tree | 24be11a1aa3b7e8d2cce066b8c106dfc1e10443a /lib/puppet/interface/option_builder.rb | |
parent | 175803b7d27d7ab1be758dd779ca1568e429d096 (diff) | |
parent | 4ef622e0874c53c8060531d43da06f0fd6fddc36 (diff) | |
download | puppet-008770dba7946b67f252561fecd967c7fe67fd17.tar.gz puppet-008770dba7946b67f252561fecd967c7fe67fd17.tar.xz puppet-008770dba7946b67f252561fecd967c7fe67fd17.zip |
Merge branch 'ticket/next/6830-more_ruby19_fixes' into next
* ticket/next/6830-more_ruby19_fixes:
(#6830) Fix sha1 to digest/sha1 require issue for Ruby 1.9
(#6830) Fix UTF-8 encoding issue for Ruby 1.9
(#6830) Fix string method sub call on a symbol for Ruby 1.9
Diffstat (limited to 'lib/puppet/interface/option_builder.rb')
-rw-r--r-- | lib/puppet/interface/option_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/interface/option_builder.rb b/lib/puppet/interface/option_builder.rb index 83a1906b0..2240b3e4a 100644 --- a/lib/puppet/interface/option_builder.rb +++ b/lib/puppet/interface/option_builder.rb @@ -19,7 +19,7 @@ class Puppet::Interface::OptionBuilder Puppet::Interface::Option.instance_methods.grep(/=$/).each do |setter| next if setter =~ /^=/ # special case, darn it... - dsl = setter.sub(/=$/, '') + dsl = setter.to_s.sub(/=$/, '') define_method(dsl) do |value| @option.send(setter, value) end end end |