http_vanilli 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ module HttpVanilli
3
3
  include HttpVanilli::NetHttp::YieldResponse
4
4
 
5
5
  def response_for_request(request)
6
- code,headers,body = rack_response(request)
6
+ code,headers,body = *rack_response(request)
7
7
 
8
8
  response = HttpVanilli::NetHttp::Response.new(code,headers,body)
9
9
 
@@ -19,6 +19,8 @@ module HttpVanilli
19
19
  @method = request.method.downcase.to_sym
20
20
  end
21
21
 
22
+ alias_method :url, :uri
23
+
22
24
  def host; @uri.host end
23
25
 
24
26
  def to_s
@@ -1,3 +1,3 @@
1
1
  module HttpVanilli
2
- Version = '0.0.2'
2
+ Version = '0.0.3'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lachie Cox
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-01 00:00:00 +10:00
17
+ date: 2010-09-02 00:00:00 +10:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -29,6 +29,20 @@ dependencies:
29
29
  version: "0"
30
30
  type: :development
31
31
  version_requirements: *id001
32
+ - !ruby/object:Gem::Dependency
33
+ name: addressable
34
+ prerelease: false
35
+ requirement: &id002 !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ segments:
40
+ - 2
41
+ - 2
42
+ - 0
43
+ version: 2.2.0
44
+ type: :runtime
45
+ version_requirements: *id002
32
46
  description: HttpVanilli gives you lip-synced http connections with pluggable band members for testing.
33
47
  email:
34
48
  - lachiec@gmail.com