rest 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rest (2.0.0)
4
+ rest (2.0.1)
5
5
  net-http-persistent
6
6
  rest-client (>= 0.3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- excon (0.14.3)
12
- ffi (1.0.11)
11
+ excon (0.15.4)
12
+ ffi (1.1.0)
13
13
  mime-types (1.19)
14
14
  minitest (3.2.0)
15
15
  net-http-persistent (2.7)
@@ -21,7 +21,7 @@ GEM
21
21
  typhoeus (0.4.2)
22
22
  ffi (~> 1.0)
23
23
  mime-types (~> 1.18)
24
- uber_config (0.0.3)
24
+ uber_config (0.0.5)
25
25
 
26
26
  PLATFORMS
27
27
  ruby
@@ -1,3 +1,3 @@
1
1
  module Rest
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
@@ -113,7 +113,7 @@ module Rest
113
113
  response = nil
114
114
  begin
115
115
  uri = URI(url)
116
- post = Net::HTTP::Post.new uri.path
116
+ post = Net::HTTP::Post.new fix_path(uri.request_uri)
117
117
  add_headers(post, req_hash, default_headers)
118
118
  post.body = stringed_body(req_hash[:body]) if req_hash[:body]
119
119
  response = http.request uri, post
@@ -138,7 +138,7 @@ module Rest
138
138
  response = nil
139
139
  begin
140
140
  uri = URI(url)
141
- post = Net::HTTP::Put.new uri.path
141
+ post = Net::HTTP::Put.new fix_path(uri.request_uri)
142
142
  add_headers(post, req_hash, default_headers)
143
143
  post.body = stringed_body(req_hash[:body]) if req_hash[:body]
144
144
  response = http.request uri, post
@@ -155,7 +155,7 @@ module Rest
155
155
  response = nil
156
156
  begin
157
157
  uri = URI(url)
158
- post = Net::HTTP::Delete.new uri.path
158
+ post = Net::HTTP::Delete.new fix_path(uri.request_uri)
159
159
  add_headers(post, req_hash, default_headers)
160
160
  response = http.request uri, post
161
161
  response = NetHttpPersistentResponseWrapper.new(response)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-11 00:00:00.000000000 Z
12
+ date: 2012-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client