rack-traffic-logger 0.2.7 → 0.2.8

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: 0e2d9d6dbf7e643b44c6a027b40d72ae965905b6
4
- data.tar.gz: 0720be927009f204912e451fe1806efe77f75211
3
+ metadata.gz: 7debb46298745ccb052d95bf8fd4d10f84e74ed4
4
+ data.tar.gz: 5703643e58532d5a71d96d22cba2a471509eca67
5
5
  SHA512:
6
- metadata.gz: a6b621b06f98cecb5b0caa50a03d3c24050981a75d95bf3d19a40e248aafae45b27284b997ded3942404207d3f68dd556d68af832985e3a556387680edeb1378
7
- data.tar.gz: 081fe2c8212c2db6c80ef2967f2013e1b183e91962cd33b84602566884b75cb88cbf8ee10516e3fd533326eeb4ce495d8f773d0d5fcf802ae6f9162b7bd184d2
6
+ metadata.gz: f5b558a4fc926fbff6a1f4c01d1b1e5c71b5666c10b2a7a8b6b17c0264cf581415f6c7bd56012ba2b6038e779f00b69c1395a230fd52098870a2251fba88fa1d
7
+ data.tar.gz: c75206d7aafc20eb80a8b909d3b1c34b7a8b46ad16487b0ae2f681dd8400992be7bf1f675e14d30884370dd4a6ca02b0c899b406abebfc97af20af32cf1c1fec
data/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # Rack::TrafficLogger
2
2
 
3
- This is simple Rack middleware for logging incoming/outgoing HTTP/S traffic.
3
+ [![Build Status](https://travis-ci.org/hx/rack-traffic-logger.svg?branch=develop)](https://travis-ci.org/hx/rack-traffic-logger)
4
+ [![Coverage Status](https://img.shields.io/coveralls/hx/rack-traffic-logger/develop.svg)](https://coveralls.io/r/hx/rack-traffic-logger?branch=develop)
5
+
6
+ This is Rack middleware for logging incoming/outgoing HTTP/S traffic.
4
7
 
5
8
  ## Installation
6
9
 
@@ -170,7 +173,6 @@ Rack::TrafficLogger.use on: self,
170
173
  filter: ENV['LOG_INBOUND_HTTP'],
171
174
  formatter: Rack::TrafficLogger::Formatter::JSON.new,
172
175
  log_path: ::File.expand_path('../log/http_in.log', __FILE__)
173
-
174
176
  ```
175
177
 
176
178
  - Express setup will send `use` to the object passed to the `on:` argument. In a rack-up file, pass `self`.
@@ -183,7 +185,7 @@ Rack::TrafficLogger.use on: self,
183
185
  Under typical conditions, express setup internally calls:
184
186
 
185
187
  ```ruby
186
- on.use Rack::TrafficLogger, log_path, formatter, format
188
+ on.use Rack::TrafficLogger, log_path, formatter, filter
187
189
  ```
188
190
 
189
191
  ### Tailing a JSON log
@@ -15,7 +15,7 @@ module Rack
15
15
  end
16
16
 
17
17
  def start(env)
18
- @verb = env['REQUEST_METHOD']
18
+ @verb = env['REQUEST_METHOD'].downcase.to_sym
19
19
  @env = env
20
20
  end
21
21
 
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class TrafficLogger
3
- VERSION = '0.2.7'
3
+ VERSION = '0.2.8'
4
4
  end
5
5
  end
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.2.7
4
+ version: 0.2.8
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: 2014-11-14 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -59,9 +59,9 @@ require_paths:
59
59
  - lib
60
60
  required_ruby_version: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ">="
62
+ - - "~>"
63
63
  - !ruby/object:Gem::Version
64
- version: '0'
64
+ version: '2.1'
65
65
  required_rubygems_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
@@ -69,9 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  version: '0'
70
70
  requirements: []
71
71
  rubyforge_project:
72
- rubygems_version: 2.2.2
72
+ rubygems_version: 2.4.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Rack Raw HTTP Traffic Logger
76
76
  test_files: []
77
- has_rdoc: