rest-client 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rest-client might be problematic. Click here for more details.

data/Rakefile CHANGED
@@ -30,7 +30,7 @@ require 'rake/gempackagetask'
30
30
  require 'rake/rdoctask'
31
31
  require 'fileutils'
32
32
 
33
- version = "0.2"
33
+ version = "0.3"
34
34
  name = "rest-client"
35
35
 
36
36
  spec = Gem::Specification.new do |s|
@@ -57,7 +57,7 @@ module RestClient
57
57
 
58
58
  def execute_inner
59
59
  uri = parse_url(url)
60
- transmit uri, net_http_class(method).new(uri.path, make_headers(headers)), payload
60
+ transmit uri, net_http_class(method).new(uri.request_uri, make_headers(headers)), payload
61
61
  end
62
62
 
63
63
  def make_headers(user_headers)
@@ -28,7 +28,7 @@ describe RestClient do
28
28
  @request = RestClient::Request.new(:method => :put, :url => 'http://some/resource', :payload => 'payload')
29
29
 
30
30
  @uri = mock("uri")
31
- @uri.stub!(:path).and_return('/resource')
31
+ @uri.stub!(:request_uri).and_return('/resource')
32
32
  @uri.stub!(:host).and_return('some')
33
33
  @uri.stub!(:port).and_return(80)
34
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest-client
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.2"
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wiggins
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-10 00:00:00 -07:00
12
+ date: 2008-03-20 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -23,11 +23,11 @@ extra_rdoc_files: []
23
23
 
24
24
  files:
25
25
  - Rakefile
26
- - lib/resource.rb
27
26
  - lib/rest_client.rb
28
- - spec/base.rb
27
+ - lib/resource.rb
29
28
  - spec/resource_spec.rb
30
29
  - spec/rest_client_spec.rb
30
+ - spec/base.rb
31
31
  has_rdoc: true
32
32
  homepage: http://rest-client.heroku.com/
33
33
  post_install_message: