mediashelf-loggable 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,20 @@
1
- 0.4.3
1
+ h2. 0.4.6
2
2
 
3
- Don't use this version. It will raise "stack trace too deep" errors in some cases
3
+ Even Cleaner implementation of Rails3 compatibility. Small change, big gain. Recommended for upgrade.
4
4
 
5
- 0.4.2
5
+ h2. 0.4.5
6
+
7
+ Cleaner implementation of Rails2/Rails3 compatibility
8
+
9
+ h2. 0.4.3
10
+
11
+ Don't use this version! It will raise "stack trace too deep" errors in some cases
12
+
13
+ h2. 0.4.2
6
14
 
7
15
  Fixed bug in the line that checks for ::Rails.logger
8
16
 
9
- 0.4.1
17
+ h2. 0.4.1
10
18
 
11
19
  Removed use of RAILS_DEFAULT_LOGGER constant, relying on ::Rails.logger instead
12
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.5
1
+ 0.4.6
@@ -19,10 +19,10 @@ module Loggable
19
19
  # If no logger has been defined, a new STDOUT Logger will be created.
20
20
  def logger
21
21
 
22
- if defined?(::Rails) && Rails.respond_to?(:version)
23
- if Rails.version >= "3.0" && defined?(::Rails::Application) && !::Rails.logger.nil?
22
+ if defined?(::Rails) && ::Rails.respond_to?(:version)
23
+ if ::Rails.version >= "3.0" && defined?(::Rails::Application) && !::Rails.logger.nil?
24
24
  @@logger = ::Rails.logger
25
- elsif defined?(RAILS_DEFAULT_LOGGER)
25
+ elsif ::Rails.version < "3.0"
26
26
  @@logger = RAILS_DEFAULT_LOGGER
27
27
  end
28
28
  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.5"
8
+ s.version = "0.4.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Patrick Reagan}, %q{Matt Zumwalt}]
12
- s.date = %q{2011-07-28}
12
+ s.date = %q{2011-07-29}
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 5
10
- version: 0.4.5
9
+ - 6
10
+ version: 0.4.6
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-07-28 00:00:00 Z
19
+ date: 2011-07-29 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: thoughtbot-shoulda