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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 77441a27e159983e5ac4b7803fcde1604c4da40b
4
- data.tar.gz: 3338afaeaabf5ea3d3c02cb079ddac3e1f2c45f9
3
+ metadata.gz: 6de9928a6793ea7d807c548442e49e2c5337c2ec
4
+ data.tar.gz: 5547cb50c87628676a9cb4264943b43fd5d9d335
5
5
  SHA512:
6
- metadata.gz: d837fb87e5c3d277655f4b66dbc0e85ed333c04c8a35a73b4d296075b31bfad0aaf522f1c4d835ae6a6d90a0316daa84de25f86ee26479f1ac740e1edf62cd10
7
- data.tar.gz: 4057598ea454048fc06cc13ca31c7b3b5e7bf42419a6da63c25e734d5658afd0693ab567ca8218dcc3664847a2e72df1ed555f887d3d1f0587762a7a6584dff1
6
+ metadata.gz: 047e38653a5e6d20fae366c737f6008ef463c014e83e3f347b9d23398e67b0a25e432b03be5f1a9acd4163ce970e2762d6ac6b7baaf52c2990c141bb79b15291
7
+ data.tar.gz: 933aaf3ae89fbe2caa1d5cb936765023d4811fc7269d64b6a9ba04063575d5cef3f51630fa24abad931f913206d78c50cd0161c0fec274196b48c10b9436bf83
@@ -1,12 +1,12 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 1.8.7
5
- - 1.9.2
6
- - 1.9.3
7
4
  - 2.0.0
8
5
  - 2.1.0
9
- - jruby-1.7.18
6
+ - 2.2.0
7
+ - 2.2.3
8
+ - 2.3.0
9
+ - jruby-1.7.23
10
10
  notifications:
11
11
  irc:
12
12
  - "irc.freenode.net#sensu"
@@ -1,4 +1,4 @@
1
- require "multi_json"
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
- MultiJson.dump(event)
125
+ Sensu::JSON.dump(event)
126
126
  end
127
127
 
128
128
  # Schedule a log event write, pushing the JSON log event into
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "sensu-logger"
5
- spec.version = "1.1.0"
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("multi_json")
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" unless RUBY_VERSION < "1.9"
24
+ spec.add_development_dependency "codeclimate-test-reporter"
25
25
  end
@@ -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 = MultiJson.load(line, :symbolize_keys => true)
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.1.0
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: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: multi_json
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.2.2
137
+ rubygems_version: 2.4.5.1
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: The Sensu logger library