remote_syslog 1.1.0 → 1.1.1
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/bin/remote_syslog +5 -1
- data/lib/remote_syslog.rb +1 -1
- data/remote_syslog.gemspec +3 -3
- metadata +11 -9
data/bin/remote_syslog
CHANGED
@@ -84,6 +84,9 @@ def remote_syslog_daemon(args)
|
|
84
84
|
options[:dest_host] = config['destination']['host'] if config['destination']['host']
|
85
85
|
options[:dest_port] = config['destination']['port'] if config['destination']['port']
|
86
86
|
end
|
87
|
+
if config['hostname']
|
88
|
+
options[:hostname] = config['hostname']
|
89
|
+
end
|
87
90
|
elsif files.empty?
|
88
91
|
puts "No filenames provided and #{options[:configfile]} not found."
|
89
92
|
puts ''
|
@@ -103,7 +106,8 @@ def remote_syslog_daemon(args)
|
|
103
106
|
EventMachine::file_tail(File.expand_path(path), RemoteSyslog::Reader,
|
104
107
|
options[:dest_host], options[:dest_port],
|
105
108
|
:socket => socket, :facility => options[:facility],
|
106
|
-
:severity => options[:severity], :strip_color => options[:strip_color]
|
109
|
+
:severity => options[:severity], :strip_color => options[:strip_color],
|
110
|
+
:hostname => options[:hostname])
|
107
111
|
|
108
112
|
rescue Errno::ENOENT => e
|
109
113
|
puts "#{File.expand_path(path)} not found, continuing. (#{e.message})"
|
data/lib/remote_syslog.rb
CHANGED
data/remote_syslog.gemspec
CHANGED
@@ -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.1.
|
12
|
-
s.date = '2011-
|
11
|
+
s.version = '1.1.1'
|
12
|
+
s.date = '2011-07-18'
|
13
13
|
s.rubyforge_project = 'remote_syslog'
|
14
14
|
|
15
15
|
## Make sure your summary is short. The description may be as long
|
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
|
|
41
41
|
## that are needed for an end user to actually USE your code.
|
42
42
|
#s.add_dependency('DEPNAME', [">= 1.1.0", "< 2.0.0"])
|
43
43
|
s.add_dependency 'daemons'
|
44
|
-
s.add_dependency 'eventmachine'
|
44
|
+
s.add_dependency 'eventmachine', [ '~> 0.12.10' ]
|
45
45
|
s.add_dependency 'eventmachine-tail'
|
46
46
|
s.add_dependency 'syslog_protocol'
|
47
47
|
s.add_dependency 'em-resolv-replace'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remote_syslog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Troy Davis
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-07-18 00:00:00 -07:00
|
20
20
|
default_executable: remote_syslog
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -39,12 +39,14 @@ dependencies:
|
|
39
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - ~>
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
hash:
|
44
|
+
hash: 59
|
45
45
|
segments:
|
46
46
|
- 0
|
47
|
-
|
47
|
+
- 12
|
48
|
+
- 10
|
49
|
+
version: 0.12.10
|
48
50
|
type: :runtime
|
49
51
|
version_requirements: *id002
|
50
52
|
- !ruby/object:Gem::Dependency
|
@@ -143,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
145
|
requirements: []
|
144
146
|
|
145
147
|
rubyforge_project: remote_syslog
|
146
|
-
rubygems_version: 1.
|
148
|
+
rubygems_version: 1.4.2
|
147
149
|
signing_key:
|
148
150
|
specification_version: 2
|
149
151
|
summary: Monitor plain text log file(s) for new entries and send to remote syslog collector
|