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
@@ -47,9 +47,6 @@ logger.info 'MyApp Message'
47
47
  rake
48
48
  ```
49
49
 
50
- ## Change Log
51
- 0.0.3 - Strip ANSI shell codes by default
52
-
53
50
  ## Contributing
54
51
 
55
52
  1. Fork it
data/lib/logging/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -119,7 +119,7 @@ module Logging::Appenders
119
119
  end
120
120
 
121
121
  def strip_ansi_colors(message)
122
- message.gsub /\\e\[?.*?[\@-~]/, ''
122
+ message.gsub /\e\[?.*?[\@-~]/, ''
123
123
  end
124
124
 
125
125
  def prepare_message(message)
@@ -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('\e[KTest Message\e[0m').should == 'Test 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('\e[KTest Message\e[0m').should == '\e[KTest Message\e[0m'
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.3
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-09-13 00:00:00.000000000 Z
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: 561701682782871936
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: 561701682782871936
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
- Change Log 0.0.3 - Strip ANSI shell codes by default ## Contributing 1. Fork it
158
- 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Write code and
159
- add _tests_ 4. Commit your changes (`git commit -am ''Added some feature''`) 5.
160
- Push to the branch (`git push origin my-new-feature`) 6. Create new Pull Request'
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