anyway_config 2.2.1 → 2.2.2

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
  SHA256:
3
- metadata.gz: a0f3278ebf47801b6fdd2836c3f9f63d9a8fc1fe324f04e30f74d2dca179f471
4
- data.tar.gz: 8be597f8b2c6065f0ea96e5c58ec54d6ef3532f00d7a8639a963e99b2bba65c9
3
+ metadata.gz: dc95d6a5792ef79aaa6abc3156e11fb9cfe45c48637f6763d16ec5b4645667fb
4
+ data.tar.gz: 13c6d72ce0d659945e08f2e6e457f745876338d4fdc74a94a5cd049e201b5904
5
5
  SHA512:
6
- metadata.gz: 8174b86b24e86de09a55e473bcec74fc37aeca1c38bb2a75e83e71dbeebf512b68fdb93ae23d247cb6a8ae6c5d1e2fbb86d659bf611f83ad219fccabad1ba7b6
7
- data.tar.gz: dcf73ae92079a78b8c518cc3059a85848dd4934633269d016b402114279a0303108ab7962477ea2172ff15a1abc9c6401cea9106a83ba9b4c46a02220264eb23
6
+ metadata.gz: a4bdc75c88708b8da49ced8b757e897b0bb6a8f21787ebaee65c5b154518fd343203b583542078058159c53bed0ba5700ed01f66387901a75e440e072cd3cbad
7
+ data.tar.gz: f6410c3f38b6d877b4ae9ba6adde192957fed52bba5943242c80420d742a266c0739c45a9105054dc04da921219a179e30ca8811b065b2dfbd70d3523d4b6f2c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 2.2.2 (2020-10-26)
6
+
7
+ - Fixed regression introduced by the `#deep_merge!` refinement.
8
+
5
9
  ## 2.2.1 (2020-09-28)
6
10
 
7
11
  - Minor fixes to the prev release.
@@ -198,7 +198,7 @@ module Anyway # :nodoc:
198
198
  def new_empty_config() = {}
199
199
 
200
200
  def coerce_types(mapping)
201
- coercion_mapping.deep_merge!(mapping)
201
+ Utils.deep_merge!(coercion_mapping, mapping)
202
202
  end
203
203
 
204
204
  def coercion_mapping
@@ -198,7 +198,7 @@ module Anyway # :nodoc:
198
198
  def new_empty_config() ; {}; end
199
199
 
200
200
  def coerce_types(mapping)
201
- coercion_mapping.deep_merge!(mapping)
201
+ Utils.deep_merge!(coercion_mapping, mapping)
202
202
  end
203
203
 
204
204
  def coercion_mapping
@@ -198,7 +198,7 @@ module Anyway # :nodoc:
198
198
  def new_empty_config() ; {}; end
199
199
 
200
200
  def coerce_types(mapping)
201
- coercion_mapping.deep_merge!(mapping)
201
+ Utils.deep_merge!(coercion_mapping, mapping)
202
202
  end
203
203
 
204
204
  def coercion_mapping
data/lib/anyway/config.rb CHANGED
@@ -198,7 +198,7 @@ module Anyway # :nodoc:
198
198
  def new_empty_config() = {}
199
199
 
200
200
  def coerce_types(mapping)
201
- coercion_mapping.deep_merge!(mapping)
201
+ Utils.deep_merge!(coercion_mapping, mapping)
202
202
  end
203
203
 
204
204
  def coercion_mapping
@@ -26,16 +26,6 @@ module Anyway
26
26
  end
27
27
  hash[last_key] = val
28
28
  end
29
-
30
- def deep_merge!(other)
31
- other.each do |k, v|
32
- if key?(k) && self[k].is_a?(::Hash) && v.is_a?(::Hash)
33
- self[k].deep_merge!(v)
34
- else
35
- self[k] = v
36
- end
37
- end
38
- end
39
29
  end
40
30
 
41
31
  using self
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Anyway # :nodoc:
4
- VERSION = "2.2.1"
4
+ VERSION = "2.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anyway_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-28 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-next-core