fredo 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
data/fredo.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fredo}
8
- s.version = "0.1.7"
8
+ s.version = "0.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["ilpoldo"]
12
- s.date = %q{2010-05-01}
12
+ s.date = %q{2010-05-02}
13
13
  s.description = %q{Mocks web services by plugging Net::Http straight into Rack}
14
14
  s.email = %q{ilpoldo@gmail.com}
15
15
  s.extra_rdoc_files = [
data/lib/fredo/handler.rb CHANGED
@@ -52,7 +52,8 @@ module Fredo
52
52
  Fredo.books << {:path => path,
53
53
  :params => @params,
54
54
  :method => @request.request_method,
55
- :host => @request.host}
55
+ :host => @request.host,
56
+ :body => @request.body.read}
56
57
  perform!(&block)
57
58
  return
58
59
  end
data/spec/fredo_spec.rb CHANGED
@@ -81,8 +81,7 @@ describe Fredo do
81
81
  end
82
82
 
83
83
  response = open('http://www.twitter.com/sam')
84
-
85
- Fredo.books.last.host.should eql('www.twitter.com')
84
+ Fredo.books.last[:host].should eql('www.twitter.com')
86
85
  end
87
86
 
88
87
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 7
9
- version: 0.1.7
8
+ - 8
9
+ version: 0.1.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - ilpoldo
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-01 00:00:00 +01:00
17
+ date: 2010-05-02 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency