sawyer 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sawyer.rb +1 -1
- data/lib/sawyer/agent.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d7b54a1fff4008a1f9b1ce3b71e10b21f513cf0
|
4
|
+
data.tar.gz: 15f7461f65c71a52f259887192c881d7cacb63c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb2cbf128ccb8abb1ea3a09f4dff794eacde58efa511ab0a1cee9e87e092432244b43bacebb738e26e8909a98804b010ca175679bd4a7260e8c09fcca2c1d925
|
7
|
+
data.tar.gz: fb09d67d7c006cf2a14285a228ddeb85758d77e5a6ab1553c27980fd4ec46bab382b64eff069c03a967a4cee0afd8cae12a6752a30ebf19c491cc876cec9516c
|
data/lib/sawyer.rb
CHANGED
data/lib/sawyer/agent.rb
CHANGED
@@ -92,7 +92,9 @@ module Sawyer
|
|
92
92
|
url = expand_url(url, options[:uri])
|
93
93
|
started = nil
|
94
94
|
res = @conn.send method, url do |req|
|
95
|
-
|
95
|
+
if data
|
96
|
+
req.body = data.is_a?(String) ? data : encode_body(data)
|
97
|
+
end
|
96
98
|
if params = options[:query]
|
97
99
|
req.params.update params
|
98
100
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sawyer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Olson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|