rails_syslogger 0.1.4 → 0.1.5
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/rails_syslogger.rb +3 -1
- data/lib/rails_syslogger/version.rb +1 -1
- data/rails_syslogger.gemspec +1 -1
- metadata +4 -4
data/lib/rails_syslogger.rb
CHANGED
@@ -6,7 +6,9 @@ module RailsSyslogger
|
|
6
6
|
|
7
7
|
class Railtie < Rails::Railtie
|
8
8
|
initializer :initialize_rails_syslogger, :after => :initialize_logger do |app|
|
9
|
-
|
9
|
+
if RailsSyslogger.should_use_syslog?
|
10
|
+
config.assets.logger = Rails.logger = app.config.logger = RailsSyslogger.assign_syslogger_by_environment
|
11
|
+
end
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
data/rails_syslogger.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.summary = %q{Nice default behavior for rails and syslogger.}
|
13
13
|
s.description = %q{This allows you to set some nice default syslog configuration options for your rails environment, using syslog for all production and development environments, except your local development environment. Set the environment variable "RAILS_DEV" to "true" to not use sysloger.}
|
14
14
|
|
15
|
-
s.add_dependency( 'syslogger', '~> 1.
|
15
|
+
s.add_dependency( 'syslogger', '~> 1.3.0' )
|
16
16
|
|
17
17
|
s.rubyforge_project = "rails_syslogger"
|
18
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_syslogger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,15 +13,15 @@ date: 2012-06-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: syslogger
|
16
|
-
requirement: &
|
16
|
+
requirement: &70159859776820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.3.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70159859776820
|
25
25
|
description: This allows you to set some nice default syslog configuration options
|
26
26
|
for your rails environment, using syslog for all production and development environments,
|
27
27
|
except your local development environment. Set the environment variable "RAILS_DEV"
|