datory 1.0.0.rc20 → 1.0.0.rc22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/datory/context/callable.rb +6 -0
- data/lib/datory/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea882190ed74d7dbdb06cb66d2eb191865729ec38fd9c106c04519776fe345e
|
4
|
+
data.tar.gz: 308215986324766f5a5a96541732fc86c1f33e82c92ecea9361d31ab831e77c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9414d5c07e14f6b280be1ad313045dd9ef368cc2303e8500617ffae46e11d6b3094d127ab3ff4cd6c8a5505fa182c054b14d3853a9c45a2a1982cc38e35445ed
|
7
|
+
data.tar.gz: 62d1d0a7a5ed593d907c88672c7396a43f3ad12718e1b7115ce4fbc51ba86494efe2b11fb9230ce8fee4766ddcc2871fb4c8a6c8f1702de59187903b903df18a
|
data/README.md
CHANGED
@@ -40,6 +40,11 @@ module Datory
|
|
40
40
|
Datory::Service::Exceptions::Internal,
|
41
41
|
Datory::Service::Exceptions::Output => e
|
42
42
|
raise Datory::Exceptions::DeserializationError.new(message: e.message)
|
43
|
+
rescue JSON::ParserError => e
|
44
|
+
# TODO: Needs to be moved to I18n
|
45
|
+
message = "Failed to parse data for deserialization: #{e.message}"
|
46
|
+
|
47
|
+
raise Datory::Exceptions::DeserializationError.new(message: message, meta: { original_exception: e })
|
43
48
|
end
|
44
49
|
|
45
50
|
def to_model(**attributes)
|
@@ -54,6 +59,7 @@ module Datory
|
|
54
59
|
collection_of_attributes: collection_of_attributes
|
55
60
|
)
|
56
61
|
end
|
62
|
+
alias table describe
|
57
63
|
|
58
64
|
private
|
59
65
|
|
data/lib/datory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -48,16 +48,16 @@ dependencies:
|
|
48
48
|
name: servactory
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 2.6.0
|
53
|
+
version: 2.6.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 2.6.0
|
60
|
+
version: 2.6.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: terminal-table
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|