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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d89294162d1c0f3ba39169be07688e41bd756ce01aca92d819eadb4a2fa17c6
4
- data.tar.gz: d5f85e0a122bc34fee393bd2fcdb5039e69c6db7500e7d3d6ff3be9db6d482a0
3
+ metadata.gz: 6ea882190ed74d7dbdb06cb66d2eb191865729ec38fd9c106c04519776fe345e
4
+ data.tar.gz: 308215986324766f5a5a96541732fc86c1f33e82c92ecea9361d31ab831e77c8
5
5
  SHA512:
6
- metadata.gz: 58752a040a8c9a9f48adb20c9cfe5251469e47df3f384a63fa0c2d70e5983a4244aae2ce73e91c6fef5727e44bc996ce68a641daef5fac01797a7de055116645
7
- data.tar.gz: 77a9dcc175d8b1a0304d7b8d4d3597077848304f7220396eb62bf6d4d177f8e11b514040dda727a2ad04a76d5d3eff8662dcebc04d7f0193414929dd42a3a728
6
+ metadata.gz: 9414d5c07e14f6b280be1ad313045dd9ef368cc2303e8500617ffae46e11d6b3094d127ab3ff4cd6c8a5505fa182c054b14d3853a9c45a2a1982cc38e35445ed
7
+ data.tar.gz: 62d1d0a7a5ed593d907c88672c7396a43f3ad12718e1b7115ce4fbc51ba86494efe2b11fb9230ce8fee4766ddcc2871fb4c8a6c8f1702de59187903b903df18a
data/README.md CHANGED
@@ -186,6 +186,8 @@ SerialDto.info
186
186
 
187
187
  ### Describe
188
188
 
189
+ Alias: `table`
190
+
189
191
  ```ruby
190
192
  SerialDto.describe
191
193
  ```
@@ -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
 
@@ -5,7 +5,7 @@ module Datory
5
5
  MAJOR = 1
6
6
  MINOR = 0
7
7
  PATCH = 0
8
- PRE = "rc20"
8
+ PRE = "rc22"
9
9
 
10
10
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join(".")
11
11
  end
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.rc20
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-10 00:00:00.000000000 Z
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.rc2
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.rc2
60
+ version: 2.6.0
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: terminal-table
63
63
  requirement: !ruby/object:Gem::Requirement