syslog-sd 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -1
- data/VERSION +1 -1
- data/lib/syslog-sd/notifier.rb +1 -1
- data/syslog-sd.gemspec +2 -2
- data/test/test_notifier.rb +3 -3
- metadata +4 -4
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.4
|
data/lib/syslog-sd/notifier.rb
CHANGED
data/syslog-sd.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{syslog-sd}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Alexey Palazhchenko}, %q{Lennart Koopmann}]
|
12
|
-
s.date = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-20}
|
13
13
|
s.description = %q{Super-Duper library to send syslog messages over UDP to logging server such as Graylog2. Supports Structured Data elements as defined by RFC 5424.}
|
14
14
|
s.email = %q{alexey.palazhchenko@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/test/test_notifier.rb
CHANGED
@@ -122,10 +122,10 @@ class TestNotifier < Test::Unit::TestCase
|
|
122
122
|
'msgid' => 'msgid'} => '<132>1 2010-05-16T12:13:14.0Z host facility 123 msgid - message',
|
123
123
|
{'short_message' => 'message', 'level' => SyslogSD::WARN,
|
124
124
|
'host' => 'host', 'facility' => 'facility', 'procid' => 123,
|
125
|
-
'msgid' => 'msgid', 'user_id' => 123} => '<132>1 2010-05-16T12:13:14.0Z host facility 123 msgid [@
|
125
|
+
'msgid' => 'msgid', 'user_id' => 123} => '<132>1 2010-05-16T12:13:14.0Z host facility 123 msgid [_@37797 user_id="123"] message',
|
126
126
|
{'short_message' => 'message', 'level' => SyslogSD::WARN,
|
127
127
|
'host' => 'host', 'facility' => 'facility', 'procid' => 123,
|
128
|
-
'msgid' => 'msgid', 'user_id' => '\\"]'} => '<132>1 2010-05-16T12:13:14.0Z host facility 123 msgid [@
|
128
|
+
'msgid' => 'msgid', 'user_id' => '\\"]'} => '<132>1 2010-05-16T12:13:14.0Z host facility 123 msgid [_@37797 user_id="\\\\\"\]"] message'
|
129
129
|
}
|
130
130
|
|
131
131
|
expected.each_pair do |key, value|
|
@@ -139,7 +139,7 @@ class TestNotifier < Test::Unit::TestCase
|
|
139
139
|
@notifier.timestamp_as_float = true
|
140
140
|
hash = { 'short_message' => 'message', 'level' => SyslogSD::WARN, 'host' => 'host', 'facility' => 'facility', 'procid' => 123,
|
141
141
|
'msgid' => 'msgid', 'user_id' => 123 }
|
142
|
-
expected = '<132>1 1274011994.0 host facility 123 msgid [@
|
142
|
+
expected = '<132>1 1274011994.0 host facility 123 msgid [_@37797 user_id="123"] message'
|
143
143
|
@notifier.instance_variable_set('@hash', hash)
|
144
144
|
assert_equal expected, @notifier.__send__(:serialize_hash)
|
145
145
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: syslog-sd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 4
|
10
|
+
version: 1.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alexey Palazhchenko
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-05-
|
19
|
+
date: 2011-05-20 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: shoulda
|