httplog 0.2.8 → 0.2.9

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: bc801e5fc39b6c93832bbadaa2c1204e2d969339
4
- data.tar.gz: 3e040bc3c9bda9eb1ae93bf66c3828dd5df4482d
3
+ metadata.gz: d69f702a2d95334faecbdfe207867f54a04bc0ac
4
+ data.tar.gz: 28ee1875855200404d474d2bb43546fab12c06d8
5
5
  SHA512:
6
- metadata.gz: a25911aaa39b63cf038adf005c47d2c5793f171e3ad6d37d72ca54535b38243870a6508c825e7fb5ea4628121d371aee3025d357ed835cbc38b37c15a3e98b09
7
- data.tar.gz: 28955f8848345352693e58227659977db677739c9cf11e2a34dbdaf075a8c245fad92cbe0b8ab8ac1d129b48bde312d0ff25c9fac46e5501d0b1b0f271b8bbed
6
+ metadata.gz: 1dbe3aeeed744ef72ae67e4f5f195139dd3cb2f329a7c61b91f31a357f23e5f62d2e37e2404fa244248c8abf3273934e58b5f8ffdd3fdf1e95242e7b5f810673
7
+ data.tar.gz: d6858bd732b08c0387a4b2bfea196fb6f6cb0e7662bbcc897e2c06061d4b55450b391d035b90c3ffbe6dfa4edf67ce35f978d89cb99be5590694d9eb965ca1ce
@@ -11,7 +11,7 @@ if defined?(Ethon)
11
11
  if HttpLog.url_approved?(url)
12
12
  HttpLog.log_request(action_name, url)
13
13
  HttpLog.log_headers(options[:headers])
14
- HttpLog.log_data(options[:body]) if action_name == :post
14
+ HttpLog.log_data(options[:body]) #if action_name == :post
15
15
  end
16
16
 
17
17
  orig_http_request(url, action_name, options)
@@ -42,7 +42,7 @@ if defined?(Excon)
42
42
  if HttpLog.url_approved?(url)
43
43
  HttpLog.log_request(datum[:method], _httplog_url(datum))
44
44
  HttpLog.log_headers(datum[:headers])
45
- HttpLog.log_data(datum[:body]) if datum[:method] == :post
45
+ HttpLog.log_data(datum[:body])# if datum[:method] == :post
46
46
  end
47
47
  orig_request_call(datum)
48
48
  end
@@ -10,7 +10,7 @@ if defined?(::HTTP::Client) and defined?(::HTTP::Connection)
10
10
  if log_enabled
11
11
  HttpLog.log_request(req.verb, req.uri)
12
12
  HttpLog.log_headers(req.headers.to_h)
13
- HttpLog.log_data(req.body) if req.verb == :post
13
+ HttpLog.log_data(req.body) #if req.verb == :post
14
14
  end
15
15
 
16
16
  bm = Benchmark.realtime do
@@ -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)# if req.header.request_method == "POST"
13
13
  end
14
14
 
15
15
  retryable_response = nil
@@ -14,7 +14,7 @@ module Net
14
14
  HttpLog.log_headers(req.each_header.collect)
15
15
  # A bit convoluted becase post_form uses form_data= to assign the data, so
16
16
  # in that case req.body will be empty.
17
- HttpLog::log_data(req.body.nil? || req.body.size == 0 ? body : req.body) if req.method == 'POST'
17
+ HttpLog::log_data(req.body.nil? || req.body.size == 0 ? body : req.body) #if req.method == 'POST'
18
18
  end
19
19
 
20
20
  bm = Benchmark.realtime do
@@ -8,7 +8,7 @@ if defined?(Patron)
8
8
  if log_enabled
9
9
  HttpLog.log_request(action_name, url)
10
10
  HttpLog.log_headers(headers)
11
- HttpLog.log_data(options[:data]) if action_name == :post
11
+ HttpLog.log_data(options[:data])# if action_name == :post
12
12
  end
13
13
 
14
14
  bm = Benchmark.realtime do
@@ -1,4 +1,4 @@
1
1
  module HttpLog
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
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.8
4
+ version: 0.2.9
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-04-22 00:00:00.000000000 Z
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec