acts_as_audited 2.0.0.rc6 → 2.0.0.rc7
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +28 -28
- data/README.rdoc +8 -0
- data/acts_as_audited.gemspec +5 -5
- data/lib/acts_as_audited.rb +1 -1
- data/lib/acts_as_audited/auditor.rb +1 -0
- metadata +5 -5
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -2,33 +2,33 @@ GEM
|
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
4
|
abstract (1.0.0)
|
5
|
-
actionmailer (3.0.
|
6
|
-
actionpack (= 3.0.
|
7
|
-
mail (~> 2.2.
|
8
|
-
actionpack (3.0.
|
9
|
-
activemodel (= 3.0.
|
10
|
-
activesupport (= 3.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
11
|
builder (~> 2.1.2)
|
12
12
|
erubis (~> 2.6.6)
|
13
13
|
i18n (~> 0.4)
|
14
14
|
rack (~> 1.2.1)
|
15
15
|
rack-mount (~> 0.6.13)
|
16
|
-
rack-test (~> 0.5.
|
16
|
+
rack-test (~> 0.5.7)
|
17
17
|
tzinfo (~> 0.3.23)
|
18
|
-
activemodel (3.0.
|
19
|
-
activesupport (= 3.0.
|
18
|
+
activemodel (3.0.4)
|
19
|
+
activesupport (= 3.0.4)
|
20
20
|
builder (~> 2.1.2)
|
21
21
|
i18n (~> 0.4)
|
22
|
-
activerecord (3.0.
|
23
|
-
activemodel (= 3.0.
|
24
|
-
activesupport (= 3.0.
|
22
|
+
activerecord (3.0.4)
|
23
|
+
activemodel (= 3.0.4)
|
24
|
+
activesupport (= 3.0.4)
|
25
25
|
arel (~> 2.0.2)
|
26
26
|
tzinfo (~> 0.3.23)
|
27
|
-
activeresource (3.0.
|
28
|
-
activemodel (= 3.0.
|
29
|
-
activesupport (= 3.0.
|
30
|
-
activesupport (3.0.
|
31
|
-
arel (2.0.
|
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
32
|
builder (2.1.2)
|
33
33
|
diff-lcs (1.1.2)
|
34
34
|
erubis (2.6.6)
|
@@ -53,17 +53,17 @@ GEM
|
|
53
53
|
rack (>= 1.0.0)
|
54
54
|
rack-test (0.5.7)
|
55
55
|
rack (>= 1.0)
|
56
|
-
rails (3.0.
|
57
|
-
actionmailer (= 3.0.
|
58
|
-
actionpack (= 3.0.
|
59
|
-
activerecord (= 3.0.
|
60
|
-
activeresource (= 3.0.
|
61
|
-
activesupport (= 3.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
62
|
bundler (~> 1.0)
|
63
|
-
railties (= 3.0.
|
64
|
-
railties (3.0.
|
65
|
-
actionpack (= 3.0.
|
66
|
-
activesupport (= 3.0.
|
63
|
+
railties (= 3.0.4)
|
64
|
+
railties (3.0.4)
|
65
|
+
actionpack (= 3.0.4)
|
66
|
+
activesupport (= 3.0.4)
|
67
67
|
rake (>= 0.8.7)
|
68
68
|
thor (~> 0.14.4)
|
69
69
|
rake (0.8.7)
|
@@ -95,7 +95,7 @@ PLATFORMS
|
|
95
95
|
|
96
96
|
DEPENDENCIES
|
97
97
|
jeweler
|
98
|
-
rails (
|
98
|
+
rails (>= 3.0.4)
|
99
99
|
rcov
|
100
100
|
rspec-rails (~> 2.4.0)
|
101
101
|
sqlite3-ruby
|
data/README.rdoc
CHANGED
@@ -29,6 +29,14 @@ Generate the migration:
|
|
29
29
|
|
30
30
|
$ rake db:migrate
|
31
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
|
+
|
32
40
|
== Upgrading
|
33
41
|
|
34
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:
|
data/acts_as_audited.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_audited}
|
8
|
-
s.version = "2.0.0.
|
8
|
+
s.version = "2.0.0.rc7"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brandon Keepers", "Kenneth Kalmer"]
|
12
|
-
s.date = %q{2011-02-
|
12
|
+
s.date = %q{2011-02-18}
|
13
13
|
s.email = %q{brandon@opensoul.org}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -100,14 +100,14 @@ Gem::Specification.new do |s|
|
|
100
100
|
s.specification_version = 3
|
101
101
|
|
102
102
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
103
|
-
s.add_runtime_dependency(%q<rails>, ["
|
103
|
+
s.add_runtime_dependency(%q<rails>, [">= 3.0.3"])
|
104
104
|
s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
|
105
105
|
s.add_development_dependency(%q<rspec-rails>, ["~> 2.4.0"])
|
106
106
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
107
107
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
108
108
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
109
109
|
else
|
110
|
-
s.add_dependency(%q<rails>, ["
|
110
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
111
111
|
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
112
112
|
s.add_dependency(%q<rspec-rails>, ["~> 2.4.0"])
|
113
113
|
s.add_dependency(%q<rcov>, [">= 0"])
|
@@ -115,7 +115,7 @@ Gem::Specification.new do |s|
|
|
115
115
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
116
116
|
end
|
117
117
|
else
|
118
|
-
s.add_dependency(%q<rails>, ["
|
118
|
+
s.add_dependency(%q<rails>, [">= 3.0.3"])
|
119
119
|
s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
|
120
120
|
s.add_dependency(%q<rspec-rails>, ["~> 2.4.0"])
|
121
121
|
s.add_dependency(%q<rcov>, [">= 0"])
|
data/lib/acts_as_audited.rb
CHANGED
@@ -24,7 +24,7 @@ require 'active_record'
|
|
24
24
|
|
25
25
|
# To get started, please review ActsAsAudited::Auditor::ClassMethods#acts_as_audited
|
26
26
|
module ActsAsAudited
|
27
|
-
VERSION = '2.0.0.
|
27
|
+
VERSION = '2.0.0.rc7'
|
28
28
|
|
29
29
|
mattr_accessor :current_user_method
|
30
30
|
# The method to be called to return the current user for logging in the audits.
|
@@ -150,6 +150,7 @@ module ActsAsAudited
|
|
150
150
|
def revision_with(attributes)
|
151
151
|
self.dup.tap do |revision|
|
152
152
|
revision.send :instance_variable_set, '@attributes', self.attributes_before_type_cast
|
153
|
+
revision.send :instance_variable_set, '@new_record', self.destroyed?
|
153
154
|
revision.send :instance_variable_set, '@persisted', !self.destroyed?
|
154
155
|
revision.send :instance_variable_set, '@readonly', false
|
155
156
|
revision.send :instance_variable_set, '@destroyed', false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_audited
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 977940584
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 2.0.0.
|
10
|
+
- rc7
|
11
|
+
version: 2.0.0.rc7
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Brandon Keepers
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-02-
|
20
|
+
date: 2011-02-18 00:00:00 +02:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -27,7 +27,7 @@ dependencies:
|
|
27
27
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- - "
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
hash: 1
|
33
33
|
segments:
|