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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWRiZTU4NmIzNWVmZDVkZmUyMzFkODY1ZmZmOTMxMDAwNzY5YjdiZQ==
4
+ ZTE0NDVlZDA0Y2MxNTdmMmVhZmZhYzA1MGNkNWMwMjk2YjRhYjA0MQ==
5
5
  data.tar.gz: !binary |-
6
- YjY4MGFjYjk2MmVlMzJjNmJlZmFjYTlkZmQ3ZDNjZmJhNjY3YTczYw==
6
+ NjM5NGY2ZTY3ZWFhZmNlODRkNjkzNmI3NzI0OWZlZmMxYTEzOTY3Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjM2ZWIzNzFlZWJiNDY3MmFiYThiY2VmZWZjNWVjNGM2ODkyODM5OGViYzhh
10
- YWE3OGVhMGVlNGUxZTIxYTM3NzhhMTY4YWQzYmIyYmYxNTk5YWZhNmI0Y2M2
11
- ZWI0NDNmMTE5NzJmMTgyNmQwY2RjNjYzNGJmZGFjMzUwNWU2MjU=
9
+ YWMzZjUyZmMyNTRmNDMxNDNiNjg4ZjgyNTI0YzY5Y2JiZDgzZDlhOWQyOWQy
10
+ YTQwODQyNDE3NTkzNzEzNTFlODQwYTI5MTQyZDA1YWVkMjUwNjRmMjAyMzk5
11
+ YzJjOTFhNjI3MDE0ODk0YmU1YWM2ZTM0MjM4YzUyOGUwZjFmMTY=
12
12
  data.tar.gz: !binary |-
13
- ZDdiODNmMjJiNTQ3YTQ4YzY3NGJlODFmMzNhY2JhZWFjNGNiYzE0NTkyYzU4
14
- OTBkYzQ1MDJhMjFjOGZjMGZmNDE0ZjEyNzFmZmRkNTkzZDY3MGQ4ZGNiNTYw
15
- ZjI2MDEwMmQ3ZGNmZDFiYjY4N2E2NjAwOWY5YmQ5YjgxODA2YjE=
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
- else
32
- raise Logglier::UnknownFacility.new(@facility.to_s)
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
@@ -1,3 +1,3 @@
1
1
  module Logglier
2
- VERSION = '0.2.10'
2
+ VERSION = '0.2.11'
3
3
  end
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.10
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-09-12 00:00:00.000000000 Z
11
+ date: 2013-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake