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 +4 -4
- data/Gemfile.lock +5 -5
- data/lib/strum/json.rb +1 -0
- data/lib/strum/json/deserializer.rb +1 -1
- data/lib/strum/json/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd02e3f4773ca5ddc419c0ee2e70d3711935ae9f9f36ea6a1175c94ef64eeac5
|
4
|
+
data.tar.gz: ea6c95d2aec83d26fda2d6219ae724318974622b714795327bb8f90e9c3acebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
74
|
+
2.2.24
|
data/lib/strum/json.rb
CHANGED
@@ -29,7 +29,7 @@ module Strum
|
|
29
29
|
keys_to_sym = lambda do |object|
|
30
30
|
case object
|
31
31
|
when Hash
|
32
|
-
object.
|
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
|
data/lib/strum/json/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|