md-logstasher 1.0.1 → 1.0.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: e32d286f1bc80ec988c7fd557b9d6013f44622c7
4
- data.tar.gz: 94f2a7a265ef8b9ac6a154c6ed5acc0f9b77e3ee
3
+ metadata.gz: 1cdc20dc2cdca7d6f5bf250b984ce45bd9516f95
4
+ data.tar.gz: 12d323b20ed3e9e9d62f79310ff192dfe5707dae
5
5
  SHA512:
6
- metadata.gz: 012f7514e9bf658fc858236b57b86a58e96b26562f02ae0e1761dd1aa91fc78818dc86d8f8837c716114e5268cec41e82a5a840032855d6f642cabf1bade54c5
7
- data.tar.gz: 7aec3b1ef36b5e78403d1127a4156e223a373b007c983fe6c9c6f574fd4b0d460c49ff27ed6961f39bfdc2bee3507e7c0d0453134830605470785762b662431e
6
+ metadata.gz: 279df626a6134fae42a548058c4b8f77cac064f04cd080d4a035dcf35d1700cd9786a9aa93a02cffc22e699ebbb91b2ac2a69ceb935942aa5d3b43e0ca00fe95
7
+ data.tar.gz: 0a295d32642284254328d0972a01e40aed7bb50a31a9b80f47d5c77ae6b06c678e2f43724083627f7e32911a1b17d5325f8b5ea336d228acd5ef14016c36b5cc
@@ -52,7 +52,7 @@ module LogStasher
52
52
  fail ::RuntimeError, 'Cannot write. The device has been closed.' if closed?
53
53
 
54
54
  with_syslog_open do
55
- ::Syslog.log(facility, log)
55
+ ::Syslog.log(facility, '%s', log)
56
56
  end
57
57
  end
58
58
 
@@ -1,5 +1,6 @@
1
1
  require 'action_controller/log_subscriber'
2
2
  require 'active_support/log_subscriber'
3
+ require 'active_support/core_ext/hash/except'
3
4
  require 'json'
4
5
  require 'logstash/event'
5
6
 
@@ -1,3 +1,3 @@
1
1
  module LogStasher
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -86,7 +86,7 @@ describe LogStasher::Device::Syslog do
86
86
  end
87
87
 
88
88
  it 'writes the log to syslog' do
89
- expect(::Syslog).to receive(:log).with(subject.facility, 'a log')
89
+ expect(::Syslog).to receive(:log).with(subject.facility, '%s', 'a log')
90
90
  subject.write('a log')
91
91
  end
92
92
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: md-logstasher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devin Christensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2015-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-event
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.4.1
124
+ rubygems_version: 2.2.2
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Awesome rails logs