auditing 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,7 +1,10 @@
1
1
  = auditing
2
2
 
3
3
  Auditing is a simple way to track and rollback changes to a record.
4
+ == Sample Project
4
5
 
6
+ http://github.com/bcantin/auditing_project
7
+
5
8
  == Installation
6
9
 
7
10
  gem install auditing
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
data/auditing.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{auditing}
8
- s.version = "1.1.1"
8
+ s.version = "1.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Brad Cantin"]
@@ -27,14 +27,14 @@ module Auditing
27
27
  class_inheritable_accessor :field_names
28
28
 
29
29
  self.audit_enabled_models = gather_models(opts)
30
- self.field_names = gather_fields_for_auditing(opts[:fields])
30
+ self.field_names = gather_assoc_fields_for_auditing(opts[:fields])
31
31
 
32
32
  after_create :audit_relationship_create
33
33
  before_update :audit_relationship_update
34
34
  before_destroy :audit_relationship_destroy
35
35
  end
36
36
 
37
- def gather_fields_for_auditing(fields=nil)
37
+ def gather_assoc_fields_for_auditing(fields=nil)
38
38
  poly_array = []
39
39
  reflect_on_all_associations(:belongs_to).each do |assoc|
40
40
  poly_array << assoc.name if assoc.options[:polymorphic]
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe "Auditing" do
3
+ describe "Base" do
4
4
 
5
5
  describe "auditing default values" do
6
6
  before do
@@ -94,7 +94,7 @@ describe "Auditing" do
94
94
  }.should change { Audit.count }.by(1)
95
95
  end
96
96
 
97
- it "the first audit has an action of 'updated" do
97
+ it "the first audit has an action of 'updated'" do
98
98
  @school.update_attributes(:name => 'PS99')
99
99
  @school.audits.first.action.should == 'updated'
100
100
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 1
9
- version: 1.1.1
8
+ - 2
9
+ version: 1.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Brad Cantin