jsonapi-utils 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jsonapi/utils.rb +2 -2
- data/lib/jsonapi/utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a232547785780ea0f461b1e4712c5a0d0a8a05d8
|
4
|
+
data.tar.gz: a8d32ac3b2ad2efa41c3709760d9912e3a6be266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c00db150a5a308c9dac71aacea0c8ac51bb12c37228841f36eff7c1a794d063f74ec8be0adf16bc591317881f0c87014f20c24e27c2d666c1ab0cd0c38058a2
|
7
|
+
data.tar.gz: bd0789ad0ed58f2552d165ac66992ad3121934170557d7aa325cb0c428551d8a6b13536ed481ebb9dfee23ff7d350894f0d815e6e27ff866e633f9229ed142d5
|
data/lib/jsonapi/utils.rb
CHANGED
@@ -26,11 +26,11 @@ module JSONAPI
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def jsonapi_render_internal_server_error
|
29
|
-
jsonapi_render_errors(::JSONAPI::Utils::Exceptions::InternalServerError.new)
|
29
|
+
Rails.env.development? || jsonapi_render_errors(::JSONAPI::Utils::Exceptions::InternalServerError.new)
|
30
30
|
end
|
31
31
|
|
32
32
|
def jsonapi_render_bad_request
|
33
|
-
jsonapi_render_errors(::JSONAPI::Utils::Exceptions::BadRequest.new)
|
33
|
+
Rails.env.development? || jsonapi_render_errors(::JSONAPI::Utils::Exceptions::BadRequest.new)
|
34
34
|
end
|
35
35
|
|
36
36
|
def jsonapi_render_not_found
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jsonapi-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tiago Guedes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|