controller-testing-kwargs 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d73c4de37761656efc91f3e08bb894ed62a009da
4
- data.tar.gz: f9a4c5810fba29f702bd104c094090f7be4cda49
3
+ metadata.gz: 9e9f386c0399326befa5c12f08f2749bd6410e87
4
+ data.tar.gz: a2918efa20ef69bf9df070c0e35f3ee09bca200a
5
5
  SHA512:
6
- metadata.gz: 61329363599e362de4b82e85e47aea47029e6fc9eef263e074c973e6c4f85f5352724cf09ecb3eab32bbc9aac224ca08d02b4dfa132581aeada636b49429a0c5
7
- data.tar.gz: 1bd91c023b29ec0d0da0e41222866dd44a5e343b75015115239601c7bd96026b651c576d7346bc4e161d0a52eea6d7d57f55d1386f9a5a4cbce4da3708112db8
6
+ metadata.gz: 0755f8476ecbaf759db162fd564f25849ffeb95f00e3b8913e16dd280573538360b9e3f7dd5a000b712b4bbf4fd99c4c1dacf46f014d23ec10f53091089c4308
7
+ data.tar.gz: 197a1d0519e2512de82a26f0394af4022ff343fe8f25490f0acbfd2a8a962627c5ecf242db8d59d907024cfcac0029c2e2cf0316bea45f91032d5b2c34bc8bdb
@@ -58,6 +58,7 @@ module Controller
58
58
  end
59
59
 
60
60
  raise Exception, ERROR_MESSAGE if Controller::Testing::Kwargs.raise_exception? && old_method
61
+ ActiveSupport::Deprecation.warn(ERROR_MESSAGE) if Controller::Testing::Kwargs.deprecated? && old_method
61
62
 
62
63
  if xhr
63
64
  previous_value = Controller::Testing::Kwargs.on_old
@@ -68,7 +69,6 @@ module Controller
68
69
  Controller::Testing::Kwargs.instance_variable_set(:@on_old, previous_value)
69
70
  end
70
71
  end
71
- ActiveSupport::Deprecation.warn(ERROR_MESSAGE) if Controller::Testing::Kwargs.deprecated?
72
72
  super(action, request_params, request_headers)
73
73
  end
74
74
  end
@@ -1,7 +1,7 @@
1
1
  module Controller
2
2
  module Testing
3
3
  module Kwargs
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: controller-testing-kwargs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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: 2017-08-08 00:00:00.000000000 Z
11
+ date: 2017-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler