rails-forward_compatible_controller_tests 2.3.1 → 2.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: 3a1268eb492462b122a7d07c9992b5c26c72e5db
4
- data.tar.gz: c6533cd65b1a75e14b00fa84b203ae3e7277c5d9
3
+ metadata.gz: 85e6930e64c6444606585111e29e1aad38521760
4
+ data.tar.gz: 62b5815dae3600c17d2d99839009907ce04f87df
5
5
  SHA512:
6
- metadata.gz: df58cc663e3a457aa9b1b1501cde9449b0b11fb2ce75269cdaddb83ec5e1fc8224e1f13fd7b595dd0d296f54cc823dd54785b5ed408944d9378c734d455ac8b9
7
- data.tar.gz: 4f084a4c043546a5ef25881e8ee09e64c6c491f99cbd4480029c1f53339f6c77ddd6b68de1d5f6c2a41f100ee5cd2c33f064e281b143ab9ba4f002761fc39f99
6
+ metadata.gz: 79f78351a8b03ddf19f2ea260966c7c899d926ddf043440e34b028465473e249c17ed9b130f923f0a4da9800e58240dfbe72be3ca46d04e595f6969f0dd30530
7
+ data.tar.gz: 15e97383f8958589d226d022d810213ad32005a91ff4c84fe3003b4918180a6538df3a9f3ccc7c1999f422ffa0293d09aceeace5edb75c0ba4fd12c7d5930c0e
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module ForwardCompatibleControllerTests
3
- VERSION = "2.3.1"
3
+ VERSION = "2.3.2"
4
4
  end
5
5
  end
@@ -54,7 +54,7 @@ module Rails
54
54
 
55
55
  old_method = false
56
56
  xhr = false
57
- if request_params && request_params.is_a?(Hash)
57
+ if args.size == 1
58
58
  xhr = request_params.delete(:xhr)
59
59
  request_format = request_params.delete(:format)
60
60
  if request_params[:params].is_a?(Hash)
@@ -88,7 +88,10 @@ module Rails
88
88
  raise Exception, ERROR_MESSAGE if ForwardCompatibleControllerTests.raise_exception? && old_method
89
89
  ActiveSupport::Deprecation.warn(ERROR_MESSAGE) if ForwardCompatibleControllerTests.deprecated? && old_method
90
90
 
91
- request_params[:format] = request_format if request_format
91
+ if request_format
92
+ request_params ||= {}
93
+ request_params[:format] = request_format
94
+ end
92
95
 
93
96
  if xhr
94
97
  ForwardCompatibleControllerTests.send(:with_ignore) do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-forward_compatible_controller_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Shaffer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-19 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler