rest-assured 0.2.0.rc1 → 0.2.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,11 @@ class Response
4
4
 
5
5
  if d = Double.where(:fullpath => request.fullpath, :active => true, :verb => request.request_method).first
6
6
  request.body.rewind
7
- body = request.body.read #without temp variable ':body => body' is always nil. mistery
8
- d.requests.create!(:rack_env => request.env.to_json, :body => body, :params => request.params.to_json)
7
+ body = request.body.read #without temp variable ':body = > body' is always nil. mistery
8
+ env = request.env #without temp variable either env or params crap out with 'IOError: not opened for reading' on .to_json
9
+ params = request.params
10
+
11
+ d.requests.create!(:rack_env => env.to_json, :body => body, :params => params.to_json)
9
12
 
10
13
  app.body d.content
11
14
  elsif r = Redirect.ordered.find { |r| request.fullpath =~ /#{r.pattern}/ }
@@ -1,3 +1,3 @@
1
1
  module RestAssured
2
- VERSION = '0.2.0.rc1'
2
+ VERSION = '0.2.0.rc2'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-assured
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424055
4
+ hash: 15424049
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 0
10
10
  - rc
11
- - 1
12
- version: 0.2.0.rc1
11
+ - 2
12
+ version: 0.2.0.rc2
13
13
  platform: ruby
14
14
  authors:
15
15
  - Artem Avetisyan
@@ -17,7 +17,8 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-10-17 00:00:00 Z
20
+ date: 2011-10-19 00:00:00 +01:00
21
+ default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
24
  name: sinatra
@@ -221,6 +222,7 @@ files:
221
222
  - views/redirects/edit.haml
222
223
  - views/redirects/index.haml
223
224
  - views/redirects/new.haml
225
+ has_rdoc: true
224
226
  homepage: https://github.com/BBC/rest-assured
225
227
  licenses: []
226
228
 
@@ -254,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
256
  requirements: []
255
257
 
256
258
  rubyforge_project: rest-assured
257
- rubygems_version: 1.8.6
259
+ rubygems_version: 1.6.2
258
260
  signing_key:
259
261
  specification_version: 3
260
262
  summary: A tool for high level mocking/stubbing HTTP based REST services