httplog 0.99.2 → 0.99.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/httplog/http_log.rb +2 -2
- data/lib/httplog/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 581879322147032136323a8a982c028e1b1b063e
|
4
|
+
data.tar.gz: 56ec16deb9eebe33c5e6da3df127e5f8ba09d958
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70d55fc976c0ce2b3a897d5aee24a2d5b7bc51cd879374f820a2d9911113208552cb76656e7942c734f7683b9098b5946ccc41bc6e60a1823cdbc9d0e3841717
|
7
|
+
data.tar.gz: 3024c6779bd1ed1461ecc453af2afb408cfe14d4c64f82d519fb530a24a8c75b1e77a7f7570009b29d39b8679a8cabc0a341dd1062b8fe052ef46ac8c075749d
|
data/lib/httplog/http_log.rb
CHANGED
@@ -23,7 +23,7 @@ module HttpLog
|
|
23
23
|
def configure
|
24
24
|
yield(configuration)
|
25
25
|
end
|
26
|
-
|
26
|
+
|
27
27
|
def url_approved?(url)
|
28
28
|
return false if config.url_blacklist_pattern && url.to_s.match(config.url_blacklist_pattern)
|
29
29
|
url.to_s.match(config.url_whitelist_pattern)
|
@@ -128,7 +128,7 @@ module HttpLog
|
|
128
128
|
# This is a very naive way of determining if the content type is text-based; but
|
129
129
|
# it will allow application/json and the like without having to resort to more
|
130
130
|
# heavy-handed checks.
|
131
|
-
content_type =~ /^text/ ||
|
131
|
+
content_type =~ /^text/ ||
|
132
132
|
content_type =~ /^application/ && content_type != 'application/octet-stream'
|
133
133
|
end
|
134
134
|
|
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.99.
|
4
|
+
version: 0.99.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thilo Rusche
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rack
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: thin
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -220,6 +206,20 @@ dependencies:
|
|
220
206
|
- - ">="
|
221
207
|
- !ruby/object:Gem::Version
|
222
208
|
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: rack
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :runtime
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
223
|
description: |-
|
224
224
|
Log outgoing HTTP requests made from your application. Helpful for tracking API calls
|
225
225
|
of third party gems that don't provide their own log output.
|