database_cleaner 1.8.4 → 2.0.0

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