http_api_client 0.1.3 → 0.1.4
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.
- checksums.yaml +8 -8
- data/README.md +3 -0
- data/lib/http_api_client/timed_result.rb +7 -1
- data/lib/http_api_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWFhZjAwM2JlOGRkZTFlMGI3YjEyM2U5MWIzZTU5YzkyMjFlOWFlNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yzk3ZjZjNjU4NzE3YTRjNzc1ZTIxMjEyZTA2NTA1OTdmYTBjOTk2MA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTY1OWYxYTNkNTNmOTYwYjQ0OTU4ZjQ1M2Q4ZjBmN2JiZTM1NmM3NTRkZTQ5
|
10
|
+
YzAzZmZhOWFkZDIxYmVjODRlYWIzNjBjMTI2NWVmMTdjYjYxZmY5OWJmNmNi
|
11
|
+
NDQyZDNhMDQzNWU2NDkxODdhNGE2NWUwMjMzOTNhMzk4YWUzZjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OWU1NGViMjIyNTZlYzFjZmYwM2E5NTI2ODhjNjFjOTAzYWQ4NGQwM2RhMDhj
|
14
|
+
MGRlMGI0MjkxZDJmMTRjNWIxNzNlMzNiYjkzMzNkNmZlOTE4NDZkMDBlYWI2
|
15
|
+
MGE4OGU0NWY5YTU0ZWJiMDUxNzg5OTE5YmFhNDQ0MmU3OWE2ODM=
|
data/README.md
CHANGED
@@ -153,3 +153,6 @@ This will install `/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt`
|
|
153
153
|
### 0.1.2 - 2014-04-04
|
154
154
|
* Update logging to be less generic to avoid clash with other log fields
|
155
155
|
|
156
|
+
### 0.1.3 - 2014-04-07
|
157
|
+
* Fix issue with adding a nil request id when a client is configured to add header to requests
|
158
|
+
|
@@ -11,7 +11,7 @@ class TimedResult
|
|
11
11
|
log_entries = ["event_name=#{event}"]
|
12
12
|
log_entries << "request_id=#{Thread.current[:request_id]}" if Thread.current[:request_id]
|
13
13
|
log_entries << "timing=#{time}"
|
14
|
-
log_entries.concat(log_data
|
14
|
+
log_entries.concat(as_log_entries(log_data))
|
15
15
|
|
16
16
|
HttpApiClient.logger.info(log_entries.join(", "))
|
17
17
|
|
@@ -21,4 +21,10 @@ class TimedResult
|
|
21
21
|
(Time.now - start_time) * 1000
|
22
22
|
end
|
23
23
|
|
24
|
+
def self.as_log_entries(hash)
|
25
|
+
hash.inject [] do |result, entry|
|
26
|
+
result << "#{entry[0]}=#{entry[1]}"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
24
30
|
end
|