[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5

Matt Robinson matt at puppetlabs.com
Tue May 10 08:13:54 UTC 2011


The following commit has been merged in the experimental branch:
commit 2d459fc5dcf13a0aadf4556a80d7bb6c57dad033
Author: Matt Robinson <matt at puppetlabs.com>
Date:   Wed Apr 13 14:58:34 2011 -0700

    (#6830) Fix string method sub call on a symbol for Ruby 1.9
    
    Ruby 1.9 is less forgiving about treating symbols like strings.
    
    Reviewed-by: Daniel Pittman <daniel at puppetlabs.com>

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

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list