forked from expectedbehavior/acts_as_archival
-
Notifications
You must be signed in to change notification settings - Fork 0
/
acts_as_archival.gemspec
53 lines (45 loc) · 2.1 KB
/
acts_as_archival.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- encoding: utf-8 -*-
$LOAD_PATH.push File.expand_path("../lib", __FILE__)
require "acts_as_archival/version"
Gem::Specification.new do |gem|
gem.name = "acts_as_archival"
gem.summary = "Atomic archiving/unarchiving for ActiveRecord-based apps"
gem.version = ActsAsArchival::VERSION
gem.authors = ["Joel Meador",
"Michael Kuehl",
"Matthew Gordon",
"Vojtech Salbaba",
"David Jones",
"Dave Woodward",
"Miles Sterrett",
"James Hill",
"Maarten Claes"]
gem.email = ["[email protected]",
gem.homepage = "http://github.com/expectedbehavior/acts_as_archival"
gem.files = `git ls-files`.split("\n")
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
gem.require_paths = ["lib"]
gem.add_dependency "activerecord", ">= 4.1"
gem.add_development_dependency "appraisal"
gem.add_development_dependency "assertions-eb"
gem.add_development_dependency "database_cleaner"
gem.add_development_dependency "rake"
gem.add_development_dependency "rr"
gem.add_development_dependency "sqlite3"
gem.add_development_dependency "rubocop", "~> 0.47.1"
gem.description = <<-END
*Atomic archiving/unarchiving for ActiveRecord-based apps*
We had the problem that acts_as_paranoid and similar plugins/gems always work on
a record by record basis and made it very difficult to restore records
atomically (or archive them, for that matter).
Because the archive and unarchive methods are in transactions, and every
archival record involved gets the same archive number upon archiving, you can
easily restore or remove an entire set of records without having to worry about
partial deletion or restoration.
Additionally, other plugins generally screw with how destroy/delete work. We
don't because we actually want to be able to destroy records.
END
end