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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/rack/test/poc.rb +5 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d220198294349bb3d49c434bbeba924c8f9ce01
4
- data.tar.gz: 67a0efbbf1be62de73d7c4b93bde7ed5861d0e06
3
+ metadata.gz: 46a3bb92ca40f94800c03a6a051131225680c1a6
4
+ data.tar.gz: b1d1e08780a95399be8d8d13acc9b9be79315b14
5
5
  SHA512:
6
- metadata.gz: ef1ce0bebc428efe5e7203d32c4fd5d8f6699873ff53578f21db65f3d26f6fbe1dea64fe842239f8ec684d77160462b1c27dc3436b2d21179c61d24b2bb927a1
7
- data.tar.gz: 522960eaf67bb133da30d9e2cf47c951272e76772a68720842d4f8004e4010ae1397aa21248905745661f649372a78bc9844bea5c418fafc210a7dba6c7375e4
6
+ metadata.gz: af9deb1af48aa3204949d790b705f20e25bed5527f9041f21c46421f6e2c64b96de8bb2f6c5392c9e9cd84d01782446b7aae0d4808aa022a3393c14583713e20
7
+ data.tar.gz: 2bf4efcd8e3bba1416bdafc8336f34b881f554f5ccf75e929cf57e5d2f37d7b9dbc235064b708f4570a2dd3fed6c6811ef6c54e2db5795aab17e46898eb7a1ef
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.1.0
@@ -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']= env.reduce({}){
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler