sensu-logger 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -4
- data/lib/sensu/logger/stream.rb +2 -2
- data/sensu-logger.gemspec +3 -3
- data/spec/stream_spec.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6de9928a6793ea7d807c548442e49e2c5337c2ec
|
4
|
+
data.tar.gz: 5547cb50c87628676a9cb4264943b43fd5d9d335
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 047e38653a5e6d20fae366c737f6008ef463c014e83e3f347b9d23398e67b0a25e432b03be5f1a9acd4163ce970e2762d6ac6b7baaf52c2990c141bb79b15291
|
7
|
+
data.tar.gz: 933aaf3ae89fbe2caa1d5cb936765023d4811fc7269d64b6a9ba04063575d5cef3f51630fa24abad931f913206d78c50cd0161c0fec274196b48c10b9436bf83
|
data/.travis.yml
CHANGED
data/lib/sensu/logger/stream.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "
|
1
|
+
require "sensu/json"
|
2
2
|
require "eventmachine"
|
3
3
|
require "sensu/logger/constants"
|
4
4
|
|
@@ -122,7 +122,7 @@ module Sensu
|
|
122
122
|
if data.is_a?(Hash)
|
123
123
|
event.merge!(data)
|
124
124
|
end
|
125
|
-
|
125
|
+
Sensu::JSON.dump(event)
|
126
126
|
end
|
127
127
|
|
128
128
|
# Schedule a log event write, pushing the JSON log event into
|
data/sensu-logger.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "sensu-logger"
|
5
|
-
spec.version = "1.
|
5
|
+
spec.version = "1.2.0"
|
6
6
|
spec.authors = ["Sean Porter"]
|
7
7
|
spec.email = ["portertech@gmail.com"]
|
8
8
|
spec.summary = "The Sensu logger library"
|
@@ -15,11 +15,11 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.add_dependency("
|
18
|
+
spec.add_dependency("sensu-json")
|
19
19
|
spec.add_dependency("eventmachine")
|
20
20
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.6"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
24
|
+
spec.add_development_dependency "codeclimate-test-reporter"
|
25
25
|
end
|
data/spec/stream_spec.rb
CHANGED
@@ -84,7 +84,7 @@ describe "Sensu::Logger::Stream" do
|
|
84
84
|
]
|
85
85
|
file_contents = IO.read(file.path)
|
86
86
|
parsed_contents = file_contents.lines.map do |line|
|
87
|
-
parsed_line =
|
87
|
+
parsed_line = Sensu::JSON.load(line)
|
88
88
|
parsed_line.delete(:timestamp)
|
89
89
|
parsed_line
|
90
90
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: sensu-json
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.4.5.1
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: The Sensu logger library
|