database_cleaner 1.99.0 → 2.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/lib/database_cleaner.rb +1 -47
  3. metadata +14 -484
  4. data/CONTRIBUTE.markdown +0 -27
  5. data/Gemfile.lock +0 -324
  6. data/History.rdoc +0 -514
  7. data/LICENSE +0 -20
  8. data/README.markdown +0 -389
  9. data/Rakefile +0 -44
  10. data/TODO +0 -3
  11. data/adapters/database_cleaner-active_record/lib/database_cleaner-active_record.rb +0 -1
  12. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record.rb +0 -6
  13. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record/base.rb +0 -101
  14. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record/deletion.rb +0 -108
  15. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record/transaction.rb +0 -59
  16. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record/truncation.rb +0 -288
  17. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record/version.rb +0 -5
  18. data/adapters/database_cleaner-couch_potato/lib/database_cleaner-couch_potato.rb +0 -1
  19. data/adapters/database_cleaner-couch_potato/lib/database_cleaner/couch_potato.rb +0 -13
  20. data/adapters/database_cleaner-couch_potato/lib/database_cleaner/couch_potato/base.rb +0 -7
  21. data/adapters/database_cleaner-couch_potato/lib/database_cleaner/couch_potato/truncation.rb +0 -28
  22. data/adapters/database_cleaner-couch_potato/lib/database_cleaner/couch_potato/version.rb +0 -5
  23. data/adapters/database_cleaner-data_mapper/lib/database_cleaner-data_mapper.rb +0 -1
  24. data/adapters/database_cleaner-data_mapper/lib/database_cleaner/data_mapper.rb +0 -6
  25. data/adapters/database_cleaner-data_mapper/lib/database_cleaner/data_mapper/base.rb +0 -25
  26. data/adapters/database_cleaner-data_mapper/lib/database_cleaner/data_mapper/transaction.rb +0 -28
  27. data/adapters/database_cleaner-data_mapper/lib/database_cleaner/data_mapper/truncation.rb +0 -173
  28. data/adapters/database_cleaner-data_mapper/lib/database_cleaner/data_mapper/version.rb +0 -5
  29. data/adapters/database_cleaner-mongo/lib/database_cleaner-mongo.rb +0 -1
  30. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo.rb +0 -11
  31. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/base.rb +0 -16
  32. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/deletion.rb +0 -8
  33. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/truncation.rb +0 -74
  34. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/truncation_mixin.rb +0 -26
  35. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/version.rb +0 -5
  36. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner-mongo_mapper.rb +0 -1
  37. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper.rb +0 -5
  38. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb +0 -24
  39. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/truncation.rb +0 -35
  40. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/version.rb +0 -5
  41. data/adapters/database_cleaner-mongoid/lib/database_cleaner-mongoid.rb +0 -1
  42. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid.rb +0 -11
  43. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/base.rb +0 -20
  44. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/deletion.rb +0 -10
  45. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongo1_truncation_mixin.rb +0 -26
  46. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongo2_truncation_mixin.rb +0 -38
  47. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongoid_truncation_mixin.rb +0 -65
  48. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/truncation.rb +0 -49
  49. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/version.rb +0 -5
  50. data/adapters/database_cleaner-moped/lib/database_cleaner-moped.rb +0 -1
  51. data/adapters/database_cleaner-moped/lib/database_cleaner/moped.rb +0 -12
  52. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/base.rb +0 -39
  53. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/truncation.rb +0 -9
  54. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/truncation_base.rb +0 -44
  55. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/version.rb +0 -5
  56. data/adapters/database_cleaner-neo4j/lib/database_cleaner-neo4j.rb +0 -1
  57. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j.rb +0 -7
  58. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/base.rb +0 -66
  59. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/deletion.rb +0 -16
  60. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/transaction.rb +0 -35
  61. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/truncation.rb +0 -9
  62. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/version.rb +0 -5
  63. data/adapters/database_cleaner-ohm/lib/database_cleaner-ohm.rb +0 -1
  64. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm.rb +0 -12
  65. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm/truncation.rb +0 -24
  66. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm/version.rb +0 -5
  67. data/adapters/database_cleaner-redis/lib/database_cleaner-redis.rb +0 -1
  68. data/adapters/database_cleaner-redis/lib/database_cleaner/redis.rb +0 -5
  69. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/base.rb +0 -45
  70. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/deletion.rb +0 -9
  71. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/truncation.rb +0 -26
  72. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/version.rb +0 -5
  73. data/adapters/database_cleaner-sequel/lib/database_cleaner-sequel.rb +0 -1
  74. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel.rb +0 -6
  75. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/base.rb +0 -26
  76. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/deletion.rb +0 -47
  77. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/transaction.rb +0 -40
  78. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/truncation.rb +0 -79
  79. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/version.rb +0 -5
  80. data/cucumber.yml +0 -1
  81. data/lib/database_cleaner/base.rb +0 -169
  82. data/lib/database_cleaner/configuration.rb +0 -136
  83. data/lib/database_cleaner/cucumber.rb +0 -3
  84. data/lib/database_cleaner/deprecation.rb +0 -26
  85. data/lib/database_cleaner/generic/base.rb +0 -29
  86. data/lib/database_cleaner/generic/transaction.rb +0 -11
  87. data/lib/database_cleaner/generic/truncation.rb +0 -40
  88. data/lib/database_cleaner/null_strategy.rb +0 -20
  89. data/lib/database_cleaner/orm_autodetector.rb +0 -41
  90. data/lib/database_cleaner/safeguard.rb +0 -107
  91. data/lib/database_cleaner/spec.rb +0 -2
  92. data/lib/database_cleaner/spec/database_helper.rb +0 -82
  93. data/lib/database_cleaner/spec/shared_examples.rb +0 -15
  94. data/lib/database_cleaner/version.rb +0 -3
