acts_as_archival 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -4
- data/README.md +7 -4
- data/acts_as_archival.gemspec +2 -1
- data/lib/acts_as_archival/version.rb +1 -1
- metadata +21 -30
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
*
|
1
|
+
# Changes!
|
2
|
+
## 0.4.1
|
3
|
+
* remove explicit activesupport gem'ing
|
4
|
+
* update documentation for using plugin version with rails 3.0x
|
5
|
+
|
6
|
+
## 0.4.0
|
7
|
+
* **BUGFIX**: when `archive`/`unarchive` fail, they now return false instead of nil
|
8
|
+
* Rails 3.2 compatibility -- **Possibly Rails 3.0 incompatible due to ARec differences**
|
4
9
|
* Gemified!
|
5
|
-
* Major test re-organization
|
10
|
+
* Super Duper Major test re-organization
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ActsAsArchival
|
2
2
|
|
3
|
-
|
3
|
+
Atomically archive object trees in your activerecord models.
|
4
4
|
|
5
5
|
We had the problem that acts_as_paranoid and similar plugins/gems
|
6
6
|
always work on a record by record basis and made it very difficult to
|
@@ -16,10 +16,13 @@ Additionally, other plugins generally screw with how
|
|
16
16
|
to destroy records.
|
17
17
|
|
18
18
|
## Install
|
19
|
+
Rails 3.2+ (maybe 3.1?)
|
19
20
|
|
20
|
-
|
21
|
+
`gem install acts_as_archival`
|
21
22
|
|
22
|
-
|
23
|
+
Rails 3.0x:
|
24
|
+
|
25
|
+
`rails plugin install http://github.com/expectedbehavior/acts_as_archival.git -r rails3.0x`
|
23
26
|
|
24
27
|
Rails 2:
|
25
28
|
|
@@ -107,6 +110,6 @@ http://github.com/fastestforward/permanent_records
|
|
107
110
|
* David Jones
|
108
111
|
* Dave Woodward
|
109
112
|
|
110
|
-
Thanks
|
113
|
+
Thanks!
|
111
114
|
|
112
115
|
*Copyright (c) 2009-2012 Expected Behavior, LLC, released under the MIT license*
|
data/acts_as_archival.gemspec
CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |gem|
|
|
23
23
|
|
24
24
|
gem.add_dependency "activerecord"
|
25
25
|
|
26
|
-
gem.add_development_dependency "activesupport"
|
27
26
|
gem.add_development_dependency "assertions-eb"
|
28
27
|
gem.add_development_dependency "rake"
|
29
28
|
gem.add_development_dependency "mysql2"
|
@@ -32,6 +31,8 @@ Gem::Specification.new do |gem|
|
|
32
31
|
gem.add_development_dependency "database_cleaner"
|
33
32
|
|
34
33
|
gem.description = <<-END
|
34
|
+
*Atomic archiving/unarchiving for ActiveRecord-based apps*
|
35
|
+
|
35
36
|
We had the problem that acts_as_paranoid and similar plugins/gems always work on
|
36
37
|
a record by record basis and made it very difficult to restore records
|
37
38
|
atomically (or archive them, for that matter).
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_archival
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,7 +18,7 @@ date: 2012-03-04 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: activerecord
|
21
|
-
requirement: &
|
21
|
+
requirement: &70109781105340 !ruby/object:Gem::Requirement
|
22
22
|
none: false
|
23
23
|
requirements:
|
24
24
|
- - ! '>='
|
@@ -26,21 +26,10 @@ dependencies:
|
|
26
26
|
version: '0'
|
27
27
|
type: :runtime
|
28
28
|
prerelease: false
|
29
|
-
version_requirements: *
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: activesupport
|
32
|
-
requirement: &70256103650640 !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ! '>='
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '0'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: *70256103650640
|
29
|
+
version_requirements: *70109781105340
|
41
30
|
- !ruby/object:Gem::Dependency
|
42
31
|
name: assertions-eb
|
43
|
-
requirement: &
|
32
|
+
requirement: &70109781104700 !ruby/object:Gem::Requirement
|
44
33
|
none: false
|
45
34
|
requirements:
|
46
35
|
- - ! '>='
|
@@ -48,10 +37,10 @@ dependencies:
|
|
48
37
|
version: '0'
|
49
38
|
type: :development
|
50
39
|
prerelease: false
|
51
|
-
version_requirements: *
|
40
|
+
version_requirements: *70109781104700
|
52
41
|
- !ruby/object:Gem::Dependency
|
53
42
|
name: rake
|
54
|
-
requirement: &
|
43
|
+
requirement: &70109781104220 !ruby/object:Gem::Requirement
|
55
44
|
none: false
|
56
45
|
requirements:
|
57
46
|
- - ! '>='
|
@@ -59,10 +48,10 @@ dependencies:
|
|
59
48
|
version: '0'
|
60
49
|
type: :development
|
61
50
|
prerelease: false
|
62
|
-
version_requirements: *
|
51
|
+
version_requirements: *70109781104220
|
63
52
|
- !ruby/object:Gem::Dependency
|
64
53
|
name: mysql2
|
65
|
-
requirement: &
|
54
|
+
requirement: &70109781103700 !ruby/object:Gem::Requirement
|
66
55
|
none: false
|
67
56
|
requirements:
|
68
57
|
- - ! '>='
|
@@ -70,10 +59,10 @@ dependencies:
|
|
70
59
|
version: '0'
|
71
60
|
type: :development
|
72
61
|
prerelease: false
|
73
|
-
version_requirements: *
|
62
|
+
version_requirements: *70109781103700
|
74
63
|
- !ruby/object:Gem::Dependency
|
75
64
|
name: highline
|
76
|
-
requirement: &
|
65
|
+
requirement: &70109781103260 !ruby/object:Gem::Requirement
|
77
66
|
none: false
|
78
67
|
requirements:
|
79
68
|
- - ! '>='
|
@@ -81,10 +70,10 @@ dependencies:
|
|
81
70
|
version: '0'
|
82
71
|
type: :development
|
83
72
|
prerelease: false
|
84
|
-
version_requirements: *
|
73
|
+
version_requirements: *70109781103260
|
85
74
|
- !ruby/object:Gem::Dependency
|
86
75
|
name: rr
|
87
|
-
requirement: &
|
76
|
+
requirement: &70109781102800 !ruby/object:Gem::Requirement
|
88
77
|
none: false
|
89
78
|
requirements:
|
90
79
|
- - ! '>='
|
@@ -92,10 +81,10 @@ dependencies:
|
|
92
81
|
version: '0'
|
93
82
|
type: :development
|
94
83
|
prerelease: false
|
95
|
-
version_requirements: *
|
84
|
+
version_requirements: *70109781102800
|
96
85
|
- !ruby/object:Gem::Dependency
|
97
86
|
name: database_cleaner
|
98
|
-
requirement: &
|
87
|
+
requirement: &70109781102320 !ruby/object:Gem::Requirement
|
99
88
|
none: false
|
100
89
|
requirements:
|
101
90
|
- - ! '>='
|
@@ -103,9 +92,11 @@ dependencies:
|
|
103
92
|
version: '0'
|
104
93
|
type: :development
|
105
94
|
prerelease: false
|
106
|
-
version_requirements: *
|
107
|
-
description: ! '
|
108
|
-
|
95
|
+
version_requirements: *70109781102320
|
96
|
+
description: ! '*Atomic archiving/unarchiving for ActiveRecord-based apps*
|
97
|
+
|
98
|
+
|
99
|
+
We had the problem that acts_as_paranoid and similar plugins/gems always work on
|
109
100
|
|
110
101
|
a record by record basis and made it very difficult to restore records
|
111
102
|
|
@@ -189,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
180
|
version: '0'
|
190
181
|
segments:
|
191
182
|
- 0
|
192
|
-
hash:
|
183
|
+
hash: 1664719056753282127
|
193
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
185
|
none: false
|
195
186
|
requirements:
|
@@ -198,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
189
|
version: '0'
|
199
190
|
segments:
|
200
191
|
- 0
|
201
|
-
hash:
|
192
|
+
hash: 1664719056753282127
|
202
193
|
requirements: []
|
203
194
|
rubyforge_project:
|
204
195
|
rubygems_version: 1.8.16
|