lib/rake/funnel/support/mapper.rb in rake-funnel-0.22.2 vs lib/rake/funnel/support/mapper.rb in rake-funnel-0.22.3

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + Dir[File.join(File.dirname(__FILE__), 'argument_mapper', '*.rb')].each do |path| require path end module Rake @@ -40,17 +42,19 @@ pairs = value.map do |k, v| KeyValuePair.new(k, v) end return Array.new(pairs) if value.is_a?(Array) + pairs else Value.new(value) end end def camel_case_symbols(value) return value unless value.is_a?(Symbol) + value.camelize end end end end