api-blocks 0.4.10 → 0.4.11

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: 843bea891fd702377450792011768058f8a43285f736e9cb0bad420c58045e09
4
- data.tar.gz: cd35fa0fe8ccd051c56305104c93947197b398967d755d6272d55a060e053de5
3
+ metadata.gz: 213ea14d1ace477c4e700647a5574a5a9024c62185a9a2e5b656a2ed7b2f3eb0
4
+ data.tar.gz: 74cf4dd8fb59ff2441e0effa5217b200e6cb4bf4e2539c3882709e93bb46a7d4
5
5
  SHA512:
6
- metadata.gz: e292eb8cf9aa670003e623bcb92b23b210bd0b47278852a9bc8b515ba8bb9253da180c4f53ecaf9f36d3e3b9a0e9a4bfd7b3fe2ba69f15f0e75660e8597c871b
7
- data.tar.gz: 7a448439cd7c1c9839fcd5b4cbd0206a313c76a0842363d0b23fdc6372d95bb2b0bd48eafba18054d477aa60f7d663eb8019850c24b22c4bc83b2156c1c0c13d
6
+ metadata.gz: 648bc25b3c823f66c65edf674e283eb24803d9f9af7afc00e6a8b6683c66099b00510c775d4a66658a4fea2b01f8cd47a380b61e1870889815dd76f0f6523f99
7
+ data.tar.gz: 87e3687c96f08d74ff264761a89f2642277e58d73da5acf910e035347aa89b62358a0f687ddd4aab3a177a8dd39b0a99bb4cc7ee1b2019895a96d14c304fbe44
@@ -20,6 +20,8 @@ class ApiBlocks::Responder < ActionController::Responder
20
20
  [{ errors: resource.errors.to_h }, :unprocessable_entity]
21
21
  when ActiveRecord::RecordInvalid
22
22
  [{ errors: resource.record.errors }, :unprocessable_entity]
23
+ when ActiveModel::ValidationError
24
+ [{ errors: resource.model.errors }, :unprocessable_entity]
23
25
  when String
24
26
  [{ detail: resource }, :internal_server_error]
25
27
  when ProblemDetails::Document
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ApiBlocks
4
4
  # Current version of ApiBlocks
5
- VERSION = "0.4.10"
5
+ VERSION = "0.4.11"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul d'Hubert
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - '='
214
214
  - !ruby/object:Gem::Version
215
- version: 0.77.0
215
+ version: 0.79.0
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - '='
221
221
  - !ruby/object:Gem::Version
222
- version: 0.77.0
222
+ version: 0.79.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: yard
225
225
  requirement: !ruby/object:Gem::Requirement