database_cleaner 1.8.5 → 2.0.2

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