lib/rundeck/client.rb in rundeck-0.0.3 vs lib/rundeck/client.rb in rundeck-0.0.4

- old
+ new

@@ -52,10 +52,11 @@ Dir[File.expand_path('../client/*.rb', __FILE__)].each { |f| require f } include Execution include Job include Key + include Project # Turn a hash into an object for easy accessibility. # # @note This method will objectify nested hashes/arrays. # @@ -66,10 +67,10 @@ # @raise [Array<Rundeck::Error::Parsing>] Error objectifying array or hash def objectify(result) if result.is_a?(Hash) ObjectifiedHash.new(result) elsif result.is_a?(Array) - result.map! { |e| ObjectifiedHash.new(e) } + result.map { |e| ObjectifiedHash.new(e) } elsif result.nil? nil else fail Error::Parsing, "Couldn't parse a response body" end