data/CONTRIBUTE.markdown DELETED
@@ -1,27 +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 `spec/support/sample.config.yml` to `spec/support/config.yml` and edit it
15
- - Run the tests with `bundle exec rspec`
16
-
17
- Note that if you don't have all the supported databases installed and running,
18
- some tests will fail.
19
-
20
- ## 3. Prepare your contribution
21
-
22
- This is all up to you but a few points should be kept in mind:
23
-
24
- - Please write tests for your contribution
25
- - Make sure that previous tests still pass
26
- - Push it to a branch of your fork
27
- - Submit a pull request
data/Gemfile.lock DELETED
@@ -1,324 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- database_cleaner (1.99.0)
5
-
6
- PATH
7
- remote: adapters
8
- specs:
9
- database_cleaner-active_record (1.99.0)
10
- activerecord
11
- database_cleaner (~> 1.99.0)
12
- database_cleaner-couch_potato (1.99.0)
13
- couch_potato
14
- database_cleaner (~> 1.99.0)
15
- database_cleaner-data_mapper (1.99.0)
16
- database_cleaner (~> 1.99.0)
17
- datamapper
18
- dm-transactions
19
- database_cleaner-mongo (1.99.0)
20
- database_cleaner (~> 1.99.0)
21
- mongo
22
- database_cleaner-mongo_mapper (1.99.0)
23
- database_cleaner (~> 1.99.0)
24
- mongo_mapper
25
- database_cleaner-mongoid (1.99.0)
26
- database_cleaner (~> 1.99.0)
27
- mongoid
28
- database_cleaner-moped (1.99.0)
29
- database_cleaner (~> 1.99.0)
30
- moped
31
- database_cleaner-neo4j (1.99.0)
32
- database_cleaner (~> 1.99.0)
33
- neo4j-core
34
- database_cleaner-ohm (1.99.0)
35
- database_cleaner (~> 1.99.0)
36
- database_cleaner-redis (~> 1.99.0)
37
- ohm
38
- database_cleaner-redis (1.99.0)
39
- database_cleaner (~> 1.99.0)
40
- redis
41
- database_cleaner-sequel (1.99.0)
42
- database_cleaner (~> 1.99.0)
43
- sequel
44
-
45
- GEM
46
- remote: https://rubygems.org/
47
- specs:
48
- activemodel (3.0.0)
49
- activesupport (= 3.0.0)
50
- builder (~> 2.1.2)
51
- i18n (~> 0.4.1)
52
- activerecord (3.0.0)
53
- activemodel (= 3.0.0)
54
- activesupport (= 3.0.0)
55
- arel (~> 1.0.0)
56
- tzinfo (~> 0.3.23)
57
- activerecord-mysql2-adapter (0.0.3)
58
- mysql2
59
- activesupport (3.0.0)
60
- addressable (2.3.6)
61
- arel (1.0.1)
62
- activesupport (~> 3.0.0)
63
- bcrypt (3.1.7)
64
- bcrypt (3.1.7-java)
65
- bcrypt-ruby (3.1.5)
66
- bcrypt (>= 3.1.3)
67
- bcrypt-ruby (3.1.5-java)
68
- bcrypt (>= 3.1.3)
69
- bson (1.12.5)
70
- bson (1.12.5-java)
71
- bson_ext (1.12.5)
72
- bson (~> 1.12.5)
73
- builder (2.1.2)
74
- coderay (1.1.2)
75
- couch_potato (1.3.0)
76
- activemodel
77
- couchrest (~> 1.2.0)
78
- json (~> 1.6)
79
- couchrest (1.2.1)
80
- mime-types (>= 1.15)
81
- multi_json (~> 1.7, ~> 1.0)
82
- rest-client (~> 1.8.0)
83
- cucumber (1.2.1)
84
- builder (>= 2.1.2)
85
- diff-lcs (>= 1.1.3)
86
- gherkin (~> 2.11.0)
87
- json (>= 1.4.6)
88
- data_objects (0.10.14)
89
- addressable (~> 2.1)
90
- datamapper (1.2.0)
91
- dm-aggregates (~> 1.2.0)
92
- dm-constraints (~> 1.2.0)
93
- dm-core (~> 1.2.0)
94
- dm-migrations (~> 1.2.0)
95
- dm-serializer (~> 1.2.0)
96
- dm-timestamps (~> 1.2.0)
97
- dm-transactions (~> 1.2.0)
98
- dm-types (~> 1.2.0)
99
- dm-validations (~> 1.2.0)
100
- diff-lcs (1.3)
101
- dm-aggregates (1.2.0)
102
- dm-core (~> 1.2.0)
103
- dm-constraints (1.2.0)
104
- dm-core (~> 1.2.0)
105
- dm-core (1.2.1)
106
- addressable (~> 2.3)
107
- dm-do-adapter (1.2.0)
108
- data_objects (~> 0.10.6)
109
- dm-core (~> 1.2.0)
110
- dm-migrations (1.2.0)
111
- dm-core (~> 1.2.0)
112
- dm-serializer (1.2.2)
113
- dm-core (~> 1.2.0)
114
- fastercsv (~> 1.5)
115
- json (~> 1.6)
116
- json_pure (~> 1.6)
117
- multi_json (~> 1.0)
118
- dm-sqlite-adapter (1.2.0)
119
- dm-do-adapter (~> 1.2.0)
120
- do_sqlite3 (~> 0.10.6)
121
- dm-timestamps (1.2.0)
122
- dm-core (~> 1.2.0)
123
- dm-transactions (1.2.0)
124
- dm-core (~> 1.2.0)
125
- dm-types (1.2.2)
126
- bcrypt-ruby (~> 3.0)
127
- dm-core (~> 1.2.0)
128
- fastercsv (~> 1.5)
129
- json (~> 1.6)
130
- multi_json (~> 1.0)
131
- stringex (~> 1.4)
132
- uuidtools (~> 2.1)
133
- dm-validations (1.2.0)
134
- dm-core (~> 1.2.0)
135
- do_jdbc (0.10.14-java)
136
- data_objects (= 0.10.14)
137
- do_sqlite3 (0.10.14)
138
- data_objects (= 0.10.14)
139
- do_sqlite3 (0.10.14-java)
140
- data_objects (= 0.10.14)
141
- do_jdbc (= 0.10.14)
142
- jdbc-sqlite3 (>= 3.5.8)
143
- domain_name (0.5.20180417)
144
- unf (>= 0.0.5, < 1.0.0)
145
- faraday (0.9.0)
146
- multipart-post (>= 1.2, < 3)
147
- faraday_middleware (0.9.1)
148
- faraday (>= 0.7.4, < 0.10)
149
- fastercsv (1.5.5)
150
- ffi (1.9.25)
151
- ffi (1.9.25-java)
152
- formatador (0.2.5)
153
- gherkin (2.11.6)
154
- json (>= 1.7.6)
155
- gherkin (2.11.6-java)
156
- json (>= 1.7.6)
157
- guard (2.14.2)
158
- formatador (>= 0.2.4)
159
- listen (>= 2.7, < 4.0)
160
- lumberjack (>= 1.0.12, < 2.0)
161
- nenv (~> 0.1)
162
- notiffany (~> 0.0)
163
- pry (>= 0.9.12)
164
- shellany (~> 0.0)
165
- thor (>= 0.18.1)
166
- guard-compat (1.2.1)
167
- guard-rspec (4.7.3)
168
- guard (~> 2.1)
169
- guard-compat (~> 1.1)
170
- rspec (>= 2.99.0, < 4.0)
171
- http-cookie (1.0.3)
172
- domain_name (~> 0.5)
173
- httparty (0.13.3)
174
- json (~> 1.8)
175
- multi_xml (>= 0.5.2)
176
- httpclient (2.5.3.3)
177
- i18n (0.4.2)
178
- jdbc-sqlite3 (3.8.10.1)
179
- json (1.8.6)
180
- json (1.8.6-java)
181
- json_pure (1.8.1)
182
- listen (3.0.8)
183
- rb-fsevent (~> 0.9, >= 0.9.4)
184
- rb-inotify (~> 0.9, >= 0.9.7)
185
- lumberjack (1.0.13)
186
- method_source (0.9.0)
187
- mime-types (2.99.3)
188
- mongo (1.12.5)
189
- bson (= 1.12.5)
190
- mongo_ext (0.19.3)
191
- mongo_mapper (0.12.0)
192
- activemodel (~> 3.0)
193
- activesupport (~> 3.0)
194
- plucky (~> 0.5.2)
195
- mongoid (2.2.6)
196
- activemodel (~> 3.0.0)
197
- mongo (~> 1.3)
198
- tzinfo (~> 0.3.22)
199
- mongoid-tree (0.7.0)
200
- mongoid (~> 2.0)
201
- moped (1.5.2)
202
- multi_json (1.13.1)
203
- multi_xml (0.5.5)
204
- multipart-post (2.0.0)
205
- mysql (2.9.1)
206
- mysql2 (0.3.18)
207
- nenv (0.3.0)
208
- neo4j-community (2.1.5)
209
- neo4j-core (3.0.8)
210
- activesupport
211
- faraday (~> 0.9.0)
212
- faraday_middleware (~> 0.9.1)
213
- httparty
214
- httpclient
215
- json
216
- neo4j-community (~> 2.1.1)
217
- net-http-persistent
218
- os
219
- zip
220
- nest (1.1.2)
221
- redis
222
- net-http-persistent (2.9.4)
223
- netrc (0.11.0)
224
- notiffany (0.1.1)
225
- nenv (~> 0.1)
226
- shellany (~> 0.0)
227
- ohm (0.1.5)
228
- nest (~> 1.0)
229
- os (0.9.6)
230
- pg (0.18.2)
231
- plucky (0.5.2)
232
- mongo (~> 1.5)
233
- pry (0.11.3)
234
- coderay (~> 1.1.0)
235
- method_source (~> 0.9.0)
236
- pry (0.11.3-java)
237
- coderay (~> 1.1.0)
238
- method_source (~> 0.9.0)
239
- spoon (~> 0.0)
240
- rake (11.1.2)
241
- rb-fsevent (0.10.3)
242
- rb-inotify (0.9.10)
243
- ffi (>= 0.5.0, < 2)
244
- redis (3.1.0)
245
- rest-client (1.8.0)
246
- http-cookie (>= 1.0.2, < 2.0)
247
- mime-types (>= 1.16, < 3.0)
248
- netrc (~> 0.7)
249
- rspec (3.7.0)
250
- rspec-core (~> 3.7.0)
251
- rspec-expectations (~> 3.7.0)
252
- rspec-mocks (~> 3.7.0)
253
- rspec-core (3.7.1)
254
- rspec-support (~> 3.7.0)
255
- rspec-expectations (3.7.0)
256
- diff-lcs (>= 1.2.0, < 2.0)
257
- rspec-support (~> 3.7.0)
258
- rspec-mocks (3.7.0)
259
- diff-lcs (>= 1.2.0, < 2.0)
260
- rspec-support (~> 3.7.0)
261
- rspec-support (3.7.1)
262
- sequel (3.21.0)
263
- shellany (0.0.1)
264
- spoon (0.0.6)
265
- ffi
266
- sqlite3 (1.3.10)
267
- stringex (1.5.1)
268
- thor (0.20.0)
269
- tzinfo (0.3.48)
270
- unf (0.1.4)
271
- unf_ext
272
- unf (0.1.4-java)
273
- unf_ext (0.0.7.5)
274
- uuidtools (2.1.5)
275
- zip (2.0.2)
276
-
277
- PLATFORMS
278
- java
279
- ruby
280
-
281
- DEPENDENCIES
282
- activerecord
283
- activerecord-mysql2-adapter
284
- bson_ext
285
- bundler
286
- couch_potato
287
- cucumber
288
- database_cleaner!
289
- database_cleaner-active_record!
290
- database_cleaner-couch_potato!
291
- database_cleaner-data_mapper!
292
- database_cleaner-mongo!
293
- database_cleaner-mongo_mapper!
294
- database_cleaner-mongoid!
295
- database_cleaner-moped!
296
- database_cleaner-neo4j!
297
- database_cleaner-ohm!
298
- database_cleaner-redis!
299
- database_cleaner-sequel!
300
- datamapper
301
- dm-migrations
302
- dm-sqlite-adapter
303
- guard-rspec
304
- json_pure
305
- listen (~> 3.0.0)
306
- mongo (~> 1.12.0)
307
- mongo_ext
308
- mongo_mapper
309
- mongoid
310
- mongoid-tree
311
- moped
312
- mysql (~> 2.9.1)
313
- mysql2
314
- neo4j-core
315
- ohm (~> 0.1.3)
316
- pg
317
- rake
318
- rspec
319
- sequel (~> 3.21.0)
320
- sqlite3
321
- tzinfo
322
-
323
- BUNDLED WITH
324
- 1.17.3
data/History.rdoc DELETED
@@ -1,514 +0,0 @@
1
- == 1.99.0 (v1-maintenance)
2
-
3
- == Changes
4
- * Remove unnecessary dependency on database_cleaner-mongo from database_cleaner-mongoid: @botandrose
5
- * Enable the :cache_tables option for the mongo truncation strategy, and default to true: https://github.com/DatabaseCleaner/database_cleaner/pull/646"
6
- * Introduce deletion aliases for truncation strategies for mongo, mongoid, and redis adapters. https://github.com/DatabaseCleaner/database_cleaner/pull/654
7
- * Add new :db orm configuration key, for consistency with #db and #db=. https://github.com/DatabaseCleaner/database_cleaner/pull/649
8
-
9
- == Deprecations
10
- * Deprecate all #orm= setter methods: https://github.com/DatabaseCleaner/database_cleaner/pull/643
11
- * Deprecate non-functional :reset_ids option in ActiveRecord truncation strategy: https://github.com/DatabaseCleaner/database_cleaner/issues/559
12
- * Deprecate mongo truncation's `:cache_tables => true` option in favor of `false`, to prep for caching removal in v2.0: https://github.com/DatabaseCleaner/database_cleaner/pull/646"
13
- * Deprecate redis truncation's #url method in favor of #db: @botandrose
14
- * Deprecate mongo, mongoid, and redis truncation strategies in favor of deletion. https://github.com/DatabaseCleaner/database_cleaner/pull/654
15
- * Deprecate :connection and :model configuration options in favor of :db for consistency: https://github.com/DatabaseCleaner/database_cleaner/pull/650
16
-
17
- == Bugfixes
18
- * Fix deprecation warning about `DatabaseCleaner.connections` to recommend a better alternative: https://github.com/DatabaseCleaner/database_cleaner/pull/656
19
-
20
- == 1.8.5 2020-05-04
21
-
22
- === Bug Fixes
23
- * Fix :mongo strategy: https://github.com/DatabaseCleaner/database_cleaner/pull/645
24
-
25
- == 1.8.4 2020-04-02
26
-
27
- === Bug Fixes
28
- * Fix false positive deprecation warnings on Windows: https://github.com/DatabaseCleaner/database_cleaner/pull/633
29
-
30
- == 1.8.3 2020-02-18
31
-
32
- === Bug Fixes
33
- * Fix performance issue of DatabaseCleaner::Base#orm_module: https://github.com/DatabaseCleaner/database_cleaner/pull/625
34
-
35
- == 1.8.2 2020-02-01
36
-
37
- === Bug Fixes
38
- * Fix database_cleaner-ohm autodetected adapter loading: https://github.com/DatabaseCleaner/database_cleaner/pull/619
39
- * Fix database_cleaner-mongo_mapper autodetected adapter loading: @botandrose
40
- * Fix database_cleaner-mongoid autodetected adapter loading: https://github.com/DatabaseCleaner/database_cleaner/pull/617
41
- * Exclude ar_internal_metadata from truncation on Rails 5: https://github.com/DatabaseCleaner/database_cleaner/pull/588
42
-
43
- === Changes
44
- * Deprecate ohm adapter: https://github.com/DatabaseCleaner/database_cleaner/pull/619
45
-
46
- == 1.8.1 2020-01-30
47
-
48
- === Bug Fixes
49
- * Remove undeclared active_support dependency: https://github.com/DatabaseCleaner/database_cleaner/pull/612
50
-
51
- == 1.8.0 2020-01-29
52
-
53
- === Bug Fixes
54
- * Fix MySQL deprecation warnings with Rails 5: https://github.com/DatabaseCleaner/database_cleaner/pull/574
55
- * Fix MySQL truncation with `pre_count: true`: https://github.com/DatabaseCleaner/database_cleaner/pull/498
56
- * Fix primary key sequence resetting in Sequel with Postgres and SQLite: https://github.com/DatabaseCleaner/database_cleaner/pull/538/files
57
- * ActiveRecord truncation adapter doesn't work with Oracle: https://github.com/DatabaseCleaner/database_cleaner/pull/542
58
-
59
- === Changes
60
- * Extract ORM adapters into gems: https://github.com/DatabaseCleaner/database_cleaner/pull/560
61
- * Allow postgres:///dbname as a local url: https://github.com/DatabaseCleaner/database_cleaner/pull/569
62
- * Add an optional URL whitelist safeguard: https://github.com/DatabaseCleaner/database_cleaner/pull/526
63
- * Add `local` tld to safeguard check: https://github.com/DatabaseCleaner/database_cleaner/pull/547
64
- * Speed up ActiveRecord deletion strategy: https://github.com/DatabaseCleaner/database_cleaner/pull/534
65
- * Consider `sqlite:` database urls to be local: https://github.com/DatabaseCleaner/database_cleaner/pull/529
66
-
67
- == 1.7.0 2018-04-19
68
-
69
- === Bug Fixes
70
- * Remove unnecessary folders from gem: https://github.com/DatabaseCleaner/database_cleaner/pull/508
71
- * Properly quote table names: https://github.com/DatabaseCleaner/database_cleaner/pull/501
72
- * Use more idiomatic Ruby in README: https://github.com/DatabaseCleaner/database_cleaner/pull/510
73
- * Return ::ActiveRecord::Base from `establish_connection`: https://github.com/DatabaseCleaner/database_cleaner/pull/399
74
-
75
- === Changes
76
- * Safeguard against running in production or running against a remote database: https://github.com/DatabaseCleaner/database_cleaner/pull/521
77
-
78
- == 1.6.2 2017-10-29
79
-
80
- === Bug Fixes
81
- * ActiveRecord::Base namespace patch: https://github.com/DatabaseCleaner/database_cleaner/pull/490
82
- * Better exclusion condition based on Rails version: https://github.com/DatabaseCleaner/database_cleaner/pull/487
83
-
84
- === Changes
85
- * Better documentation. Typos were fixed. Sequel deletion is supported: https://github.com/DatabaseCleaner/database_cleaner/pull/500
86
-
87
- == 1.6.1 2017-05-09
88
-
89
- === Bug Fixes
90
- * Deletion strategy fix for ActiveRecord (@kawamoto)
91
-
92
- == 1.6.0 2017-05-04
93
-
94
- === New Features/Changes
95
- * Rails 5.1 support: Remove deprecation warning (@activefx)
96
- * MySQL 5.6+ InnoDB support (@ahorek)
97
- * Better documentation (fixed typo) (@hoshinotsuyoshi)
98
-
99
- === Bug Fixes
100
- * Fix Redis db option (@soylent)
101
- * Make NullStrategy API-complete (@anicholson)
102
-
103
- == 1.5.3 2016-04-22
104
-
105
- === Bug Fixes
106
- * @P9GIT fixed issue #436
107
-
108
- == 1.5.2 2016-04-17
109
-
110
- === New Features/Changes
111
- * Use default_client with mongoid 5.0 (@stjhimy)
112
- * Added comparable support for strategies (@st0012)
113
- * Better README instructions that suggest `append_after` (@jrochkind)
114
- * Removed deprecation warnings for Rails 5.0+ (@pschambacher)
115
- * Upgrade to RSpec 2.14 (@skalee)
116
-
117
- === Bug Fixes
118
- * @dmitrypol fixed issue #409
119
- * @schmierkov fixed the Travis builds with PR #416
120
- * @shosti fixed issue #345
121
- * @kylev fixed issue #379
122
- * @skalee fixed the Travis builds for Neo4j with PR #433
123
-
124
- == 1.5.1 2015-09-05
125
-
126
- == Bug Fix
127
- * Added mongo2 missing files to the gemspec. (@geerzo)
128
-
129
- == 1.5.0 2015-09-02
130
-
131
- === New Features/Changes
132
- * Use ensure within the cleaning method. (@cema-sp)
133
- * Restored mysql2 + jruby support. (@ahorek)
134
- * Added required ruby version to gemspec. (@garethrees)
135
- * Added support for Mongoid 5.0 and Mongo Ruby Driver 2.0. (@jprincipe)
136
- * Added support for additional Neo4j::Session.open options. (@brienw)
137
- * And a bunch of code style and README improvements
138
-
139
- === Bug Fixes
140
- * Fixed truncation for MongoDB 3. (@andreale)
141
- * Fixed YAML error when building gem. (@joshnesbitt)
142
- * Fixed deletion strategy for JDBC MySQL. (@DanElbert)
143
- * Fixed open transactions for multiple connections. (@claptimes5)
144
-
145
- == 1.4.1 2015-03-09
146
- * Support for deletion with Sequel. (@cyberdelia)
147
- * Use ActiveRecord::Base configuration when different from config file. (@wendy0402)
148
- * Removed dependency of Mongo. (@codegourmet)
149
- * Fixed issue with tables schema prefix in Postgres. (@phoenixek12)
150
- * Use ruby 1.8 syntax. (@daniel-g)
151
- * Added license to gemspec. (@chrismar035)
152
- * Improved coverage for migrations table. (@jonallured)
153
-
154
- == 1.4.0 2014-12-17
155
-
156
- === New Features/Changes
157
- * Support for Neo4j. (@dpisarewski)
158
- * Support for multiple connections on Mongoid. (@nyarly)
159
-
160
- === Better Performance
161
- * Using the deletion strategy with Mysql now only deletes those tables which have had records added to them. (@MadRabbit)
162
- * Add support for pre_count on Sequel with Mysql. (@vrinek)
163
- * Cache collection names in mongo's truncation strategy. (@nyarly)
164
-
165
- === Bug Fixes
166
- * Fix undefined method error with DataMapper SQLite adaptor. (@lanej)
167
- * Fully define Mysql2 adaptor constant. (@jgonera)
168
- * Don't truncate schema tables in Postgres. (@billywatson)
169
- * Fix issue where Moped cleaner was missing collections with 'system' in their name. (@MartinNowak)
170
-
171
- == 1.3.0 2014-05-23
172
-
173
- === New Features/Changes
174
- * Introduced `DatabaseCleaner::cleaning` method that takes a block. (@ethco)
175
- * Improved Sequel support and added more tests (@ethco, @rhunter)
176
-
177
- === Bug Fixes
178
-
179
- * Fixed an issue with the `Transaction` strategy and Active Record where application-level transactions
180
- are not rolledback correctly. (Godfrey Chan)
181
- * activerecord-oracle_enhanced-adapter now works again (#259, @sockmonk)
182
-
183
- == 1.2.0 2013-10-09
184
-
185
- A huge thanks goes to @tommeier for fixing the bug with class loading that was cuasing the wrong adapters
186
- to be used in certain cases.
187
-
188
- === New Features/Changes
189
-
190
- * Upgraded RSpec to remove deprecation warnings (John Rowe)
191
- * Caching of tables to truncate is now optional (@marcoow)
192
-
193
- === Bug Fixes
194
-
195
- * Use class_eval loading of superclasses to ensure right version of class is patched. (Tom Meier, Joel Nimety, Ernesto Tagwerker)
196
- * Add truncate_tables method to SQLiteAdapter. (Chris Mo)
197
- * Fixes missing #uses_sequence invokation in adapter classes for sqlite and sqlite3 (Lefteris Laskaridis)
198
-
199
-
200
- == 1.1.1 2013-08-01
201
-
202
- === Bug Fixes
203
-
204
- * Fixes typo in Postgres superclass (POSTGRE_ADAPTER_PARENT > POSTGRES_ADAPTER_PARENT) (Joel Nimety)
205
-
206
- == 1.1.0 2013-08-01
207
-
208
- === New Features/Changes
209
-
210
- * schema_migrations table name is now retrieved from ActiveRecord (Kyle Stevens)
211
- * Autoloading logic is now exposed, see PR #212 for details (Jeff Felchner)
212
-
213
- === Bug Fixes
214
-
215
- * Deletion strategy works again on MySQL, had to roll back multiple statements patch.
216
- * Fix MySqlAdapter superclass bug via class_eval loading of superclasses (Tom Meier)
217
- * Sequel strategy fix dealing with symbol/string mismatch on table names. (Fred Wu)
218
-
219
- == 1.0.1 2013-05-13
220
-
221
- * Patch release to fix broken gemspec file. Sorry folks!
222
-
223
- == 1.0.0 2013-05-13
224
-
225
- === New Features/Changes
226
-
227
- * Dropping support for Ruby 1.8.x; Only 1.9.x and beyond will be supported going forward.
228
- * Now supporting and testing against ruby 2.0.x.
229
- * Adds support for AR 4.0 by using `begin_transaction` (David Chelimsky and Steve Madsen)
230
- * Adds Rails 4 support for SQLite3Adapter
231
- * Suppport for Moped when used without Mongoid (Cyprian Kowalczyk)
232
- * Redis & Ohm support (Hengbin Qiu, James Conroy-Finn)
233
-
234
- * CI Improvements (Jan Vlnas, Murahashi Sanemat Kenichi, Samer Masry, Jordan Hollinger)
235
- * README/Documentation improvements (Marcelo Cajueiro, Donald Ball, TJ Chambers, Nick Huanca, Justin Edwards, Ryota Arai)
236
-
237
- === Bug Fixes
238
-
239
- * Fixes transaction errors when using `after_commit` hooks in AR.
240
- * Fixes truncation error with SQLite (Daniel White)
241
- * Fixes `pre_count` logic in AR Postgres. (Jordan Hollinger)
242
- * Sequel fix to normalize all table names to strings. (Lauri Peltola)
243
- * #clean_with now works with multiple connections. (John Ferlito)
244
- * Always start a AR transaction to prevent nil errors in AR when rolling back (John Hampton, M.Shibuya)
245
-
246
- == 0.9.1 2012-10-11
247
-
248
- (0.9.0 was released first but was yanked due to bad gemspec)
249
-
250
- === New Features
251
-
252
- * New options for AR :truncation for speed. See README for details. (Stanislaw Pankevich)
253
- * view caching works with the schema_plus gem loaded
254
- * ActiveRecord::ConnectionAdapters::AbstractAdapter#views was renamed to an internal name
255
- * ActiveRecord truncation strategy caches the list of tables #130 (Petteri Räty)
256
- * Caches AR DB connections which speeds up cleaning with multiple DBs and allows for transation strategy.
257
- * MongoDB :truncation strategy (wihtout use of additional library like Mogoid). #138 (Christopher Darrell & Richard Luther/@sidereel)
258
- * Add Sequel support for multiple migration storage names in #148 (Jack Chu)
259
- * Multiple database support for Mongoid 3 #149 (Luke Francl)
260
-
261
- === Bug Fixes
262
-
263
- * :deletion for AR Postgres in JRuby now works #140 (Heiko Seebach)
264
- * Rescue LoadError when AR adapters not available. #145 (Garrow Bedrossian)
265
- * Fixes DatabaseCleaner::[] to cache cleaners.
266
-
267
- == 0.8.0 2012-06-02
268
-
269
- * Faster truncation strategy for ActiveRecord with MySQL or PostgreSQL
270
- * Upgrade to RSpec 2
271
- * Support for Mongoid 3/Moped (Andrew Bennett)
272
- * Postgres Adapter no longer generates invalid SQL when no tables provided. (Michael-Keith Bernard)
273
-
274
- == 0.7.2 2012-03-21
275
-
276
- * Proper Mysql2Adapter superclass fix. (Jonathan Viney)
277
- * Sequel::Transaction works with latest Sequel. (David Barri)
278
- * Documenation fixes/improvements. (David Barri, Ben Mabey, Kevin Moore)
279
-
280
- == 0.7.1 2012-01-15
281
-
282
- === New Features
283
-
284
- * Support for Rails 3.2. (David Demaree)
285
-
286
- === Bugfixes
287
-
288
- * Truncation resets the id count on SQLite. (Jordan Hollinger)
289
- * AR delete strategy now disables referential integrity. (Ben Mabey)
290
- * Fixes Postgres adapter for JRuby. (Dmytrii Nagirniak, Uģis Ozols)
291
- * Documenation fixes. (Josh Rendek, Joshua Flanagan)
292
- * Fixes bad error message when no database is specified for AR. (issue #72, Ben Mabey)
293
-
294
-
295
- == 0.7.0 2011-11-12
296
-
297
- === New Features
298
-
299
- * Sequel Support (Corin Langosch)
300
- * Updates DataMapper strategies to work with DataMapper 1.1 (Xavier Shay and Anthony Williams)
301
- * for AR and PSQL, truncate all tables with one command, improving performance due to avoiding cascades (Leonid Shevtsov)
302
-
303
- === Bugfixes
304
-
305
- * Avoids trying to load the ':default' ActiveRecord config. #72 (Ben Mabey)
306
-
307
- == 0.6.7 2011-04-21
308
-
309
- === Bugfixes
310
-
311
- * Explicity require ERB. (Vít Ondruch)
312
- * Cache DB connections, fixes referential integrity bug when using multiple DBs. (John Ferlito)
313
-
314
- == 0.6.6 2011-03-16
315
-
316
- === Bugfixes
317
-
318
- * Don't modify the array passed in with the :except key. (Eric Wollesen)
319
- * Fixes version checking for postgresql. (Greg Barnett)
320
-
321
- == 0.6.5 2011-03-08
322
-
323
- === Bugfixes
324
-
325
- * When truncating in postgresql (>= 8.4) sequences are now reset. (Greg Barnett)
326
- * Fixes the MongoDB truncation so non system collections starting with 'system' are not excluded for truncation. (Dmitry Naumov)
327
-
328
- == 0.6.4 2011-02-21
329
-
330
- === Bugfixes
331
-
332
- * Avoids trying to drop views in Postgres. (Bernerd Schaefer)
333
-
334
- == 0.6.3 2011-02-09
335
-
336
- === New Features
337
-
338
- * Configurable logger to aid in debugging database cleaner. (Marty Haught)
339
-
340
- == 0.6.2 2011-02-04
341
-
342
- === New Features
343
-
344
- * Support IBM_DB Adapter for table truncation. This is for DB2 >= 9.7 (GH-39 Samer Abukhait)
345
-
346
- === Bugfixes
347
-
348
- * Reversed GH-41 after larger community discussion. Mongo indexes are no longer dropped. (Ben Mabey)
349
- * Truncation strategy works on SqlServer tables with FKs. (GH-33, Hugo Freire)
350
-
351
- == 0.6.1 2011-01-27
352
-
353
- === New Features
354
-
355
- * Default strategies for all ORM libs are defined. (GH-36, GH-38 Prem Sichanugrist)
356
- * Add a NullStrategy. (GH-6 Ben Mabey)
357
-
358
- === Bugfixes
359
-
360
- * Mongo colletion indexes are dropped for collections being removed. (GH-41 Ben Mabey)
361
- * Exclude database views from tables_to_truncate, if the connection adapter
362
- supports reading from the ANSI standard information_schema views. (GH-25 Samer Abukhait)
363
- * ORM types can be specified in string format and not mysteriously blowup. (GH-26 Ben Mabey)
364
- * Do not remove MongoDB reserved system collections. (GH-24 Ches Martin)
365
-
366
- == 0.6.0 2010-10-25 - The Multi-ORM/Connection Release
367
-
368
- This release has the often asked for functionality of being able to clean
369
- multiple databases within the same project. This involves being able to
370
- clean databases managed by the same ORM (i.e. different connections) and
371
- also being able to clean databases managed by distinct ORMs. So, for
372
- example you can now use DatabaseCleaner on a project that has ActiveRecord
373
- and Mongoid to help ensure all DBs all in a clean state. Please see the
374
- README for more information. The old API has been preserved so this release
375
- is backwards compatible.
376
-
377
- This release is a result of Jon Rowe's hard work. Many thanks to Jon for all
378
- of the hours and effort he put into making this feature request a reality.
379
-
380
- === New Features
381
-
382
- * Ability to clean multiple database connections managed by the same ORM. (Jon Rowe)
383
- * Ability to clean multiple DBs managed by different ORMs in same project. (Jon Rowe)
384
- * Allows for the ActiveRecord config file (database.yml) to contain ERB and process it. (Fletcher Nichol)
385
- * Mysql2Adapter support. (Kamal Fariz Mahyuddin and John Ferlito)
386
- * Deletion strategy for ActiveRecord (Mikl Kurkov)
387
-
388
- === Bugfixes
389
-
390
- * Updates the DataMapper truncation strategy to version 0.10.3. (Robert Rouse)
391
- * Addresses Ruby 1.9 and 1.8 differences causing a bug in the AR PostgreSQLAdapter truncation strategy. (GH-14, James B. Byrne)
392
- * Fixes syntax error that MySQL was throwing during DataMapper truncation. (Blake Gentry)
393
- * Fixes truncation for PostgreSQL (Bodaniel Jeanes and Gabriel Sobrinho)
394
- * Workaround for superclass mismatches for the ActiveRecord-jdbc-adapter (Toms Mikoss)
395
-
396
- == 0.5.2
397
-
398
- === Bugfixes
399
-
400
- * Removes extraneous puts call from configuration.rb. (Ben Mabey)
401
-
402
- == 0.5.1 - The Mongoid Release
403
-
404
- This release also attempts to fix AR for Rails 3 support. I have seen mixed reviews on this. Some people
405
- claim the fixes allow for use in Rails3 while others have not had good luck with it. I plan on reworking
406
- the way AR support is added so that it is more friendly with how Rails 3 uses autoload.
407
-
408
- === New features
409
-
410
- * Clean and clean_with methods are now aliased to clean! and clean_with!. (Ben Mabey)
411
- * Mongoid Support! (Sidney Burks)
412
-
413
- === Bugfixes
414
-
415
- * Check PostgreSQL version >= 8.2 before using TRUNCATE CASCADE (James B. Byrne)
416
- * Correct superclass is used in ActiveRecord connection adapters. (johnathan, Aslak Hellesoy, Ben Mabey)
417
-
418
- == 0.5.0 2010-02-22 - The CouchPotato Release
419
-
420
- === New features
421
-
422
- * Basic truncation support for CouchPotato / CouchDB. (Martin Rehfeld)
423
- * SQLite3 on JRuby will fall back to delete if truncate doesn't work. (Darrin Holst)
424
- * JDBC is used for ActiveRecord automaticaly when JRuby is detected. (Darrin Holst)
425
-
426
- === Bufixes
427
-
428
- * MongoMapper truncation strategy now works with :only and :except options. (Ben Mabey)
429
-
430
- == 0.4.3 2010-01-17
431
-
432
- === New features
433
-
434
- * Truncation for ActiveRecord oracle_enhanced adapter. (Edgars Beigarts)
435
-
436
- == 0.4.2 2010-01-12
437
-
438
- === Bufixes
439
-
440
- * Datamapper truncation now uses 'select' instead of deprecated the 'query' method. (Steve Tooke)
441
-
442
- == 0.4.1 2010-01-07
443
-
444
- === Bufixes
445
-
446
- * Postgres tables with FKs now truncate (added TRUNCADE CASCADE) using Datamapper. (Ben Mabey)
447
-
448
- == 0.4.0 2009-12-23 (The MongoMapper Edition)
449
-
450
- === New features
451
-
452
- * MongoMapper support for the truncation strategy. (Aubrey Holland)
453
-
454
- == 0.3.0 2009-12-20
455
-
456
- === New features
457
-
458
- * DataMapper 0.10.0 Compatible. (Martin Gamsjaeger)
459
-
460
- === Bufixes
461
-
462
- * Postgres tables with FKs now truncate (added TRUNCADE CASCADE). (Vika - yozhyk on github)
463
-
464
- == 0.2.3 2009-05-30
465
-
466
- === New features
467
-
468
- * Support for SQL Server truncation (Adam Meehan)
469
-
470
- == 0.2.2 2009-05-08
471
-
472
- === Bufixes
473
-
474
- * Added proper gemspec description and summary. (Ben Mabey, thanks to Martin Gamsjaeger)
475
-
476
- === New features
477
-
478
- == 0.2.1 2009-05-08
479
-
480
- === Bufixes
481
-
482
- * Removed extraneous TruncationBase class definition. (Ben Mabey)
483
-
484
- == 0.2.0 2009-05-08 - The Datamapper Release
485
-
486
- === New features
487
-
488
- * DataMapper strategies (Martin Gamsjaeger)
489
- * Transaction
490
- * Truncation - working SQLite3, MySQL adapters. Experimental Postgres adapter (not tested).
491
-
492
- == 0.1.3 2009-04-30
493
-
494
- === New features
495
-
496
- * PostgresSQLAdapter for AR to support the truncation strategy. (Alberto Perdomo)
497
-
498
- === Bufixes
499
-
500
- * Added missing quotes around table names in truncation calls. (Michael MacDonald)
501
-
502
- == 0.1.2 2009-03-05
503
-
504
- === New features
505
-
506
- * JDBC Adapter to enable AR truncation strategy to work. (Kamal Fariz Mahyuddin)
507
-
508
- == 0.1.1 2009-03-04 - Initial Release (Ben Mabey)
509
-
510
- * Basic infrastructure
511
- * Features, RSpec code examples
512
- * ActiveRecord strategies
513
- * Truncation - with MySQL, and SQLite3 adapters.
514
- * Transaction - wrap your modifications and roll them back.