rocket_pants 1.8.1 → 1.8.2
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 +4 -4
- data/lib/rocket_pants/test_helper.rb +9 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14282b4a5be505c94ebd8c4f140e0253b5ee7455
|
4
|
+
data.tar.gz: 294a19eebb0920f908360ca95fe9a88d62a4caae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95c0b78ff16ac119366675786892b6812f51138510ba974377518c1a3747dbba678f356fb055ee3f493f8b0860b6604b0c29cd02021ecf41657029d197ab533e
|
7
|
+
data.tar.gz: 5e16e6cafe27df12efb53e930326cd5f4092c1d7422f587486f6dab5759de27a757be6d524200a5ff4ef52d64c8d08f6ba7b62327109c25290636823f6f83a03
|
@@ -85,24 +85,25 @@ module RocketPants
|
|
85
85
|
end
|
86
86
|
|
87
87
|
# Like process, but automatically adds the api version.
|
88
|
-
def process(action,
|
88
|
+
def process(action, *args)
|
89
89
|
|
90
90
|
insert_action_controller_testing_into_base
|
91
91
|
|
92
|
-
# Rails 4 changes the method signature. In rails 3,
|
93
|
-
# the
|
94
|
-
if
|
95
|
-
parameters = args
|
92
|
+
# Rails 4 changes the method signature. In rails 3, parameters is the first argument.
|
93
|
+
# In Rails 4, it's the second.
|
94
|
+
if args.first.is_a?(String)
|
95
|
+
parameters = (args[1] ||= {})
|
96
96
|
else
|
97
|
-
parameters =
|
97
|
+
parameters = (args[0] ||= {})
|
98
98
|
end
|
99
99
|
|
100
100
|
response.recycle_cached_body!
|
101
|
-
|
101
|
+
|
102
102
|
if _default_version.present? && parameters[:version].blank? && parameters['version'].blank?
|
103
103
|
parameters[:version] = _default_version
|
104
104
|
end
|
105
|
-
|
105
|
+
|
106
|
+
super action, *args
|
106
107
|
end
|
107
108
|
|
108
109
|
def normalise_value(value)
|