rack-traffic-logger 0.2.9 → 0.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b70141447db47c91cfa290a19eb20ee99364e3a
|
4
|
+
data.tar.gz: 1d613e8c2f025787da30a3d6939ab30f70aee9b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46b37dc76d632f605e8d9418071fd98a97a0e2c33378ec01dd9d6b2629453782c6e069a8be01748ca77bfcb88d4298c76ecb4466212b727270de33eed1fc7037
|
7
|
+
data.tar.gz: ed721cae1cfeaf9c26244fe00ac9b6736ccdb9b1e31a8f79c5ad26bc44a8b5e98e32418a85591c31bf33a56227c3368a66e3b826e77eba1e1bbe14fc9a0d71f4
|
@@ -62,7 +62,7 @@ module Rack
|
|
62
62
|
when *VERBS
|
63
63
|
raise "Verb on verb (#{token} on #{verb})" if verb
|
64
64
|
rules << OnlyVerb.new(token, filter)
|
65
|
-
when
|
65
|
+
when Integer, Range
|
66
66
|
raise "Code on code (#{token} on #{code})" if code
|
67
67
|
rules << OnlyCode.new(token, filter)
|
68
68
|
when *TYPES
|
@@ -93,7 +93,7 @@ module Rack
|
|
93
93
|
def add_rule_pair(name, value, **filter)
|
94
94
|
case name
|
95
95
|
when *VERBS then add_rules value, **filter.merge(verb: name)
|
96
|
-
when
|
96
|
+
when Integer, Range then add_rules value, **filter.merge(code: name)
|
97
97
|
when Array then name.each { |n| add_rule_pair n, value, **filter }
|
98
98
|
else raise "Invalid token of type #{name.class.name} : #{name}"
|
99
99
|
end
|
@@ -101,7 +101,7 @@ module Rack
|
|
101
101
|
|
102
102
|
# Test whether a given verb, status code, and log type should be logged
|
103
103
|
# @param verb [Symbol] One of the {self::VERBS} symbols
|
104
|
-
# @param code [
|
104
|
+
# @param code [Integer] The HTTP status code
|
105
105
|
# @param type [Symbol|NilClass] One of the {self::TYPES} symbols, or `nil` for basic request/response details
|
106
106
|
# @return [TrueClass|FalseClass] Whether the type should be logged
|
107
107
|
def test(*args)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-traffic-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Neil E. Pearson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.
|
72
|
+
rubygems_version: 2.6.8
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Rack Raw HTTP Traffic Logger
|