lib/riemann/babbler/options.rb in riemann-babbler-2.0.0pre11 vs lib/riemann/babbler/options.rb in riemann-babbler-2.0.0pre13

- old
+ new

@@ -35,10 +35,10 @@ name.split('::').last.gsub(/(\p{Lower})(\p{Upper})/, "\\1_\\2").downcase end # return string Riemann::Babbler::Plugin::TwCli_3 def underscore_to_name(name = 'tw_cli_3', parent = 'Riemann::Babbler::Plugin') - parent + '::' + name.to_s.split('_').map { |part| + parent + '::' + name.to_s.split('_').map { |part| if part.to_i != 0 "_#{part}" else part.capitalize end