artifact_logger 1.1.0 → 1.2.0

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/README.rdoc CHANGED
@@ -34,6 +34,8 @@ Usage:
34
34
  # Both of these will display the same information
35
35
  a.log #> [m, n]
36
36
  a.log.error #> [m, n]
37
+ a.log.error? #> true
38
+ a.log.info? #> false
37
39
 
38
40
  m.artifact #> a
39
41
  m.artifact_type #> Artifact
@@ -5,7 +5,7 @@ module ArtifactLogger::ActiveRecord
5
5
  module ClassMethods
6
6
  def enable_artifact_logger options={}
7
7
  #Configure the has_many
8
- has_many :log, :as => :artifact, :class_name => '::Log::Message'
8
+ has_many :log, :as => :artifact, :class_name => '::Log::Message', :dependent => :destroy, :autosave => true
9
9
  #Store the old logging method
10
10
  alias_method :_log, :log
11
11
  remove_method :log
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artifact_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-17 00:00:00.000000000 -04:00
13
- default_executable:
12
+ date: 2012-04-02 00:00:00.000000000Z
14
13
  dependencies: []
15
14
  description: A very simple dropin engine for logging information on artifacts in a
16
15
  database.
@@ -30,7 +29,6 @@ files:
30
29
  - MIT-LICENSE
31
30
  - Rakefile
32
31
  - README.rdoc
33
- has_rdoc: true
34
32
  homepage: http://github.com/ajrkerr/artifact_logger/
35
33
  licenses: []
36
34
  post_install_message:
@@ -51,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
49
  version: '0'
52
50
  requirements: []
53
51
  rubyforge_project:
54
- rubygems_version: 1.6.2
52
+ rubygems_version: 1.8.10
55
53
  signing_key:
56
54
  specification_version: 3
57
55
  summary: A simple dropin engine for logging information on artifacts in a databse.