timber 1.1.10 → 1.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/timber/events/http_server_request.rb +3 -3
- data/lib/timber/probes/rails_rack_logger.rb +2 -2
- data/lib/timber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04d27a972b601ecae982beff3a8c0fcd6bb46294
|
4
|
+
data.tar.gz: ae3ef7225f3127618d06f831bbd00e874585826a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29b027106869a5c1f3f68d46eecaaff96c7549b1bb03fa2916ca16704ca687e27c17f1842484f80e6c694fc608a31e387417c12556c6b2a8da0274577d55fb5c
|
7
|
+
data.tar.gz: 1dca319df6e3b7523da304ee6009422230b583dde0b9482616027afc11de8d4dd8d6b530afc1001b3471dd0105d824182fc4f9bdbb4142ab671f937a246e3e9c
|
@@ -5,7 +5,7 @@ module Timber
|
|
5
5
|
# @note This event should be installed automatically through probes,
|
6
6
|
# such as the {Probes::ActionControllerLogSubscriber} probe.
|
7
7
|
class HTTPServerRequest < Timber::Event
|
8
|
-
attr_reader :host, :method, :path, :port, :
|
8
|
+
attr_reader :host, :method, :path, :port, :query_string, :content_type,
|
9
9
|
:remote_addr, :referrer, :request_id, :scheme, :user_agent
|
10
10
|
|
11
11
|
def initialize(attributes)
|
@@ -13,7 +13,7 @@ module Timber
|
|
13
13
|
@method = attributes[:method] || raise(ArgumentError.new(":method is required"))
|
14
14
|
@path = attributes[:path] || raise(ArgumentError.new(":path is required"))
|
15
15
|
@port = attributes[:port]
|
16
|
-
@
|
16
|
+
@query_string = attributes[:query_string]
|
17
17
|
@content_type = attributes[:content_type]
|
18
18
|
@remote_addr = attributes[:remote_addr]
|
19
19
|
@referrer = attributes[:referrer]
|
@@ -23,7 +23,7 @@ module Timber
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def to_hash
|
26
|
-
{host: host, method: method, path: path, port: port,
|
26
|
+
{host: host, method: method, path: path, port: port, query_string: query_string,
|
27
27
|
headers: {content_type: content_type, remote_addr: remote_addr, referrer: referrer,
|
28
28
|
request_id: request_id, scheme: scheme, user_agent: user_agent}}
|
29
29
|
end
|
@@ -24,12 +24,12 @@ module Timber
|
|
24
24
|
# No idea why rails 3.X returns a "/" :/
|
25
25
|
referrer = request.referer == "/" ? nil : request.referer
|
26
26
|
Events::HTTPServerRequest.new(
|
27
|
+
content_type: request.content_type,
|
27
28
|
host: request.host,
|
28
29
|
method: request.request_method,
|
29
30
|
path: request.filtered_path,
|
30
31
|
port: request.port,
|
31
|
-
|
32
|
-
content_type: request.content_type,
|
32
|
+
query_string: request.query_string,
|
33
33
|
remote_addr: request.ip,
|
34
34
|
referrer: referrer,
|
35
35
|
request_id: request_id(request.env),
|
data/lib/timber/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Timber Technologies, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|