logglier 0.2.10 → 0.2.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/logglier/client/syslog.rb +5 -5
- data/lib/logglier/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTE0NDVlZDA0Y2MxNTdmMmVhZmZhYzA1MGNkNWMwMjk2YjRhYjA0MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjM5NGY2ZTY3ZWFhZmNlODRkNjkzNmI3NzI0OWZlZmMxYTEzOTY3Nw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWMzZjUyZmMyNTRmNDMxNDNiNjg4ZjgyNTI0YzY5Y2JiZDgzZDlhOWQyOWQy
|
10
|
+
YTQwODQyNDE3NTkzNzEzNTFlODQwYTI5MTQyZDA1YWVkMjUwNjRmMjAyMzk5
|
11
|
+
YzJjOTFhNjI3MDE0ODk0YmU1YWM2ZTM0MjM4YzUyOGUwZjFmMTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODEyMDQ1N2ZkYmMzMzdlNmYyYjZmNWQxYjk5YjI4MDgxZmFiMzZjYzdlOWE4
|
14
|
+
MDRhNWRjYTNmZmJlZTI0NDgxMDc0OWZhZmIxNjgwMjA5ZTIwMDA0MzZkZDNj
|
15
|
+
NjQzNTEzNWIyMTA1NWUxN2MwMGQ1NTI3MjA2MzYxMmMxYjA2NTI=
|
@@ -25,17 +25,17 @@ module Logglier
|
|
25
25
|
end
|
26
26
|
|
27
27
|
unless @input_uri.path.empty?
|
28
|
-
@facility = @input_uri.path.split('/')[1]
|
29
|
-
if @facility and @facility.to_i <= 23 && @facility.to_i >= 0
|
28
|
+
if @facility = @input_uri.path.split('/')[1]
|
30
29
|
@facility = @facility.to_i
|
31
|
-
|
32
|
-
|
30
|
+
unless @facility <= 23 && @facility >= 0
|
31
|
+
raise Logglier::UnknownFacility.new(@facility.to_s)
|
32
|
+
end
|
33
33
|
end
|
34
34
|
else
|
35
35
|
@facility = 16
|
36
36
|
end
|
37
37
|
|
38
|
-
@hostname = Socket.gethostname.split('.').first
|
38
|
+
@hostname = opts[:hostname] || Socket.gethostname.split('.').first
|
39
39
|
end
|
40
40
|
|
41
41
|
# Required by Logger::LogDevice
|
data/lib/logglier/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logglier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edward Muller (aka freeformz)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|