File: History.rdoc

package info (click to toggle)
ruby-database-cleaner 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 756 kB
  • sloc: ruby: 4,852; makefile: 10; sh: 4
file content (453 lines) | stat: -rw-r--r-- 15,677 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
== Development (master)

=== Bug Fixes
=== Changes

== 1.7.0 2017-04-19

=== Bug Fixes
  * Remove unnecessary folders from gem: https://github.com/DatabaseCleaner/database_cleaner/pull/508
  * Properly quote table names: https://github.com/DatabaseCleaner/database_cleaner/pull/501
  * Use more idiomatic Ruby in README: https://github.com/DatabaseCleaner/database_cleaner/pull/510
  * Return ::ActiveRecord::Base from `establish_connection`: https://github.com/DatabaseCleaner/database_cleaner/pull/399

=== Changes
  * Safeguard against running in production or running against a remote database: https://github.com/DatabaseCleaner/database_cleaner/pull/521

== 1.6.2 2017-10-29

=== Bug Fixes
  * ActiveRecord::Base namespace patch: https://github.com/DatabaseCleaner/database_cleaner/pull/490
  * Better exclusion condition based on Rails version: https://github.com/DatabaseCleaner/database_cleaner/pull/487

=== Changes
  * Better documentation. Typos were fixed. Sequel deletion is supported: https://github.com/DatabaseCleaner/database_cleaner/pull/500

== 1.6.1 2017-05-09

=== Bug Fixes
  * Deletion strategy fix for ActiveRecord (@kawamoto)

== 1.6.0 2017-05-04

=== New Features/Changes
  * Rails 5.1 support: Remove deprecation warning (@activefx)
  * MySQL 5.6+ InnoDB support (@ahorek)
  * Better documentation (fixed typo) (@hoshinotsuyoshi)

=== Bug Fixes
  * Fix Redis db option (@soylent)
  * Make NullStrategy API-complete (@anicholson)

== 1.5.3 2016-04-22

=== Bug Fixes
  * @P9GIT fixed issue #436

== 1.5.2 2016-04-17

=== New Features/Changes
  * Use default_client with mongoid 5.0 (@stjhimy)
  * Added comparable support for strategies (@st0012)
  * Better README instructions that suggest `append_after` (@jrochkind)
  * Removed deprecation warnings for Rails 5.0+ (@pschambacher)
  * Upgrade to RSpec 2.14 (@skalee)

=== Bug Fixes
  * @dmitrypol fixed issue #409
  * @schmierkov fixed the Travis builds with PR #416
  * @shosti fixed issue #345
  * @kylev fixed issue #379
  * @skalee fixed the Travis builds for Neo4j with PR #433

== 1.5.1 2015-09-05

== Bug Fix
  * Added mongo2 missing files to the gemspec. (@geerzo)

== 1.5.0 2015-09-02

=== New Features/Changes
  * Use ensure within the cleaning method. (@cema-sp)
  * Restored mysql2 + jruby support. (@ahorek)
  * Added required ruby version to gemspec. (@garethrees)
  * Added support for Mongoid 5.0 and Mongo Ruby Driver 2.0. (@jprincipe)
  * Added support for additional Neo4j::Session.open options. (@brienw)
  * And a bunch of code style and README improvements

=== Bug Fixes
  * Fixed truncation for MongoDB 3. (@andreale)
  * Fixed YAML error when building gem. (@joshnesbitt)
  * Fixed deletion strategy for JDBC MySQL. (@DanElbert)
  * Fixed open transactions for multiple connections. (@claptimes5)

== 1.4.1 2015-03-09
  * Support for deletion with Sequel. (@cyberdelia)
  * Use ActiveRecord::Base configuration when different from config file. (@wendy0402)
  * Removed dependency of Mongo. (@codegourmet)
  * Fixed issue with tables schema prefix in Postgres. (@phoenixek12)
  * Use ruby 1.8 syntax. (@daniel-g)
  * Added license to gemspec. (@chrismar035)
  * Improved coverage for migrations table. (@jonallured)

== 1.4.0 2014-12-17

=== New Features/Changes
  * Support for Neo4j. (@dpisarewski)
  * Support for multiple connections on Mongoid. (@nyarly)

=== Better Performance
  * Using the deletion strategy with Mysql now only deletes those tables which have had records added to them. (@MadRabbit)
  * Add support for pre_count on Sequel with Mysql. (@vrinek)
  * Cache collection names in mongo's truncation strategy. (@nyarly)

