database_cleaner 1.7.0 → 2.0.1

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