httplog 0.2.11 → 0.2.12

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: 708532e89772184fbf87eda22bfddc34ea6787cd
4
- data.tar.gz: 32e6e101f17ea1508139fe50b914a515b7758ec8
3
+ metadata.gz: 0f0283a8ea460acf26ec31596031de92b2194a6d
4
+ data.tar.gz: 9fab7a146f3f554ca5bbcf3e577be411f7a55e0b
5
5
  SHA512:
6
- metadata.gz: 880364141bdac7ccf385980da5aec91bf8e87ba5b5edd4b76de672661d95261287d9b59db6e6ae456c561d79fcd1b02924b16abf93ed3630715123b2194e7fdd
7
- data.tar.gz: b4a3e38426edae7de51882f2e6c67653c608bb160e193da4c8dceb98c59098035e8ed5ab97b6e3880264e930c9e86e4e638909ecc0246a2fabe24bd21d570f1b
6
+ metadata.gz: 37042d586419e7e4d2346703678f1dbb617764e6fe057b0dc4f709ab391a8f6b85567ec0c25a9b12c14096717dd3cf61ea3de4383576aff57c659fb83983ecf3
7
+ data.tar.gz: e5e28d1e1ca12822a977debe7f56ca8388397bb8a02f21bb2c459daaccf06ea5737770e64572ba5d021f7f1aef1f448805923e995d6df18d3f4bc0221afa8992
data/README.md CHANGED
@@ -109,6 +109,8 @@ With the default configuration, the log output might look like this:
109
109
  D, [2012-11-22T18:39:46.033409 #12800] DEBUG -- : [httplog] Status: 200
110
110
  D, [2012-11-22T18:39:46.033483 #12800] DEBUG -- : [httplog] Benchmark: 0.001562 seconds
111
111
 
112
+ * Also when using HTTPClient, make sure you include `httplog` **before** `httpclient` in your `Gemfile`.
113
+
112
114
  * When using Ethon or Patron, and any library based on them (such as Typhoeus),
113
115
  the TCP connection is not logged (since it's established by libcurl).
114
116
 
@@ -138,3 +140,4 @@ Thanks to these fine folks for contributing pull requests:
138
140
  * [Marcos Hack](https://github.com/marcoshack)
139
141
  * [Andrew Hammond](https://github.com/andrhamm)
140
142
  * [Chris Keele](https://github.com/christhekeele)
143
+ * [Ryan Souza](https://github.com/ryansouza)
@@ -9,7 +9,7 @@ if defined?(::HTTPClient)
9
9
  if log_enabled
10
10
  HttpLog.log_request(req.header.request_method, req.header.request_uri)
11
11
  HttpLog.log_headers(req.headers)
12
- HttpLog.log_data(req.body)# if req.header.request_method == "POST"
12
+ HttpLog.log_data(req.body)
13
13
  end
14
14
 
15
15
  retryable_response = nil
@@ -93,7 +93,7 @@ module HttpLog
93
93
 
94
94
  def log_data(data)
95
95
  return if options[:compact_log] || !options[:log_data]
96
- data = URI.unescape(data) if data
96
+ data = URI.unescape(data.to_s) if data
97
97
  log("Data: #{data}")
98
98
  end
99
99
 
@@ -1,4 +1,4 @@
1
1
  module HttpLog
2
- VERSION = "0.2.11"
2
+ VERSION = "0.2.12"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: httplog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thilo Rusche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec