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