mediashelf-loggable 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ 0.4.2
2
+
3
+ Fixed bug in the line that checks for ::Rails.logger
4
+
1
5
  0.4.1
2
6
 
3
7
  Removed use of RAILS_DEFAULT_LOGGER constant, relying on ::Rails.logger instead
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -19,7 +19,7 @@ module Loggable
19
19
  # If no logger has been defined, a new STDOUT Logger will be created.
20
20
  def logger
21
21
  # @@logger || LoggerStub.new
22
- @@logger ||= !::Rails.logger.nil? ? ::Rails.logger : ::Logger.new(STDOUT)
22
+ @@logger ||= (defined?(::Rails) && !::Rails.logger.nil?) ? ::Rails.logger : ::Logger.new(STDOUT)
23
23
  end
24
24
 
25
25
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mediashelf-loggable}
8
- s.version = "0.4.1"
8
+ s.version = "0.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Patrick Reagan", "Matt Zumwalt"]
12
- s.date = %q{2011-03-11}
12
+ s.date = %q{2011-03-21}
13
13
  s.description = %q{A gem that provides logging capabilities to any class. Relies on Rails logger if it's available. Extended from loggable gem by viget}
14
14
  s.email = %q{matt.zumwalt@yourmediashelf.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mediashelf-loggable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Reagan
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-11 00:00:00 -06:00
19
+ date: 2011-03-21 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency