peastash 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7093d147f2f4f5d620fe1ab7663422ff56aea2d7
4
- data.tar.gz: 37fe31079bc47006adfa959ec658f47237373485
3
+ metadata.gz: 4ed6c54dd1eb808865c7ad98492aa647bea2cfff
4
+ data.tar.gz: 95f0d87d2fd323167d8360f44faf94a9818f3629
5
5
  SHA512:
6
- metadata.gz: 99136f85637eb3a2dd3185b4be323a98b822d6a374958fee002d41e61dbf700b931dad7bbf48943627a3470d36c218a24e0fbe096e740dcdbad0754da6dd1e02
7
- data.tar.gz: ffe35c9ecc91458b034b52b1d8fd7a6acdac4fad0689441771e2f2d3840f2bf4fdef632399f584827da5fc38d19ee01478cda1b886c55eabefa876ee60cf359f
6
+ metadata.gz: c9438129f529d3aec8d86dd9727cc81194a515c7af7962131522a5d205ab478560342f0f055a92df42a6e38e08e5a25ac7dcb0562b5f70bd3ddcb090a0b74672
7
+ data.tar.gz: e797e90a7420a8b3b6278c51aa99a32ab781d0beddbd6c3114a6f164bd80ad08b08f62557f2ab8bd2546d3f1b1bf2fb30f8370f487d82af366560b8b639bdecb
data/.travis.yml CHANGED
@@ -1,11 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.1.6
4
- - 2.2.0
5
- - 2.3.0
6
- - 2.3.1
7
- - jruby-1.7.19
8
- - jruby-1.7.20
3
+ - 2.1.10
4
+ - 2.2.10
5
+ - 2.3.7
6
+ - 2.4.4
7
+ - 2.5.1
8
+ - jruby-1.7.26
9
+ - jruby-9.1.9.0
9
10
  - jruby-head
10
11
  gemfile:
11
12
  - gemfiles/Gemfile.rails-3.2.x
@@ -10,7 +10,7 @@ class Peastash
10
10
  Peastash.with_instance.configure!(app.config.peastash)
11
11
  ActiveSupport::Notifications.subscribe('process_action.action_controller') do |name, started, finished, unique_id, data|
12
12
  # Handle parameters and sanitize if need be
13
- to_reject = [:db_runtime, :view_runtime, :exception]
13
+ to_reject = [:db_runtime, :view_runtime, :exception, :headers]
14
14
  payload = data.reject { |key, _| to_reject.include?(key) }
15
15
  payload.merge!(db: data[:db_runtime], view: data[:view_runtime])
16
16
  payload.merge!(exception: { class: data[:exception].first, message: data[:exception].last[0..200] }) if data.has_key?(:exception)
@@ -1,3 +1,3 @@
1
1
  class Peastash
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -54,7 +54,7 @@ describe Peastash::Middleware do
54
54
  '@source' => Peastash::STORE_NAME,
55
55
  '@fields' => { path: '/', duration: 0, status: 200, ip: nil },
56
56
  '@tags' => [],
57
- '@pid' => an_instance_of(Fixnum),
57
+ '@pid' => a_kind_of(Numeric),
58
58
  })
59
59
  Timecop.freeze { @middleware.call env_for('/') }
60
60
  end
@@ -66,7 +66,7 @@ describe Peastash::Middleware do
66
66
  '@source' => Peastash::STORE_NAME,
67
67
  '@fields' => { duration: 0, status: 200, ip: nil, time_in_queue: 0.0 },
68
68
  '@tags' => [],
69
- '@pid' => an_instance_of(Fixnum),
69
+ '@pid' => a_kind_of(Numeric),
70
70
  })
71
71
  middleware = Peastash::Middleware.new(app)
72
72
  Timecop.freeze { middleware.call env_for('/', { 'HTTP_X_REQUEST_START' => Time.now.to_f }) }
@@ -93,7 +93,7 @@ describe Peastash::Middleware do
93
93
  '@source' => Peastash::STORE_NAME,
94
94
  '@fields' => { scheme: 'http', duration: 0, status: 200, ip: nil },
95
95
  '@tags' => [],
96
- '@pid' => an_instance_of(Fixnum),
96
+ '@pid' => a_kind_of(Numeric),
97
97
  })
98
98
  Timecop.freeze { @middleware.call env_for('/') }
99
99
  end
@@ -118,7 +118,7 @@ describe Peastash::Middleware do
118
118
  '@source' => Peastash::STORE_NAME,
119
119
  '@fields' => { duration: 0, status: 200, foo: 'foo', ip: nil },
120
120
  '@tags' => [],
121
- '@pid' => an_instance_of(Fixnum),
121
+ '@pid' => a_kind_of(Numeric),
122
122
  })
123
123
  Timecop.freeze { @middleware.call env_for('/') }
124
124
  end
@@ -37,7 +37,7 @@ describe Peastash do
37
37
  '@source' => Peastash::STORE_NAME,
38
38
  '@fields' => an_instance_of(Hash),
39
39
  '@tags' => tags,
40
- '@pid' => an_instance_of(Fixnum),
40
+ '@pid' => a_kind_of(Numeric),
41
41
  })
42
42
  Peastash.with_instance.log {}
43
43
  end
@@ -48,7 +48,7 @@ describe Peastash do
48
48
  '@source' => 'foo',
49
49
  '@fields' => an_instance_of(Hash),
50
50
  '@tags' => [],
51
- '@pid' => an_instance_of(Fixnum),
51
+ '@pid' => a_kind_of(Numeric),
52
52
  })
53
53
  Peastash.with_instance.log {}
54
54
  end
@@ -122,7 +122,7 @@ describe Peastash do
122
122
  '@source' => Peastash::STORE_NAME,
123
123
  '@fields' => an_instance_of(Hash),
124
124
  '@tags' => base_tags + tags,
125
- '@pid' => an_instance_of(Fixnum),
125
+ '@pid' => a_kind_of(Numeric),
126
126
  })
127
127
  Peastash.with_instance.log(tags) {}
128
128
  end
@@ -192,7 +192,7 @@ describe Peastash do
192
192
  '@source' => Peastash::STORE_NAME,
193
193
  '@fields' => an_instance_of(Hash),
194
194
  '@tags' => base_tags + tags + additional_tags,
195
- '@pid' => an_instance_of(Fixnum),
195
+ '@pid' => a_kind_of(Numeric),
196
196
  })
197
197
  Peastash.with_instance.log(tags) { Peastash.with_instance.tags.concat(additional_tags) }
198
198
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peastash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Boisard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-06 00:00:00.000000000 Z
11
+ date: 2018-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-event
@@ -293,7 +293,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
293
293
  version: '0'
294
294
  requirements: []
295
295
  rubyforge_project:
296
- rubygems_version: 2.4.5
296
+ rubygems_version: 2.6.13
297
297
  signing_key:
298
298
  specification_version: 4
299
299
  summary: Peastash allows you to instrument your code with the ELK stack easily.