rack-ltsv_logger 0.0.2 → 0.0.3

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: a1e425b4056ae88b13545afbafc09630770bb961
4
- data.tar.gz: d1bbfafa0e9ed39093083857ef3eeed2f8e70769
3
+ metadata.gz: 987267c5e1469fd1a9ad94c468c9755a4ecb9999
4
+ data.tar.gz: d244d4b74d07fc31c073583f84c3b41fbf85c102
5
5
  SHA512:
6
- metadata.gz: 0a872d0e0b701ef967bfcc71bc970b9cfc6f552c78ead1e5059da4fe4fe2f98f8606ac103e420f0ed4414148f6dcb30450a9986a6dbe4d5f1bdf5b92107ded24
7
- data.tar.gz: 3117c5f5154c37587b7a767628a4c12280d758a5893acfdc3c08b747db2298b7b55b3e8abd682ddf22074c9aac5aba1440c428d935afd29262136489c0511ce9
6
+ metadata.gz: cb48db461edf5cc8dfbb59d6f05ebca624b6a0de09158a7dfde52b35e2a1d7a3204f3a1a3551e9eb8cd1e86f689513e4e79fc8f99eefcd5c0843d828ffd1fa1e
7
+ data.tar.gz: 8786999d9dd5e5cb77506cacb21d8126e1983e78f3251882954c8266317e3db6a800f67c9ae115855d3deccf755d3e24793b678767a5d7ca951cc93edfbcc99f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.0.3 (2016/04/03)
2
+
3
+ Fixes:
4
+
5
+ * Fix pid to be varing
6
+
1
7
  ## 0.0.2 (2016/02/19)
2
8
 
3
9
  Enhancements:
@@ -2,8 +2,6 @@ require 'time'
2
2
 
3
3
  module Rack
4
4
  class LtsvLogger
5
- PID = Process.pid
6
-
7
5
  def initialize(app, logger=nil, appends = {})
8
6
  @app = app
9
7
  @logger = logger || $stdout
@@ -20,7 +18,7 @@ module Rack
20
18
 
21
19
  params = {
22
20
  time: now.iso8601,
23
- pid: PID,
21
+ pid: Process.pid,
24
22
  host: env["REMOTE_ADDR"] || "-",
25
23
  forwardedfor: env['HTTP_X_FORWARDED_FOR'] || "-",
26
24
  user: env["REMOTE_USER"] || "-",
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "rack-ltsv_logger"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["Naotoshi Seo"]
9
9
  spec.email = ["sonots@gmail.com"]
10
10
  spec.description = %q{A rack middleware to output access log in ltsv format}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-ltsv_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack