database_cleaner 1.6.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/database_cleaner.rb +1 -8
- metadata +18 -498
- data/CONTRIBUTE.markdown +0 -28
- data/Gemfile.lock +0 -286
- data/History.rdoc +0 -430
- data/LICENSE +0 -20
- data/README.markdown +0 -518
- data/Rakefile +0 -40
- data/TODO +0 -3
- data/VERSION.yml +0 -4
- data/cucumber.yml +0 -1
- data/examples/Gemfile +0 -1
- data/examples/Gemfile.lock +0 -1
- data/examples/config/database.yml.example +0 -8
- data/examples/config/redis.yml +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/neo4j_steps.rb +0 -23
- data/examples/features/step_definitions/ohm_steps.rb +0 -31
- data/examples/features/step_definitions/redis_steps.rb +0 -31
- data/examples/features/step_definitions/translation_steps.rb +0 -55
- data/examples/features/support/env.rb +0 -61
- 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 -44
- data/examples/lib/mongomapper_models.rb +0 -51
- data/examples/lib/neo4j_models.rb +0 -17
- data/examples/lib/ohm_models.rb +0 -43
- data/examples/lib/redis_models.rb +0 -65
- data/examples/lib/sequel_models.rb +0 -9
- data/features/cleaning.feature +0 -30
- data/features/cleaning_default_strategy.feature +0 -23
- data/features/cleaning_multiple_dbs.feature +0 -22
- data/features/cleaning_multiple_orms.feature +0 -67
- data/features/step_definitions/database_cleaner_steps.rb +0 -33
- data/features/support/env.rb +0 -4
- data/features/support/feature_runner.rb +0 -39
- data/lib/database_cleaner/active_record/base.rb +0 -92
- data/lib/database_cleaner/active_record/deletion.rb +0 -106
- data/lib/database_cleaner/active_record/transaction.rb +0 -59
- data/lib/database_cleaner/active_record/truncation.rb +0 -275
- data/lib/database_cleaner/base.rb +0 -164
- data/lib/database_cleaner/configuration.rb +0 -131
- 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 -3
- 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 -172
- data/lib/database_cleaner/generic/base.rb +0 -29
- data/lib/database_cleaner/generic/transaction.rb +0 -11
- data/lib/database_cleaner/generic/truncation.rb +0 -40
- data/lib/database_cleaner/mongo/base.rb +0 -16
- data/lib/database_cleaner/mongo/truncation.rb +0 -62
- data/lib/database_cleaner/mongo/truncation_mixin.rb +0 -26
- data/lib/database_cleaner/mongo2/base.rb +0 -16
- data/lib/database_cleaner/mongo2/truncation_mixin.rb +0 -39
- 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 -49
- data/lib/database_cleaner/moped/base.rb +0 -39
- data/lib/database_cleaner/moped/truncation.rb +0 -9
- data/lib/database_cleaner/moped/truncation_base.rb +0 -40
- data/lib/database_cleaner/neo4j/base.rb +0 -62
- data/lib/database_cleaner/neo4j/deletion.rb +0 -16
- data/lib/database_cleaner/neo4j/transaction.rb +0 -35
- data/lib/database_cleaner/neo4j/truncation.rb +0 -9
- data/lib/database_cleaner/null_strategy.rb +0 -20
- data/lib/database_cleaner/ohm/truncation.rb +0 -15
- data/lib/database_cleaner/redis/base.rb +0 -37
- data/lib/database_cleaner/redis/truncation.rb +0 -26
- data/lib/database_cleaner/sequel/base.rb +0 -22
- data/lib/database_cleaner/sequel/deletion.rb +0 -47
- data/lib/database_cleaner/sequel/transaction.rb +0 -40
- data/lib/database_cleaner/sequel/truncation.rb +0 -78
- data/spec/database_cleaner/active_record/base_spec.rb +0 -188
- data/spec/database_cleaner/active_record/transaction_spec.rb +0 -176
- data/spec/database_cleaner/active_record/truncation/mysql2_spec.rb +0 -38
- data/spec/database_cleaner/active_record/truncation/mysql_spec.rb +0 -38
- data/spec/database_cleaner/active_record/truncation/postgresql_spec.rb +0 -75
- data/spec/database_cleaner/active_record/truncation/shared_fast_truncation.rb +0 -40
- data/spec/database_cleaner/active_record/truncation/sqlite3_spec.rb +0 -40
- data/spec/database_cleaner/active_record/truncation_spec.rb +0 -180
- data/spec/database_cleaner/base_spec.rb +0 -617
- data/spec/database_cleaner/configuration_spec.rb +0 -345
- 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/sqlite3_spec.rb +0 -41
- data/spec/database_cleaner/data_mapper/truncation_spec.rb +0 -11
- data/spec/database_cleaner/generic/base_spec.rb +0 -61
- data/spec/database_cleaner/generic/truncation_spec.rb +0 -118
- data/spec/database_cleaner/mongo/mongo_examples.rb +0 -26
- data/spec/database_cleaner/mongo/truncation_spec.rb +0 -72
- 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/moped/moped_examples.rb +0 -32
- data/spec/database_cleaner/moped/truncation_spec.rb +0 -80
- data/spec/database_cleaner/neo4j/base_spec.rb +0 -43
- data/spec/database_cleaner/neo4j/transaction_spec.rb +0 -25
- data/spec/database_cleaner/null_strategy_spec.rb +0 -28
- data/spec/database_cleaner/ohm/truncation_spec.rb +0 -70
- data/spec/database_cleaner/redis/base_spec.rb +0 -43
- data/spec/database_cleaner/redis/truncation_spec.rb +0 -63
- data/spec/database_cleaner/sequel/base_spec.rb +0 -32
- data/spec/database_cleaner/sequel/deletion_spec.rb +0 -58
- data/spec/database_cleaner/sequel/transaction_spec.rb +0 -21
- data/spec/database_cleaner/sequel/truncation/sqlite3_spec.rb +0 -0
- data/spec/database_cleaner/sequel/truncation_spec.rb +0 -182
- data/spec/database_cleaner/shared_strategy.rb +0 -15
- data/spec/rcov.opts +0 -1
- data/spec/spec_helper.rb +0 -21
- data/spec/support/active_record/database_setup.rb +0 -6
- data/spec/support/active_record/migrations/20150101010000_create_users.rb +0 -14
- data/spec/support/active_record/migrations/20150101020000_create_agents.rb +0 -14
- data/spec/support/active_record/mysql2_setup.rb +0 -39
- data/spec/support/active_record/mysql_setup.rb +0 -38
- data/spec/support/active_record/postgresql_setup.rb +0 -48
- data/spec/support/active_record/schema_setup.rb +0 -17
- data/spec/support/active_record/sqlite3_setup.rb +0 -40
- data/spec/support/data_mapper/schema_setup.rb +0 -15
- data/spec/support/data_mapper/sqlite3_setup.rb +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9aca545a3e4930b02155d81de2e16486af36ad46612c4db298626655e7cbc3da
|
4
|
+
data.tar.gz: 62c9322a9f8273fac069d0591063668269c7884a840c8f973ffdf56009141f78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 976d5a0f065ff4b7d5024a3fecb57b5ec6d42ca77e931259bebc41c29eb8c36dd8bb694c6e39ab937f3501c41440886de234f1370ecc31b19eeca71e45208568
|
7
|
+
data.tar.gz: affde8759547d96c6b1bf662e79984f7c81595d338da43ec3ec45850338a2e623e33aa40c474afdb85b235bfa4e90e48b71f27e848c1b94a51cef6c3a4b29e8a
|
data/lib/database_cleaner.rb
CHANGED
@@ -1,8 +1 @@
|
|
1
|
-
|
2
|
-
require 'database_cleaner/configuration'
|
3
|
-
|
4
|
-
module DatabaseCleaner
|
5
|
-
def self.can_detect_orm?
|
6
|
-
DatabaseCleaner::Base.autodetect_orm
|
7
|
-
end
|
8
|
-
end
|
1
|
+
require "database_cleaner/active_record"
|
metadata
CHANGED
@@ -1,524 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Mabey
|
8
|
+
- Ernesto Tagwerker
|
9
|
+
- Micah Geisel
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date:
|
13
|
+
date: 2021-01-31 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: json_pure
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: activerecord-mysql2-adapter
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: activerecord
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: datamapper
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: dm-migrations
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: dm-sqlite-adapter
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
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
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: mongoid
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: tzinfo
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: mongoid-tree
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: mongo_mapper
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: moped
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: neo4j-core
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - ">="
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - ">="
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
209
|
-
- !ruby/object:Gem::Dependency
|
210
|
-
name: couch_potato
|
211
|
-
requirement: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - ">="
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: '0'
|
216
|
-
type: :development
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - ">="
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: '0'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: sequel
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: 3.21.0
|
230
|
-
type: :development
|
231
|
-
prerelease: false
|
232
|
-
version_requirements: !ruby/object:Gem::Requirement
|
233
|
-
requirements:
|
234
|
-
- - "~>"
|
235
|
-
- !ruby/object:Gem::Version
|
236
|
-
version: 3.21.0
|
237
|
-
- !ruby/object:Gem::Dependency
|
238
|
-
name: ohm
|
16
|
+
name: database_cleaner-active_record
|
239
17
|
requirement: !ruby/object:Gem::Requirement
|
240
18
|
requirements:
|
241
19
|
- - "~>"
|
242
20
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.
|
244
|
-
type: :
|
21
|
+
version: 2.0.0
|
22
|
+
type: :runtime
|
245
23
|
prerelease: false
|
246
24
|
version_requirements: !ruby/object:Gem::Requirement
|
247
25
|
requirements:
|
248
26
|
- - "~>"
|
249
27
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0.
|
251
|
-
|
252
|
-
name: guard-rspec
|
253
|
-
requirement: !ruby/object:Gem::Requirement
|
254
|
-
requirements:
|
255
|
-
- - ">="
|
256
|
-
- !ruby/object:Gem::Version
|
257
|
-
version: '0'
|
258
|
-
type: :development
|
259
|
-
prerelease: false
|
260
|
-
version_requirements: !ruby/object:Gem::Requirement
|
261
|
-
requirements:
|
262
|
-
- - ">="
|
263
|
-
- !ruby/object:Gem::Version
|
264
|
-
version: '0'
|
265
|
-
- !ruby/object:Gem::Dependency
|
266
|
-
name: rspec-rails
|
267
|
-
requirement: !ruby/object:Gem::Requirement
|
268
|
-
requirements:
|
269
|
-
- - "~>"
|
270
|
-
- !ruby/object:Gem::Version
|
271
|
-
version: 2.14.2
|
272
|
-
type: :development
|
273
|
-
prerelease: false
|
274
|
-
version_requirements: !ruby/object:Gem::Requirement
|
275
|
-
requirements:
|
276
|
-
- - "~>"
|
277
|
-
- !ruby/object:Gem::Version
|
278
|
-
version: 2.14.2
|
279
|
-
- !ruby/object:Gem::Dependency
|
280
|
-
name: cucumber
|
281
|
-
requirement: !ruby/object:Gem::Requirement
|
282
|
-
requirements:
|
283
|
-
- - ">="
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
version: '0'
|
286
|
-
type: :development
|
287
|
-
prerelease: false
|
288
|
-
version_requirements: !ruby/object:Gem::Requirement
|
289
|
-
requirements:
|
290
|
-
- - ">="
|
291
|
-
- !ruby/object:Gem::Version
|
292
|
-
version: '0'
|
293
|
-
- !ruby/object:Gem::Dependency
|
294
|
-
name: mongo_ext
|
295
|
-
requirement: !ruby/object:Gem::Requirement
|
296
|
-
requirements:
|
297
|
-
- - ">="
|
298
|
-
- !ruby/object:Gem::Version
|
299
|
-
version: '0'
|
300
|
-
type: :development
|
301
|
-
prerelease: false
|
302
|
-
version_requirements: !ruby/object:Gem::Requirement
|
303
|
-
requirements:
|
304
|
-
- - ">="
|
305
|
-
- !ruby/object:Gem::Version
|
306
|
-
version: '0'
|
307
|
-
- !ruby/object:Gem::Dependency
|
308
|
-
name: bson_ext
|
309
|
-
requirement: !ruby/object:Gem::Requirement
|
310
|
-
requirements:
|
311
|
-
- - ">="
|
312
|
-
- !ruby/object:Gem::Version
|
313
|
-
version: '0'
|
314
|
-
type: :development
|
315
|
-
prerelease: false
|
316
|
-
version_requirements: !ruby/object:Gem::Requirement
|
317
|
-
requirements:
|
318
|
-
- - ">="
|
319
|
-
- !ruby/object:Gem::Version
|
320
|
-
version: '0'
|
321
|
-
- !ruby/object:Gem::Dependency
|
322
|
-
name: mysql
|
323
|
-
requirement: !ruby/object:Gem::Requirement
|
324
|
-
requirements:
|
325
|
-
- - "~>"
|
326
|
-
- !ruby/object:Gem::Version
|
327
|
-
version: 2.9.1
|
328
|
-
type: :development
|
329
|
-
prerelease: false
|
330
|
-
version_requirements: !ruby/object:Gem::Requirement
|
331
|
-
requirements:
|
332
|
-
- - "~>"
|
333
|
-
- !ruby/object:Gem::Version
|
334
|
-
version: 2.9.1
|
335
|
-
- !ruby/object:Gem::Dependency
|
336
|
-
name: mysql2
|
337
|
-
requirement: !ruby/object:Gem::Requirement
|
338
|
-
requirements:
|
339
|
-
- - ">="
|
340
|
-
- !ruby/object:Gem::Version
|
341
|
-
version: '0'
|
342
|
-
type: :development
|
343
|
-
prerelease: false
|
344
|
-
version_requirements: !ruby/object:Gem::Requirement
|
345
|
-
requirements:
|
346
|
-
- - ">="
|
347
|
-
- !ruby/object:Gem::Version
|
348
|
-
version: '0'
|
349
|
-
- !ruby/object:Gem::Dependency
|
350
|
-
name: pg
|
351
|
-
requirement: !ruby/object:Gem::Requirement
|
352
|
-
requirements:
|
353
|
-
- - ">="
|
354
|
-
- !ruby/object:Gem::Version
|
355
|
-
version: '0'
|
356
|
-
type: :development
|
357
|
-
prerelease: false
|
358
|
-
version_requirements: !ruby/object:Gem::Requirement
|
359
|
-
requirements:
|
360
|
-
- - ">="
|
361
|
-
- !ruby/object:Gem::Version
|
362
|
-
version: '0'
|
363
|
-
- !ruby/object:Gem::Dependency
|
364
|
-
name: sqlite3
|
365
|
-
requirement: !ruby/object:Gem::Requirement
|
366
|
-
requirements:
|
367
|
-
- - ">="
|
368
|
-
- !ruby/object:Gem::Version
|
369
|
-
version: '0'
|
370
|
-
type: :development
|
371
|
-
prerelease: false
|
372
|
-
version_requirements: !ruby/object:Gem::Requirement
|
373
|
-
requirements:
|
374
|
-
- - ">="
|
375
|
-
- !ruby/object:Gem::Version
|
376
|
-
version: '0'
|
377
|
-
description: Strategies for cleaning databases. Can be used to ensure a clean state
|
28
|
+
version: 2.0.0
|
29
|
+
description: Strategies for cleaning databases. Can be used to ensure a clean slate
|
378
30
|
for testing.
|
379
|
-
email:
|
31
|
+
email:
|
32
|
+
- ernesto@ombulabs.com
|
380
33
|
executables: []
|
381
34
|
extensions: []
|
382
|
-
extra_rdoc_files:
|
383
|
-
- LICENSE
|
384
|
-
- README.markdown
|
385
|
-
- TODO
|
35
|
+
extra_rdoc_files: []
|
386
36
|
files:
|
387
|
-
- CONTRIBUTE.markdown
|
388
|
-
- Gemfile.lock
|
389
|
-
- History.rdoc
|
390
|
-
- LICENSE
|
391
|
-
- README.markdown
|
392
|
-
- Rakefile
|
393
|
-
- TODO
|
394
|
-
- VERSION.yml
|
395
|
-
- cucumber.yml
|
396
|
-
- examples/Gemfile
|
397
|
-
- examples/Gemfile.lock
|
398
|
-
- examples/config/database.yml.example
|
399
|
-
- examples/config/redis.yml
|
400
|
-
- examples/db/sqlite_databases_go_here
|
401
|
-
- examples/features/example.feature
|
402
|
-
- examples/features/example_multiple_db.feature
|
403
|
-
- examples/features/example_multiple_orm.feature
|
404
|
-
- examples/features/step_definitions/activerecord_steps.rb
|
405
|
-
- examples/features/step_definitions/couchpotato_steps.rb
|
406
|
-
- examples/features/step_definitions/datamapper_steps.rb
|
407
|
-
- examples/features/step_definitions/mongoid_steps.rb
|
408
|
-
- examples/features/step_definitions/mongomapper_steps.rb
|
409
|
-
- examples/features/step_definitions/neo4j_steps.rb
|
410
|
-
- examples/features/step_definitions/ohm_steps.rb
|
411
|
-
- examples/features/step_definitions/redis_steps.rb
|
412
|
-
- examples/features/step_definitions/translation_steps.rb
|
413
|
-
- examples/features/support/env.rb
|
414
|
-
- examples/lib/activerecord_models.rb
|
415
|
-
- examples/lib/couchpotato_models.rb
|
416
|
-
- examples/lib/datamapper_models.rb
|
417
|
-
- examples/lib/mongoid_models.rb
|
418
|
-
- examples/lib/mongomapper_models.rb
|
419
|
-
- examples/lib/neo4j_models.rb
|
420
|
-
- examples/lib/ohm_models.rb
|
421
|
-
- examples/lib/redis_models.rb
|
422
|
-
- examples/lib/sequel_models.rb
|
423
|
-
- features/cleaning.feature
|
424
|
-
- features/cleaning_default_strategy.feature
|
425
|
-
- features/cleaning_multiple_dbs.feature
|
426
|
-
- features/cleaning_multiple_orms.feature
|
427
|
-
- features/step_definitions/database_cleaner_steps.rb
|
428
|
-
- features/support/env.rb
|
429
|
-
- features/support/feature_runner.rb
|
430
37
|
- lib/database_cleaner.rb
|
431
|
-
|
432
|
-
- lib/database_cleaner/active_record/deletion.rb
|
433
|
-
- lib/database_cleaner/active_record/transaction.rb
|
434
|
-
- lib/database_cleaner/active_record/truncation.rb
|
435
|
-
- lib/database_cleaner/base.rb
|
436
|
-
- lib/database_cleaner/configuration.rb
|
437
|
-
- lib/database_cleaner/couch_potato/base.rb
|
438
|
-
- lib/database_cleaner/couch_potato/truncation.rb
|
439
|
-
- lib/database_cleaner/cucumber.rb
|
440
|
-
- lib/database_cleaner/data_mapper/base.rb
|
441
|
-
- lib/database_cleaner/data_mapper/transaction.rb
|
442
|
-
- lib/database_cleaner/data_mapper/truncation.rb
|
443
|
-
- lib/database_cleaner/generic/base.rb
|
444
|
-
- lib/database_cleaner/generic/transaction.rb
|
445
|
-
- lib/database_cleaner/generic/truncation.rb
|
446
|
-
- lib/database_cleaner/mongo/base.rb
|
447
|
-
- lib/database_cleaner/mongo/truncation.rb
|
448
|
-
- lib/database_cleaner/mongo/truncation_mixin.rb
|
449
|
-
- lib/database_cleaner/mongo2/base.rb
|
450
|
-
- lib/database_cleaner/mongo2/truncation_mixin.rb
|
451
|
-
- lib/database_cleaner/mongo_mapper/base.rb
|
452
|
-
- lib/database_cleaner/mongo_mapper/truncation.rb
|
453
|
-
- lib/database_cleaner/mongoid/base.rb
|
454
|
-
- lib/database_cleaner/mongoid/truncation.rb
|
455
|
-
- lib/database_cleaner/moped/base.rb
|
456
|
-
- lib/database_cleaner/moped/truncation.rb
|
457
|
-
- lib/database_cleaner/moped/truncation_base.rb
|
458
|
-
- lib/database_cleaner/neo4j/base.rb
|
459
|
-
- lib/database_cleaner/neo4j/deletion.rb
|
460
|
-
- lib/database_cleaner/neo4j/transaction.rb
|
461
|
-
- lib/database_cleaner/neo4j/truncation.rb
|
462
|
-
- lib/database_cleaner/null_strategy.rb
|
463
|
-
- lib/database_cleaner/ohm/truncation.rb
|
464
|
-
- lib/database_cleaner/redis/base.rb
|
465
|
-
- lib/database_cleaner/redis/truncation.rb
|
466
|
-
- lib/database_cleaner/sequel/base.rb
|
467
|
-
- lib/database_cleaner/sequel/deletion.rb
|
468
|
-
- lib/database_cleaner/sequel/transaction.rb
|
469
|
-
- lib/database_cleaner/sequel/truncation.rb
|
470
|
-
- spec/database_cleaner/active_record/base_spec.rb
|
471
|
-
- spec/database_cleaner/active_record/transaction_spec.rb
|
472
|
-
- spec/database_cleaner/active_record/truncation/mysql2_spec.rb
|
473
|
-
- spec/database_cleaner/active_record/truncation/mysql_spec.rb
|
474
|
-
- spec/database_cleaner/active_record/truncation/postgresql_spec.rb
|
475
|
-
- spec/database_cleaner/active_record/truncation/shared_fast_truncation.rb
|
476
|
-
- spec/database_cleaner/active_record/truncation/sqlite3_spec.rb
|
477
|
-
- spec/database_cleaner/active_record/truncation_spec.rb
|
478
|
-
- spec/database_cleaner/base_spec.rb
|
479
|
-
- spec/database_cleaner/configuration_spec.rb
|
480
|
-
- spec/database_cleaner/couch_potato/truncation_spec.rb
|
481
|
-
- spec/database_cleaner/data_mapper/base_spec.rb
|
482
|
-
- spec/database_cleaner/data_mapper/transaction_spec.rb
|
483
|
-
- spec/database_cleaner/data_mapper/truncation/sqlite3_spec.rb
|
484
|
-
- spec/database_cleaner/data_mapper/truncation_spec.rb
|
485
|
-
- spec/database_cleaner/generic/base_spec.rb
|
486
|
-
- spec/database_cleaner/generic/truncation_spec.rb
|
487
|
-
- spec/database_cleaner/mongo/mongo_examples.rb
|
488
|
-
- spec/database_cleaner/mongo/truncation_spec.rb
|
489
|
-
- spec/database_cleaner/mongo_mapper/base_spec.rb
|
490
|
-
- spec/database_cleaner/mongo_mapper/mongo_examples.rb
|
491
|
-
- spec/database_cleaner/mongo_mapper/truncation_spec.rb
|
492
|
-
- spec/database_cleaner/moped/moped_examples.rb
|
493
|
-
- spec/database_cleaner/moped/truncation_spec.rb
|
494
|
-
- spec/database_cleaner/neo4j/base_spec.rb
|
495
|
-
- spec/database_cleaner/neo4j/transaction_spec.rb
|
496
|
-
- spec/database_cleaner/null_strategy_spec.rb
|
497
|
-
- spec/database_cleaner/ohm/truncation_spec.rb
|
498
|
-
- spec/database_cleaner/redis/base_spec.rb
|
499
|
-
- spec/database_cleaner/redis/truncation_spec.rb
|
500
|
-
- spec/database_cleaner/sequel/base_spec.rb
|
501
|
-
- spec/database_cleaner/sequel/deletion_spec.rb
|
502
|
-
- spec/database_cleaner/sequel/transaction_spec.rb
|
503
|
-
- spec/database_cleaner/sequel/truncation/sqlite3_spec.rb
|
504
|
-
- spec/database_cleaner/sequel/truncation_spec.rb
|
505
|
-
- spec/database_cleaner/shared_strategy.rb
|
506
|
-
- spec/rcov.opts
|
507
|
-
- spec/spec_helper.rb
|
508
|
-
- spec/support/active_record/database_setup.rb
|
509
|
-
- spec/support/active_record/migrations/20150101010000_create_users.rb
|
510
|
-
- spec/support/active_record/migrations/20150101020000_create_agents.rb
|
511
|
-
- spec/support/active_record/mysql2_setup.rb
|
512
|
-
- spec/support/active_record/mysql_setup.rb
|
513
|
-
- spec/support/active_record/postgresql_setup.rb
|
514
|
-
- spec/support/active_record/schema_setup.rb
|
515
|
-
- spec/support/active_record/sqlite3_setup.rb
|
516
|
-
- spec/support/data_mapper/schema_setup.rb
|
517
|
-
- spec/support/data_mapper/sqlite3_setup.rb
|
518
|
-
homepage: http://github.com/DatabaseCleaner/database_cleaner
|
38
|
+
homepage: https://github.com/DatabaseCleaner/database_cleaner
|
519
39
|
licenses:
|
520
40
|
- MIT
|
521
|
-
metadata:
|
41
|
+
metadata:
|
42
|
+
changelog_uri: https://github.com/DatabaseCleaner/database_cleaner/blob/master/History.rdoc
|
522
43
|
post_install_message:
|
523
44
|
rdoc_options: []
|
524
45
|
require_paths:
|
@@ -527,17 +48,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
527
48
|
requirements:
|
528
49
|
- - ">="
|
529
50
|
- !ruby/object:Gem::Version
|
530
|
-
version:
|
51
|
+
version: '0'
|
531
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
532
53
|
requirements:
|
533
54
|
- - ">="
|
534
55
|
- !ruby/object:Gem::Version
|
535
56
|
version: '0'
|
536
57
|
requirements: []
|
537
|
-
|
538
|
-
rubygems_version: 2.6.8
|
58
|
+
rubygems_version: 3.0.8
|
539
59
|
signing_key:
|
540
60
|
specification_version: 4
|
541
|
-
summary: Strategies for cleaning databases.
|
61
|
+
summary: Strategies for cleaning databases. Can be used to ensure a clean slate for
|
542
62
|
testing.
|
543
63
|
test_files: []
|
data/CONTRIBUTE.markdown
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# Guidelines for contributing
|
2
|
-
|
3
|
-
## 1. Fork & Clone
|
4
|
-
|
5
|
-
Since you probably don't have rights to the main repo, you should Fork it (big
|
6
|
-
button up top). After that, clone your fork locally and optionally add an
|
7
|
-
upstream:
|
8
|
-
|
9
|
-
git remote add upstream git@github.com:DatabaseCleaner/database_cleaner.git
|
10
|
-
|
11
|
-
## 2. Make sure the tests run fine
|
12
|
-
|
13
|
-
- `bundle install`
|
14
|
-
- Copy `db/sample.config.yml` to `db/config.yml` and edit it
|
15
|
-
- Make sure to create the databases specified in `db/config.yml`
|
16
|
-
- Run the tests with `bundle exec rspec`
|
17
|
-
|
18
|
-
Note that if you don't have all the supported databases installed and running,
|
19
|
-
some tests will fail.
|
20
|
-
|
21
|
-
## 3. Prepare your contribution
|
22
|
-
|
23
|
-
This is all up to you but a few points should be kept in mind:
|
24
|
-
|
25
|
-
- Please write tests for your contribution
|
26
|
-
- Make sure that previous tests still pass
|
27
|
-
- Push it to a branch of your fork
|
28
|
-
- Submit a pull request
|