=== Bug Fixes
  * Fix undefined method error with DataMapper SQLite adaptor. (@lanej)
  * Fully define Mysql2 adaptor constant. (@jgonera)
  * Don't truncate schema tables in Postgres. (@billywatson)
  * Fix issue where Moped cleaner was missing collections with 'system' in their name. (@MartinNowak)

== 1.3.0 2014-05-23

=== New Features/Changes
  * Introduced `DatabaseCleaner::cleaning` method that takes a block. (@ethco)
  * Improved Sequel support and added more tests (@ethco, @rhunter)

=== Bug Fixes

  * Fixed an issue with the `Transaction` strategy and Active Record where application-level transactions
    are not rolledback correctly. (Godfrey Chan)
  * activerecord-oracle_enhanced-adapter now works again (#259, @sockmonk)

== 1.2.0 2013-10-09

A huge thanks goes to @tommeier for fixing the bug with class loading that was cuasing the wrong adapters
to be used in certain cases.

=== New Features/Changes

  * Upgraded RSpec to remove deprecation warnings (John Rowe)
  * Caching of tables to truncate is now optional (@marcoow)

=== Bug Fixes

  * Use class_eval loading of superclasses to ensure right version of class is patched. (Tom Meier, Joel Nimety, Ernesto Tagwerker)
  * Add truncate_tables method to SQLiteAdapter. (Chris Mo)
  * Fixes missing #uses_sequence invokation in adapter classes for sqlite and sqlite3 (Lefteris Laskaridis)


== 1.1.1 2013-08-01

=== Bug Fixes

  * Fixes typo in Postgres superclass (POSTGRE_ADAPTER_PARENT > POSTGRES_ADAPTER_PARENT) (Joel Nimety)

== 1.1.0 2013-08-01

=== New Features/Changes

  * schema_migrations table name is now retrieved from ActiveRecord (Kyle Stevens)
  * Autoloading logic is now exposed, see PR #212 for details (Jeff Felchner)

=== Bug Fixes

  * Deletion strategy works again on MySQL, had to roll back multiple statements patch.
  * Fix MySqlAdapter superclass bug via class_eval loading of superclasses (Tom Meier)
  * Sequel strategy fix dealing with symbol/string mismatch on table names. (Fred Wu)

== 1.0.1 2013-05-13

  * Patch release to fix broken gemspec file.  Sorry folks!

== 1.0.0 2013-05-13

=== New Features/Changes

  * Dropping support for Ruby 1.8.x; Only 1.9.x and beyond will be supported going forward.
  * Now supporting and testing against ruby 2.0.x.
  * Adds support for AR 4.0 by using `begin_transaction` (David Chelimsky and Steve Madsen)
  * Adds Rails 4 support for SQLite3Adapter
  * Suppport for Moped when used without Mongoid (Cyprian Kowalczyk)
  * Redis & Ohm support (Hengbin Qiu, James Conroy-Finn)

  * CI Improvements (Jan Vlnas, Murahashi Sanemat Kenichi, Samer Masry, Jordan Hollinger)
  * README/Documentation improvements (Marcelo Cajueiro, Donald Ball, TJ Chambers, Nick Huanca, Justin Edwards, Ryota Arai)

=== Bug Fixes

  * Fixes transaction errors when using `after_commit` hooks in AR.
  * Fixes truncation error with SQLite (Daniel White)
  * Fixes `pre_count` logic in AR Postgres. (Jordan Hollinger)
  * Sequel fix to normalize all table names to strings. (Lauri Peltola)
  * #clean_with now works with multiple connections. (John Ferlito)
  * Always start a AR transaction to prevent nil errors in AR when rolling back (John Hampton, M.Shibuya)

== 0.9.1 2012-10-11

(0.9.0 was released first but was yanked due to bad gemspec)

=== New Features

  * New options for AR :truncation for speed.  See README for details. (Stanislaw Pankevich)
  * view caching works with the schema_plus gem loaded
    * ActiveRecord::ConnectionAdapters::AbstractAdapter#views was renamed to an internal name
  * ActiveRecord truncation strategy caches the list of tables #130 (Petteri Räty)
  * Caches AR DB connections which speeds up cleaning with multiple DBs and allows for transation strategy.
  * MongoDB :truncation strategy (wihtout use of additional library like Mogoid). #138 (Christopher Darrell & Richard Luther/@sidereel)
  * Add Sequel support for multiple migration storage names in #148 (Jack Chu)
  * Multiple database support for Mongoid 3 #149 (Luke Francl)

=== Bug Fixes

  * :deletion for AR Postgres in JRuby now works #140 (Heiko Seebach)
  * Rescue LoadError when AR adapters not available. #145 (Garrow Bedrossian)
  * Fixes DatabaseCleaner::[] to cache cleaners.

== 0.8.0 2012-06-02

  * Faster truncation strategy for ActiveRecord with MySQL or PostgreSQL
  * Upgrade to RSpec 2
  * Support for Mongoid 3/Moped (Andrew Bennett)
  * Postgres Adapter no longer generates invalid SQL when no tables provided. (Michael-Keith Bernard)

== 0.7.2 2012-03-21

  * Proper Mysql2Adapter superclass fix. (Jonathan Viney)
  * Sequel::Transaction works with latest Sequel. (David Barri)
  * Documenation fixes/improvements. (David Barri, Ben Mabey, Kevin Moore)

== 0.7.1 2012-01-15

=== New Features

  * Support for Rails 3.2. (David Demaree)

=== Bugfixes

  * Truncation resets the id count on SQLite. (Jordan Hollinger)
  * AR delete strategy now disables referential integrity. (Ben Mabey)
  * Fixes Postgres adapter for JRuby. (Dmytrii Nagirniak, Uģis Ozols)
  * Documenation fixes. (Josh Rendek, Joshua Flanagan)
  * Fixes bad error message when no database is specified for AR. (issue #72, Ben Mabey)


== 0.7.0 2011-11-12

=== New Features

  * Sequel Support (Corin Langosch)
  * Updates DataMapper strategies to work with DataMapper 1.1 (Xavier Shay and Anthony Williams)
  * for AR and PSQL, truncate all tables with one command, improving performance due to avoiding cascades (Leonid Shevtsov)

=== Bugfixes

  * Avoids trying to load the ':default' ActiveRecord config. #72 (Ben Mabey)

== 0.6.7 2011-04-21

=== Bugfixes

  * Explicity require ERB. (Vít Ondruch)
  * Cache DB connections, fixes referential integrity bug when using multiple DBs. (John Ferlito)

== 0.6.6 2011-03-16

=== Bugfixes

  * Don't modify the array passed in with the :except key. (Eric Wollesen)
  * Fixes version checking for postgresql. (Greg Barnett)

== 0.6.5 2011-03-08

=== Bugfixes

  * When truncating in postgresql (>= 8.4) sequences are now reset. (Greg Barnett)
  * Fixes the MongoDB truncation so non system collections starting with 'system' are not excluded for truncation. (Dmitry Naumov)

== 0.6.4 2011-02-21

=== Bugfixes

  * Avoids trying to drop views in Postgres. (Bernerd Schaefer)

== 0.6.3 2011-02-09

=== New Features

  * Configurable logger to aid in debugging database cleaner. (Marty Haught)

== 0.6.2 2011-02-04

=== New Features

  * Support IBM_DB Adapter for table truncation. This is for DB2 >= 9.7 (GH-39 Samer Abukhait)

=== Bugfixes

  * Reversed GH-41 after larger community discussion. Mongo indexes are no longer dropped. (Ben Mabey)
  * Truncation strategy works on SqlServer tables with FKs. (GH-33, Hugo Freire)

== 0.6.1 2011-01-27

=== New Features

  * Default strategies for all ORM libs are defined. (GH-36, GH-38 Prem Sichanugrist)
  * Add a NullStrategy. (GH-6 Ben Mabey)

=== Bugfixes

  * Mongo colletion indexes are dropped for collections being removed. (GH-41 Ben Mabey)
  * Exclude database views from tables_to_truncate, if the connection adapter
    supports reading from the ANSI standard information_schema views. (GH-25 Samer Abukhait)
  * ORM types can be specified in string format and not mysteriously blowup. (GH-26 Ben Mabey)
  * Do not remove MongoDB reserved system collections. (GH-24 Ches Martin)

== 0.6.0 2010-10-25 - The Multi-ORM/Connection Release

This release has the often asked for functionality of being able to clean
multiple databases within the same project.  This involves being able to
clean databases managed by the same ORM (i.e. different connections) and
also being able to clean databases managed by distinct ORMs.  So, for
example you can now use DatabaseCleaner on a project that has ActiveRecord
and Mongoid to help ensure all DBs all in a clean state.  Please see the
README for more information.  The old API has been preserved so this release
is backwards compatible.

This release is a result of Jon Rowe's hard work. Many thanks to Jon for all
of the hours and effort he put into making this feature request a reality.

=== New Features

  * Ability to clean multiple database connections managed by the same ORM. (Jon Rowe)
  * Ability to clean multiple DBs managed by different ORMs in same project. (Jon Rowe)
  * Allows for the ActiveRecord config file (database.yml) to contain ERB and process it. (Fletcher Nichol)
  * Mysql2Adapter support. (Kamal Fariz Mahyuddin and John Ferlito)
  * Deletion strategy for ActiveRecord (Mikl Kurkov)

=== Bugfixes

  * Updates the DataMapper truncation strategy to version 0.10.3. (Robert Rouse)
  * Addresses Ruby 1.9 and 1.8 differences causing a bug in the AR PostgreSQLAdapter truncation strategy. (GH-14, James B. Byrne)
  * Fixes syntax error that MySQL was throwing during DataMapper truncation. (Blake Gentry)
  * Fixes truncation for PostgreSQL (Bodaniel Jeanes and Gabriel Sobrinho)
  * Workaround for superclass mismatches for the ActiveRecord-jdbc-adapter (Toms Mikoss)

== 0.5.2

=== Bugfixes

  * Removes extraneous puts call from configuration.rb.  (Ben Mabey)

== 0.5.1 - The Mongoid Release

This release also attempts to fix AR for Rails 3 support.  I have seen mixed reviews on this.  Some people
claim the fixes allow for use in Rails3 while others have not had good luck with it.  I plan on reworking
the way AR support is added so that it is more friendly with how Rails 3 uses autoload.

=== New features

  * Clean and clean_with methods are now aliased to clean! and clean_with!. (Ben Mabey)
  * Mongoid Support! (Sidney Burks)

=== Bugfixes

  * Check PostgreSQL version >= 8.2 before using TRUNCATE CASCADE (James B. Byrne)
  * Correct superclass is used in ActiveRecord connection adapters. (johnathan, Aslak Hellesoy, Ben Mabey)

== 0.5.0 2010-02-22 - The CouchPotato Release

=== New features

  * Basic truncation support for CouchPotato / CouchDB. (Martin Rehfeld)
  * SQLite3 on JRuby will fall back to delete if truncate doesn't work. (Darrin Holst)
  * JDBC is used for ActiveRecord automaticaly when JRuby is detected. (Darrin Holst)

=== Bufixes

  * MongoMapper truncation strategy now works with :only and :except options. (Ben Mabey)

== 0.4.3 2010-01-17

=== New features

  * Truncation for ActiveRecord oracle_enhanced adapter. (Edgars Beigarts)

== 0.4.2 2010-01-12

=== Bufixes

  * Datamapper truncation now uses 'select' instead of deprecated the 'query' method. (Steve Tooke)

== 0.4.1 2010-01-07

=== Bufixes

  * Postgres tables with FKs now truncate (added TRUNCADE CASCADE) using Datamapper. (Ben Mabey)

== 0.4.0 2009-12-23 (The MongoMapper Edition)

=== New features

  * MongoMapper support for the truncation strategy. (Aubrey Holland)

== 0.3.0 2009-12-20

=== New features

  * DataMapper 0.10.0 Compatible. (Martin Gamsjaeger)

=== Bufixes

  * Postgres tables with FKs now truncate (added TRUNCADE CASCADE). (Vika - yozhyk on github)

== 0.2.3 2009-05-30

=== New features

  * Support for SQL Server truncation (Adam Meehan)

== 0.2.2 2009-05-08

=== Bufixes

  * Added proper gemspec description and summary. (Ben Mabey, thanks to Martin Gamsjaeger)

=== New features

== 0.2.1 2009-05-08

=== Bufixes

  * Removed extraneous TruncationBase class definition. (Ben Mabey)

== 0.2.0 2009-05-08 - The Datamapper Release

=== New features

  * DataMapper strategies (Martin Gamsjaeger)
    * Transaction
    * Truncation - working SQLite3, MySQL adapters. Experimental Postgres adapter (not tested).

== 0.1.3 2009-04-30

=== New features

  * PostgresSQLAdapter for AR to support the truncation strategy. (Alberto Perdomo)

=== Bufixes

  * Added missing quotes around table names in truncation calls. (Michael MacDonald)

== 0.1.2 2009-03-05

=== New features

  * JDBC Adapter to enable AR truncation strategy to work. (Kamal Fariz Mahyuddin)

== 0.1.1 2009-03-04 - Initial Release (Ben Mabey)

  * Basic infrastructure
  * Features, RSpec code examples
  * ActiveRecord strategies
    * Truncation - with MySQL, and SQLite3 adapters.
    * Transaction - wrap your modifications and roll them back.