rest 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +4 -4
- data/lib/rest/version.rb +1 -1
- data/lib/rest/wrappers/net_http_persistent_wrapper.rb +3 -3
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rest (2.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.
|
12
|
-
ffi (1.0
|
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.
|
24
|
+
uber_config (0.0.5)
|
25
25
|
|
26
26
|
PLATFORMS
|
27
27
|
ruby
|
data/lib/rest/version.rb
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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-
|
12
|
+
date: 2012-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|