artifact_logger 1.0.3 → 1.0.4

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.
Files changed (3) hide show
  1. data/README.rdoc +3 -2
  2. data/app/models/log/message.rb +1 -1
  3. metadata +2 -2
data/README.rdoc CHANGED
@@ -22,7 +22,7 @@ Usage:
22
22
  Log::Message {
23
23
  :level => :info, # Defaults to :info, :warning, or :error
24
24
  :text => "your message here",
25
- :artifact => Artifact # Either the artifact it's attached to
25
+ :artifact => Artifact # Either the artifact it's attached to or the artifact's class
26
26
  }
27
27
 
28
28
  a = Artifact.new
@@ -53,4 +53,5 @@ Usage:
53
53
  Future Plans:
54
54
  - Add some arbitrary linking (ie. allowing a user to be associated with a log message)
55
55
  - Add support for message types (ie. a second dimension of arbitrary scoping)
56
- - Explore the possiblity of tagging instead of levels and types
56
+ - Explore the possiblity of tagging instead of levels and types
57
+ - Allow for aggregate logs (ie. a parent object has access to all of it's children's log entries)
@@ -4,7 +4,7 @@ class Log::Message < ActiveRecord::Base
4
4
  validates :text, :presence => true
5
5
  validates :level, :presence => true, :inclusion => { :in => lambda { |record| record.valid_levels } }
6
6
 
7
- scope :log_level, lambda { |level| where(:level => level)}
7
+ scope :log_level, lambda { |level| where(:level => level.to_s)}
8
8
 
9
9
  def self.valid_levels
10
10
  [:info, :warning, :error]
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.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-11 00:00:00.000000000 -04:00
12
+ date: 2011-08-16 00:00:00.000000000 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
  description: A very simple dropin engine for logging information on artifacts in a