Ruby 1.9 is less forgiving about treating symbols like strings.
Reviewed-by: Daniel Pittman <[email protected]>
Signed-off-by: Matt Robinson <[email protected]>
---
Local-branch: ticket/next/6830-more_ruby19_fixes
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 83a1906..2240b3e 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
--
1.7.3.1
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en.