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 +4 -4
- data/lib/ettin/hash_factory.rb +2 -2
- data/lib/ettin/options.rb +2 -1
- data/lib/ettin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17fdcd8956f8975bcd9410dc6d8f1981fe456c36
|
4
|
+
data.tar.gz: 154504874c1efc6d60f045376b05e15962208813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ce4768cef0f9cc3dae5f8babf451b5688e7298ffd8e66ef31ea87f1830400aa1c8a2155e71d7158726502c65ec85297e77035f5983543566577bdc955337206
|
7
|
+
data.tar.gz: 9bdcd9fe40a892fcad2c86e04090ce8e408a4236d3cc3b98f6567fe7ec3b23e9ef3feaab191558751861d0ceb1aef58f8d72771a846ed615cc6de1a71821c169
|
data/lib/ettin/hash_factory.rb
CHANGED
@@ -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.
|
19
|
+
.each {|h| hash.deeper_merge!(h, overwrite_arrays: true) }
|
20
20
|
hash
|
21
21
|
end
|
22
22
|
end
|
data/lib/ettin/options.rb
CHANGED
@@ -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.
|
47
|
+
hash.deeper_merge!(other.to_h, overwrite_arrays: true)
|
47
48
|
end
|
48
49
|
|
49
50
|
def [](key)
|
data/lib/ettin/version.rb
CHANGED