rack-test-poc 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/rack/test/poc.rb +5 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46a3bb92ca40f94800c03a6a051131225680c1a6
|
4
|
+
data.tar.gz: b1d1e08780a95399be8d8d13acc9b9be79315b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af9deb1af48aa3204949d790b705f20e25bed5527f9041f21c46421f6e2c64b96de8bb2f6c5392c9e9cd84d01782446b7aae0d4808aa022a3393c14583713e20
|
7
|
+
data.tar.gz: 2bf4efcd8e3bba1416bdafc8336f34b881f554f5ccf75e929cf57e5d2f37d7b9dbc235064b708f4570a2dd3fed6c6811ef6c54e2db5795aab17e46898eb7a1ef
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/rack/test/poc.rb
CHANGED
@@ -92,23 +92,22 @@ module RackTestPoc
|
|
92
92
|
RackTestPoc.dump_obj[uri][request_method_str]['request']['query'] ||= {}
|
93
93
|
RackTestPoc.dump_obj[uri][request_method_str]['request']['query']['raw'] = raw_query
|
94
94
|
RackTestPoc.dump_obj[uri][request_method_str]['request']['query']['object'] = query_hash
|
95
|
-
RackTestPoc.dump_obj[uri][request_method_str]['request']['headers']=
|
96
|
-
|m,o| m.merge!(o[0]=>o[1]) if o[0].to_s.downcase =~ /^http_/ ; m
|
97
|
-
}
|
95
|
+
RackTestPoc.dump_obj[uri][request_method_str]['request']['headers'] = @headers
|
98
96
|
|
99
97
|
RackTestPoc.dump_obj[uri][request_method_str]['response']['body'] = body
|
100
98
|
RackTestPoc.dump_obj[uri][request_method_str]['response']['raw_body'] = last_response.body
|
101
99
|
|
100
|
+
RackTestPoc.dump_obj[uri][request_method_str]['response']['headers']= env.reduce({}){
|
101
|
+
|m,o| m.merge!(o[0]=>o[1]) if o[0].to_s.downcase =~ /^http_/ ; m
|
102
|
+
}
|
103
|
+
|
102
104
|
RackTestPoc.dump_obj[uri][request_method_str]['response']['status']= last_response.status
|
103
105
|
RackTestPoc.dump_obj[uri][request_method_str]['response']['format']= format
|
104
106
|
|
105
107
|
if env['CONTENT_TYPE']
|
106
108
|
RackTestPoc.dump_obj[uri][request_method_str]['response']['content_type']= env['CONTENT_TYPE']
|
107
|
-
|
108
109
|
end
|
109
110
|
|
110
|
-
|
111
|
-
|
112
111
|
return last_response
|
113
112
|
|
114
113
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-test-poc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|