document_hash 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,10 +47,15 @@ module DocumentHash
47
47
  end
48
48
 
49
49
  def merge! other
50
- self.class.symbolize_keys other
51
- other = Hash[ other.collect{ |k, v| [ k, execute_before_change_callback(k,v) ] } ]
52
- super other
53
- other.each { |k, v| changed_key k,v }
50
+ # self.class.symbolize_keys other
51
+ # other = Hash[ other.collect{ |k, v| [ k, execute_before_change_callback(k,v) ] } ]
52
+ # super other
53
+ # other.each { |k, v| changed_key k,v }
54
+
55
+ other.each { |k,v| self[k] = v }
56
+ end
57
+
58
+ def deep_merge! other
54
59
  end
55
60
 
56
61
  private
@@ -1,3 +1,3 @@
1
1
  module DocumentHash
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: document_hash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: