rocket_pants 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rocket_pants/test_helper.rb +6 -1
- metadata +6 -6
@@ -13,6 +13,10 @@ module RocketPants
|
|
13
13
|
end
|
14
14
|
|
15
15
|
module ResponseHelper
|
16
|
+
|
17
|
+
def recycle_cached_body!
|
18
|
+
@_parsed_body = @_decoded_body = nil
|
19
|
+
end
|
16
20
|
|
17
21
|
def parsed_body
|
18
22
|
@_parsed_body ||= begin
|
@@ -70,6 +74,7 @@ module RocketPants
|
|
70
74
|
|
71
75
|
# Like process, but automatically adds the api version.
|
72
76
|
def process(action, parameters = nil, session = nil, flash = nil, http_method = 'GET')
|
77
|
+
response.recycle_cached_body!
|
73
78
|
parameters ||= {}
|
74
79
|
if _default_version.present? && parameters[:version].blank? && parameters['version'].blank?
|
75
80
|
parameters[:version] = _default_version
|
@@ -91,4 +96,4 @@ module RocketPants
|
|
91
96
|
end
|
92
97
|
|
93
98
|
end
|
94
|
-
end
|
99
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocket_pants
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -208,17 +208,17 @@ dependencies:
|
|
208
208
|
requirement: !ruby/object:Gem::Requirement
|
209
209
|
none: false
|
210
210
|
requirements:
|
211
|
-
- -
|
211
|
+
- - ~>
|
212
212
|
- !ruby/object:Gem::Version
|
213
|
-
version: '0'
|
213
|
+
version: '1.0'
|
214
214
|
type: :development
|
215
215
|
prerelease: false
|
216
216
|
version_requirements: !ruby/object:Gem::Requirement
|
217
217
|
none: false
|
218
218
|
requirements:
|
219
|
-
- -
|
219
|
+
- - ~>
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: '0'
|
221
|
+
version: '1.0'
|
222
222
|
- !ruby/object:Gem::Dependency
|
223
223
|
name: kaminari
|
224
224
|
requirement: !ruby/object:Gem::Requirement
|