peastash 0.2.3 → 0.2.4

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
- SHA1:
3
- metadata.gz: 4ed6c54dd1eb808865c7ad98492aa647bea2cfff
4
- data.tar.gz: 95f0d87d2fd323167d8360f44faf94a9818f3629
2
+ SHA256:
3
+ metadata.gz: 6f2f09c34ca13d8ab6ee2842add1d06fb4f49efbf1825c904c053d8a50ae75c2
4
+ data.tar.gz: cd336e4d3ac448b4dc9b43e1ff230388c99e9d0532c136bed87c9359fdb5d893
5
5
  SHA512:
6
- metadata.gz: c9438129f529d3aec8d86dd9727cc81194a515c7af7962131522a5d205ab478560342f0f055a92df42a6e38e08e5a25ac7dcb0562b5f70bd3ddcb090a0b74672
7
- data.tar.gz: e797e90a7420a8b3b6278c51aa99a32ab781d0beddbd6c3114a6f164bd80ad08b08f62557f2ab8bd2546d3f1b1bf2fb30f8370f487d82af366560b8b639bdecb
6
+ metadata.gz: 4ccb538320167ad2b078161bcb0a7c5d0c9a2ab59b9b327735241a69d4ef0494ce978a2a171ac405491015bd5459ee14b0308aa24bc6ab07e8f3ce98a58f3646
7
+ data.tar.gz: 88c9574c661cf6841c42a12733f9a66d5058facad72baa8f7fdf7d6561e0ee4f902a47aa63c7da1a0e55be2590b77c6a462a84a79d87587fbdde7eccaf817bf6
data/.travis.yml CHANGED
@@ -16,7 +16,10 @@ gemfile:
16
16
  - gemfiles/Gemfile.rails-head
17
17
  script:
18
18
  - bundle exec rspec
19
- before_install: 'gem install bundler'
19
+ before_install:
20
+ - rvm use @global
21
+ - gem uninstall bundler -x || gem uninstall bundler -a || true
22
+ - gem install bundler -v 1.17
20
23
  matrix:
21
24
  allow_failures:
22
25
  - gemfile: gemfiles/Gemfile.rails-head
data/README.md CHANGED
@@ -28,8 +28,8 @@ When the code inside the block is done running, a log entry will be created and
28
28
  The most basic usage would look like:
29
29
 
30
30
  ```ruby
31
- Peastash.with_instance.log do
32
- Peastash.with_instance.store[:foo] = 'bar'
31
+ Peastash.with_instance.log do |instance|
32
+ instance.store[:foo] = 'bar'
33
33
  end
34
34
  # This will produce a Logstash log entry looking like this:
35
35
  # {"@source":"peastash","@fields":{"foo":"bar"},"@tags":[],"@timestamp":"2014-05-27T15:18:29.824Z","@version":"1"}
@@ -9,8 +9,8 @@ class Peastash
9
9
  @@default_io
10
10
  end
11
11
 
12
- def initialize(file)
13
- @device = ::Peastash::LogDevice.new(file)
12
+ def initialize(file, *args)
13
+ @device = ::Peastash::LogDevice.new(file, *args)
14
14
  end
15
15
 
16
16
  def dump(event)
@@ -1,3 +1,3 @@
1
1
  class Peastash
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Boisard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-29 00:00:00.000000000 Z
11
+ date: 2019-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-event
@@ -292,8 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
292
292
  - !ruby/object:Gem::Version
293
293
  version: '0'
294
294
  requirements: []
295
- rubyforge_project:
296
- rubygems_version: 2.6.13
295
+ rubygems_version: 3.0.1
297
296
  signing_key:
298
297
  specification_version: 4
299
298
  summary: Peastash allows you to instrument your code with the ELK stack easily.