database_cleaner 1.7.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/database_cleaner.rb +1 -12
  3. metadata +17 -417
  4. data/CONTRIBUTE.markdown +0 -28
  5. data/Gemfile.lock +0 -286
  6. data/History.rdoc +0 -453
  7. data/LICENSE +0 -20
  8. data/README.markdown +0 -541
  9. data/Rakefile +0 -40
  10. data/TODO +0 -3
  11. data/VERSION.yml +0 -4
  12. data/cucumber.yml +0 -1
  13. data/lib/database_cleaner/active_record/base.rb +0 -92
  14. data/lib/database_cleaner/active_record/deletion.rb +0 -108
  15. data/lib/database_cleaner/active_record/transaction.rb +0 -59
  16. data/lib/database_cleaner/active_record/truncation.rb +0 -275
  17. data/lib/database_cleaner/base.rb +0 -166
  18. data/lib/database_cleaner/configuration.rb +0 -131
  19. data/lib/database_cleaner/couch_potato/base.rb +0 -7
  20. data/lib/database_cleaner/couch_potato/truncation.rb +0 -28
  21. data/lib/database_cleaner/cucumber.rb +0 -3
  22. data/lib/database_cleaner/data_mapper/base.rb +0 -21
  23. data/lib/database_cleaner/data_mapper/transaction.rb +0 -28
  24. data/lib/database_cleaner/data_mapper/truncation.rb +0 -172
  25. data/lib/database_cleaner/generic/base.rb +0 -29
  26. data/lib/database_cleaner/generic/transaction.rb +0 -11
  27. data/lib/database_cleaner/generic/truncation.rb +0 -40
  28. data/lib/database_cleaner/mongo/base.rb +0 -16
  29. data/lib/database_cleaner/mongo/truncation.rb +0 -62
  30. data/lib/database_cleaner/mongo/truncation_mixin.rb +0 -26
  31. data/lib/database_cleaner/mongo2/base.rb +0 -16
  32. data/lib/database_cleaner/mongo2/truncation_mixin.rb +0 -39
  33. data/lib/database_cleaner/mongo_mapper/base.rb +0 -20
  34. data/lib/database_cleaner/mongo_mapper/truncation.rb +0 -19
  35. data/lib/database_cleaner/mongoid/base.rb +0 -20
  36. data/lib/database_cleaner/mongoid/truncation.rb +0 -49
  37. data/lib/database_cleaner/moped/base.rb +0 -39
  38. data/lib/database_cleaner/moped/truncation.rb +0 -9
  39. data/lib/database_cleaner/moped/truncation_base.rb +0 -40
  40. data/lib/database_cleaner/neo4j/base.rb +0 -62
  41. data/lib/database_cleaner/neo4j/deletion.rb +0 -16
  42. data/lib/database_cleaner/neo4j/transaction.rb +0 -35
  43. data/lib/database_cleaner/neo4j/truncation.rb +0 -9
  44. data/lib/database_cleaner/null_strategy.rb +0 -20
  45. data/lib/database_cleaner/ohm/truncation.rb +0 -15
  46. data/lib/database_cleaner/redis/base.rb +0 -37
  47. data/lib/database_cleaner/redis/truncation.rb +0 -26
  48. data/lib/database_cleaner/safeguard.rb +0 -72
  49. data/lib/database_cleaner/sequel/base.rb +0 -22
  50. data/lib/database_cleaner/sequel/deletion.rb +0 -47
  51. data/lib/database_cleaner/sequel/transaction.rb +0 -40
  52. data/lib/database_cleaner/sequel/truncation.rb +0 -78
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a0ef67709709d9ad8373dbc723dc3c5b965766a7e48b40badf5d4392558a6bd
4
- data.tar.gz: 141f0a4e38d548ca0f100dd25f7c305cf459d87970eff5b8283d1a7b79eb0734
3
+ metadata.gz: 74e7028d3ca744d89b5026c76c16b2629cc8cc8f324d730932d455c0d0210410
4
+ data.tar.gz: c2cee93a6e8c3edd20c5f918259a85abaf110b21502a75bacb1640024dac2051
5
5
  SHA512:
6
- metadata.gz: f8161cfd306d227da75c2d997eeae124f191d9382b81a7e884ac43a5e272b4a931386427e700ef11af9f5416f6916c467c77104e46441b6b9a5e6329191c3516
7
- data.tar.gz: 52f01680d172a214fa97d9f495c644b329014c74e53c862aa7aa7c91c26b0ca0769e684632997c564a2001f60fc212e03dabca789e0b27b3d1a93d1cd964f5aa
6
+ metadata.gz: 1ae141e5fc8116f08e360cf0d84b8941b97d42bcd0f58b7d6d9bc897e89f54decdeb1008179dcb283e5c135db6366279a3fd785c11f6e319d674fcfaf76d85cf
7
+ data.tar.gz: fbbe59762f2cbfd0a48e906d804e1c71e4156c55c6b3f128b9fcabcc98ee4ae831218d83a7dbae725d220bef4a1824b733c7dab0b69f05122b252402d812811e
@@ -1,12 +1 @@
1
- $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
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,444 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mabey
8
8
  - Ernesto Tagwerker
9
+ - Micah Geisel
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2018-04-19 00:00:00.000000000 Z
13
+ date: 2021-02-04 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
- name: rake
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :development
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
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: json_pure
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
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
16
+ name: database_cleaner-active_record
240
17
  requirement: !ruby/object:Gem::Requirement
241
18
  requirements:
242
19
  - - "~>"
243
20
  - !ruby/object:Gem::Version
244
- version: 0.1.3
245
- type: :development
21
+ version: 2.0.0
22
+ type: :runtime
246
23
  prerelease: false
247
24
  version_requirements: !ruby/object:Gem::Requirement
248
25
  requirements:
249
26
  - - "~>"
250
27
  - !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
28
+ version: 2.0.0
29
+ description: Strategies for cleaning databases. Can be used to ensure a clean slate
379
30
  for testing.
380
- email: ernesto@ombulabs.com
31
+ email:
32
+ - ernesto@ombulabs.com
381
33
  executables: []
382
34
  extensions: []
383
- extra_rdoc_files:
384
- - LICENSE
385
- - README.markdown
386
- - TODO
35
+ extra_rdoc_files: []
387
36
  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
37
  - lib/database_cleaner.rb
398
- - lib/database_cleaner/active_record/base.rb
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
38
+ homepage: https://github.com/DatabaseCleaner/database_cleaner
439
39
  licenses:
440
40
  - MIT
441
- metadata: {}
41
+ metadata:
42
+ changelog_uri: https://github.com/DatabaseCleaner/database_cleaner/blob/master/History.rdoc
442
43
  post_install_message:
443
44
  rdoc_options: []
444
45
  require_paths:
@@ -447,17 +48,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
447
48
  requirements:
448
49
  - - ">="
449
50
  - !ruby/object:Gem::Version
450
- version: 1.9.3
51
+ version: '0'
451
52
  required_rubygems_version: !ruby/object:Gem::Requirement
452
53
  requirements:
453
54
  - - ">="
454
55
  - !ruby/object:Gem::Version
455
56
  version: '0'
456
57
  requirements: []
457
- rubyforge_project:
458
- rubygems_version: 2.7.3
58
+ rubygems_version: 3.0.3
459
59
  signing_key:
460
60
  specification_version: 4
461
- summary: Strategies for cleaning databases. Can be used to ensure a clean state for
61
+ summary: Strategies for cleaning databases. Can be used to ensure a clean slate for
462
62
  testing.
463
63
  test_files: []