jsonapi.rb 1.5.5 → 1.5.6

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: 71cf64bf90046f3324578570070d183b17032f75
4
- data.tar.gz: c5137c316e8078cd1616fd967b2689c77f3e8b38
3
+ metadata.gz: 01dd65d6881984784e66ada7c2f9b6a551df29ba
4
+ data.tar.gz: 49f56ed690ce73266c3647106b24feac1795f84a
5
5
  SHA512:
6
- metadata.gz: 2b6260fc971877077ff2a2355e58be588fe0de60c3e5e36cff93333519f6179ff0586f810f7311270df9b35e892c0b405385281dd2598b12677b5ef9cd42cc9b
7
- data.tar.gz: 7d72f20a0ada547d39ba333c063ce6e4c7917e4d84c0e309dedd7475f4fc7aa21c77e342b522cc25d2f8e24159ed2fe7950f316b5d8ee05c41ea592c972f377d
6
+ metadata.gz: f1690aedae0537c30374eebb9322fb21b99eb4312226ce1b1db1ff014ed621a7c20e8d828ea2784cad51d467681104e2273993e8f1a7d1453382c934145d51fe
7
+ data.tar.gz: 810c694b033419721279c8dd3c0297081894d855003d1e88852cab94e94dc671aea3cdb68eb76014f7a8e5b78d6cbbc1c5c1c4920a9d815196d9c72fd3027dc3
@@ -14,7 +14,7 @@ module JSONAPI
14
14
  rescue_from(
15
15
  StandardError,
16
16
  with: :render_jsonapi_internal_server_error
17
- )
17
+ ) unless defined?(::Rails) && ::Rails.env.test?
18
18
 
19
19
  rescue_from(
20
20
  ActiveRecord::RecordNotFound,
@@ -39,7 +39,7 @@ module JSONAPI
39
39
  *request.path_parameters.keys.map(&:to_s)
40
40
  ).to_unsafe_h.with_indifferent_access
41
41
 
42
- original_params[:page] ||= {}
42
+ original_params[:page] = original_params[:page].dup || {}
43
43
  original_url = request.base_url + request.path + '?'
44
44
 
45
45
  pagination.each do |page_name, number|
@@ -1,3 +1,3 @@
1
1
  module JSONAPI
2
- VERSION = '1.5.5'
2
+ VERSION = '1.5.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonapi.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stas Suscov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fast_jsonapi