database_cleaner 1.6.2 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/lib/database_cleaner.rb +1 -8
  3. metadata +25 -499
  4. data/CONTRIBUTE.markdown +0 -28
  5. data/Gemfile.lock +0 -286
  6. data/History.rdoc +0 -430
  7. data/LICENSE +0 -20
  8. data/README.markdown +0 -518
  9. data/Rakefile +0 -40
  10. data/TODO +0 -3
  11. data/VERSION.yml +0 -4
  12. data/cucumber.yml +0 -1
  13. data/examples/Gemfile +0 -1
  14. data/examples/Gemfile.lock +0 -1
  15. data/examples/config/database.yml.example +0 -8
  16. data/examples/config/redis.yml +0 -8
  17. data/examples/db/sqlite_databases_go_here +0 -0
  18. data/examples/features/example.feature +0 -11
  19. data/examples/features/example_multiple_db.feature +0 -23
  20. data/examples/features/example_multiple_orm.feature +0 -22
  21. data/examples/features/step_definitions/activerecord_steps.rb +0 -31
  22. data/examples/features/step_definitions/couchpotato_steps.rb +0 -31
  23. data/examples/features/step_definitions/datamapper_steps.rb +0 -37
  24. data/examples/features/step_definitions/mongoid_steps.rb +0 -23
  25. data/examples/features/step_definitions/mongomapper_steps.rb +0 -31
  26. data/examples/features/step_definitions/neo4j_steps.rb +0 -23
  27. data/examples/features/step_definitions/ohm_steps.rb +0 -31
  28. data/examples/features/step_definitions/redis_steps.rb +0 -31
  29. data/examples/features/step_definitions/translation_steps.rb +0 -55
  30. data/examples/features/support/env.rb +0 -61
  31. data/examples/lib/activerecord_models.rb +0 -41
  32. data/examples/lib/couchpotato_models.rb +0 -61
  33. data/examples/lib/datamapper_models.rb +0 -50
  34. data/examples/lib/mongoid_models.rb +0 -44
  35. data/examples/lib/mongomapper_models.rb +0 -51
  36. data/examples/lib/neo4j_models.rb +0 -17
  37. data/examples/lib/ohm_models.rb +0 -43
  38. data/examples/lib/redis_models.rb +0 -65
  39. data/examples/lib/sequel_models.rb +0 -9
  40. data/features/cleaning.feature +0 -30
  41. data/features/cleaning_default_strategy.feature +0 -23
  42. data/features/cleaning_multiple_dbs.feature +0 -22
  43. data/features/cleaning_multiple_orms.feature +0 -67
  44. data/features/step_definitions/database_cleaner_steps.rb +0 -33
  45. data/features/support/env.rb +0 -4
  46. data/features/support/feature_runner.rb +0 -39
  47. data/lib/database_cleaner/active_record/base.rb +0 -92
  48. data/lib/database_cleaner/active_record/deletion.rb +0 -106
  49. data/lib/database_cleaner/active_record/transaction.rb +0 -59
  50. data/lib/database_cleaner/active_record/truncation.rb +0 -275
  51. data/lib/database_cleaner/base.rb +0 -164
  52. data/lib/database_cleaner/configuration.rb +0 -131
  53. data/lib/database_cleaner/couch_potato/base.rb +0 -7
  54. data/lib/database_cleaner/couch_potato/truncation.rb +0 -28
  55. data/lib/database_cleaner/cucumber.rb +0 -3
  56. data/lib/database_cleaner/data_mapper/base.rb +0 -21
  57. data/lib/database_cleaner/data_mapper/transaction.rb +0 -28
  58. data/lib/database_cleaner/data_mapper/truncation.rb +0 -172
  59. data/lib/database_cleaner/generic/base.rb +0 -29
  60. data/lib/database_cleaner/generic/transaction.rb +0 -11
  61. data/lib/database_cleaner/generic/truncation.rb +0 -40
  62. data/lib/database_cleaner/mongo/base.rb +0 -16
  63. data/lib/database_cleaner/mongo/truncation.rb +0 -62
  64. data/lib/database_cleaner/mongo/truncation_mixin.rb +0 -26
  65. data/lib/database_cleaner/mongo2/base.rb +0 -16
  66. data/lib/database_cleaner/mongo2/truncation_mixin.rb +0 -39
  67. data/lib/database_cleaner/mongo_mapper/base.rb +0 -20
  68. data/lib/database_cleaner/mongo_mapper/truncation.rb +0 -19
  69. data/lib/database_cleaner/mongoid/base.rb +0 -20
  70. data/lib/database_cleaner/mongoid/truncation.rb +0 -49
  71. data/lib/database_cleaner/moped/base.rb +0 -39
  72. data/lib/database_cleaner/moped/truncation.rb +0 -9
  73. data/lib/database_cleaner/moped/truncation_base.rb +0 -40
  74. data/lib/database_cleaner/neo4j/base.rb +0 -62
  75. data/lib/database_cleaner/neo4j/deletion.rb +0 -16
  76. data/lib/database_cleaner/neo4j/transaction.rb +0 -35
  77. data/lib/database_cleaner/neo4j/truncation.rb +0 -9
  78. data/lib/database_cleaner/null_strategy.rb +0 -20
  79. data/lib/database_cleaner/ohm/truncation.rb +0 -15
  80. data/lib/database_cleaner/redis/base.rb +0 -37
  81. data/lib/database_cleaner/redis/truncation.rb +0 -26
  82. data/lib/database_cleaner/sequel/base.rb +0 -22
  83. data/lib/database_cleaner/sequel/deletion.rb +0 -47
  84. data/lib/database_cleaner/sequel/transaction.rb +0 -40
  85. data/lib/database_cleaner/sequel/truncation.rb +0 -78
  86. data/spec/database_cleaner/active_record/base_spec.rb +0 -188
  87. data/spec/database_cleaner/active_record/transaction_spec.rb +0 -176
  88. data/spec/database_cleaner/active_record/truncation/mysql2_spec.rb +0 -38
  89. data/spec/database_cleaner/active_record/truncation/mysql_spec.rb +0 -38
  90. data/spec/database_cleaner/active_record/truncation/postgresql_spec.rb +0 -75
  91. data/spec/database_cleaner/active_record/truncation/shared_fast_truncation.rb +0 -40
  92. data/spec/database_cleaner/active_record/truncation/sqlite3_spec.rb +0 -40
  93. data/spec/database_cleaner/active_record/truncation_spec.rb +0 -180
  94. data/spec/database_cleaner/base_spec.rb +0 -617
  95. data/spec/database_cleaner/configuration_spec.rb +0 -345
  96. data/spec/database_cleaner/couch_potato/truncation_spec.rb +0 -41
  97. data/spec/database_cleaner/data_mapper/base_spec.rb +0 -30
  98. data/spec/database_cleaner/data_mapper/transaction_spec.rb +0 -23
  99. data/spec/database_cleaner/data_mapper/truncation/sqlite3_spec.rb +0 -41
  100. data/spec/database_cleaner/data_mapper/truncation_spec.rb +0 -11
  101. data/spec/database_cleaner/generic/base_spec.rb +0 -61
  102. data/spec/database_cleaner/generic/truncation_spec.rb +0 -118
  103. data/spec/database_cleaner/mongo/mongo_examples.rb +0 -26
  104. data/spec/database_cleaner/mongo/truncation_spec.rb +0 -72
  105. data/spec/database_cleaner/mongo_mapper/base_spec.rb +0 -33
  106. data/spec/database_cleaner/mongo_mapper/mongo_examples.rb +0 -8
  107. data/spec/database_cleaner/mongo_mapper/truncation_spec.rb +0 -74
  108. data/spec/database_cleaner/moped/moped_examples.rb +0 -32
  109. data/spec/database_cleaner/moped/truncation_spec.rb +0 -80
  110. data/spec/database_cleaner/neo4j/base_spec.rb +0 -43
  111. data/spec/database_cleaner/neo4j/transaction_spec.rb +0 -25
  112. data/spec/database_cleaner/null_strategy_spec.rb +0 -28
  113. data/spec/database_cleaner/ohm/truncation_spec.rb +0 -70
  114. data/spec/database_cleaner/redis/base_spec.rb +0 -43
  115. data/spec/database_cleaner/redis/truncation_spec.rb +0 -63
  116. data/spec/database_cleaner/sequel/base_spec.rb +0 -32
  117. data/spec/database_cleaner/sequel/deletion_spec.rb +0 -58
  118. data/spec/database_cleaner/sequel/transaction_spec.rb +0 -21
  119. data/spec/database_cleaner/sequel/truncation/sqlite3_spec.rb +0 -0
  120. data/spec/database_cleaner/sequel/truncation_spec.rb +0 -182
  121. data/spec/database_cleaner/shared_strategy.rb +0 -15
  122. data/spec/rcov.opts +0 -1
  123. data/spec/spec_helper.rb +0 -21
  124. data/spec/support/active_record/database_setup.rb +0 -6
  125. data/spec/support/active_record/migrations/20150101010000_create_users.rb +0 -14
  126. data/spec/support/active_record/migrations/20150101020000_create_agents.rb +0 -14
  127. data/spec/support/active_record/mysql2_setup.rb +0 -39
  128. data/spec/support/active_record/mysql_setup.rb +0 -38
  129. data/spec/support/active_record/postgresql_setup.rb +0 -48
  130. data/spec/support/active_record/schema_setup.rb +0 -17
  131. data/spec/support/active_record/sqlite3_setup.rb +0 -40
  132. data/spec/support/data_mapper/schema_setup.rb +0 -15
  133. data/spec/support/data_mapper/sqlite3_setup.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5e5f677e2a786401bf752e1c2c1d52166244c50b
4
- data.tar.gz: 940e89a60acc778efb0bc71ca4c75c45205f5b72
2
+ SHA256:
3
+ metadata.gz: 3ce53e3f6a07590e78b37b6821678261b1b884b6fb9827679ea681cbeae05e31
4
+ data.tar.gz: c895adbdb206619041e3fadd04c5c551d1abfbc52a896c8346405b928fcb549b
5
5
  SHA512:
6
- metadata.gz: 814c2563fecfc2c9951f59872630d144f300b367df97bd796bcbe7880afc8edfb4d23cab864ace6be2d34c7a3f295497152702f7f4500c90f8d7a052500d55cb
7
- data.tar.gz: ddf414110b85f545a6872f6e45804d4a43f7f7020d0d71eb886f840a4bdaa1b8fd11476f009fead47c9a6d716135bd1158e5adc2d9999b966f6cb6430a34e549
6
+ metadata.gz: 828864763948dc298c50f05de23e255d3444752c7ca68ab5282748a0db7a575070018c71aaa7d9fe3b14014a93c6749dab628d2821e26f8a7e23863d72358e1a
7
+ data.tar.gz: 84ce869714b3606b4dcc38183492cf118a77262a1156cee0935476e29e663088909eb5d966ae9344de1d739d1298d5962f41ee58b5244afd77ae5f6fff6ec689
@@ -1,8 +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
- def self.can_detect_orm?
6
- DatabaseCleaner::Base.autodetect_orm
7
- end
8
- end
1
+ require "database_cleaner/active_record"
metadata CHANGED
@@ -1,525 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Mabey
8
- autorequire:
8
+ - Ernesto Tagwerker
9
+ - Micah Geisel
10
+ autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
13
+ date: 2023-03-10 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
- name: rake
16
+ name: database_cleaner-active_record
15
17
  requirement: !ruby/object:Gem::Requirement
16
18
  requirements:
17
19
  - - ">="
18
20
  - !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
- - - ">="
21
+ version: '2'
22
+ - - "<"
32
23
  - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
24
+ version: '3'
25
+ type: :runtime
35
26
  prerelease: false
36
27
  version_requirements: !ruby/object:Gem::Requirement
37
28
  requirements:
38
29
  - - ">="
39
30
  - !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
- - - ">="
31
+ version: '2'
32
+ - - "<"
46
33
  - !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
239
- requirement: !ruby/object:Gem::Requirement
240
- requirements:
241
- - - "~>"
242
- - !ruby/object:Gem::Version
243
- version: 0.1.3
244
- type: :development
245
- prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - "~>"
249
- - !ruby/object:Gem::Version
250
- version: 0.1.3
251
- - !ruby/object:Gem::Dependency
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
34
+ version: '3'
35
+ description: Strategies for cleaning databases. Can be used to ensure a clean slate
378
36
  for testing.
379
- email: ben@benmabey.com
37
+ email:
38
+ - ernesto@ombulabs.com
380
39
  executables: []
381
40
  extensions: []
382
- extra_rdoc_files:
383
- - LICENSE
384
- - README.markdown
385
- - TODO
41
+ extra_rdoc_files: []
386
42
  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
43
  - lib/database_cleaner.rb
431
- - lib/database_cleaner/active_record/base.rb
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
44
+ homepage: https://github.com/DatabaseCleaner/database_cleaner
519
45
  licenses:
520
46
  - MIT
521
- metadata: {}
522
- post_install_message:
47
+ metadata:
48
+ changelog_uri: https://github.com/DatabaseCleaner/database_cleaner/blob/master/History.rdoc
49
+ post_install_message:
523
50
  rdoc_options: []
524
51
  require_paths:
525
52
  - lib
@@ -527,17 +54,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
527
54
  requirements:
528
55
  - - ">="
529
56
  - !ruby/object:Gem::Version
530
- version: 1.9.3
57
+ version: '0'
531
58
  required_rubygems_version: !ruby/object:Gem::Requirement
532
59
  requirements:
533
60
  - - ">="
534
61
  - !ruby/object:Gem::Version
535
62
  version: '0'
536
63
  requirements: []
537
- rubyforge_project:
538
- rubygems_version: 2.6.8
539
- signing_key:
64
+ rubygems_version: 3.1.4
65
+ signing_key:
540
66
  specification_version: 4
541
- summary: Strategies for cleaning databases. Can be used to ensure a clean state for
67
+ summary: Strategies for cleaning databases. Can be used to ensure a clean slate for
542
68
  testing.
543
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