archivist 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/archivist/archive.rb +2 -2
- data/lib/archivist/base.rb +4 -4
- data/lib/archivist/version.rb +1 -1
- data/test/archive_test.rb +15 -4
- data/test/base_test.rb +24 -3
- data/test/dummy/app/models/namespace/my_namespaced_model.rb +14 -0
- data/test/dummy/app/models/namespace/my_single_namespaced_model.rb +14 -0
- data/test/dummy/db/schema.rb +32 -1
- data/test/factories/some_model_factory.rb +5 -1
- metadata +251 -249
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/Rakefile +0 -7
- data/test/dummy/app/assets/javascripts/application.js +0 -15
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/config.ru +0 -4
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +0 -7
- data/test/dummy/log/test.log +0 -46831
- data/test/dummy/public/404.html +0 -26
- data/test/dummy/public/422.html +0 -26
- data/test/dummy/public/500.html +0 -25
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +0 -6
data/lib/archivist/archive.rb
CHANGED
@@ -25,11 +25,11 @@ module Archivist
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def get_klass
|
28
|
-
@klass ||=
|
28
|
+
@klass ||= get_klass_name.constantize
|
29
29
|
end
|
30
30
|
|
31
31
|
def get_klass_name
|
32
|
-
@klass_name ||= self.class.
|
32
|
+
@klass_name ||= ([ '' ] + self.class.name.split('::')[0..-2]) * '::'
|
33
33
|
end
|
34
34
|
|
35
35
|
if RUBY_VERSION >= "1.9"
|
data/lib/archivist/base.rb
CHANGED
@@ -71,7 +71,7 @@ module Archivist
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def archive_for(klass)
|
74
|
-
"
|
74
|
+
"::#{klass}::Archive".constantize
|
75
75
|
end
|
76
76
|
|
77
77
|
def enable_archive_mass_assignment!(klass)
|
@@ -105,8 +105,8 @@ module Archivist
|
|
105
105
|
"def copy_self_to_archive
|
106
106
|
self.class.transaction do
|
107
107
|
attrs = self.attributes.merge(:deleted_at=>DateTime.now)
|
108
|
-
archived =
|
109
|
-
archived.#{
|
108
|
+
archived = ::#{self}::Archive.new(attrs.reject{|k,v| k=='id'})
|
109
|
+
archived.#{table_name.singularize}_id = attrs['id']
|
110
110
|
#{yield_and_save}
|
111
111
|
end
|
112
112
|
end"
|
@@ -114,7 +114,7 @@ module Archivist
|
|
114
114
|
"def copy_self_to_archive
|
115
115
|
self.class.transaction do #it would be really shitty for us to loose data in the middle of this
|
116
116
|
attrs = self.attributes.merge(:deleted_at=>DateTime.now)
|
117
|
-
archived =
|
117
|
+
archived = ::#{self}::Archive.new
|
118
118
|
if archived.class.where(:id=>self.id).empty? #create a new one if necessary, else update
|
119
119
|
archived.id = attrs[\"id\"]
|
120
120
|
archived.attributes = attrs.reject{|k,v| k=='id'}
|
data/lib/archivist/version.rb
CHANGED
data/test/archive_test.rb
CHANGED
@@ -3,14 +3,25 @@ require File.join(File.dirname(__FILE__), 'test_helper')
|
|
3
3
|
class ArchiveTest < ActiveSupport::TestCase
|
4
4
|
context "The module Archivist::ArchiveMethods" do
|
5
5
|
should "give the Archive subclass the super's methods" do
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
6
|
+
attrs = {
|
7
|
+
first_name: "Steve",
|
8
|
+
last_name: 'Smith'
|
9
|
+
}
|
10
|
+
archive = SomeModel::Archive.new(attrs)
|
11
|
+
model = SomeModel.new(attrs)
|
12
|
+
assert_equal "Smith, Steve", model.full_name, "Expected the Archive class to return the same result that the original class would"
|
10
13
|
end
|
11
14
|
|
12
15
|
should "make the Archive subclass respond_to? correctly" do
|
13
16
|
assert SomeModel::Archive.new.respond_to?(:full_name)
|
14
17
|
end
|
18
|
+
|
19
|
+
should "now about its original class name" do
|
20
|
+
assert_equal '::Namespace::MyNamespacedModel', Namespace::MyNamespacedModel::Archive.new.__send__(:get_klass_name)
|
21
|
+
end
|
22
|
+
|
23
|
+
should "now about its original class" do
|
24
|
+
assert_equal ::Namespace::MyNamespacedModel, Namespace::MyNamespacedModel::Archive.new.__send__(:get_klass)
|
25
|
+
end
|
15
26
|
end
|
16
27
|
end
|
data/test/base_test.rb
CHANGED
@@ -14,9 +14,8 @@ class BaseTest < ActiveSupport::TestCase
|
|
14
14
|
|
15
15
|
context "Models that call has_archive" do
|
16
16
|
should "have subclass Archive" do
|
17
|
-
|
18
|
-
|
19
|
-
end
|
17
|
+
assert SomeModel.constants.include?(:Archive), "Expected SomeModel to have 'Archive' within its constants array"
|
18
|
+
assert Namespace::MyNamespacedModel.constants.include?(:Archive), "Expected Namespace::MyNamespacedModel to have 'Archive' within its constans array"
|
20
19
|
end
|
21
20
|
|
22
21
|
should "respond to archive_indexes as a class method" do
|
@@ -165,6 +164,28 @@ class BaseTest < ActiveSupport::TestCase
|
|
165
164
|
assert_equal "Wayne",@archived.first.last_name
|
166
165
|
end
|
167
166
|
end
|
167
|
+
|
168
|
+
context "when calling #delete on an existing record of a namespaced model with multiple archives" do
|
169
|
+
setup do
|
170
|
+
@my_model = FactoryGirl.create(:my_namespaced_model)
|
171
|
+
@my_model.delete
|
172
|
+
end
|
173
|
+
|
174
|
+
should "archive the record in question" do
|
175
|
+
assert Namespace::MyNamespacedModel::Archive.find_by_my_namespaced_model_id(@my_model.id)
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
context "when calling #delete on an existing record of a namespaced model with single archive" do
|
180
|
+
setup do
|
181
|
+
@my_model = FactoryGirl.create(:my_single_namespaced_model)
|
182
|
+
@my_model.delete
|
183
|
+
end
|
184
|
+
|
185
|
+
should "archive the record in question" do
|
186
|
+
assert Namespace::MySingleNamespacedModel::Archive.find(@my_model.id)
|
187
|
+
end
|
188
|
+
end
|
168
189
|
|
169
190
|
context "when calling #delete! on an existing record" do
|
170
191
|
setup do
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'this_module'
|
2
|
+
|
3
|
+
module Namespace
|
4
|
+
class MyNamespacedModel < ActiveRecord::Base
|
5
|
+
attr_accessible :first_name, :last_name, :random_array, :some_hash
|
6
|
+
serialize(:random_array,Array)
|
7
|
+
serialize(:some_hash,Hash)
|
8
|
+
has_archive :indexes=>[:first_name,:last_name],:included_modules=>ThisModule, :allow_multiple_archives => true
|
9
|
+
|
10
|
+
def full_name
|
11
|
+
"#{last_name}, #{first_name}"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'this_module'
|
2
|
+
|
3
|
+
module Namespace
|
4
|
+
class MySingleNamespacedModel < ActiveRecord::Base
|
5
|
+
attr_accessible :first_name, :last_name, :random_array, :some_hash
|
6
|
+
serialize(:random_array,Array)
|
7
|
+
serialize(:some_hash,Hash)
|
8
|
+
has_archive :indexes=>[:first_name,:last_name],:included_modules=>ThisModule, :allow_multiple_archives => false
|
9
|
+
|
10
|
+
def full_name
|
11
|
+
"#{last_name}, #{first_name}"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/test/dummy/db/schema.rb
CHANGED
@@ -38,4 +38,35 @@ ActiveRecord::Schema.define(:version => 0) do
|
|
38
38
|
t.string "random_array"
|
39
39
|
t.string "some_hash"
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
|
+
create_table "archived_my_namespaced_models", :force => true do |t|
|
43
|
+
t.integer "my_namespaced_model_id"
|
44
|
+
t.string "first_name"
|
45
|
+
t.string "last_name"
|
46
|
+
t.string "random_array"
|
47
|
+
t.string "some_hash"
|
48
|
+
t.datetime "deleted_at"
|
49
|
+
end
|
50
|
+
|
51
|
+
create_table "my_namespaced_models", :force => true do |t|
|
52
|
+
t.string "first_name"
|
53
|
+
t.string "last_name"
|
54
|
+
t.string "random_array"
|
55
|
+
t.string "some_hash"
|
56
|
+
end
|
57
|
+
|
58
|
+
create_table "archived_my_single_namespaced_models", :force => true do |t|
|
59
|
+
t.string "first_name"
|
60
|
+
t.string "last_name"
|
61
|
+
t.string "random_array"
|
62
|
+
t.string "some_hash"
|
63
|
+
t.datetime "deleted_at"
|
64
|
+
end
|
65
|
+
|
66
|
+
create_table "my_single_namespaced_models", :force => true do |t|
|
67
|
+
t.string "first_name"
|
68
|
+
t.string "last_name"
|
69
|
+
t.string "random_array"
|
70
|
+
t.string "some_hash"
|
71
|
+
end
|
72
|
+
end
|
@@ -5,4 +5,8 @@ FactoryGirl.define do
|
|
5
5
|
random_array [1,2,3,4]
|
6
6
|
some_hash { {:cat => 'Catbert'} }
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
|
+
factory :my_namespaced_model, class: Namespace::MyNamespacedModel, parent: :some_model
|
10
|
+
|
11
|
+
factory :my_single_namespaced_model, class: Namespace::MySingleNamespacedModel, parent: :some_model
|
12
|
+
end
|
metadata
CHANGED
@@ -1,269 +1,271 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: archivist
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.2
|
4
5
|
prerelease:
|
5
|
-
version: 1.1.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
8
|
-
|
7
|
+
authors:
|
8
|
+
- Tyler Pickett
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
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
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
12
|
+
date: 2013-01-25 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activerecord
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.0.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: minitest
|
32
|
+
requirement: !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: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: shoulda
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: appraisal
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: mysql2
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: debugger
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: factory_girl
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - <
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '3.0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - <
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '3.0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: rails
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 3.0.0
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 3.0.0
|
158
|
+
description: ! "This is a functional replacement for acts_as_archive in\n rails
|
159
|
+
3 applications, the only functionality that is not\n duplicated
|
160
|
+
is the migration from acts_as_paranoid"
|
161
|
+
email:
|
162
|
+
- t.pickett66@gmail.com
|
131
163
|
executables: []
|
132
|
-
|
133
164
|
extensions: []
|
134
|
-
|
135
165
|
extra_rdoc_files: []
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
- test/dummy/lib/this_module.rb
|
183
|
-
- test/dummy/log/development.log
|
184
|
-
- test/dummy/log/test.log
|
185
|
-
- test/dummy/public/404.html
|
186
|
-
- test/dummy/public/422.html
|
187
|
-
- test/dummy/public/500.html
|
188
|
-
- test/dummy/public/favicon.ico
|
189
|
-
- test/dummy/script/rails
|
190
|
-
- test/dummy/test/fixtures/another_models.yml
|
191
|
-
- test/dummy/test/fixtures/some_models.yml
|
192
|
-
- test/dummy/test/unit/another_model_test.rb
|
193
|
-
- test/dummy/test/unit/some_model_test.rb
|
194
|
-
- test/factories/some_model_factory.rb
|
166
|
+
files:
|
167
|
+
- lib/archivist/archive.rb
|
168
|
+
- lib/archivist/base/db.rb
|
169
|
+
- lib/archivist/base.rb
|
170
|
+
- lib/archivist/migration.rb
|
171
|
+
- lib/archivist/version.rb
|
172
|
+
- lib/archivist.rb
|
173
|
+
- lib/tasks/archivist_tasks.rake
|
174
|
+
- MIT-LICENSE
|
175
|
+
- Rakefile
|
176
|
+
- README.rdoc
|
177
|
+
- test/archive_test.rb
|
178
|
+
- test/archivist_test.rb
|
179
|
+
- test/base_test.rb
|
180
|
+
- test/db/migrate/01_add_to_some_models.rb
|
181
|
+
- test/db_test.rb
|
182
|
+
- test/dummy/app/controllers/application_controller.rb
|
183
|
+
- test/dummy/app/helpers/application_helper.rb
|
184
|
+
- test/dummy/app/models/another_model.rb
|
185
|
+
- test/dummy/app/models/namespace/my_namespaced_model.rb
|
186
|
+
- test/dummy/app/models/namespace/my_single_namespaced_model.rb
|
187
|
+
- test/dummy/app/models/some_model.rb
|
188
|
+
- test/dummy/config/application.rb
|
189
|
+
- test/dummy/config/boot.rb
|
190
|
+
- test/dummy/config/environment.rb
|
191
|
+
- test/dummy/config/environments/development.rb
|
192
|
+
- test/dummy/config/environments/production.rb
|
193
|
+
- test/dummy/config/environments/test.rb
|
194
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
195
|
+
- test/dummy/config/initializers/inflections.rb
|
196
|
+
- test/dummy/config/initializers/mime_types.rb
|
197
|
+
- test/dummy/config/initializers/secret_token.rb
|
198
|
+
- test/dummy/config/initializers/session_store.rb
|
199
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
200
|
+
- test/dummy/config/routes.rb
|
201
|
+
- test/dummy/db/schema.rb
|
202
|
+
- test/dummy/lib/this_module.rb
|
203
|
+
- test/dummy/test/unit/another_model_test.rb
|
204
|
+
- test/dummy/test/unit/some_model_test.rb
|
205
|
+
- test/factories/some_model_factory.rb
|
206
|
+
- test/migration_test.rb
|
207
|
+
- test/test_helper.rb
|
208
|
+
- test/dummy/config/database.yml
|
209
|
+
- test/dummy/config/locales/en.yml
|
210
|
+
- test/dummy/test/fixtures/another_models.yml
|
211
|
+
- test/dummy/test/fixtures/some_models.yml
|
195
212
|
homepage: http://github.com/tpickett66/archivist
|
196
213
|
licenses: []
|
197
|
-
|
198
214
|
post_install_message:
|
199
215
|
rdoc_options: []
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
216
|
+
require_paths:
|
217
|
+
- lib
|
218
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
204
219
|
none: false
|
205
|
-
requirements:
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ! '>='
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
225
|
none: false
|
211
|
-
requirements:
|
212
|
-
|
213
|
-
|
214
|
-
|
226
|
+
requirements:
|
227
|
+
- - ! '>='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
215
230
|
requirements: []
|
216
|
-
|
217
231
|
rubyforge_project:
|
218
|
-
rubygems_version: 1.8.
|
232
|
+
rubygems_version: 1.8.24
|
219
233
|
signing_key:
|
220
234
|
specification_version: 3
|
221
235
|
summary: A rails 3 model archiving system based on acts_as_archive
|
222
|
-
test_files:
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
- test/dummy/log/development.log
|
259
|
-
- test/dummy/log/test.log
|
260
|
-
- test/dummy/public/404.html
|
261
|
-
- test/dummy/public/422.html
|
262
|
-
- test/dummy/public/500.html
|
263
|
-
- test/dummy/public/favicon.ico
|
264
|
-
- test/dummy/script/rails
|
265
|
-
- test/dummy/test/fixtures/another_models.yml
|
266
|
-
- test/dummy/test/fixtures/some_models.yml
|
267
|
-
- test/dummy/test/unit/another_model_test.rb
|
268
|
-
- test/dummy/test/unit/some_model_test.rb
|
269
|
-
- test/factories/some_model_factory.rb
|
236
|
+
test_files:
|
237
|
+
- test/archive_test.rb
|
238
|
+
- test/archivist_test.rb
|
239
|
+
- test/base_test.rb
|
240
|
+
- test/db/migrate/01_add_to_some_models.rb
|
241
|
+
- test/db_test.rb
|
242
|
+
- test/dummy/app/controllers/application_controller.rb
|
243
|
+
- test/dummy/app/helpers/application_helper.rb
|
244
|
+
- test/dummy/app/models/another_model.rb
|
245
|
+
- test/dummy/app/models/namespace/my_namespaced_model.rb
|
246
|
+
- test/dummy/app/models/namespace/my_single_namespaced_model.rb
|
247
|
+
- test/dummy/app/models/some_model.rb
|
248
|
+
- test/dummy/config/application.rb
|
249
|
+
- test/dummy/config/boot.rb
|
250
|
+
- test/dummy/config/environment.rb
|
251
|
+
- test/dummy/config/environments/development.rb
|
252
|
+
- test/dummy/config/environments/production.rb
|
253
|
+
- test/dummy/config/environments/test.rb
|
254
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
255
|
+
- test/dummy/config/initializers/inflections.rb
|
256
|
+
- test/dummy/config/initializers/mime_types.rb
|
257
|
+
- test/dummy/config/initializers/secret_token.rb
|
258
|
+
- test/dummy/config/initializers/session_store.rb
|
259
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
260
|
+
- test/dummy/config/routes.rb
|
261
|
+
- test/dummy/db/schema.rb
|
262
|
+
- test/dummy/lib/this_module.rb
|
263
|
+
- test/dummy/test/unit/another_model_test.rb
|
264
|
+
- test/dummy/test/unit/some_model_test.rb
|
265
|
+
- test/factories/some_model_factory.rb
|
266
|
+
- test/migration_test.rb
|
267
|
+
- test/test_helper.rb
|
268
|
+
- test/dummy/config/database.yml
|
269
|
+
- test/dummy/config/locales/en.yml
|
270
|
+
- test/dummy/test/fixtures/another_models.yml
|
271
|
+
- test/dummy/test/fixtures/some_models.yml
|