Skip to content

Commit

Permalink
Hope this is the last Ruby 1.8.7 compatible version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jairojunior committed Nov 4, 2016
1 parent fd8f82e commit 7f89fd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# History

## 0.5.7
- Replace each_with_object (1.9.3+) with inject (1.8.7+)

## 0.5.6
- Fix wildfly_resource when non managed properties are a hash

Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/type/wildfly_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def recursive_sort!(obj)

# Helper function to transform the hash
def transform_hash(original, options = {}, &block)
original.each_with_object({}) do |(key, value), result|
original.inject({}) do |result, (key, value)|
value = if options[:deep] && Hash === value
transform_hash(value, options, &block)
else
Expand Down

0 comments on commit 7f89fd4

Please sign in to comment.