logging-remote-syslog 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
data/lib/logging/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -58,11 +58,11 @@ describe Logging::Appenders::RemoteSyslog do
|
|
58
58
|
|
59
59
|
it 'strips shell codes by default' do
|
60
60
|
appender = Logging.appenders.remote_syslog('Test', :syslog_server => '127.0.0.1', :facility => SyslogProtocol::FACILITIES['local6'])
|
61
|
-
appender.prepare_message(
|
61
|
+
appender.prepare_message("\e[KTest Message\e[0m").should == 'Test Message'
|
62
62
|
end
|
63
63
|
|
64
64
|
it 'should not strip shell code if asked' do
|
65
65
|
appender = Logging.appenders.remote_syslog('Test', :syslog_server => '127.0.0.1', :facility => SyslogProtocol::FACILITIES['local6'], :strip_colors => false)
|
66
|
-
appender.prepare_message(
|
66
|
+
appender.prepare_message("\e[KTest Message\e[0m").should == "\e[KTest Message\e[0m"
|
67
67
|
end
|
68
68
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logging-remote-syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-10-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: logging
|
@@ -128,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
128
128
|
version: '0'
|
129
129
|
segments:
|
130
130
|
- 0
|
131
|
-
hash:
|
131
|
+
hash: -3667170423268001466
|
132
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
133
|
none: false
|
134
134
|
requirements:
|
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
137
137
|
version: '0'
|
138
138
|
segments:
|
139
139
|
- 0
|
140
|
-
hash:
|
140
|
+
hash: -3667170423268001466
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
143
|
rubygems_version: 1.8.24
|
@@ -154,10 +154,10 @@ summary: ! '# logging/remote-syslog logging/remote-syslog is a remote syslog ap
|
|
154
154
|
require ''logging/remote-syslog'' logger = Logging.logger[''MyApp''] logger.add_appenders(
|
155
155
|
Logging.appenders.remote_syslog(ident, syslog_server: syslog_host, port: syslog_port)
|
156
156
|
) logger.level = :info logger.info ''MyApp Message'' ``` ## Tests ``` rake ``` ##
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
157
|
+
Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`)
|
158
|
+
3. Write code and add _tests_ 4. Commit your changes (`git commit -am ''Added some
|
159
|
+
feature''`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create new
|
160
|
+
Pull Request'
|
161
161
|
test_files:
|
162
162
|
- spec/logging/appenders/remote_syslog_spec.rb
|
163
163
|
- spec/spec_helper.rb
|