ettin 1.0.3 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aaec313791d211b54f6d3de30fe5d9d127a6d42
4
- data.tar.gz: 5af07746b3df038a85257d488e7329604e4d4422
3
+ metadata.gz: 17fdcd8956f8975bcd9410dc6d8f1981fe456c36
4
+ data.tar.gz: 154504874c1efc6d60f045376b05e15962208813
5
5
  SHA512:
6
- metadata.gz: 493d1629489226bdfd70425c9bf8cfdc3bad7e2e45957c5619b44c12bb442b053433dcabd438e9a97d9d72a09adb541714bdc35a8b801c45f4fd01f84f48eb22
7
- data.tar.gz: d9571bf717edcd772070b15d0e97904da2f2fe8cf499f9b9c806aca41c5997c10de15ba580e73c2a7d5cdcc78013aebec8dcd5a156f01dc4430b823e37d123f2
6
+ metadata.gz: 7ce4768cef0f9cc3dae5f8babf451b5688e7298ffd8e66ef31ea87f1830400aa1c8a2155e71d7158726502c65ec85297e77035f5983543566577bdc955337206
7
+ data.tar.gz: 9bdcd9fe40a892fcad2c86e04090ce8e408a4236d3cc3b98f6567fe7ec3b23e9ef3feaab191558751861d0ceb1aef58f8d72771a846ed615cc6de1a71821c169
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "deep_merge"
3
+ require "deep_merge/rails_compat"
4
4
  require "ettin/deep_transform"
5
5
  require "ettin/source"
6
6
  require "ettin/key"
@@ -16,7 +16,7 @@ module Ettin
16
16
  .map {|target| Source.for(target) }
17
17
  .map(&:load)
18
18
  .map {|h| h.deep_transform_keys {|key| Key.new(key) } }
19
- .each {|h| hash.deep_merge!(h, overwrite_arrays: true) }
19
+ .each {|h| hash.deeper_merge!(h, overwrite_arrays: true) }
20
20
  hash
21
21
  end
22
22
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "ettin/key"
4
+ require "deep_merge/rails_compat"
4
5
 
5
6
  module Ettin
6
7
 
@@ -43,7 +44,7 @@ module Ettin
43
44
  alias_method :has_key?, :key?
44
45
 
45
46
  def merge!(other)
46
- hash.deep_merge!(other.to_h, overwrite_arrays: true)
47
+ hash.deeper_merge!(other.to_h, overwrite_arrays: true)
47
48
  end
48
49
 
49
50
  def [](key)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ettin
4
- VERSION = "1.0.3"
4
+ VERSION = "1.1.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ettin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Hockey