rails_syslogger 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module RailsSyslogger
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -1,9 +1,10 @@
1
1
  require 'syslogger'
2
+ require 'pathname'
2
3
 
3
4
  module RailsSyslogger
4
5
 
5
6
  def self.assign_syslogger_by_environment( hostname = default_hostname, facility = Syslog::LOG_LOCAL5 )
6
- Syslogger.new( hostname, Syslog::LOG_PID, Syslog::LOG_LOCAL5 ) if should_use_syslog?
7
+ Syslogger.new( hostname, Syslog::LOG_PID, facility ) if should_use_syslog?
7
8
  end
8
9
 
9
10
  class << self
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_syslogger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joe Osburn