database_cleaner 1.7.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/database_cleaner.rb +1 -12
- metadata +24 -418
- data/CONTRIBUTE.markdown +0 -28
- data/Gemfile.lock +0 -286
- data/History.rdoc +0 -453
- data/LICENSE +0 -20
- data/README.markdown +0 -541
- data/Rakefile +0 -40
- data/TODO +0 -3
- data/VERSION.yml +0 -4
- data/cucumber.yml +0 -1
- data/lib/database_cleaner/active_record/base.rb +0 -92
- data/lib/database_cleaner/active_record/deletion.rb +0 -108
- 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 -166
- 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/safeguard.rb +0 -72
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ce53e3f6a07590e78b37b6821678261b1b884b6fb9827679ea681cbeae05e31
|
4
|
+
data.tar.gz: c895adbdb206619041e3fadd04c5c551d1abfbc52a896c8346405b928fcb549b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 828864763948dc298c50f05de23e255d3444752c7ca68ab5282748a0db7a575070018c71aaa7d9fe3b14014a93c6749dab628d2821e26f8a7e23863d72358e1a
|
7
|
+
data.tar.gz: 84ce869714b3606b4dcc38183492cf118a77262a1156cee0935476e29e663088909eb5d966ae9344de1d739d1298d5962f41ee58b5244afd77ae5f6fff6ec689
|
data/lib/database_cleaner.rb
CHANGED
@@ -1,12 +1 @@
|
|
1
|
-
|
2
|
-
require 'database_cleaner/configuration'
|
3
|
-
|
4
|
-
module DatabaseCleaner
|
5
|
-
class << self
|
6
|
-
attr_accessor :allow_remote_database_url, :allow_production
|
7
|
-
|
8
|
-
def can_detect_orm?
|
9
|
-
DatabaseCleaner::Base.autodetect_orm
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
1
|
+
require "database_cleaner/active_record"
|
metadata
CHANGED
@@ -1,445 +1,52 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Mabey
|
8
8
|
- Ernesto Tagwerker
|
9
|
-
|
9
|
+
- Micah Geisel
|
10
|
+
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2023-03-10 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
+
name: database_cleaner-active_record
|
16
17
|
requirement: !ruby/object:Gem::Requirement
|
17
18
|
requirements:
|
18
19
|
- - ">="
|
19
20
|
- !ruby/object:Gem::Version
|
20
|
-
version: '
|
21
|
-
|
22
|
-
prerelease: false
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: bundler
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - ">="
|
21
|
+
version: '2'
|
22
|
+
- - "<"
|
33
23
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
35
|
-
type: :
|
24
|
+
version: '3'
|
25
|
+
type: :runtime
|
36
26
|
prerelease: false
|
37
27
|
version_requirements: !ruby/object:Gem::Requirement
|
38
28
|
requirements:
|
39
29
|
- - ">="
|
40
30
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
42
|
-
-
|
43
|
-
name: json_pure
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
31
|
+
version: '2'
|
32
|
+
- - "<"
|
47
33
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
49
|
-
|
50
|
-
prerelease: false
|
51
|
-
version_requirements: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - ">="
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: '0'
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: activerecord-mysql2-adapter
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - ">="
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0'
|
63
|
-
type: :development
|
64
|
-
prerelease: false
|
65
|
-
version_requirements: !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
|
-
- !ruby/object:Gem::Dependency
|
71
|
-
name: activerecord
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
73
|
-
requirements:
|
74
|
-
- - ">="
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
version: '0'
|
77
|
-
type: :development
|
78
|
-
prerelease: false
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
80
|
-
requirements:
|
81
|
-
- - ">="
|
82
|
-
- !ruby/object:Gem::Version
|
83
|
-
version: '0'
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: datamapper
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - ">="
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - ">="
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: dm-migrations
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - ">="
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: '0'
|
105
|
-
type: :development
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - ">="
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: '0'
|
112
|
-
- !ruby/object:Gem::Dependency
|
113
|
-
name: dm-sqlite-adapter
|
114
|
-
requirement: !ruby/object:Gem::Requirement
|
115
|
-
requirements:
|
116
|
-
- - ">="
|
117
|
-
- !ruby/object:Gem::Version
|
118
|
-
version: '0'
|
119
|
-
type: :development
|
120
|
-
prerelease: false
|
121
|
-
version_requirements: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - ">="
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
126
|
-
- !ruby/object:Gem::Dependency
|
127
|
-
name: mongoid
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
requirements:
|
130
|
-
- - ">="
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
133
|
-
type: :development
|
134
|
-
prerelease: false
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
136
|
-
requirements:
|
137
|
-
- - ">="
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
140
|
-
- !ruby/object:Gem::Dependency
|
141
|
-
name: tzinfo
|
142
|
-
requirement: !ruby/object:Gem::Requirement
|
143
|
-
requirements:
|
144
|
-
- - ">="
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
version: '0'
|
147
|
-
type: :development
|
148
|
-
prerelease: false
|
149
|
-
version_requirements: !ruby/object:Gem::Requirement
|
150
|
-
requirements:
|
151
|
-
- - ">="
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: mongoid-tree
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
requirements:
|
158
|
-
- - ">="
|
159
|
-
- !ruby/object:Gem::Version
|
160
|
-
version: '0'
|
161
|
-
type: :development
|
162
|
-
prerelease: false
|
163
|
-
version_requirements: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - ">="
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '0'
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: mongo_mapper
|
170
|
-
requirement: !ruby/object:Gem::Requirement
|
171
|
-
requirements:
|
172
|
-
- - ">="
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: '0'
|
175
|
-
type: :development
|
176
|
-
prerelease: false
|
177
|
-
version_requirements: !ruby/object:Gem::Requirement
|
178
|
-
requirements:
|
179
|
-
- - ">="
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: '0'
|
182
|
-
- !ruby/object:Gem::Dependency
|
183
|
-
name: moped
|
184
|
-
requirement: !ruby/object:Gem::Requirement
|
185
|
-
requirements:
|
186
|
-
- - ">="
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: '0'
|
189
|
-
type: :development
|
190
|
-
prerelease: false
|
191
|
-
version_requirements: !ruby/object:Gem::Requirement
|
192
|
-
requirements:
|
193
|
-
- - ">="
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: '0'
|
196
|
-
- !ruby/object:Gem::Dependency
|
197
|
-
name: neo4j-core
|
198
|
-
requirement: !ruby/object:Gem::Requirement
|
199
|
-
requirements:
|
200
|
-
- - ">="
|
201
|
-
- !ruby/object:Gem::Version
|
202
|
-
version: '0'
|
203
|
-
type: :development
|
204
|
-
prerelease: false
|
205
|
-
version_requirements: !ruby/object:Gem::Requirement
|
206
|
-
requirements:
|
207
|
-
- - ">="
|
208
|
-
- !ruby/object:Gem::Version
|
209
|
-
version: '0'
|
210
|
-
- !ruby/object:Gem::Dependency
|
211
|
-
name: couch_potato
|
212
|
-
requirement: !ruby/object:Gem::Requirement
|
213
|
-
requirements:
|
214
|
-
- - ">="
|
215
|
-
- !ruby/object:Gem::Version
|
216
|
-
version: '0'
|
217
|
-
type: :development
|
218
|
-
prerelease: false
|
219
|
-
version_requirements: !ruby/object:Gem::Requirement
|
220
|
-
requirements:
|
221
|
-
- - ">="
|
222
|
-
- !ruby/object:Gem::Version
|
223
|
-
version: '0'
|
224
|
-
- !ruby/object:Gem::Dependency
|
225
|
-
name: sequel
|
226
|
-
requirement: !ruby/object:Gem::Requirement
|
227
|
-
requirements:
|
228
|
-
- - "~>"
|
229
|
-
- !ruby/object:Gem::Version
|
230
|
-
version: 3.21.0
|
231
|
-
type: :development
|
232
|
-
prerelease: false
|
233
|
-
version_requirements: !ruby/object:Gem::Requirement
|
234
|
-
requirements:
|
235
|
-
- - "~>"
|
236
|
-
- !ruby/object:Gem::Version
|
237
|
-
version: 3.21.0
|
238
|
-
- !ruby/object:Gem::Dependency
|
239
|
-
name: ohm
|
240
|
-
requirement: !ruby/object:Gem::Requirement
|
241
|
-
requirements:
|
242
|
-
- - "~>"
|
243
|
-
- !ruby/object:Gem::Version
|
244
|
-
version: 0.1.3
|
245
|
-
type: :development
|
246
|
-
prerelease: false
|
247
|
-
version_requirements: !ruby/object:Gem::Requirement
|
248
|
-
requirements:
|
249
|
-
- - "~>"
|
250
|
-
- !ruby/object:Gem::Version
|
251
|
-
version: 0.1.3
|
252
|
-
- !ruby/object:Gem::Dependency
|
253
|
-
name: guard-rspec
|
254
|
-
requirement: !ruby/object:Gem::Requirement
|
255
|
-
requirements:
|
256
|
-
- - ">="
|
257
|
-
- !ruby/object:Gem::Version
|
258
|
-
version: '0'
|
259
|
-
type: :development
|
260
|
-
prerelease: false
|
261
|
-
version_requirements: !ruby/object:Gem::Requirement
|
262
|
-
requirements:
|
263
|
-
- - ">="
|
264
|
-
- !ruby/object:Gem::Version
|
265
|
-
version: '0'
|
266
|
-
- !ruby/object:Gem::Dependency
|
267
|
-
name: rspec-rails
|
268
|
-
requirement: !ruby/object:Gem::Requirement
|
269
|
-
requirements:
|
270
|
-
- - "~>"
|
271
|
-
- !ruby/object:Gem::Version
|
272
|
-
version: 2.14.2
|
273
|
-
type: :development
|
274
|
-
prerelease: false
|
275
|
-
version_requirements: !ruby/object:Gem::Requirement
|
276
|
-
requirements:
|
277
|
-
- - "~>"
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
version: 2.14.2
|
280
|
-
- !ruby/object:Gem::Dependency
|
281
|
-
name: cucumber
|
282
|
-
requirement: !ruby/object:Gem::Requirement
|
283
|
-
requirements:
|
284
|
-
- - ">="
|
285
|
-
- !ruby/object:Gem::Version
|
286
|
-
version: '0'
|
287
|
-
type: :development
|
288
|
-
prerelease: false
|
289
|
-
version_requirements: !ruby/object:Gem::Requirement
|
290
|
-
requirements:
|
291
|
-
- - ">="
|
292
|
-
- !ruby/object:Gem::Version
|
293
|
-
version: '0'
|
294
|
-
- !ruby/object:Gem::Dependency
|
295
|
-
name: mongo_ext
|
296
|
-
requirement: !ruby/object:Gem::Requirement
|
297
|
-
requirements:
|
298
|
-
- - ">="
|
299
|
-
- !ruby/object:Gem::Version
|
300
|
-
version: '0'
|
301
|
-
type: :development
|
302
|
-
prerelease: false
|
303
|
-
version_requirements: !ruby/object:Gem::Requirement
|
304
|
-
requirements:
|
305
|
-
- - ">="
|
306
|
-
- !ruby/object:Gem::Version
|
307
|
-
version: '0'
|
308
|
-
- !ruby/object:Gem::Dependency
|
309
|
-
name: bson_ext
|
310
|
-
requirement: !ruby/object:Gem::Requirement
|
311
|
-
requirements:
|
312
|
-
- - ">="
|
313
|
-
- !ruby/object:Gem::Version
|
314
|
-
version: '0'
|
315
|
-
type: :development
|
316
|
-
prerelease: false
|
317
|
-
version_requirements: !ruby/object:Gem::Requirement
|
318
|
-
requirements:
|
319
|
-
- - ">="
|
320
|
-
- !ruby/object:Gem::Version
|
321
|
-
version: '0'
|
322
|
-
- !ruby/object:Gem::Dependency
|
323
|
-
name: mysql
|
324
|
-
requirement: !ruby/object:Gem::Requirement
|
325
|
-
requirements:
|
326
|
-
- - "~>"
|
327
|
-
- !ruby/object:Gem::Version
|
328
|
-
version: 2.9.1
|
329
|
-
type: :development
|
330
|
-
prerelease: false
|
331
|
-
version_requirements: !ruby/object:Gem::Requirement
|
332
|
-
requirements:
|
333
|
-
- - "~>"
|
334
|
-
- !ruby/object:Gem::Version
|
335
|
-
version: 2.9.1
|
336
|
-
- !ruby/object:Gem::Dependency
|
337
|
-
name: mysql2
|
338
|
-
requirement: !ruby/object:Gem::Requirement
|
339
|
-
requirements:
|
340
|
-
- - ">="
|
341
|
-
- !ruby/object:Gem::Version
|
342
|
-
version: '0'
|
343
|
-
type: :development
|
344
|
-
prerelease: false
|
345
|
-
version_requirements: !ruby/object:Gem::Requirement
|
346
|
-
requirements:
|
347
|
-
- - ">="
|
348
|
-
- !ruby/object:Gem::Version
|
349
|
-
version: '0'
|
350
|
-
- !ruby/object:Gem::Dependency
|
351
|
-
name: pg
|
352
|
-
requirement: !ruby/object:Gem::Requirement
|
353
|
-
requirements:
|
354
|
-
- - ">="
|
355
|
-
- !ruby/object:Gem::Version
|
356
|
-
version: '0'
|
357
|
-
type: :development
|
358
|
-
prerelease: false
|
359
|
-
version_requirements: !ruby/object:Gem::Requirement
|
360
|
-
requirements:
|
361
|
-
- - ">="
|
362
|
-
- !ruby/object:Gem::Version
|
363
|
-
version: '0'
|
364
|
-
- !ruby/object:Gem::Dependency
|
365
|
-
name: sqlite3
|
366
|
-
requirement: !ruby/object:Gem::Requirement
|
367
|
-
requirements:
|
368
|
-
- - ">="
|
369
|
-
- !ruby/object:Gem::Version
|
370
|
-
version: '0'
|
371
|
-
type: :development
|
372
|
-
prerelease: false
|
373
|
-
version_requirements: !ruby/object:Gem::Requirement
|
374
|
-
requirements:
|
375
|
-
- - ">="
|
376
|
-
- !ruby/object:Gem::Version
|
377
|
-
version: '0'
|
378
|
-
description: Strategies for cleaning databases. Can be used to ensure a clean state
|
34
|
+
version: '3'
|
35
|
+
description: Strategies for cleaning databases. Can be used to ensure a clean slate
|
379
36
|
for testing.
|
380
|
-
email:
|
37
|
+
email:
|
38
|
+
- ernesto@ombulabs.com
|
381
39
|
executables: []
|
382
40
|
extensions: []
|
383
|
-
extra_rdoc_files:
|
384
|
-
- LICENSE
|
385
|
-
- README.markdown
|
386
|
-
- TODO
|
41
|
+
extra_rdoc_files: []
|
387
42
|
files:
|
388
|
-
- CONTRIBUTE.markdown
|
389
|
-
- Gemfile.lock
|
390
|
-
- History.rdoc
|
391
|
-
- LICENSE
|
392
|
-
- README.markdown
|
393
|
-
- Rakefile
|
394
|
-
- TODO
|
395
|
-
- VERSION.yml
|
396
|
-
- cucumber.yml
|
397
43
|
- lib/database_cleaner.rb
|
398
|
-
|
399
|
-
- lib/database_cleaner/active_record/deletion.rb
|
400
|
-
- lib/database_cleaner/active_record/transaction.rb
|
401
|
-
- lib/database_cleaner/active_record/truncation.rb
|
402
|
-
- lib/database_cleaner/base.rb
|
403
|
-
- lib/database_cleaner/configuration.rb
|
404
|
-
- lib/database_cleaner/couch_potato/base.rb
|
405
|
-
- lib/database_cleaner/couch_potato/truncation.rb
|
406
|
-
- lib/database_cleaner/cucumber.rb
|
407
|
-
- lib/database_cleaner/data_mapper/base.rb
|
408
|
-
- lib/database_cleaner/data_mapper/transaction.rb
|
409
|
-
- lib/database_cleaner/data_mapper/truncation.rb
|
410
|
-
- lib/database_cleaner/generic/base.rb
|
411
|
-
- lib/database_cleaner/generic/transaction.rb
|
412
|
-
- lib/database_cleaner/generic/truncation.rb
|
413
|
-
- lib/database_cleaner/mongo/base.rb
|
414
|
-
- lib/database_cleaner/mongo/truncation.rb
|
415
|
-
- lib/database_cleaner/mongo/truncation_mixin.rb
|
416
|
-
- lib/database_cleaner/mongo2/base.rb
|
417
|
-
- lib/database_cleaner/mongo2/truncation_mixin.rb
|
418
|
-
- lib/database_cleaner/mongo_mapper/base.rb
|
419
|
-
- lib/database_cleaner/mongo_mapper/truncation.rb
|
420
|
-
- lib/database_cleaner/mongoid/base.rb
|
421
|
-
- lib/database_cleaner/mongoid/truncation.rb
|
422
|
-
- lib/database_cleaner/moped/base.rb
|
423
|
-
- lib/database_cleaner/moped/truncation.rb
|
424
|
-
- lib/database_cleaner/moped/truncation_base.rb
|
425
|
-
- lib/database_cleaner/neo4j/base.rb
|
426
|
-
- lib/database_cleaner/neo4j/deletion.rb
|
427
|
-
- lib/database_cleaner/neo4j/transaction.rb
|
428
|
-
- lib/database_cleaner/neo4j/truncation.rb
|
429
|
-
- lib/database_cleaner/null_strategy.rb
|
430
|
-
- lib/database_cleaner/ohm/truncation.rb
|
431
|
-
- lib/database_cleaner/redis/base.rb
|
432
|
-
- lib/database_cleaner/redis/truncation.rb
|
433
|
-
- lib/database_cleaner/safeguard.rb
|
434
|
-
- lib/database_cleaner/sequel/base.rb
|
435
|
-
- lib/database_cleaner/sequel/deletion.rb
|
436
|
-
- lib/database_cleaner/sequel/transaction.rb
|
437
|
-
- lib/database_cleaner/sequel/truncation.rb
|
438
|
-
homepage: http://github.com/DatabaseCleaner/database_cleaner
|
44
|
+
homepage: https://github.com/DatabaseCleaner/database_cleaner
|
439
45
|
licenses:
|
440
46
|
- MIT
|
441
|
-
metadata:
|
442
|
-
|
47
|
+
metadata:
|
48
|
+
changelog_uri: https://github.com/DatabaseCleaner/database_cleaner/blob/master/History.rdoc
|
49
|
+
post_install_message:
|
443
50
|
rdoc_options: []
|
444
51
|
require_paths:
|
445
52
|
- lib
|
@@ -447,17 +54,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
447
54
|
requirements:
|
448
55
|
- - ">="
|
449
56
|
- !ruby/object:Gem::Version
|
450
|
-
version:
|
57
|
+
version: '0'
|
451
58
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
452
59
|
requirements:
|
453
60
|
- - ">="
|
454
61
|
- !ruby/object:Gem::Version
|
455
62
|
version: '0'
|
456
63
|
requirements: []
|
457
|
-
|
458
|
-
|
459
|
-
signing_key:
|
64
|
+
rubygems_version: 3.1.4
|
65
|
+
signing_key:
|
460
66
|
specification_version: 4
|
461
|
-
summary: Strategies for cleaning databases.
|
67
|
+
summary: Strategies for cleaning databases. Can be used to ensure a clean slate for
|
462
68
|
testing.
|
463
69
|
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
|