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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 787dd4e20ecfc0d81ad5221eee77897c4baece34
4
- data.tar.gz: 8fb454390a928f5af72ad95334448fc5bac631b3
3
+ metadata.gz: a232547785780ea0f461b1e4712c5a0d0a8a05d8
4
+ data.tar.gz: a8d32ac3b2ad2efa41c3709760d9912e3a6be266
5
5
  SHA512:
6
- metadata.gz: f38a040d3b83edc9f62cd13cd6be0554af7e6d9dd4261cb38d11617affc01c900d0c7f75bf7def9c5420ba9b234440fe5d8ffb570e9e2a07cafb0e661cc91e8d
7
- data.tar.gz: 772676ea003068c1c5b763e57be30b73266f96d9b5ba8f137202f77612a557196c828a661d60ce334adba1a4ef32b4c5856d6be7c1f185bcb9deac24715e307c
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
@@ -1,5 +1,5 @@
1
1
  module JSONAPI
2
2
  module Utils
3
- VERSION = '0.3.1'
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
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.1
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-10-30 00:00:00.000000000 Z
12
+ date: 2015-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler