features/step_definitions/json_steps.rb in berkshelf-6.1.0 vs features/step_definitions/json_steps.rb in berkshelf-6.1.1

- old
+ new

@@ -1,7 +1,7 @@ class Hash def sort_by_key(&block) - self.keys.sort(&block).reduce({}) do |seed, key| + keys.sort(&block).reduce({}) do |seed, key| seed[key] = self[key] if seed[key].is_a?(Hash) seed[key] = seed[key].sort_by_key(&block) elsif seed[key].is_a?(Array) seed[key] = seed[key].map do |i|