object_logging 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.1
2
+ * bugfix: specifying log type wasn't working
3
+ * bugfix: typo in Log::RailsCache
4
+
1
5
  0.2.0
2
6
  * feature: threadsafety
3
7
  * feature: including ObjectLogging in a class's metaclass works as expected
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -49,7 +49,11 @@ module ObjectLogging
49
49
 
50
50
  def logger
51
51
  @logger ||= Logger.new(self)
52
- @logger.objectify(self)
52
+
53
+ # User could have assigned a logger other than ObjectLogging::Logger to this object.
54
+ @logger.objectify(self) if @logger.instance_of?(ObjectLogging::Logger) # Hence the guard.
55
+
56
+ @logger
53
57
  end
54
58
 
55
59
  def logger=(logger)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{object_logging}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christopher J. Bottaro"]
12
- s.date = %q{2010-05-13}
12
+ s.date = %q{2010-06-25}
13
13
  s.description = %q{It's a pain to trudge through large log files. Sometimes you just want to see log messages for one particular object.}
14
14
  s.email = %q{cjbottaro@alumni.cs.utexas.edu}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 1
9
- version: 0.2.1
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Christopher J. Bottaro
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-13 00:00:00 -05:00
17
+ date: 2010-06-25 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20