api_client 0.5.16 → 0.5.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37901cb1987dc20c32b8853eedfabab968bf3b0e
4
- data.tar.gz: fd064629bf64b68239f8957e3bbfa44eb2fde456
3
+ metadata.gz: 6a75e24776792dbb8507f43cd42915a1651409ee
4
+ data.tar.gz: aa54cfe2f257889ba8b13d15894efb8168708b3d
5
5
  SHA512:
6
- metadata.gz: af89fc9e078b61a8a368e9ef777c5373fff8740e47cd67e40b1fb4a6a0724a1b6e581cf61df0cd14d8d2262be8bb405310fe31940aeb1974e1350e81f9154d8d
7
- data.tar.gz: 13154f7651b172e8a647488583d89371873a64322c8ebc3bb55bc4c3fbdd070bab169982c424371ae288f058e5822f809dd5da50e47880a36be273cec8a0239d
6
+ metadata.gz: dcf4b2580510132b97f84e3202d416fa099052d672f8bc8aa4b41e4c8816cb7f933a03e3a5d7b3c725b7a807a0e169c31620380be034a217ca44ed6abecf2abe
7
+ data.tar.gz: 6e9eb3aca274ef80ab45e79c52339bbd38c167afc98cde5e043057efcbb268dadc9b99b2e70ac2ea07e318be6a317a8d3b69116194e84d0fa03cc1cdfa6ef70f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.5.17
2
+ * fix a bug where logger on debug level thrown an encoding error #19
3
+
1
4
  # 0.5.16
2
5
 
3
6
  * improve logging, log request details on Logger::DEBUG level
@@ -14,6 +14,7 @@ class ApiClient::Connection::Middlewares::Request::Logger < Faraday::Middleware
14
14
  gather_response_debug_lines(response, taken_sec, debug_lines) if response && should_log_details
15
15
 
16
16
  if should_log_details
17
+ debug_lines.each { |line| line.encode!("UTF-8", invalid: :replace, undef: :replace) }
17
18
  @logger.debug { debug_lines.join("\n") }
18
19
  else
19
20
  @logger.info { "#{env[:method].to_s.upcase} #{env[:url]}: #{"%.4f" % taken_sec} seconds" }
@@ -1,3 +1,3 @@
1
1
  module ApiClient
2
- VERSION = "0.5.16"
2
+ VERSION = "0.5.17"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.16
4
+ version: 0.5.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Bunsch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-20 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec