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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf8ca0fa8a0c433dbcc8e9579f709251a505acb2
4
- data.tar.gz: 0f68b1ff1a44242ae1ea2cbc0deafca22f13aa47
3
+ metadata.gz: 04d27a972b601ecae982beff3a8c0fcd6bb46294
4
+ data.tar.gz: ae3ef7225f3127618d06f831bbd00e874585826a
5
5
  SHA512:
6
- metadata.gz: 5619ca746b6f89d05befe196ef82dc5a501fa019386151299674e415aa2c861dc2c2832b82ee80ad697954a77d3cf24f91bbac86fd503c0e8450ed296cdc5018
7
- data.tar.gz: 59930d73ce4d2adb12271558644d62857d1f6def99156b166233cb82217cfcccd9971317e29581cb3dcd4f227acb1c19ffb708c1781dceaf0a8e337d096fea90
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, :query_params, :content_type,
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
- @query_params = attributes[:query_params]
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, query_params: query_params,
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
- query_params: request.GET,
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),
@@ -1,3 +1,3 @@
1
1
  module Timber
2
- VERSION = "1.1.10"
2
+ VERSION = "1.1.11"
3
3
  end
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.10
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-02-27 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack