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 +4 -4
- data/lib/api_blocks/responder.rb +2 -0
- data/lib/api_blocks/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 213ea14d1ace477c4e700647a5574a5a9024c62185a9a2e5b656a2ed7b2f3eb0
|
4
|
+
data.tar.gz: 74cf4dd8fb59ff2441e0effa5217b200e6cb4bf4e2539c3882709e93bb46a7d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648bc25b3c823f66c65edf674e283eb24803d9f9af7afc00e6a8b6683c66099b00510c775d4a66658a4fea2b01f8cd47a380b61e1870889815dd76f0f6523f99
|
7
|
+
data.tar.gz: 87e3687c96f08d74ff264761a89f2642277e58d73da5acf910e035347aa89b62358a0f687ddd4aab3a177a8dd39b0a99bb4cc7ee1b2019895a96d14c304fbe44
|
data/lib/api_blocks/responder.rb
CHANGED
@@ -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
|
data/lib/api_blocks/version.rb
CHANGED
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.
|
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.
|
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.
|
222
|
+
version: 0.79.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
224
|
name: yard
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|