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 +4 -4
- data/lib/httplog/adapters/ethon.rb +1 -1
- data/lib/httplog/adapters/excon.rb +1 -1
- data/lib/httplog/adapters/http.rb +1 -1
- data/lib/httplog/adapters/httpclient.rb +1 -1
- data/lib/httplog/adapters/net_http.rb +1 -1
- data/lib/httplog/adapters/patron.rb +1 -1
- data/lib/httplog/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: d69f702a2d95334faecbdfe207867f54a04bc0ac
|
4
|
+
data.tar.gz: 28ee1875855200404d474d2bb43546fab12c06d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/httplog/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|