remote_syslog 1.6.11 → 1.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/remote_syslog.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module RemoteSyslog
2
- VERSION = "1.6.11"
2
+ VERSION = "1.6.12"
3
3
  end
4
4
 
@@ -44,6 +44,10 @@ module RemoteSyslog
44
44
  packet.hostname = $2 if $2 && $2 != ''
45
45
  packet.tag = $3 if $3 && $3 != ''
46
46
  packet.content = $4 if $4 && $4 != ''
47
+
48
+ if packet.tag
49
+ packet.tag.gsub!(%r{[: \]\[\\]+}, '-')
50
+ end
47
51
  end
48
52
 
49
53
  unless packet.tag
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  ## If your rubyforge_project name is different, then edit it and comment out
9
9
  ## the sub! line in the Rakefile
10
10
  s.name = 'remote_syslog'
11
- s.version = '1.6.11'
12
- s.date = '2013-01-14'
11
+ s.version = '1.6.12'
12
+ s.date = '2013-01-17'
13
13
  s.rubyforge_project = 'remote_syslog'
14
14
 
15
15
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 6
8
- - 11
9
- version: 1.6.11
8
+ - 12
9
+ version: 1.6.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Troy Davis
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-01-14 00:00:00 -08:00
18
+ date: 2013-01-17 00:00:00 -08:00
19
19
  default_executable: remote_syslog
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency