ree_lib 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ree_lib/packages/ree_json/package/ree_json/functions/from_json.rb +5 -1
- data/lib/ree_lib/packages/ree_json/schemas/ree_json/functions/from_json.schema.json +1 -1
- data/lib/ree_lib/packages/ree_json/spec/ree_json/functions/from_json_spec.rb +4 -0
- data/lib/ree_lib/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: d1857f5c4388ddb54b06b96eec4dff68b48500010d6fe83c7745074c259e3ba6
|
|
4
|
+
data.tar.gz: 7b8c5bca28e57ee3da6fc6ccb1c032db43b9b1bfb516c23c7cb6be8aed0c2e5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cedd921b6f53e8d6510f8bf55d52a3414dda9440012277798aa5ff77429c01448520574377e28d36aa6784d6e6dec9509b5830670a6ef1d2c772e430db1dcead
|
|
7
|
+
data.tar.gz: c1df54e9603fbe776a4ce507bff3379e699592052735ed93caa9078232879b914957e611bdb5098efd1f5440488005cdcb60eaba8a8672559dd7e72f50104282
|
data/Gemfile.lock
CHANGED
|
@@ -7,6 +7,8 @@ class ReeJson::FromJson
|
|
|
7
7
|
}
|
|
8
8
|
end
|
|
9
9
|
|
|
10
|
+
ParseJsonError = Class.new(StandardError)
|
|
11
|
+
|
|
10
12
|
contract(
|
|
11
13
|
Any,
|
|
12
14
|
Kwargs[
|
|
@@ -16,7 +18,7 @@ class ReeJson::FromJson
|
|
|
16
18
|
symbol_keys?: Bool,
|
|
17
19
|
RestKeys => Any
|
|
18
20
|
] => Hash
|
|
19
|
-
).throws(
|
|
21
|
+
).throws(ParseJsonError)
|
|
20
22
|
def call(object, mode: :rails, **opts)
|
|
21
23
|
options = DEFAULT_OPTIONS
|
|
22
24
|
.dup
|
|
@@ -25,5 +27,7 @@ class ReeJson::FromJson
|
|
|
25
27
|
)
|
|
26
28
|
|
|
27
29
|
Oj.load(object, options)
|
|
30
|
+
rescue ArgumentError, EncodingError
|
|
31
|
+
raise ParseJsonError.new
|
|
28
32
|
end
|
|
29
33
|
end
|
data/lib/ree_lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ree_lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ruslan Gatiyatov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ree
|