thecore_api 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/api/v1/base_controller.rb +3 -2
- data/lib/thecore_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f46636573d8107e9a55691d97eed4aafc62fc02235d948ed97ee191c3178ada3
|
|
4
|
+
data.tar.gz: 7b4dcaf0baf35a53390674910044fbf08389b7955c605a236b113ac580b72c8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37d7f54f28e69f12470d0ca5f717242a7833115b5356671116e514aa88bf74576c4017a453a878fb7820c09786a42aa932ad3c91eb7b235f061b1a89246d97d8
|
|
7
|
+
data.tar.gz: b4de76edb203bafea11438b8114810c4bf08819c3792df60b6df6a9560fa45da4ddd494a7c4da3792d024ca9904fec8248e9f9198b00754686319535b8dabd86
|
|
@@ -180,8 +180,9 @@ class Api::V1::BaseController < ActionController::API
|
|
|
180
180
|
render json: { error: 'you are not enabled to do so' }, status: 403
|
|
181
181
|
end
|
|
182
182
|
|
|
183
|
-
def invalid!
|
|
184
|
-
|
|
183
|
+
def invalid! exception
|
|
184
|
+
# Rails.logger.debug exception.errors.inspect
|
|
185
|
+
render json: { error: exception }, status: 422
|
|
185
186
|
end
|
|
186
187
|
|
|
187
188
|
def invalid_resource!(errors = [])
|
data/lib/thecore_api/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: thecore_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriele Tassoni
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-06-
|
|
11
|
+
date: 2019-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thecore
|