rv-logstasher 1.3.1 → 1.3.2

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: 27b875bba60f72b2aeec7c597754ab5a6d72d8a0
4
- data.tar.gz: f1102f0c57d2e2c6a79749c5e89314f9698f43e0
3
+ metadata.gz: 10724cd9756c33b80e7fda244c674ce229b6edd2
4
+ data.tar.gz: c768f4a33afcc437d6028174d3302309196205d4
5
5
  SHA512:
6
- metadata.gz: a6ff67002aefae4731beca3b079f08d80d68d5a5acd92bdfed6f775affeacfd79422a53787fd1d46b3a9f8d8c26ed2807396888b8310c2b1a108ae15978eeed2
7
- data.tar.gz: 9ff5f5e8f66f6c140375687b641f09c4a1aa24a0b8cfc4f0e92a9d56530a087c725b141adc0acd4a8250c29da29fdd331afa08690473d4d04758c8796a0b0393
6
+ metadata.gz: c90df87fc2e047ec1e26d192b89b6095ed608c8b5a44565298878bdd4e422e6aac4d981436de12d791c21adae5ab58077f6720e23cbbc9812df467c544da9b68
7
+ data.tar.gz: f4d9c874c1d070350b1006d1334beb42a3712ced5bb385da95bc3ce978e0ea8df673f709921f9dfcd7404e6f12f2a8218a4afdc55991512d73300a100c2fac82
@@ -1,3 +1,5 @@
1
+ require 'json'
2
+
1
3
  module LogStasher
2
4
  class LogFormatter
3
5
  attr_reader :base_tags
@@ -19,7 +21,7 @@ module LogStasher
19
21
 
20
22
  event.merge!(format(progname)) if progname.is_a?(Exception)
21
23
  event[:tags] = base_tags + Array(event[:tags])
22
- event.to_json + "\n"
24
+ JSON.generate(event) + "\n"
23
25
  end
24
26
 
25
27
  def format(data)
@@ -1,3 +1,3 @@
1
1
  module LogStasher
2
- VERSION = '1.3.1'
2
+ VERSION = '1.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rv-logstasher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Sevcik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-14 00:00:00.000000000 Z
12
+ date: 2016-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: logstash-event