acts_as_audited 1.1.1 → 2.0.0.rc7
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/.yardopts +3 -0
- data/CHANGELOG +11 -2
- data/Gemfile +11 -0
- data/Gemfile.lock +102 -0
- data/LICENSE +2 -2
- data/README.rdoc +120 -0
- data/Rakefile +29 -29
- data/acts_as_audited.gemspec +97 -44
- data/autotest/discover.rb +1 -0
- data/lib/acts_as_audited/audit.rb +59 -40
- data/lib/acts_as_audited/audit_sweeper.rb +5 -27
- data/lib/acts_as_audited/auditor.rb +272 -0
- data/lib/acts_as_audited.rb +18 -212
- data/lib/generators/acts_as_audited/install_generator.rb +28 -0
- data/lib/generators/acts_as_audited/templates/add_association_to_audits.rb +11 -0
- data/lib/generators/acts_as_audited/templates/add_comment_to_audits.rb +9 -0
- data/lib/generators/acts_as_audited/templates/add_remote_address_to_audits.rb +10 -0
- data/{generators/audited_migration/templates/migration.rb → lib/generators/acts_as_audited/templates/install.rb} +9 -4
- data/lib/generators/acts_as_audited/templates/rename_changes_to_audited_changes.rb +9 -0
- data/lib/generators/acts_as_audited/templates/rename_parent_to_association.rb +11 -0
- data/lib/generators/acts_as_audited/upgrade_generator.rb +57 -0
- data/spec/acts_as_audited_spec.rb +473 -0
- data/spec/audit_spec.rb +190 -0
- data/spec/audit_sweeper_spec.rb +74 -0
- data/spec/audited_spec_helpers.rb +16 -0
- data/{test → spec}/db/schema.rb +21 -5
- data/spec/rails_app/config/application.rb +23 -0
- data/spec/rails_app/config/boot.rb +13 -0
- data/{test/db → spec/rails_app/config}/database.yml +10 -7
- data/spec/rails_app/config/environment.rb +5 -0
- data/spec/rails_app/config/environments/development.rb +19 -0
- data/spec/rails_app/config/environments/production.rb +33 -0
- data/spec/rails_app/config/environments/test.rb +33 -0
- data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails_app/config/initializers/inflections.rb +2 -0
- data/spec/rails_app/config/initializers/secret_token.rb +2 -0
- data/spec/rails_app/config/routes.rb +6 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/spec_models.rb +88 -0
- data/test/db/version_1.rb +17 -0
- data/test/db/version_2.rb +18 -0
- data/test/db/version_3.rb +19 -0
- data/test/db/version_4.rb +20 -0
- data/test/install_generator_test.rb +17 -0
- data/test/test_helper.rb +11 -67
- data/test/upgrade_generator_test.rb +54 -0
- metadata +149 -42
- data/.gitignore +0 -4
- data/README +0 -70
- data/VERSION +0 -1
- data/generators/audited_migration/USAGE +0 -7
- data/generators/audited_migration/audited_migration_generator.rb +0 -7
- data/init.rb +0 -1
- data/rails/init.rb +0 -8
- data/test/acts_as_audited_test.rb +0 -374
- data/test/audit_sweeper_test.rb +0 -31
- data/test/audit_test.rb +0 -179
data/.yardopts
ADDED
data/CHANGELOG
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
acts_as_audited ChangeLog
|
|
2
2
|
-------------------------------------------------------------------------------
|
|
3
|
+
|
|
4
|
+
Not released - 2.0.0
|
|
5
|
+
Rails 3 support
|
|
6
|
+
Support for associated audits
|
|
7
|
+
Support for remote IP address storage
|
|
8
|
+
Plenty of bug fixes and refactoring
|
|
9
|
+
|
|
3
10
|
* 2009-01-27 - Store old and new values for updates, and store all attributes on destroy.
|
|
4
11
|
Refactored revisioning methods to work as expected
|
|
5
12
|
* 2008-10-10 - changed to make it work in development mode
|
|
13
|
+
* 2008-09-24 - Add ability to record parent record of the record being audited
|
|
14
|
+
[Kenneth Kalmer]
|
|
6
15
|
* 2008-04-19 - refactored to make compatible with dirty tracking in edge rails
|
|
7
16
|
and to stop storing both old and new values in a single audit
|
|
8
17
|
* 2008-04-18 - Fix NoMethodError when trying to access the :previous revision
|
|
@@ -22,4 +31,4 @@
|
|
|
22
31
|
that saves the new value after every change and not just the
|
|
23
32
|
first, and performs proper type-casting before doing comparisons
|
|
24
33
|
* 2006-08-14 - The "changes" are now saved as a serialized hash
|
|
25
|
-
* 2006-07-21 - initial version
|
|
34
|
+
* 2006-07-21 - initial version
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
GEM
|
|
2
|
+
remote: http://rubygems.org/
|
|
3
|
+
specs:
|
|
4
|
+
abstract (1.0.0)
|
|
5
|
+
actionmailer (3.0.4)
|
|
6
|
+
actionpack (= 3.0.4)
|
|
7
|
+
mail (~> 2.2.15)
|
|
8
|
+
actionpack (3.0.4)
|
|
9
|
+
activemodel (= 3.0.4)
|
|
10
|
+
activesupport (= 3.0.4)
|
|
11
|
+
builder (~> 2.1.2)
|
|
12
|
+
erubis (~> 2.6.6)
|
|
13
|
+
i18n (~> 0.4)
|
|
14
|
+
rack (~> 1.2.1)
|
|
15
|
+
rack-mount (~> 0.6.13)
|
|
16
|
+
rack-test (~> 0.5.7)
|
|
17
|
+
tzinfo (~> 0.3.23)
|
|
18
|
+
activemodel (3.0.4)
|
|
19
|
+
activesupport (= 3.0.4)
|
|
20
|
+
builder (~> 2.1.2)
|
|
21
|
+
i18n (~> 0.4)
|
|
22
|
+
activerecord (3.0.4)
|
|
23
|
+
activemodel (= 3.0.4)
|
|
24
|
+
activesupport (= 3.0.4)
|
|
25
|
+
arel (~> 2.0.2)
|
|
26
|
+
tzinfo (~> 0.3.23)
|
|
27
|
+
activeresource (3.0.4)
|
|
28
|
+
activemodel (= 3.0.4)
|
|
29
|
+
activesupport (= 3.0.4)
|
|
30
|
+
activesupport (3.0.4)
|
|
31
|
+
arel (2.0.8)
|
|
32
|
+
builder (2.1.2)
|
|
33
|
+
diff-lcs (1.1.2)
|
|
34
|
+
erubis (2.6.6)
|
|
35
|
+
abstract (>= 1.0.0)
|
|
36
|
+
gemcutter (0.6.1)
|
|
37
|
+
git (1.2.5)
|
|
38
|
+
i18n (0.5.0)
|
|
39
|
+
jeweler (1.4.0)
|
|
40
|
+
gemcutter (>= 0.1.0)
|
|
41
|
+
git (>= 1.2.5)
|
|
42
|
+
rubyforge (>= 2.0.0)
|
|
43
|
+
json_pure (1.4.6)
|
|
44
|
+
mail (2.2.15)
|
|
45
|
+
activesupport (>= 2.3.6)
|
|
46
|
+
i18n (>= 0.4.0)
|
|
47
|
+
mime-types (~> 1.16)
|
|
48
|
+
treetop (~> 1.4.8)
|
|
49
|
+
mime-types (1.16)
|
|
50
|
+
polyglot (0.3.1)
|
|
51
|
+
rack (1.2.1)
|
|
52
|
+
rack-mount (0.6.13)
|
|
53
|
+
rack (>= 1.0.0)
|
|
54
|
+
rack-test (0.5.7)
|
|
55
|
+
rack (>= 1.0)
|
|
56
|
+
rails (3.0.4)
|
|
57
|
+
actionmailer (= 3.0.4)
|
|
58
|
+
actionpack (= 3.0.4)
|
|
59
|
+
activerecord (= 3.0.4)
|
|
60
|
+
activeresource (= 3.0.4)
|
|
61
|
+
activesupport (= 3.0.4)
|
|
62
|
+
bundler (~> 1.0)
|
|
63
|
+
railties (= 3.0.4)
|
|
64
|
+
railties (3.0.4)
|
|
65
|
+
actionpack (= 3.0.4)
|
|
66
|
+
activesupport (= 3.0.4)
|
|
67
|
+
rake (>= 0.8.7)
|
|
68
|
+
thor (~> 0.14.4)
|
|
69
|
+
rake (0.8.7)
|
|
70
|
+
rcov (0.9.9)
|
|
71
|
+
rspec (2.4.0)
|
|
72
|
+
rspec-core (~> 2.4.0)
|
|
73
|
+
rspec-expectations (~> 2.4.0)
|
|
74
|
+
rspec-mocks (~> 2.4.0)
|
|
75
|
+
rspec-core (2.4.0)
|
|
76
|
+
rspec-expectations (2.4.0)
|
|
77
|
+
diff-lcs (~> 1.1.2)
|
|
78
|
+
rspec-mocks (2.4.0)
|
|
79
|
+
rspec-rails (2.4.1)
|
|
80
|
+
actionpack (~> 3.0)
|
|
81
|
+
activesupport (~> 3.0)
|
|
82
|
+
railties (~> 3.0)
|
|
83
|
+
rspec (~> 2.4.0)
|
|
84
|
+
rubyforge (2.0.4)
|
|
85
|
+
json_pure (>= 1.1.7)
|
|
86
|
+
sqlite3-ruby (1.3.2)
|
|
87
|
+
thor (0.14.6)
|
|
88
|
+
treetop (1.4.9)
|
|
89
|
+
polyglot (>= 0.3.1)
|
|
90
|
+
tzinfo (0.3.24)
|
|
91
|
+
yard (0.6.1)
|
|
92
|
+
|
|
93
|
+
PLATFORMS
|
|
94
|
+
ruby
|
|
95
|
+
|
|
96
|
+
DEPENDENCIES
|
|
97
|
+
jeweler
|
|
98
|
+
rails (>= 3.0.4)
|
|
99
|
+
rcov
|
|
100
|
+
rspec-rails (~> 2.4.0)
|
|
101
|
+
sqlite3-ruby
|
|
102
|
+
yard
|
data/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright ©
|
|
1
|
+
Copyright © 2010 Brandon Keepers - Collective Idea
|
|
2
2
|
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
16
16
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
17
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
18
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
THE SOFTWARE.
|
|
19
|
+
THE SOFTWARE.
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
= acts_as_audited
|
|
2
|
+
|
|
3
|
+
+acts_as_audited+ is an ActiveRecord extension that logs all changes to your
|
|
4
|
+
models in an audits table, with optional revision comments. +acts_as_audited+
|
|
5
|
+
has been updated to work with Rails 3, to use it with older version of Rails,
|
|
6
|
+
please see the <tt>1.1-stable</tt> branch.
|
|
7
|
+
|
|
8
|
+
== Installation
|
|
9
|
+
|
|
10
|
+
In <tt>Gemfile</tt>:
|
|
11
|
+
|
|
12
|
+
gem "acts_as_audited", "2.0.0.rc5"
|
|
13
|
+
|
|
14
|
+
In your application root, run:
|
|
15
|
+
|
|
16
|
+
$ bundle install
|
|
17
|
+
|
|
18
|
+
Generate the migration:
|
|
19
|
+
|
|
20
|
+
* If installing without a previous version of +acts_as_audited+ or you do not mind overwriting your audits table:
|
|
21
|
+
|
|
22
|
+
$ rails g acts_as_audited:install
|
|
23
|
+
|
|
24
|
+
* If upgrading from a previous version of +acts_as_audited+ you might need some alterations to the audits table:
|
|
25
|
+
|
|
26
|
+
$ rails g acts_as_audited:upgrade
|
|
27
|
+
|
|
28
|
+
* After running one of the generators:
|
|
29
|
+
|
|
30
|
+
$ rake db:migrate
|
|
31
|
+
|
|
32
|
+
== Rails deprecation warning
|
|
33
|
+
|
|
34
|
+
Currently the gem causes the following deprecation warning to be emitted:
|
|
35
|
+
|
|
36
|
+
DEPRECATION WARNING: reorder is deprecated. Please use except(:order).order(...) instead. (called from <class:Audit> at /Users/kenneth/Code/FOSS/acts_as_audited/lib/acts_as_audited/audit.rb:26)
|
|
37
|
+
|
|
38
|
+
I'm well aware of the fact, and working towards a solution. The issue has also been brought up on the Rails lighthouse as #6011[https://rails.lighthouseapp.com/projects/8994/tickets/6011-exceptorderorder-is-not-working-in-scopes]. I'm keeping an eye on the issue and working towards another possible solution.
|
|
39
|
+
|
|
40
|
+
== Upgrading
|
|
41
|
+
|
|
42
|
+
Upgrading to Rails 3, or even between point releases of +acts_as_audited+, might require alterations to the audits table. After every upgrade please run the following generator:
|
|
43
|
+
|
|
44
|
+
$ rails g acts_as_audited:upgrade
|
|
45
|
+
|
|
46
|
+
The upgrade generator will only generate migrations that are missing, or no migrations at all if you are up to date.
|
|
47
|
+
|
|
48
|
+
== Usage
|
|
49
|
+
|
|
50
|
+
Declare +acts_as_audited+ on your models:
|
|
51
|
+
|
|
52
|
+
class User < ActiveRecord::Base
|
|
53
|
+
acts_as_audited :except => [:password, :mistress]
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
Within a web request, will automatically record the user that made the change if your controller has a +current_user+ method. Comments can be added to an audit by setting <tt>model.audit_comments</tt>
|
|
57
|
+
before create/update/destroy. If the <tt>:comment_required</tt> option is given to +acts_as_audited+,
|
|
58
|
+
the save/update/destroy action will fail with add an error on <tt>model.audit_comment</tt> and triggering a
|
|
59
|
+
transaction rollback if <tt>model.audit_comment</tt> is nil.
|
|
60
|
+
|
|
61
|
+
To record an audit for an associated model, use the <tt>:associated_with</tt> option.
|
|
62
|
+
|
|
63
|
+
class User < ActiveRecord::Base
|
|
64
|
+
acts_as_audited :associated_with => :company
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
If desired, the associated model can access its audits using <tt>has_associated_audits</tt>.
|
|
68
|
+
|
|
69
|
+
class Company < ActiveRecord::Base
|
|
70
|
+
has_many :users
|
|
71
|
+
has_associated_audits
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
To record a user in the audits outside of a web request, you can use +as_user+:
|
|
75
|
+
|
|
76
|
+
Audit.as_user(user) do
|
|
77
|
+
# Perform changes on audited models
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
== Caveats
|
|
81
|
+
|
|
82
|
+
If your model declares +attr_accessible+ after +acts_as_audited+, you need to set <tt>:protect</tt> to false. acts_as_audited uses +attr_protected+ internally to prevent malicious users from unassociating your audits, and Rails does not allow both +attr_protected+ and +attr_accessible+. It will default to false if +attr_accessible+ is called before +acts_as_audited+, but needs to be explicitly set if it is called after.
|
|
83
|
+
|
|
84
|
+
class User < ActiveRecord::Base
|
|
85
|
+
acts_as_audited :protect => false
|
|
86
|
+
attr_accessible :name
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
Another caveat is documented in issue 26[https://github.com/collectiveidea/acts_as_audited/issues#issue/26], where an audit created on the first request to the server does not have a user. Please review the Github issue for more details on how to fix this. It does not appear to affect Rails 3.
|
|
90
|
+
|
|
91
|
+
== Compatability
|
|
92
|
+
|
|
93
|
+
+acts_as_audited+ works with Rails 3.0.3. For older versions of Rails, please see the <tt>1.1-stable</tt> branch.
|
|
94
|
+
|
|
95
|
+
== Getting Help
|
|
96
|
+
|
|
97
|
+
Review the documentation at http://rdoc.info/github/collectiveidea/acts_as_audited
|
|
98
|
+
|
|
99
|
+
Join the mailing list for getting help or offering suggestions - http://groups.google.com/group/acts_as_audited
|
|
100
|
+
|
|
101
|
+
== Branches
|
|
102
|
+
|
|
103
|
+
The <tt>master</tt> branch is considered stable, and you should be able to use it at any time. The <tt>development</tt> branch will contain all active development and might be a moving target from time to time.
|
|
104
|
+
|
|
105
|
+
== Contributing
|
|
106
|
+
|
|
107
|
+
Contributions are always welcome. Checkout the latest code on GitHub - http://github.com/collectiveidea/acts_as_audited
|
|
108
|
+
|
|
109
|
+
When contributing a bug-fix, please use a topic branch created off our <tt>master</tt> branch. When developing a new feature, please create a topic branch of our <tt>development</tt> branch (and rebase before submiting a pull request).
|
|
110
|
+
|
|
111
|
+
Please include tests with your patches. There are a few gems required to run the tests:
|
|
112
|
+
|
|
113
|
+
$ bundle install
|
|
114
|
+
|
|
115
|
+
Make sure the tests pass against the version of Rails specified in the Gemfile
|
|
116
|
+
|
|
117
|
+
$ rake spec test
|
|
118
|
+
|
|
119
|
+
Please report bugs or feature suggestions on GitHub - http://github.com/collectiveidea/acts_as_audited/issues
|
|
120
|
+
|
data/Rakefile
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
require 'rake'
|
|
2
|
-
require '
|
|
2
|
+
require 'rspec/core/rake_task'
|
|
3
3
|
require 'rake/testtask'
|
|
4
|
-
require 'rake/rdoctask'
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
$:.unshift File.expand_path('../lib', __FILE__)
|
|
6
|
+
|
|
7
|
+
require 'acts_as_audited'
|
|
8
|
+
|
|
9
|
+
desc 'Default: run specs and tests'
|
|
10
|
+
task :default => [:spec, :test]
|
|
8
11
|
|
|
9
12
|
begin
|
|
10
13
|
require 'jeweler'
|
|
@@ -13,45 +16,42 @@ begin
|
|
|
13
16
|
gem.summary = %Q{ActiveRecord extension that logs all changes to your models in an audits table}
|
|
14
17
|
gem.email = "brandon@opensoul.org"
|
|
15
18
|
gem.homepage = "http://github.com/collectiveidea/acts_as_audited"
|
|
16
|
-
gem.authors = ["Brandon Keepers"]
|
|
17
|
-
gem.
|
|
18
|
-
gem.
|
|
19
|
-
gem.add_development_dependency "jnunemaker-matchy"
|
|
19
|
+
gem.authors = ["Brandon Keepers", "Kenneth Kalmer"]
|
|
20
|
+
gem.rdoc_options << '--main' << 'README.rdoc' << '--line-numbers' << '--inline-source'
|
|
21
|
+
gem.version = ActsAsAudited::VERSION
|
|
20
22
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
|
21
23
|
end
|
|
22
24
|
# Jeweler::GemcutterTasks.new
|
|
23
25
|
rescue LoadError
|
|
24
|
-
puts "Jeweler (or a dependency) not available. Install it with:
|
|
26
|
+
puts "Jeweler (or a dependency) not available. Install it with: bundle install"
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
RSpec::Core::RakeTask.new do |t|
|
|
30
|
+
t.rspec_opts = ["-c", "-f progress", "-r ./spec/spec_helper.rb"]
|
|
31
|
+
t.pattern = 'spec/*_spec.rb'
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
task :spec => :check_dependencies
|
|
35
|
+
|
|
36
|
+
RSpec::Core::RakeTask.new(:rcov) do |t|
|
|
37
|
+
t.rcov = true
|
|
38
|
+
t.rcov_opts = %q[--exclude "spec"]
|
|
25
39
|
end
|
|
26
40
|
|
|
27
|
-
desc 'Test the acts_as_audited
|
|
41
|
+
desc 'Test the acts_as_audited generators'
|
|
28
42
|
Rake::TestTask.new(:test) do |t|
|
|
29
43
|
t.libs << 'lib'
|
|
30
|
-
t.
|
|
44
|
+
t.libs << 'test'
|
|
45
|
+
t.pattern = 'test/*_test.rb'
|
|
31
46
|
t.verbose = true
|
|
32
47
|
end
|
|
33
48
|
|
|
34
49
|
task :test => :check_dependencies
|
|
35
50
|
|
|
36
51
|
begin
|
|
37
|
-
require '
|
|
38
|
-
|
|
39
|
-
test.libs << 'test'
|
|
40
|
-
test.pattern = 'test/**/*_test.rb'
|
|
41
|
-
test.verbose = true
|
|
42
|
-
test.rcov_opts = %w(--exclude test,/usr/lib/ruby,/Library/Ruby,$HOME/.gem --sort coverage)
|
|
43
|
-
end
|
|
52
|
+
require 'yard'
|
|
53
|
+
YARD::Rake::YardocTask.new
|
|
44
54
|
rescue LoadError
|
|
45
|
-
|
|
46
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
|
47
|
-
end
|
|
55
|
+
puts "YARD (or a dependency) not available. Install it with: bundle install"
|
|
48
56
|
end
|
|
49
57
|
|
|
50
|
-
desc 'Generate documentation for the acts_as_audited plugin.'
|
|
51
|
-
Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
52
|
-
rdoc.rdoc_dir = 'doc'
|
|
53
|
-
rdoc.title = 'acts_as_audited'
|
|
54
|
-
rdoc.options << '--line-numbers' << '--inline-source'
|
|
55
|
-
rdoc.rdoc_files.include('README')
|
|
56
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
57
|
-
end
|
data/acts_as_audited.gemspec
CHANGED
|
@@ -1,73 +1,126 @@
|
|
|
1
1
|
# Generated by jeweler
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{acts_as_audited}
|
|
8
|
-
s.version = "
|
|
8
|
+
s.version = "2.0.0.rc7"
|
|
9
9
|
|
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
|
11
|
-
s.authors = ["Brandon Keepers"]
|
|
12
|
-
s.date = %q{
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Brandon Keepers", "Kenneth Kalmer"]
|
|
12
|
+
s.date = %q{2011-02-18}
|
|
13
13
|
s.email = %q{brandon@opensoul.org}
|
|
14
14
|
s.extra_rdoc_files = [
|
|
15
15
|
"LICENSE",
|
|
16
|
-
|
|
16
|
+
"README.rdoc"
|
|
17
17
|
]
|
|
18
18
|
s.files = [
|
|
19
|
-
".
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
19
|
+
".yardopts",
|
|
20
|
+
"CHANGELOG",
|
|
21
|
+
"Gemfile",
|
|
22
|
+
"Gemfile.lock",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.rdoc",
|
|
25
|
+
"Rakefile",
|
|
26
|
+
"acts_as_audited.gemspec",
|
|
27
|
+
"autotest/discover.rb",
|
|
28
|
+
"lib/acts_as_audited.rb",
|
|
29
|
+
"lib/acts_as_audited/audit.rb",
|
|
30
|
+
"lib/acts_as_audited/audit_sweeper.rb",
|
|
31
|
+
"lib/acts_as_audited/auditor.rb",
|
|
32
|
+
"lib/generators/acts_as_audited/install_generator.rb",
|
|
33
|
+
"lib/generators/acts_as_audited/templates/add_association_to_audits.rb",
|
|
34
|
+
"lib/generators/acts_as_audited/templates/add_comment_to_audits.rb",
|
|
35
|
+
"lib/generators/acts_as_audited/templates/add_remote_address_to_audits.rb",
|
|
36
|
+
"lib/generators/acts_as_audited/templates/install.rb",
|
|
37
|
+
"lib/generators/acts_as_audited/templates/rename_changes_to_audited_changes.rb",
|
|
38
|
+
"lib/generators/acts_as_audited/templates/rename_parent_to_association.rb",
|
|
39
|
+
"lib/generators/acts_as_audited/upgrade_generator.rb",
|
|
40
|
+
"spec/acts_as_audited_spec.rb",
|
|
41
|
+
"spec/audit_spec.rb",
|
|
42
|
+
"spec/audit_sweeper_spec.rb",
|
|
43
|
+
"spec/audited_spec_helpers.rb",
|
|
44
|
+
"spec/db/schema.rb",
|
|
45
|
+
"spec/rails_app/config/application.rb",
|
|
46
|
+
"spec/rails_app/config/boot.rb",
|
|
47
|
+
"spec/rails_app/config/database.yml",
|
|
48
|
+
"spec/rails_app/config/environment.rb",
|
|
49
|
+
"spec/rails_app/config/environments/development.rb",
|
|
50
|
+
"spec/rails_app/config/environments/production.rb",
|
|
51
|
+
"spec/rails_app/config/environments/test.rb",
|
|
52
|
+
"spec/rails_app/config/initializers/backtrace_silencers.rb",
|
|
53
|
+
"spec/rails_app/config/initializers/inflections.rb",
|
|
54
|
+
"spec/rails_app/config/initializers/secret_token.rb",
|
|
55
|
+
"spec/rails_app/config/routes.rb",
|
|
56
|
+
"spec/spec_helper.rb",
|
|
57
|
+
"spec/spec_models.rb",
|
|
58
|
+
"test/db/version_1.rb",
|
|
59
|
+
"test/db/version_2.rb",
|
|
60
|
+
"test/db/version_3.rb",
|
|
61
|
+
"test/db/version_4.rb",
|
|
62
|
+
"test/install_generator_test.rb",
|
|
63
|
+
"test/test_helper.rb",
|
|
64
|
+
"test/upgrade_generator_test.rb"
|
|
40
65
|
]
|
|
41
66
|
s.homepage = %q{http://github.com/collectiveidea/acts_as_audited}
|
|
42
|
-
s.rdoc_options = ["--
|
|
67
|
+
s.rdoc_options = ["--main", "README.rdoc", "--line-numbers", "--inline-source"]
|
|
43
68
|
s.require_paths = ["lib"]
|
|
44
|
-
s.rubygems_version = %q{1.3.
|
|
69
|
+
s.rubygems_version = %q{1.3.7}
|
|
45
70
|
s.summary = %q{ActiveRecord extension that logs all changes to your models in an audits table}
|
|
46
71
|
s.test_files = [
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
72
|
+
"spec/acts_as_audited_spec.rb",
|
|
73
|
+
"spec/audit_spec.rb",
|
|
74
|
+
"spec/audit_sweeper_spec.rb",
|
|
75
|
+
"spec/audited_spec_helpers.rb",
|
|
76
|
+
"spec/db/schema.rb",
|
|
77
|
+
"spec/rails_app/config/application.rb",
|
|
78
|
+
"spec/rails_app/config/boot.rb",
|
|
79
|
+
"spec/rails_app/config/environment.rb",
|
|
80
|
+
"spec/rails_app/config/environments/development.rb",
|
|
81
|
+
"spec/rails_app/config/environments/production.rb",
|
|
82
|
+
"spec/rails_app/config/environments/test.rb",
|
|
83
|
+
"spec/rails_app/config/initializers/backtrace_silencers.rb",
|
|
84
|
+
"spec/rails_app/config/initializers/inflections.rb",
|
|
85
|
+
"spec/rails_app/config/initializers/secret_token.rb",
|
|
86
|
+
"spec/rails_app/config/routes.rb",
|
|
87
|
+
"spec/spec_helper.rb",
|
|
88
|
+
"spec/spec_models.rb",
|
|
89
|
+
"test/db/version_1.rb",
|
|
90
|
+
"test/db/version_2.rb",
|
|
91
|
+
"test/db/version_3.rb",
|
|
92
|
+
"test/db/version_4.rb",
|
|
93
|
+
"test/install_generator_test.rb",
|
|
94
|
+
"test/test_helper.rb",
|
|
95
|
+
"test/upgrade_generator_test.rb"
|
|
52
96
|
]
|
|
53
97
|
|
|
54
98
|
if s.respond_to? :specification_version then
|
|
55
99
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
56
100
|
s.specification_version = 3
|
|
57
101
|
|
|
58
|
-
if Gem::Version.new(Gem::
|
|
59
|
-
s.add_runtime_dependency(%q<
|
|
60
|
-
s.add_development_dependency(%q<
|
|
61
|
-
s.add_development_dependency(%q<
|
|
102
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
103
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.0.3"])
|
|
104
|
+
s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
|
|
105
|
+
s.add_development_dependency(%q<rspec-rails>, ["~> 2.4.0"])
|
|
106
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
|
107
|
+
s.add_development_dependency(%q<yard>, [">= 0"])
|
|
108
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
|
62
109
|
else
|
|
63
|
-
s.add_dependency(%q<
|
|
64
|
-
s.add_dependency(%q<
|
|
65
|
-
s.add_dependency(%q<
|
|
110
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
|
111
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
|
112
|
+
s.add_dependency(%q<rspec-rails>, ["~> 2.4.0"])
|
|
113
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
|
114
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
|
115
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
|
66
116
|
end
|
|
67
117
|
else
|
|
68
|
-
s.add_dependency(%q<
|
|
69
|
-
s.add_dependency(%q<
|
|
70
|
-
s.add_dependency(%q<
|
|
118
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
|
119
|
+
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
|
120
|
+
s.add_dependency(%q<rspec-rails>, ["~> 2.4.0"])
|
|
121
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
|
122
|
+
s.add_dependency(%q<yard>, [">= 0"])
|
|
123
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
|
71
124
|
end
|
|
72
125
|
end
|
|
73
126
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Autotest.add_discovery { "rspec2" }
|