rest 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rest (2.0.4)
4
+ rest (2.1.0)
5
5
  net-http-persistent
6
6
  rest-client (>= 0.3.0)
7
7
 
@@ -12,7 +12,7 @@ GEM
12
12
  ffi (1.1.5)
13
13
  mime-types (1.19)
14
14
  minitest (3.5.0)
15
- net-http-persistent (2.7)
15
+ net-http-persistent (2.8)
16
16
  quicky (0.1.1)
17
17
  rake (0.9.2.2)
18
18
  rest-client (1.6.7)
@@ -1,3 +1,3 @@
1
1
  module Rest
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -169,6 +169,7 @@ module Rest
169
169
  uri = URI(url)
170
170
  post = Net::HTTP::Delete.new fix_path(uri.request_uri)
171
171
  add_headers(post, req_hash, default_headers)
172
+ post.body = stringed_body(req_hash[:body]) if req_hash[:body]
172
173
  response = http.request uri, post
173
174
  r = NetHttpPersistentResponseWrapper.new(response)
174
175
  case response
@@ -156,7 +156,11 @@ class TestRest < TestBase
156
156
  :headers => headers)
157
157
  p response
158
158
 
159
+ end
159
160
 
161
+ def test_form_post
162
+ r = @rest.post("http://google.com/search", :params=>{q: "Rick Astley"})
163
+ p r
160
164
  end
161
165
 
162
166
  def test_gzip
@@ -9,5 +9,11 @@ class TestTemp < TestBase
9
9
 
10
10
  end
11
11
 
12
+
13
+ def test_form_post
14
+ r = @rest.post("http://google.com/search", :params=>{q: "Rick Astley"})
15
+ p r
16
+ end
17
+
12
18
  end
13
19
 
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.1.0
4
+ version: 2.1.1
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-11-05 00:00:00.000000000 Z
12
+ date: 2012-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client