database_cleaner 1.99.0 → 2.0.1

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 +12 -482
  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/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 -288
  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 -13
  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 -6
  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/deletion.rb +0 -8
  31. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/truncation.rb +0 -74
  32. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/truncation_mixin.rb +0 -26
  33. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/version.rb +0 -5
  34. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo.rb +0 -11
  35. data/adapters/database_cleaner-mongo/lib/database_cleaner-mongo.rb +0 -1
  36. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/base.rb +0 -24
  37. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/truncation.rb +0 -35
  38. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/version.rb +0 -5
  39. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper.rb +0 -5
  40. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner-mongo_mapper.rb +0 -1
  41. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/base.rb +0 -20
  42. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/deletion.rb +0 -10
  43. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongo1_truncation_mixin.rb +0 -26
  44. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongo2_truncation_mixin.rb +0 -38
  45. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongoid_truncation_mixin.rb +0 -65
  46. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/truncation.rb +0 -49
  47. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/version.rb +0 -5
  48. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid.rb +0 -11
  49. data/adapters/database_cleaner-mongoid/lib/database_cleaner-mongoid.rb +0 -1
  50. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/base.rb +0 -39
  51. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/truncation.rb +0 -9
  52. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/truncation_base.rb +0 -44
  53. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/version.rb +0 -5
  54. data/adapters/database_cleaner-moped/lib/database_cleaner/moped.rb +0 -12
  55. data/adapters/database_cleaner-moped/lib/database_cleaner-moped.rb +0 -1
  56. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/base.rb +0 -66
  57. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/deletion.rb +0 -16
  58. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/transaction.rb +0 -35
  59. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/truncation.rb +0 -9
  60. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/version.rb +0 -5
  61. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j.rb +0 -7
  62. data/adapters/database_cleaner-neo4j/lib/database_cleaner-neo4j.rb +0 -1
  63. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm/truncation.rb +0 -24
  64. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm/version.rb +0 -5
  65. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm.rb +0 -12
  66. data/adapters/database_cleaner-ohm/lib/database_cleaner-ohm.rb +0 -1
  67. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/base.rb +0 -45
  68. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/deletion.rb +0 -9
  69. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/truncation.rb +0 -26
  70. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/version.rb +0 -5
  71. data/adapters/database_cleaner-redis/lib/database_cleaner/redis.rb +0 -5
  72. data/adapters/database_cleaner-redis/lib/database_cleaner-redis.rb +0 -1
  73. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/base.rb +0 -26
  74. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/deletion.rb +0 -47
  75. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/transaction.rb +0 -40
  76. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/truncation.rb +0 -79
  77. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/version.rb +0 -5
  78. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel.rb +0 -6
  79. data/adapters/database_cleaner-sequel/lib/database_cleaner-sequel.rb +0 -1
  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/database_helper.rb +0 -82
  92. data/lib/database_cleaner/spec/shared_examples.rb +0 -15
  93. data/lib/database_cleaner/spec.rb +0 -2
  94. data/lib/database_cleaner/version.rb +0 -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.
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.