datory 1.0.0.rc21 → 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: cef33c8ff7294db1d0822aaf02b3b81f33a8996089cc225c4813691e115ea9b9
4
- data.tar.gz: 5d2bddb27b586c6f8fdee0c48e535b73376ff43e876d078fbc57aca43646cb94
3
+ metadata.gz: 6ea882190ed74d7dbdb06cb66d2eb191865729ec38fd9c106c04519776fe345e
4
+ data.tar.gz: 308215986324766f5a5a96541732fc86c1f33e82c92ecea9361d31ab831e77c8
5
5
  SHA512:
6
- metadata.gz: f774515aed1107026e8c56a45b9520420beff4c86913babbbc8327942544a9d5a1e38ccd5cc11094353a9e620af8e2d008db51090a58130bda418fb2ec1a1f95
7
- data.tar.gz: b645b94a7b95fbcddb7676546e49818ef0a7bd75e370da39a6c74dbddb922f42468b310d9c7d4ad4d1f5e329651113829eb1cb1f9f1e9d1802dcd3514274fbc5
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 = "rc21"
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.rc21
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-13 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