database_cleaner 1.6.2 → 2.0.0

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