rails-forward_compatible_controller_tests 2.3.0 → 2.3.1

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: 3a7c8a5bbd6a9dda456e1c317403e547e10e90d8
4
- data.tar.gz: d9554acb3f068a6a11bad0a78f6a950481994087
3
+ metadata.gz: 3a1268eb492462b122a7d07c9992b5c26c72e5db
4
+ data.tar.gz: c6533cd65b1a75e14b00fa84b203ae3e7277c5d9
5
5
  SHA512:
6
- metadata.gz: 00c8c8fc1ab3a6b31c7b8945ea324bdd10f9a0f9bad9483d57a677c267b8a11c3af4d75f01ee79f60800794cc1d9a5a30850c9e7e20aec91a1b50c06cb7c6b90
7
- data.tar.gz: 281b5c207f6457e721d3404aa337007eefce34330568b77cb5ca53f6390588db51db0d251ebb6d070daedc1d41300901c5a14c9397b7a18c7fb4558d0bcac60e
6
+ metadata.gz: df58cc663e3a457aa9b1b1501cde9449b0b11fb2ce75269cdaddb83ec5e1fc8224e1f13fd7b595dd0d296f54cc823dd54785b5ed408944d9378c734d455ac8b9
7
+ data.tar.gz: 4f084a4c043546a5ef25881e8ee09e64c6c491f99cbd4480029c1f53339f6c77ddd6b68de1d5f6c2a41f100ee5cd2c33f064e281b143ab9ba4f002761fc39f99
@@ -58,15 +58,10 @@ module Rails
58
58
  xhr = request_params.delete(:xhr)
59
59
  request_format = request_params.delete(:format)
60
60
  if request_params[:params].is_a?(Hash)
61
- request_params.merge!(request_params.delete(:params) || {})
62
61
  request_session = request_params.delete(:session) || request_session if controller_test
63
62
  request_headers = request_params.delete(:headers) || request_headers unless controller_test
64
63
  request_flash = request_params.delete(:flash) || request_flash if controller_test
65
- elsif request_params.key?(:params)
66
- request_flash = request_params[:flash] if controller_test
67
- request_session = request_params[:session] if controller_test
68
- request_headers = request_params[:headers] unless controller_test
69
- request_params = request_params[:params]
64
+ request_params.merge!(request_params.delete(:params) || {})
70
65
  elsif request_params.key?(:headers) && !controller_test
71
66
  request_flash = nil
72
67
  request_session = nil
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module ForwardCompatibleControllerTests
3
- VERSION = "2.3.0"
3
+ VERSION = "2.3.1"
4
4
  end
5
5
  end
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.0
4
+ version: 2.3.1
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-18 00:00:00.000000000 Z
11
+ date: 2018-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler