database_cleaner 0.6.7 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/database_cleaner.rb +1 -3
- metadata +48 -154
- data/Gemfile.lock +0 -161
- data/History.txt +0 -173
- data/LICENSE +0 -20
- data/README.textile +0 -165
- data/Rakefile +0 -65
- data/TODO +0 -3
- data/VERSION.yml +0 -5
- data/cucumber.yml +0 -1
- data/examples/Gemfile +0 -48
- data/examples/Gemfile.lock +0 -161
- data/examples/config/database.yml.example +0 -8
- data/examples/db/sqlite_databases_go_here +0 -0
- data/examples/features/example.feature +0 -11
- data/examples/features/example_multiple_db.feature +0 -23
- data/examples/features/example_multiple_orm.feature +0 -22
- data/examples/features/step_definitions/activerecord_steps.rb +0 -31
- data/examples/features/step_definitions/couchpotato_steps.rb +0 -31
- data/examples/features/step_definitions/datamapper_steps.rb +0 -37
- data/examples/features/step_definitions/mongoid_steps.rb +0 -23
- data/examples/features/step_definitions/mongomapper_steps.rb +0 -31
- data/examples/features/step_definitions/translation_steps.rb +0 -55
- data/examples/features/support/env.rb +0 -62
- data/examples/lib/activerecord_models.rb +0 -41
- data/examples/lib/couchpotato_models.rb +0 -61
- data/examples/lib/datamapper_models.rb +0 -50
- data/examples/lib/mongoid_models.rb +0 -49
- data/examples/lib/mongomapper_models.rb +0 -51
- data/features/cleaning.feature +0 -22
- data/features/cleaning_default_strategy.feature +0 -19
- data/features/cleaning_multiple_dbs.feature +0 -21
- data/features/cleaning_multiple_orms.feature +0 -29
- data/features/step_definitions/database_cleaner_steps.rb +0 -32
- data/features/support/env.rb +0 -7
- data/features/support/feature_runner.rb +0 -39
- data/lib/database_cleaner/active_record/#transaction.rb# +0 -34
- data/lib/database_cleaner/active_record/base.rb +0 -53
- data/lib/database_cleaner/active_record/deletion.rb +0 -64
- data/lib/database_cleaner/active_record/transaction.rb +0 -26
- data/lib/database_cleaner/active_record/truncation.rb +0 -134
- data/lib/database_cleaner/base.rb +0 -136
- data/lib/database_cleaner/configuration.rb +0 -92
- data/lib/database_cleaner/couch_potato/base.rb +0 -7
- data/lib/database_cleaner/couch_potato/truncation.rb +0 -28
- data/lib/database_cleaner/cucumber.rb +0 -11
- data/lib/database_cleaner/data_mapper/base.rb +0 -21
- data/lib/database_cleaner/data_mapper/transaction.rb +0 -28
- data/lib/database_cleaner/data_mapper/truncation.rb +0 -175
- data/lib/database_cleaner/generic/base.rb +0 -23
- data/lib/database_cleaner/generic/truncation.rb +0 -43
- data/lib/database_cleaner/mongo/truncation.rb +0 -22
- data/lib/database_cleaner/mongo_mapper/base.rb +0 -20
- data/lib/database_cleaner/mongo_mapper/truncation.rb +0 -19
- data/lib/database_cleaner/mongoid/base.rb +0 -20
- data/lib/database_cleaner/mongoid/truncation.rb +0 -20
- data/lib/database_cleaner/null_strategy.rb +0 -15
- data/spec/database_cleaner/active_record/base_spec.rb +0 -141
- data/spec/database_cleaner/active_record/transaction_spec.rb +0 -65
- data/spec/database_cleaner/active_record/truncation_spec.rb +0 -82
- data/spec/database_cleaner/base_spec.rb +0 -478
- data/spec/database_cleaner/configuration_spec.rb +0 -294
- data/spec/database_cleaner/couch_potato/truncation_spec.rb +0 -41
- data/spec/database_cleaner/data_mapper/base_spec.rb +0 -30
- data/spec/database_cleaner/data_mapper/transaction_spec.rb +0 -23
- data/spec/database_cleaner/data_mapper/truncation_spec.rb +0 -11
- data/spec/database_cleaner/generic/base_spec.rb +0 -22
- data/spec/database_cleaner/generic/truncation_spec.rb +0 -78
- data/spec/database_cleaner/mongo_mapper/base_spec.rb +0 -33
- data/spec/database_cleaner/mongo_mapper/mongo_examples.rb +0 -8
- data/spec/database_cleaner/mongo_mapper/truncation_spec.rb +0 -74
- data/spec/database_cleaner/shared_strategy_spec.rb +0 -13
- data/spec/rcov.opts +0 -1
- data/spec/spec.opts +0 -7
- data/spec/spec_helper.rb +0 -19
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 74e7028d3ca744d89b5026c76c16b2629cc8cc8f324d730932d455c0d0210410
|
4
|
+
data.tar.gz: c2cee93a6e8c3edd20c5f918259a85abaf110b21502a75bacb1640024dac2051
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1ae141e5fc8116f08e360cf0d84b8941b97d42bcd0f58b7d6d9bc897e89f54decdeb1008179dcb283e5c135db6366279a3fd785c11f6e319d674fcfaf76d85cf
|
7
|
+
data.tar.gz: fbbe59762f2cbfd0a48e906d804e1c71e4156c55c6b3f128b9fcabcc98ee4ae831218d83a7dbae725d220bef4a1824b733c7dab0b69f05122b252402d812811e
|
data/lib/database_cleaner.rb
CHANGED
metadata
CHANGED
@@ -1,169 +1,63 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_cleaner
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 6
|
9
|
-
- 7
|
10
|
-
version: 0.6.7
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.1
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Ben Mabey
|
8
|
+
- Ernesto Tagwerker
|
9
|
+
- Micah Geisel
|
14
10
|
autorequire:
|
15
11
|
bindir: bin
|
16
12
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
13
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: database_cleaner-active_record
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 2.0.0
|
29
|
+
description: Strategies for cleaning databases. Can be used to ensure a clean slate
|
30
|
+
for testing.
|
31
|
+
email:
|
32
|
+
- ernesto@ombulabs.com
|
24
33
|
executables: []
|
25
|
-
|
26
34
|
extensions: []
|
27
|
-
|
28
|
-
|
29
|
-
- LICENSE
|
30
|
-
- README.textile
|
31
|
-
- TODO
|
32
|
-
files:
|
33
|
-
- Gemfile.lock
|
34
|
-
- History.txt
|
35
|
-
- README.textile
|
36
|
-
- Rakefile
|
37
|
-
- VERSION.yml
|
38
|
-
- cucumber.yml
|
39
|
-
- examples/Gemfile
|
40
|
-
- examples/Gemfile.lock
|
41
|
-
- examples/config/database.yml.example
|
42
|
-
- examples/db/sqlite_databases_go_here
|
43
|
-
- examples/features/example.feature
|
44
|
-
- examples/features/example_multiple_db.feature
|
45
|
-
- examples/features/example_multiple_orm.feature
|
46
|
-
- examples/features/step_definitions/activerecord_steps.rb
|
47
|
-
- examples/features/step_definitions/couchpotato_steps.rb
|
48
|
-
- examples/features/step_definitions/datamapper_steps.rb
|
49
|
-
- examples/features/step_definitions/mongoid_steps.rb
|
50
|
-
- examples/features/step_definitions/mongomapper_steps.rb
|
51
|
-
- examples/features/step_definitions/translation_steps.rb
|
52
|
-
- examples/features/support/env.rb
|
53
|
-
- examples/lib/activerecord_models.rb
|
54
|
-
- examples/lib/couchpotato_models.rb
|
55
|
-
- examples/lib/datamapper_models.rb
|
56
|
-
- examples/lib/mongoid_models.rb
|
57
|
-
- examples/lib/mongomapper_models.rb
|
58
|
-
- features/cleaning.feature
|
59
|
-
- features/cleaning_default_strategy.feature
|
60
|
-
- features/cleaning_multiple_dbs.feature
|
61
|
-
- features/cleaning_multiple_orms.feature
|
62
|
-
- features/step_definitions/database_cleaner_steps.rb
|
63
|
-
- features/support/env.rb
|
64
|
-
- features/support/feature_runner.rb
|
35
|
+
extra_rdoc_files: []
|
36
|
+
files:
|
65
37
|
- lib/database_cleaner.rb
|
66
|
-
|
67
|
-
|
68
|
-
-
|
69
|
-
|
70
|
-
|
71
|
-
- lib/database_cleaner/base.rb
|
72
|
-
- lib/database_cleaner/configuration.rb
|
73
|
-
- lib/database_cleaner/couch_potato/base.rb
|
74
|
-
- lib/database_cleaner/couch_potato/truncation.rb
|
75
|
-
- lib/database_cleaner/cucumber.rb
|
76
|
-
- lib/database_cleaner/data_mapper/base.rb
|
77
|
-
- lib/database_cleaner/data_mapper/transaction.rb
|
78
|
-
- lib/database_cleaner/data_mapper/truncation.rb
|
79
|
-
- lib/database_cleaner/generic/base.rb
|
80
|
-
- lib/database_cleaner/generic/truncation.rb
|
81
|
-
- lib/database_cleaner/mongo/truncation.rb
|
82
|
-
- lib/database_cleaner/mongo_mapper/base.rb
|
83
|
-
- lib/database_cleaner/mongo_mapper/truncation.rb
|
84
|
-
- lib/database_cleaner/mongoid/base.rb
|
85
|
-
- lib/database_cleaner/mongoid/truncation.rb
|
86
|
-
- lib/database_cleaner/null_strategy.rb
|
87
|
-
- spec/database_cleaner/active_record/base_spec.rb
|
88
|
-
- spec/database_cleaner/active_record/transaction_spec.rb
|
89
|
-
- spec/database_cleaner/active_record/truncation_spec.rb
|
90
|
-
- spec/database_cleaner/base_spec.rb
|
91
|
-
- spec/database_cleaner/configuration_spec.rb
|
92
|
-
- spec/database_cleaner/couch_potato/truncation_spec.rb
|
93
|
-
- spec/database_cleaner/data_mapper/base_spec.rb
|
94
|
-
- spec/database_cleaner/data_mapper/transaction_spec.rb
|
95
|
-
- spec/database_cleaner/data_mapper/truncation_spec.rb
|
96
|
-
- spec/database_cleaner/generic/base_spec.rb
|
97
|
-
- spec/database_cleaner/generic/truncation_spec.rb
|
98
|
-
- spec/database_cleaner/mongo_mapper/base_spec.rb
|
99
|
-
- spec/database_cleaner/mongo_mapper/mongo_examples.rb
|
100
|
-
- spec/database_cleaner/mongo_mapper/truncation_spec.rb
|
101
|
-
- spec/database_cleaner/shared_strategy_spec.rb
|
102
|
-
- spec/rcov.opts
|
103
|
-
- spec/spec.opts
|
104
|
-
- spec/spec_helper.rb
|
105
|
-
- LICENSE
|
106
|
-
- TODO
|
107
|
-
has_rdoc: true
|
108
|
-
homepage: http://github.com/bmabey/database_cleaner
|
109
|
-
licenses: []
|
110
|
-
|
38
|
+
homepage: https://github.com/DatabaseCleaner/database_cleaner
|
39
|
+
licenses:
|
40
|
+
- MIT
|
41
|
+
metadata:
|
42
|
+
changelog_uri: https://github.com/DatabaseCleaner/database_cleaner/blob/master/History.rdoc
|
111
43
|
post_install_message:
|
112
|
-
rdoc_options:
|
113
|
-
|
114
|
-
require_paths:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
115
46
|
- lib
|
116
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
-
|
118
|
-
requirements:
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
119
49
|
- - ">="
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
version: "0"
|
125
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
|
-
requirements:
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
128
54
|
- - ">="
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
|
131
|
-
segments:
|
132
|
-
- 0
|
133
|
-
version: "0"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
134
57
|
requirements: []
|
135
|
-
|
136
|
-
rubyforge_project:
|
137
|
-
rubygems_version: 1.3.7
|
58
|
+
rubygems_version: 3.0.3
|
138
59
|
signing_key:
|
139
|
-
specification_version:
|
140
|
-
summary: Strategies for cleaning databases.
|
141
|
-
|
142
|
-
|
143
|
-
- spec/database_cleaner/active_record/transaction_spec.rb
|
144
|
-
- spec/database_cleaner/active_record/truncation_spec.rb
|
145
|
-
- spec/database_cleaner/base_spec.rb
|
146
|
-
- spec/database_cleaner/configuration_spec.rb
|
147
|
-
- spec/database_cleaner/couch_potato/truncation_spec.rb
|
148
|
-
- spec/database_cleaner/data_mapper/base_spec.rb
|
149
|
-
- spec/database_cleaner/data_mapper/transaction_spec.rb
|
150
|
-
- spec/database_cleaner/data_mapper/truncation_spec.rb
|
151
|
-
- spec/database_cleaner/generic/base_spec.rb
|
152
|
-
- spec/database_cleaner/generic/truncation_spec.rb
|
153
|
-
- spec/database_cleaner/mongo_mapper/base_spec.rb
|
154
|
-
- spec/database_cleaner/mongo_mapper/mongo_examples.rb
|
155
|
-
- spec/database_cleaner/mongo_mapper/truncation_spec.rb
|
156
|
-
- spec/database_cleaner/shared_strategy_spec.rb
|
157
|
-
- spec/spec_helper.rb
|
158
|
-
- examples/features/step_definitions/activerecord_steps.rb
|
159
|
-
- examples/features/step_definitions/couchpotato_steps.rb
|
160
|
-
- examples/features/step_definitions/datamapper_steps.rb
|
161
|
-
- examples/features/step_definitions/mongoid_steps.rb
|
162
|
-
- examples/features/step_definitions/mongomapper_steps.rb
|
163
|
-
- examples/features/step_definitions/translation_steps.rb
|
164
|
-
- examples/features/support/env.rb
|
165
|
-
- examples/lib/activerecord_models.rb
|
166
|
-
- examples/lib/couchpotato_models.rb
|
167
|
-
- examples/lib/datamapper_models.rb
|
168
|
-
- examples/lib/mongoid_models.rb
|
169
|
-
- examples/lib/mongomapper_models.rb
|
60
|
+
specification_version: 4
|
61
|
+
summary: Strategies for cleaning databases. Can be used to ensure a clean slate for
|
62
|
+
testing.
|
63
|
+
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,161 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
ZenTest (4.3.3)
|
5
|
-
activerecord (2.3.8)
|
6
|
-
activesupport (= 2.3.8)
|
7
|
-
activesupport (2.3.8)
|
8
|
-
addressable (2.2.0)
|
9
|
-
bson (1.0.4)
|
10
|
-
builder (2.1.2)
|
11
|
-
columnize (0.3.1)
|
12
|
-
couch_potato (0.3.0)
|
13
|
-
couchrest (>= 0.24)
|
14
|
-
json
|
15
|
-
couchrest (1.0.1)
|
16
|
-
json (>= 1.4.6)
|
17
|
-
mime-types (>= 1.15)
|
18
|
-
rest-client (>= 1.5.1)
|
19
|
-
cucumber (0.8.5)
|
20
|
-
builder (~> 2.1.2)
|
21
|
-
diff-lcs (~> 1.1.2)
|
22
|
-
gherkin (~> 2.1.4)
|
23
|
-
json_pure (~> 1.4.3)
|
24
|
-
term-ansicolor (~> 1.0.4)
|
25
|
-
data_objects (0.10.2)
|
26
|
-
addressable (~> 2.1)
|
27
|
-
datamapper (1.0.0)
|
28
|
-
dm-aggregates (= 1.0.0)
|
29
|
-
dm-constraints (= 1.0.0)
|
30
|
-
dm-core (= 1.0.0)
|
31
|
-
dm-core (= 1.0.0)
|
32
|
-
dm-migrations (= 1.0.0)
|
33
|
-
dm-serializer (= 1.0.0)
|
34
|
-
dm-timestamps (= 1.0.0)
|
35
|
-
dm-transactions (= 1.0.0)
|
36
|
-
dm-types (= 1.0.0)
|
37
|
-
dm-validations (= 1.0.0)
|
38
|
-
diff-lcs (1.1.2)
|
39
|
-
dm-aggregates (1.0.0)
|
40
|
-
dm-core (~> 1.0.0)
|
41
|
-
dm-constraints (1.0.0)
|
42
|
-
dm-core (~> 1.0.0)
|
43
|
-
dm-migrations (~> 1.0.0)
|
44
|
-
dm-core (1.0.0)
|
45
|
-
addressable (~> 2.1)
|
46
|
-
extlib (~> 0.9.15)
|
47
|
-
dm-do-adapter (1.0.0)
|
48
|
-
data_objects (~> 0.10.1)
|
49
|
-
dm-core (~> 1.0.0)
|
50
|
-
dm-migrations (1.0.0)
|
51
|
-
dm-core (~> 1.0.0)
|
52
|
-
dm-serializer (1.0.0)
|
53
|
-
dm-core (~> 1.0.0)
|
54
|
-
fastercsv (~> 1.5.3)
|
55
|
-
json_pure (~> 1.4.3)
|
56
|
-
dm-sqlite-adapter (1.0.0)
|
57
|
-
dm-do-adapter (~> 1.0.0)
|
58
|
-
do_sqlite3 (~> 0.10.2)
|
59
|
-
dm-timestamps (1.0.0)
|
60
|
-
dm-core (~> 1.0.0)
|
61
|
-
dm-transactions (1.0.0)
|
62
|
-
dm-core (~> 1.0.0)
|
63
|
-
dm-types (1.0.0)
|
64
|
-
dm-core (~> 1.0.0)
|
65
|
-
fastercsv (~> 1.5.3)
|
66
|
-
json_pure (~> 1.4.3)
|
67
|
-
stringex (~> 1.1.0)
|
68
|
-
uuidtools (~> 2.1.1)
|
69
|
-
dm-validations (1.0.0)
|
70
|
-
dm-core (~> 1.0.0)
|
71
|
-
do_sqlite3 (0.10.2)
|
72
|
-
data_objects (= 0.10.2)
|
73
|
-
durran-validatable (2.0.1)
|
74
|
-
extlib (0.9.15)
|
75
|
-
fastercsv (1.5.3)
|
76
|
-
ffi (0.6.3)
|
77
|
-
rake (>= 0.8.7)
|
78
|
-
gemcutter (0.6.1)
|
79
|
-
gherkin (2.1.5)
|
80
|
-
trollop (~> 1.16.2)
|
81
|
-
git (1.2.5)
|
82
|
-
growl (1.0.3)
|
83
|
-
jeweler (1.4.0)
|
84
|
-
gemcutter (>= 0.1.0)
|
85
|
-
git (>= 1.2.5)
|
86
|
-
rubyforge (>= 2.0.0)
|
87
|
-
jnunemaker-validatable (1.8.4)
|
88
|
-
activesupport (>= 2.3.4)
|
89
|
-
json (1.4.6)
|
90
|
-
json_pure (1.4.6)
|
91
|
-
libnotify (0.2.0)
|
92
|
-
ffi (>= 0.6.2)
|
93
|
-
linecache (0.43)
|
94
|
-
mime-types (1.16)
|
95
|
-
mongo (1.0.7)
|
96
|
-
bson (>= 1.0.4)
|
97
|
-
mongo_mapper (0.8.2)
|
98
|
-
activesupport (>= 2.3.4)
|
99
|
-
jnunemaker-validatable (~> 1.8.4)
|
100
|
-
plucky (~> 0.3.1)
|
101
|
-
mongoid (1.9.1)
|
102
|
-
activesupport (<= 3.0.0)
|
103
|
-
bson (~> 1.0.1)
|
104
|
-
durran-validatable (>= 2.0.1)
|
105
|
-
mongo (~> 1.0.1)
|
106
|
-
will_paginate (< 2.9)
|
107
|
-
plucky (0.3.4)
|
108
|
-
mongo (~> 1.0.7)
|
109
|
-
rake (0.8.7)
|
110
|
-
rb-inotify (0.8.1)
|
111
|
-
ffi (>= 0.5.0)
|
112
|
-
rcov (0.9.8)
|
113
|
-
rest-client (1.6.0)
|
114
|
-
mime-types (>= 1.16)
|
115
|
-
rspactor (0.7.0.beta.6)
|
116
|
-
bundler (>= 1.0.0.rc.5)
|
117
|
-
growl (>= 1.0.3)
|
118
|
-
libnotify (>= 0.1.3)
|
119
|
-
rb-inotify
|
120
|
-
sys-uname (>= 0.8.4)
|
121
|
-
trollop (>= 1.16.2)
|
122
|
-
rspec (1.3.0)
|
123
|
-
ruby-debug (0.10.3)
|
124
|
-
columnize (>= 0.1)
|
125
|
-
ruby-debug-base (~> 0.10.3.0)
|
126
|
-
ruby-debug-base (0.10.3)
|
127
|
-
linecache (>= 0.3)
|
128
|
-
rubyforge (2.0.4)
|
129
|
-
json_pure (>= 1.1.7)
|
130
|
-
sqlite3-ruby (1.3.1)
|
131
|
-
stringex (1.1.0)
|
132
|
-
sys-uname (0.8.4)
|
133
|
-
term-ansicolor (1.0.5)
|
134
|
-
trollop (1.16.2)
|
135
|
-
tzinfo (0.3.22)
|
136
|
-
uuidtools (2.1.1)
|
137
|
-
will_paginate (2.3.14)
|
138
|
-
|
139
|
-
PLATFORMS
|
140
|
-
ruby
|
141
|
-
|
142
|
-
DEPENDENCIES
|
143
|
-
ZenTest
|
144
|
-
activerecord (= 2.3.8)
|
145
|
-
bundler
|
146
|
-
couch_potato (= 0.3.0)
|
147
|
-
cucumber
|
148
|
-
datamapper (= 1.0.0)
|
149
|
-
dm-migrations (= 1.0.0)
|
150
|
-
dm-sqlite-adapter (= 1.0.0)
|
151
|
-
jeweler
|
152
|
-
json_pure
|
153
|
-
mongo_mapper (= 0.8.2)
|
154
|
-
mongoid (= 1.9.1)
|
155
|
-
rake
|
156
|
-
rcov
|
157
|
-
rspactor
|
158
|
-
rspec
|
159
|
-
ruby-debug
|
160
|
-
sqlite3-ruby
|
161
|
-
tzinfo (= 0.3.22)
|
data/History.txt
DELETED
@@ -1,173 +0,0 @@
|
|
1
|
-
== 0.6.x (in git)
|
2
|
-
|
3
|
-
=== Bugfixes
|
4
|
-
* Explicity require ERB. (Vít Ondruch)
|
5
|
-
* Cache DB connections, fixes referential integrity bug when using multiple DBs. (John Ferlito)
|
6
|
-
|
7
|
-
== 0.6.6 2011-03-16
|
8
|
-
|
9
|
-
=== Bugfixes
|
10
|
-
* Don't modify the array passed in with the :except key. (Eric Wollesen)
|
11
|
-
* Fixes version checking for postgresql. (Greg Barnett)
|
12
|
-
|
13
|
-
== 0.6.5 2011-03-08
|
14
|
-
|
15
|
-
=== Bugfixes
|
16
|
-
* When truncating in postgresql (>= 8.4) sequences are now reset. (Greg Barnett)
|
17
|
-
* Fixes the MongoDB truncation so non system collections starting with 'system' are not excluded for truncation. (Dmitry Naumov)
|
18
|
-
|
19
|
-
== 0.6.4 2011-02-21
|
20
|
-
|
21
|
-
=== Bugfixes
|
22
|
-
* Avoids trying to drop views in Postgres. (Bernerd Schaefer)
|
23
|
-
|
24
|
-
== 0.6.3 2011-02-09
|
25
|
-
|
26
|
-
=== New Features
|
27
|
-
* Configurable logger to aid in debugging database cleaner. (Marty Haught)
|
28
|
-
|
29
|
-
== 0.6.2 2011-02-04
|
30
|
-
|
31
|
-
=== New Features
|
32
|
-
* Support IBM_DB Adapter for table truncation. This is for DB2 >= 9.7 (GH-39 Samer Abukhait)
|
33
|
-
|
34
|
-
=== Bugfixes
|
35
|
-
* Reversed GH-41 after larger community discussion. Mongo indexes are no longer dropped. (Ben Mabey)
|
36
|
-
* Truncation strategy works on SqlServer tables with FKs. (GH-33, Hugo Freire)
|
37
|
-
|
38
|
-
== 0.6.1 2011-01-27
|
39
|
-
|
40
|
-
=== New Features
|
41
|
-
* Default strategies for all ORM libs are defined. (GH-36, GH-38 Prem Sichanugrist)
|
42
|
-
* Add a NullStrategy. (GH-6 Ben Mabey)
|
43
|
-
|
44
|
-
=== Bugfixes
|
45
|
-
* Mongo colletion indexes are dropped for collections being removed. (GH-41 Ben Mabey)
|
46
|
-
* Exclude database views from tables_to_truncate, if the connection adapter
|
47
|
-
supports reading from the ANSI standard information_schema views. (GH-25 Samer Abukhait)
|
48
|
-
* ORM types can be specified in string format and not mysteriously blowup. (GH-26 Ben Mabey)
|
49
|
-
* Do not remove MongoDB reserved system collections. (GH-24 Ches Martin)
|
50
|
-
|
51
|
-
== 0.6.0 2010-10-25 - The Multi-ORM/Connection Release
|
52
|
-
|
53
|
-
This release has the often asked for functionality of being able to clean
|
54
|
-
multiple databases within the same project. This involves being able to
|
55
|
-
clean databases managed by the same ORM (i.e. different connections) and
|
56
|
-
also being able to clean databases managed by distinct ORMs. So, for
|
57
|
-
example you can now use DatabaseCleaner on a project that has ActiveRecord
|
58
|
-
and Mongoid to help ensure all DBs all in a clean state. Please see the
|
59
|
-
README for more information. The old API has been preserved so this release
|
60
|
-
is backwards compatible.
|
61
|
-
|
62
|
-
This release is a result of Jon Rowe's hard work. Many thanks to Jon for all
|
63
|
-
of the hours and effort he put into making this feature request a reality.
|
64
|
-
|
65
|
-
=== New Features
|
66
|
-
* Ability to clean multiple database connections managed by the same ORM. (Jon Rowe)
|
67
|
-
* Ability to clean multiple DBs managed by different ORMs in same project. (Jon Rowe)
|
68
|
-
* Allows for the ActiveRecord config file (database.yml) to contain ERB and process it. (Fletcher Nichol)
|
69
|
-
* Mysql2Adapter support. (Kamal Fariz Mahyuddin and John Ferlito)
|
70
|
-
* Deletion strategy for ActiveRecord (Mikl Kurkov)
|
71
|
-
|
72
|
-
=== Bugfixes
|
73
|
-
* Updates the DataMapper truncation strategy to version 0.10.3. (Robert Rouse)
|
74
|
-
* Addresses Ruby 1.9 and 1.8 differences causing a bug in the AR PostgreSQLAdapter truncation strategy. (GH-14, James B. Byrne)
|
75
|
-
* Fixes syntax error that MySQL was throwing during DataMapper truncation. (Blake Gentry)
|
76
|
-
* Fixes truncation for PostgreSQL (Bodaniel Jeanes and Gabriel Sobrinho)
|
77
|
-
* Workaround for superclass mismatches for the ActiveRecord-jdbc-adapter (Toms Mikoss)
|
78
|
-
|
79
|
-
== 0.5.2
|
80
|
-
|
81
|
-
=== Bugfixes
|
82
|
-
* Removes extraneous puts call from configuration.rb. (Ben Mabey)
|
83
|
-
|
84
|
-
== 0.5.1 - The Mongoid Release
|
85
|
-
|
86
|
-
This release also attempts to fix AR for Rails 3 support. I have seen mixed reviews on this. Some people
|
87
|
-
claim the fixes allow for use in Rails3 while others have not had good luck with it. I plan on reworking
|
88
|
-
the way AR support is added so that it is more friendly with how Rails 3 uses autoload.
|
89
|
-
|
90
|
-
=== New features
|
91
|
-
* Clean and clean_with methods are now aliased to clean! and clean_with!. (Ben Mabey)
|
92
|
-
* Mongoid Support! (Sidney Burks)
|
93
|
-
|
94
|
-
=== Bugfixes
|
95
|
-
* Check PostgreSQL version >= 8.2 before using TRUNCATE CASCADE (James B. Byrne)
|
96
|
-
* Correct superclass is used in ActiveRecord connection adapters. (johnathan, Aslak Hellesoy, Ben Mabey)
|
97
|
-
|
98
|
-
== 0.5.0 2010-02-22 - The CouchPotato Release
|
99
|
-
|
100
|
-
=== New features
|
101
|
-
* Basic truncation support for CouchPotato / CouchDB. (Martin Rehfeld)
|
102
|
-
* SQLite3 on JRuby will fall back to delete if truncate doesn't work. (Darrin Holst)
|
103
|
-
* JDBC is used for ActiveRecord automaticaly when JRuby is detected. (Darrin Holst)
|
104
|
-
|
105
|
-
=== Bufixes
|
106
|
-
* MongoMapper truncation strategy now works with :only and :except options. (Ben Mabey)
|
107
|
-
|
108
|
-
== 0.4.3 2010-01-17
|
109
|
-
|
110
|
-
=== New features
|
111
|
-
* Truncation for ActiveRecord oracle_enhanced adapter. (Edgars Beigarts)
|
112
|
-
|
113
|
-
== 0.4.2 2010-01-12
|
114
|
-
|
115
|
-
=== Bufixes
|
116
|
-
* Datamapper truncation now uses 'select' instead of deprecated the 'query' method. (Steve Tooke)
|
117
|
-
|
118
|
-
== 0.4.1 2010-01-07
|
119
|
-
|
120
|
-
=== Bufixes
|
121
|
-
* Postgres tables with FKs now truncate (added TRUNCADE CASCADE) using Datamapper. (Ben Mabey)
|
122
|
-
|
123
|
-
== 0.4.0 2009-12-23 (The MongoMapper Edition)
|
124
|
-
|
125
|
-
=== New features
|
126
|
-
* MongoMapper support for the truncation strategy. (Aubrey Holland)
|
127
|
-
|
128
|
-
== 0.3.0 2009-12-20
|
129
|
-
|
130
|
-
=== New features
|
131
|
-
* DataMapper 0.10.0 Compatible. (Martin Gamsjaeger)
|
132
|
-
=== Bufixes
|
133
|
-
* Postgres tables with FKs now truncate (added TRUNCADE CASCADE). (Vika - yozhyk on github)
|
134
|
-
|
135
|
-
== 0.2.3 2009-05-30
|
136
|
-
|
137
|
-
=== New features
|
138
|
-
* Support for SQL Server truncation (Adam Meehan)
|
139
|
-
|
140
|
-
== 0.2.2 2009-05-08
|
141
|
-
=== Bufixes
|
142
|
-
* Added proper gemspec description and summary. (Ben Mabey, thanks to Martin Gamsjaeger)
|
143
|
-
|
144
|
-
=== New features
|
145
|
-
|
146
|
-
== 0.2.1 2009-05-08
|
147
|
-
=== Bufixes
|
148
|
-
* Removed extraneous TruncationBase class definition. (Ben Mabey)
|
149
|
-
|
150
|
-
== 0.2.0 2009-05-08 - The Datamapper Release
|
151
|
-
|
152
|
-
=== New features
|
153
|
-
* DataMapper strategies (Martin Gamsjaeger)
|
154
|
-
* Transaction
|
155
|
-
* Truncation - working SQLite3, MySQL adapters. Experimental Postgres adapter (not tested).
|
156
|
-
|
157
|
-
== 0.1.3 2009-04-30
|
158
|
-
|
159
|
-
=== New features
|
160
|
-
* PostgresSQLAdapter for AR to support the truncation strategy. (Alberto Perdomo)
|
161
|
-
=== Bufixes
|
162
|
-
* Added missing quotes around table names in truncation calls. (Michael MacDonald)
|
163
|
-
|
164
|
-
== 0.1.2 2009-03-05
|
165
|
-
=== New features
|
166
|
-
* JDBC Adapter to enable AR truncation strategy to work. (Kamal Fariz Mahyuddin)
|
167
|
-
|
168
|
-
== 0.1.1 2009-03-04 - Initial Release (Ben Mabey)
|
169
|
-
* Basic infrastructure
|
170
|
-
* Features, RSpec code examples
|
171
|
-
* ActiveRecord strategies
|
172
|
-
* Truncation - with MySQL, and SQLite3 adapters.
|
173
|
-
* Transaction - wrap your modifications and roll them back.
|
data/LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2009 Ben Mabey
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|