rack-logstasher 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,10 +18,10 @@ module Rack
18
18
  data = {
19
19
  :method => env["REQUEST_METHOD"],
20
20
  :path => env["PATH_INFO"],
21
+ :query_string => env["QUERY_STRING"],
21
22
  :status => status.to_i,
22
23
  :duration => duration_in_ms(began_at, now).round(2),
23
24
  :remote_addr => env['REMOTE_ADDR'],
24
- :parameters => env["QUERY_STRING"],
25
25
  :request => request_line(env),
26
26
  :length => extract_content_length(response_headers)
27
27
  }
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Logstasher
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/spec/logger_spec.rb CHANGED
@@ -26,7 +26,7 @@ describe "Logger" do
26
26
 
27
27
  expect(fields['method']).to eq('GET')
28
28
  expect(fields['path']).to eq('/foo')
29
- expect(fields['parameters']).to eq('bar=baz')
29
+ expect(fields['query_string']).to eq('bar=baz')
30
30
  expect(fields['request']).to eq('GET /foo?bar=baz ') # env['SERVER_PROTOCOL'] is not set under rack-test
31
31
  end
32
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-logstasher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-18 00:00:00.000000000 Z
12
+ date: 2014-01-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: 946937473393142977
164
+ hash: -1970584439746248370
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements:
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: 946937473393142977
173
+ hash: -1970584439746248370
174
174
  requirements: []
175
175
  rubyforge_project:
176
176
  rubygems_version: 1.8.23