strum-json 0.0.2 → 0.0.3

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: 0ec9df9ce86346705778fc22f69368c79376ea28ffd767c956e1868e01adda6e
4
- data.tar.gz: 51f495a740b72b403301008d7d0939d6e86646e21c91c4318d501880d8c7d5a8
3
+ metadata.gz: dd02e3f4773ca5ddc419c0ee2e70d3711935ae9f9f36ea6a1175c94ef64eeac5
4
+ data.tar.gz: ea6c95d2aec83d26fda2d6219ae724318974622b714795327bb8f90e9c3acebe
5
5
  SHA512:
6
- metadata.gz: 3e35a9c659744ee218fb3822f9ffa36e7007e54b6f9b79b41e200885746f999e43bf72685313644066a4eb10dce261db32393dc4738470772a8bc9c853cd135a
7
- data.tar.gz: 645e4824beeebec8d4ff4c1f8c884f5acfed433c450e4d3c2c652e354252c2ae0ede680fdbddfc9f98179d837ed8c0889f8d18e74142752b39d4f94cd818d10b
6
+ metadata.gz: 1ff17bb4780d881addca2b046bdd4a078c543cf4b3107d55ac54f8a396fa2c5977bf6c4226d43410da60c4d571d9f65af340cd71146f1a609f3ce55cbcfc7926
7
+ data.tar.gz: b92ee5312c0396fd12797cb888405a2e7972c4a4562fb0cef5cdcc5644f0fad0eb826133bb33c7828d1f653f6116d507ca67be8a8a7d50711061f3dcd2df4e30
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strum-json (0.0.2)
4
+ strum-json (0.0.3)
5
5
  dry-inflector (~> 0.2.0)
6
6
  json (~> 2.3)
7
7
  json-schema (~> 2.8.1)
@@ -10,11 +10,11 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- addressable (2.7.0)
13
+ addressable (2.8.0)
14
14
  public_suffix (>= 2.0.2, < 5.0)
15
15
  ast (2.4.2)
16
16
  diff-lcs (1.4.4)
17
- dry-inflector (0.2.0)
17
+ dry-inflector (0.2.1)
18
18
  json (2.5.1)
19
19
  json-schema (2.8.1)
20
20
  addressable (>= 2.4)
@@ -56,7 +56,7 @@ GEM
56
56
  rubocop (~> 1.0)
57
57
  rubocop-ast (>= 1.1.0)
58
58
  ruby-progressbar (1.11.0)
59
- strum-service (0.1.0)
59
+ strum-service (0.1.2)
60
60
  unicode-display_width (2.0.0)
61
61
 
62
62
  PLATFORMS
@@ -71,4 +71,4 @@ DEPENDENCIES
71
71
  strum-json!
72
72
 
73
73
  BUNDLED WITH
74
- 2.2.15
74
+ 2.2.24
data/lib/strum/json.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require_relative "json/version"
4
4
  require_relative "json/serializer"
5
5
  require_relative "json/deserializer"
6
+ require_relative "json/deep_keys_to_sym"
6
7
  require_relative "json/schema"
7
8
 
8
9
  module Strum
@@ -29,7 +29,7 @@ module Strum
29
29
  keys_to_sym = lambda do |object|
30
30
  case object
31
31
  when Hash
32
- object.each_key do |key|
32
+ object.keys.each do |key|
33
33
  value = object.delete(key)
34
34
  object[(key.respond_to?(:to_sym) ? inflector.underscore(key).to_sym : key)] = keys_to_sym[value]
35
35
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Strum
4
4
  module Json
5
- VERSION = "0.0.2"
5
+ VERSION = "0.0.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strum-json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Serhiy Nazarov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-10 00:00:00.000000000 Z
11
+ date: 2021-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-inflector