hash_with_dot_access 2.1.0 → 2.1.1

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: be6e40c79e1f2c6148e84b6ef6b3521d9c07500bac9603f793a39dac7b3278ce
4
- data.tar.gz: ace5ebdd3d951858e6dda87a96cfb9301b4ce7dc9802184cdee1cbd69e664538
3
+ metadata.gz: 3b297d95788d51c96fcf68f4ecf230b743831d21e0987f21ff162bbfcdfa5551
4
+ data.tar.gz: 43ebba540d1ddfdb4ebab7d80dbbdf52ab031ae5d6915982cdd3d558d80feb8a
5
5
  SHA512:
6
- metadata.gz: 8763ae8a9cd9aec38d1cf2c4e0d659824633295576dfc3132968b82d848f92e354e5fb417f182b5b9be32ba8e2276996e3f36a2e3b8ce71de404c817cd599f1f
7
- data.tar.gz: 8ee6d9ba1bdbc2322c40c1a4c79136d43c94376ec167f334123e17844cde1e9364a6a8bee75573827704a12152f328a55bf86980ab249c4170fac9482caa043e
6
+ metadata.gz: fd4bc088b83911837623ddba8a73ca41df654b826406b5a7a2b27e82615002d080bfaa01e8632bc7654664eb75fd843cea9c48c89a108e92fa55217f99ca14e1
7
+ data.tar.gz: ef702738180b02250c7c113dcacf8d3203ffa2ce334647ccb1fcc8e33197df2d7dc55eb3c070e922d77744c93eb9372b126bc433e3122957544e227e2ffc6119
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.1] - 2024-04-20
4
+
5
+ - Fix issue where `to_h` was incorrectly mutating arrays containing hashes
6
+
3
7
  ## [2.1.0] - 2024-04-20
4
8
 
5
9
  - Adds conversion back to a hash with `to_h` and `to_dot_h` for enumeration.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hash_with_dot_access (2.1.0)
4
+ hash_with_dot_access (2.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module HashWithDotAccess
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -19,8 +19,7 @@ module HashWithDotAccess
19
19
  when ::Hash
20
20
  value.to_h
21
21
  when Array
22
- value = value.dup if value.frozen?
23
- value.map! { primitive_value(_1) }
22
+ value.map { primitive_value(_1) }
24
23
  else
25
24
  value
26
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_with_dot_access
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team