http_api_client 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/http_api_client/client.rb +2 -2
- data/lib/http_api_client/version.rb +1 -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: 3650761deaca429698be39dcdf3c9a219702e2f7
|
4
|
+
data.tar.gz: 638542b71016c016e28824cc7ba833ad8578b018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cd2bf6d70c3188bd692782a7d8fb3292d206e64fccca539d6b0bb033e12981fadc46cf6347ca6913445ba9e307fb5573eec20bb7509f24482875700bfcffca1
|
7
|
+
data.tar.gz: f87a3c3925303d5d770b87e3562ce7789fe396e12a4a46710e3ae343fed4a381b9d91f3e4abc02e5e9978c264371b8be3d20aa8322e6f8ff284dab8d75a9a6d2
|
data/README.md
CHANGED
@@ -177,3 +177,9 @@ This will install `/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt`
|
|
177
177
|
|
178
178
|
### 0.2.4 - 2014-05-06
|
179
179
|
* Switch to vanilla net_http rather than net_http_persistent to see if a couple of connection / response issues resolve.
|
180
|
+
|
181
|
+
### 0.2.5 - 2014-06-13
|
182
|
+
* Allow for earlier version of faraday
|
183
|
+
|
184
|
+
### 0.2.6 - 2014-10-07
|
185
|
+
* Convert hash contents (dates etc) to correct JSON format before sending over the wire.
|
@@ -54,7 +54,7 @@ module HttpApiClient
|
|
54
54
|
log_data = { method: 'post', remote_host: config.server, path: full_path(path) }
|
55
55
|
|
56
56
|
response = HttpApiClient.metrics.time('http_api_client_request', log_data) do
|
57
|
-
connection.post(full_path(path), JSON.fast_generate(with_auth(payload)), request_headers(update_headers, custom_headers))
|
57
|
+
connection.post(full_path(path), JSON.fast_generate(with_auth(payload).as_json), request_headers(update_headers, custom_headers))
|
58
58
|
end
|
59
59
|
|
60
60
|
handle_response(response, :post, path)
|
@@ -158,4 +158,4 @@ module HttpApiClient
|
|
158
158
|
end
|
159
159
|
|
160
160
|
end
|
161
|
-
end
|
161
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Monie
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2014-
|
14
|
+
date: 2014-10-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|