database_cleaner 1.6.2 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +5 -5
  2. data/CONTRIBUTE.markdown +1 -2
  3. data/Gemfile.lock +132 -93
  4. data/History.rdoc +67 -0
  5. data/README.markdown +88 -217
  6. data/Rakefile +12 -8
  7. data/{lib → adapters/database_cleaner-active_record/lib}/database_cleaner/active_record/base.rb +14 -5
  8. data/{lib → adapters/database_cleaner-active_record/lib}/database_cleaner/active_record/deletion.rb +19 -17
  9. data/{lib → adapters/database_cleaner-active_record/lib}/database_cleaner/active_record/truncation.rb +25 -20
  10. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record/version.rb +5 -0
  11. data/adapters/database_cleaner-active_record/lib/database_cleaner/active_record.rb +6 -0
  12. data/adapters/database_cleaner-active_record/lib/database_cleaner-active_record.rb +1 -0
  13. data/adapters/database_cleaner-couch_potato/lib/database_cleaner/couch_potato/version.rb +5 -0
  14. data/adapters/database_cleaner-couch_potato/lib/database_cleaner/couch_potato.rb +11 -0
  15. data/adapters/database_cleaner-couch_potato/lib/database_cleaner-couch_potato.rb +1 -0
  16. data/{lib → adapters/database_cleaner-data_mapper/lib}/database_cleaner/data_mapper/base.rb +4 -0
  17. data/{lib → adapters/database_cleaner-data_mapper/lib}/database_cleaner/data_mapper/truncation.rb +4 -3
  18. data/adapters/database_cleaner-data_mapper/lib/database_cleaner/data_mapper/version.rb +5 -0
  19. data/adapters/database_cleaner-data_mapper/lib/database_cleaner/data_mapper.rb +4 -0
  20. data/adapters/database_cleaner-data_mapper/lib/database_cleaner-data_mapper.rb +1 -0
  21. data/{lib → adapters/database_cleaner-mongo/lib}/database_cleaner/mongo/truncation.rb +2 -0
  22. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo/version.rb +5 -0
  23. data/adapters/database_cleaner-mongo/lib/database_cleaner/mongo.rb +10 -0
  24. data/adapters/database_cleaner-mongo/lib/database_cleaner-mongo.rb +1 -0
  25. data/{lib → adapters/database_cleaner-mongo_mapper/lib}/database_cleaner/mongo_mapper/base.rb +4 -0
  26. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/truncation.rb +35 -0
  27. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper/version.rb +5 -0
  28. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner/mongo_mapper.rb +4 -0
  29. data/adapters/database_cleaner-mongo_mapper/lib/database_cleaner-mongo_mapper.rb +1 -0
  30. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongo1_truncation_mixin.rb +26 -0
  31. data/{lib/database_cleaner/mongo2/truncation_mixin.rb → adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongo2_truncation_mixin.rb} +3 -4
  32. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/mongoid_truncation_mixin.rb +65 -0
  33. data/{lib → adapters/database_cleaner-mongoid/lib}/database_cleaner/mongoid/truncation.rb +6 -6
  34. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid/version.rb +5 -0
  35. data/adapters/database_cleaner-mongoid/lib/database_cleaner/mongoid.rb +10 -0
  36. data/adapters/database_cleaner-mongoid/lib/database_cleaner-mongoid.rb +1 -0
  37. data/{lib → adapters/database_cleaner-moped/lib}/database_cleaner/moped/base.rb +1 -1
  38. data/{lib → adapters/database_cleaner-moped/lib}/database_cleaner/moped/truncation_base.rb +4 -0
  39. data/adapters/database_cleaner-moped/lib/database_cleaner/moped/version.rb +5 -0
  40. data/adapters/database_cleaner-moped/lib/database_cleaner/moped.rb +10 -0
  41. data/adapters/database_cleaner-moped/lib/database_cleaner-moped.rb +1 -0
  42. data/{lib → adapters/database_cleaner-neo4j/lib}/database_cleaner/neo4j/base.rb +4 -0
  43. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j/version.rb +5 -0
  44. data/adapters/database_cleaner-neo4j/lib/database_cleaner/neo4j.rb +6 -0
  45. data/adapters/database_cleaner-neo4j/lib/database_cleaner-neo4j.rb +1 -0
  46. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm/truncation.rb +24 -0
  47. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm/version.rb +5 -0
  48. data/adapters/database_cleaner-ohm/lib/database_cleaner/ohm.rb +12 -0
  49. data/adapters/database_cleaner-ohm/lib/database_cleaner-ohm.rb +1 -0
  50. data/{lib → adapters/database_cleaner-redis/lib}/database_cleaner/redis/base.rb +4 -0
  51. data/adapters/database_cleaner-redis/lib/database_cleaner/redis/version.rb +5 -0
  52. data/adapters/database_cleaner-redis/lib/database_cleaner/redis.rb +4 -0
  53. data/adapters/database_cleaner-redis/lib/database_cleaner-redis.rb +1 -0
  54. data/{lib → adapters/database_cleaner-sequel/lib}/database_cleaner/sequel/base.rb +4 -0
  55. data/{lib → adapters/database_cleaner-sequel/lib}/database_cleaner/sequel/truncation.rb +16 -15
  56. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel/version.rb +5 -0
  57. data/adapters/database_cleaner-sequel/lib/database_cleaner/sequel.rb +6 -0
  58. data/adapters/database_cleaner-sequel/lib/database_cleaner-sequel.rb +1 -0
  59. data/lib/database_cleaner/base.rb +94 -105
  60. data/lib/database_cleaner/configuration.rb +87 -83
  61. data/lib/database_cleaner/deprecation.rb +26 -0
  62. data/lib/database_cleaner/null_strategy.rb +6 -6
  63. data/lib/database_cleaner/orm_autodetector.rb +41 -0
  64. data/lib/database_cleaner/safeguard.rb +107 -0
  65. data/lib/database_cleaner/spec/database_helper.rb +82 -0
  66. data/lib/database_cleaner/spec/shared_examples.rb +15 -0
  67. data/lib/database_cleaner/spec.rb +2 -0
  68. data/lib/database_cleaner/version.rb +3 -0
  69. data/lib/database_cleaner.rb +41 -2
  70. metadata +113 -126
  71. data/VERSION.yml +0 -4
  72. data/examples/Gemfile +0 -1
  73. data/examples/Gemfile.lock +0 -1
  74. data/examples/config/database.yml.example +0 -8
  75. data/examples/config/redis.yml +0 -8
  76. data/examples/db/sqlite_databases_go_here +0 -0
  77. data/examples/features/example.feature +0 -11
  78. data/examples/features/example_multiple_db.feature +0 -23
  79. data/examples/features/example_multiple_orm.feature +0 -22
  80. data/examples/features/step_definitions/activerecord_steps.rb +0 -31
  81. data/examples/features/step_definitions/couchpotato_steps.rb +0 -31
  82. data/examples/features/step_definitions/datamapper_steps.rb +0 -37
  83. data/examples/features/step_definitions/mongoid_steps.rb +0 -23
  84. data/examples/features/step_definitions/mongomapper_steps.rb +0 -31
  85. data/examples/features/step_definitions/neo4j_steps.rb +0 -23
  86. data/examples/features/step_definitions/ohm_steps.rb +0 -31
  87. data/examples/features/step_definitions/redis_steps.rb +0 -31
  88. data/examples/features/step_definitions/translation_steps.rb +0 -55
  89. data/examples/features/support/env.rb +0 -61
  90. data/examples/lib/activerecord_models.rb +0 -41
  91. data/examples/lib/couchpotato_models.rb +0 -61
  92. data/examples/lib/datamapper_models.rb +0 -50
  93. data/examples/lib/mongoid_models.rb +0 -44
  94. data/examples/lib/mongomapper_models.rb +0 -51
  95. data/examples/lib/neo4j_models.rb +0 -17
  96. data/examples/lib/ohm_models.rb +0 -43
  97. data/examples/lib/redis_models.rb +0 -65
  98. data/examples/lib/sequel_models.rb +0 -9
  99. data/features/cleaning.feature +0 -30
  100. data/features/cleaning_default_strategy.feature +0 -23
  101. data/features/cleaning_multiple_dbs.feature +0 -22
  102. data/features/cleaning_multiple_orms.feature +0 -67
  103. data/features/step_definitions/database_cleaner_steps.rb +0 -33
  104. data/features/support/env.rb +0 -4
  105. data/features/support/feature_runner.rb +0 -39
  106. data/lib/database_cleaner/mongo2/base.rb +0 -16
  107. data/lib/database_cleaner/mongo_mapper/truncation.rb +0 -19
  108. data/lib/database_cleaner/ohm/truncation.rb +0 -15
  109. data/spec/database_cleaner/active_record/base_spec.rb +0 -188
  110. data/spec/database_cleaner/active_record/transaction_spec.rb +0 -176
  111. data/spec/database_cleaner/active_record/truncation/mysql2_spec.rb +0 -38
  112. data/spec/database_cleaner/active_record/truncation/mysql_spec.rb +0 -38
  113. data/spec/database_cleaner/active_record/truncation/postgresql_spec.rb +0 -75
  114. data/spec/database_cleaner/active_record/truncation/shared_fast_truncation.rb +0 -40
  115. data/spec/database_cleaner/active_record/truncation/sqlite3_spec.rb +0 -40
  116. data/spec/database_cleaner/active_record/truncation_spec.rb +0 -180
  117. data/spec/database_cleaner/base_spec.rb +0 -617
  118. data/spec/database_cleaner/configuration_spec.rb +0 -345
  119. data/spec/database_cleaner/couch_potato/truncation_spec.rb +0 -41
  120. data/spec/database_cleaner/data_mapper/base_spec.rb +0 -30
  121. data/spec/database_cleaner/data_mapper/transaction_spec.rb +0 -23
  122. data/spec/database_cleaner/data_mapper/truncation/sqlite3_spec.rb +0 -41
  123. data/spec/database_cleaner/data_mapper/truncation_spec.rb +0 -11
  124. data/spec/database_cleaner/generic/base_spec.rb +0 -61
  125. data/spec/database_cleaner/generic/truncation_spec.rb +0 -118
  126. data/spec/database_cleaner/mongo/mongo_examples.rb +0 -26
  127. data/spec/database_cleaner/mongo/truncation_spec.rb +0 -72
  128. data/spec/database_cleaner/mongo_mapper/base_spec.rb +0 -33
  129. data/spec/database_cleaner/mongo_mapper/mongo_examples.rb +0 -8
  130. data/spec/database_cleaner/mongo_mapper/truncation_spec.rb +0 -74
  131. data/spec/database_cleaner/moped/moped_examples.rb +0 -32
  132. data/spec/database_cleaner/moped/truncation_spec.rb +0 -80
  133. data/spec/database_cleaner/neo4j/base_spec.rb +0 -43
  134. data/spec/database_cleaner/neo4j/transaction_spec.rb +0 -25
  135. data/spec/database_cleaner/null_strategy_spec.rb +0 -28
  136. data/spec/database_cleaner/ohm/truncation_spec.rb +0 -70
  137. data/spec/database_cleaner/redis/base_spec.rb +0 -43
  138. data/spec/database_cleaner/redis/truncation_spec.rb +0 -63
  139. data/spec/database_cleaner/sequel/base_spec.rb +0 -32
  140. data/spec/database_cleaner/sequel/deletion_spec.rb +0 -58
  141. data/spec/database_cleaner/sequel/transaction_spec.rb +0 -21
  142. data/spec/database_cleaner/sequel/truncation/sqlite3_spec.rb +0 -0
  143. data/spec/database_cleaner/sequel/truncation_spec.rb +0 -182
  144. data/spec/database_cleaner/shared_strategy.rb +0 -15
  145. data/spec/rcov.opts +0 -1
  146. data/spec/spec_helper.rb +0 -21
  147. data/spec/support/active_record/database_setup.rb +0 -6
  148. data/spec/support/active_record/migrations/20150101010000_create_users.rb +0 -14
  149. data/spec/support/active_record/migrations/20150101020000_create_agents.rb +0 -14
  150. data/spec/support/active_record/mysql2_setup.rb +0 -39
  151. data/spec/support/active_record/mysql_setup.rb +0 -38
  152. data/spec/support/active_record/postgresql_setup.rb +0 -48
  153. data/spec/support/active_record/schema_setup.rb +0 -17
  154. data/spec/support/active_record/sqlite3_setup.rb +0 -40
  155. data/spec/support/data_mapper/schema_setup.rb +0 -15
  156. data/spec/support/data_mapper/sqlite3_setup.rb +0 -39
  157. /data/{lib → adapters/database_cleaner-active_record/lib}/database_cleaner/active_record/transaction.rb +0 -0
  158. /data/{lib → adapters/database_cleaner-couch_potato/lib}/database_cleaner/couch_potato/base.rb +0 -0
  159. /data/{lib → adapters/database_cleaner-couch_potato/lib}/database_cleaner/couch_potato/truncation.rb +0 -0
  160. /data/{lib → adapters/database_cleaner-data_mapper/lib}/database_cleaner/data_mapper/transaction.rb +0 -0
  161. /data/{lib → adapters/database_cleaner-mongo/lib}/database_cleaner/mongo/base.rb +0 -0
  162. /data/{lib → adapters/database_cleaner-mongo/lib}/database_cleaner/mongo/truncation_mixin.rb +0 -0
  163. /data/{lib → adapters/database_cleaner-mongoid/lib}/database_cleaner/mongoid/base.rb +0 -0
  164. /data/{lib → adapters/database_cleaner-moped/lib}/database_cleaner/moped/truncation.rb +0 -0
  165. /data/{lib → adapters/database_cleaner-neo4j/lib}/database_cleaner/neo4j/deletion.rb +0 -0
  166. /data/{lib → adapters/database_cleaner-neo4j/lib}/database_cleaner/neo4j/transaction.rb +0 -0
  167. /data/{lib → adapters/database_cleaner-neo4j/lib}/database_cleaner/neo4j/truncation.rb +0 -0
  168. /data/{lib → adapters/database_cleaner-redis/lib}/database_cleaner/redis/truncation.rb +0 -0
  169. /data/{lib → adapters/database_cleaner-sequel/lib}/database_cleaner/sequel/deletion.rb +0 -0
  170. /data/{lib → adapters/database_cleaner-sequel/lib}/database_cleaner/sequel/transaction.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5e5f677e2a786401bf752e1c2c1d52166244c50b
4
- data.tar.gz: 940e89a60acc778efb0bc71ca4c75c45205f5b72
2
+ SHA256:
3
+ metadata.gz: 51b1c0f591c9266160e7ba246ab5a2e0edc88ff8e55aa10b205dad2371db9222
4
+ data.tar.gz: cbea6b1677f20cd1bc95eb0578df54933cdd329a034e67ef876b8bf9f1d406c6
5
5
  SHA512:
6
- metadata.gz: 814c2563fecfc2c9951f59872630d144f300b367df97bd796bcbe7880afc8edfb4d23cab864ace6be2d34c7a3f295497152702f7f4500c90f8d7a052500d55cb
7
- data.tar.gz: ddf414110b85f545a6872f6e45804d4a43f7f7020d0d71eb886f840a4bdaa1b8fd11476f009fead47c9a6d716135bd1158e5adc2d9999b966f6cb6430a34e549
6
+ metadata.gz: 73ddb8b888360027d2f09c8c1f04a2e71605dad8b1166744df0b9b61c4c4ae382a5f43631857fe34ef8f899e7c0733351eddb014b6c729b8e394bd609ef484de
7
+ data.tar.gz: e3a654d8957c9f200750c244995e293a7a487c82f9885204cd6e29ac382daf1acc6101c751a25e42cdd418dd1afe6b9c90b46bb2386ec08573afa447dc468122
data/CONTRIBUTE.markdown CHANGED
@@ -11,8 +11,7 @@ upstream:
11
11
  ## 2. Make sure the tests run fine
12
12
 
13
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`
14
+ - Copy `spec/support/sample.config.yml` to `spec/support/config.yml` and edit it
16
15
  - Run the tests with `bundle exec rspec`
17
16
 
18
17
  Note that if you don't have all the supported databases installed and running,
data/Gemfile.lock CHANGED
@@ -1,22 +1,51 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- database_cleaner (1.6.2)
4
+ database_cleaner (1.8.5)
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
5
45
 
6
46
  GEM
7
47
  remote: https://rubygems.org/
8
48
  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
49
  activemodel (3.0.0)
21
50
  activesupport (= 3.0.0)
22
51
  builder (~> 2.1.2)
@@ -38,20 +67,20 @@ GEM
38
67
  bcrypt (>= 3.1.3)
39
68
  bcrypt-ruby (3.1.5-java)
40
69
  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)
70
+ bson (1.12.5)
71
+ bson (1.12.5-java)
72
+ bson_ext (1.12.5)
73
+ bson (~> 1.12.5)
45
74
  builder (2.1.2)
46
- coderay (1.1.0)
75
+ coderay (1.1.2)
47
76
  couch_potato (1.3.0)
48
77
  activemodel
49
78
  couchrest (~> 1.2.0)
50
79
  json (~> 1.6)
51
- couchrest (1.2.0)
52
- mime-types (~> 1.15)
53
- multi_json (~> 1.0)
54
- rest-client (~> 1.6.1)
80
+ couchrest (1.2.1)
81
+ mime-types (>= 1.15)
82
+ multi_json (~> 1.7, ~> 1.0)
83
+ rest-client (~> 1.8.0)
55
84
  cucumber (1.2.1)
56
85
  builder (>= 2.1.2)
57
86
  diff-lcs (>= 1.1.3)
@@ -69,7 +98,7 @@ GEM
69
98
  dm-transactions (~> 1.2.0)
70
99
  dm-types (~> 1.2.0)
71
100
  dm-validations (~> 1.2.0)
72
- diff-lcs (1.2.5)
101
+ diff-lcs (1.3)
73
102
  dm-aggregates (1.2.0)
74
103
  dm-core (~> 1.2.0)
75
104
  dm-constraints (1.2.0)
@@ -112,47 +141,53 @@ GEM
112
141
  data_objects (= 0.10.14)
113
142
  do_jdbc (= 0.10.14)
114
143
  jdbc-sqlite3 (>= 3.5.8)
115
- erubis (2.6.6)
116
- abstract (>= 1.0.0)
144
+ domain_name (0.5.20180417)
145
+ unf (>= 0.0.5, < 1.0.0)
117
146
  faraday (0.9.0)
118
147
  multipart-post (>= 1.2, < 3)
119
148
  faraday_middleware (0.9.1)
120
149
  faraday (>= 0.7.4, < 0.10)
121
150
  fastercsv (1.5.5)
122
- ffi (1.9.6)
123
- ffi (1.9.6-java)
151
+ ffi (1.9.25)
152
+ ffi (1.9.25-java)
124
153
  formatador (0.2.5)
125
154
  gherkin (2.11.6)
126
155
  json (>= 1.7.6)
127
156
  gherkin (2.11.6-java)
128
157
  json (>= 1.7.6)
129
- guard (1.8.3)
158
+ guard (2.14.2)
130
159
  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)
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)
138
174
  httparty (0.13.3)
139
175
  json (~> 1.8)
140
176
  multi_xml (>= 0.5.2)
141
177
  httpclient (2.5.3.3)
142
178
  i18n (0.4.2)
143
179
  jdbc-sqlite3 (3.8.10.1)
144
- json (1.8.1)
145
- json (1.8.1-java)
180
+ json (1.8.6)
181
+ json (1.8.6-java)
146
182
  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)
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)
156
191
  mongo_ext (0.19.3)
157
192
  mongo_mapper (0.12.0)
158
193
  activemodel (~> 3.0)
@@ -165,11 +200,12 @@ GEM
165
200
  mongoid-tree (0.7.0)
166
201
  mongoid (~> 2.0)
167
202
  moped (1.5.2)
168
- multi_json (1.2.0)
203
+ multi_json (1.13.1)
169
204
  multi_xml (0.5.5)
170
205
  multipart-post (2.0.0)
171
206
  mysql (2.9.1)
172
207
  mysql2 (0.3.18)
208
+ nenv (0.3.0)
173
209
  neo4j-community (2.1.5)
174
210
  neo4j-core (3.0.8)
175
211
  activesupport
@@ -185,67 +221,57 @@ GEM
185
221
  nest (1.1.2)
186
222
  redis
187
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)
188
228
  ohm (0.1.5)
189
229
  nest (~> 1.0)
190
230
  os (0.9.6)
191
231
  pg (0.18.2)
192
232
  plucky (0.5.2)
193
233
  mongo (~> 1.5)
194
- pry (0.10.1)
234
+ pry (0.11.3)
195
235
  coderay (~> 1.1.0)
196
- method_source (~> 0.8.1)
197
- slop (~> 3.4)
198
- pry (0.10.1-java)
236
+ method_source (~> 0.9.0)
237
+ pry (0.11.3-java)
199
238
  coderay (~> 1.1.0)
200
- method_source (~> 0.8.1)
201
- slop (~> 3.4)
239
+ method_source (~> 0.9.0)
202
240
  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
241
  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)
242
+ rb-fsevent (0.10.3)
243
+ rb-inotify (0.9.10)
244
+ ffi (>= 0.5.0, < 2)
221
245
  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)
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)
241
263
  sequel (3.21.0)
242
- slop (3.6.0)
243
- spoon (0.0.4)
264
+ shellany (0.0.1)
265
+ spoon (0.0.6)
244
266
  ffi
245
267
  sqlite3 (1.3.10)
246
268
  stringex (1.5.1)
247
- thor (0.14.6)
269
+ thor (0.20.0)
248
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)
249
275
  uuidtools (2.1.5)
250
276
  zip (2.0.2)
251
277
 
@@ -261,11 +287,24 @@ DEPENDENCIES
261
287
  couch_potato
262
288
  cucumber
263
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!
264
301
  datamapper
265
302
  dm-migrations
266
303
  dm-sqlite-adapter
267
304
  guard-rspec
268
305
  json_pure
306
+ listen (~> 3.0.0)
307
+ mongo (~> 1.12.0)
269
308
  mongo_ext
270
309
  mongo_mapper
271
310
  mongoid
@@ -277,10 +316,10 @@ DEPENDENCIES
277
316
  ohm (~> 0.1.3)
278
317
  pg
279
318
  rake
280
- rspec-rails (~> 2.14.2)
319
+ rspec
281
320
  sequel (~> 3.21.0)
282
321
  sqlite3
283
322
  tzinfo
284
323
 
285
324
  BUNDLED WITH
286
- 1.15.0
325
+ 1.17.3
data/History.rdoc CHANGED
@@ -1,5 +1,72 @@
1
1
  == Development (master)
2
2
 
3
+ == 1.8.5 2020-05-04
4
+
5
+ === Bug Fixes
6
+ * Fix :mongo strategy: https://github.com/DatabaseCleaner/database_cleaner/pull/645
7
+
8
+ == 1.8.4 2020-04-02
9
+
10
+ === Bug Fixes
11
+ * Fix false positive deprecation warnings on Windows: https://github.com/DatabaseCleaner/database_cleaner/pull/633
12
+
13
+ == 1.8.3 2020-02-18
14
+
15
+ === Bug Fixes
16
+ * Fix performance issue of DatabaseCleaner::Base#orm_module: https://github.com/DatabaseCleaner/database_cleaner/pull/625
17
+
18
+ == 1.8.2 2020-02-01
19
+
20
+ === Bug Fixes
21
+ * Fix database_cleaner-ohm autodetected adapter loading: https://github.com/DatabaseCleaner/database_cleaner/pull/619
22
+ * Fix database_cleaner-mongo_mapper autodetected adapter loading: @botandrose
23
+ * Fix database_cleaner-mongoid autodetected adapter loading: https://github.com/DatabaseCleaner/database_cleaner/pull/617
24
+ * Exclude ar_internal_metadata from truncation on Rails 5: https://github.com/DatabaseCleaner/database_cleaner/pull/588
25
+
26
+ === Changes
27
+ * Deprecate ohm adapter: https://github.com/DatabaseCleaner/database_cleaner/pull/619
28
+
29
+ == 1.8.1 2020-01-30
30
+
31
+ === Bug Fixes
32
+ * Remove undeclared active_support dependency: https://github.com/DatabaseCleaner/database_cleaner/pull/612
33
+
34
+ == 1.8.0 2020-01-29
35
+
36
+ === Bug Fixes
37
+ * Fix MySQL deprecation warnings with Rails 5: https://github.com/DatabaseCleaner/database_cleaner/pull/574
38
+ * Fix MySQL truncation with `pre_count: true`: https://github.com/DatabaseCleaner/database_cleaner/pull/498
39
+ * Fix primary key sequence resetting in Sequel with Postgres and SQLite: https://github.com/DatabaseCleaner/database_cleaner/pull/538/files
40
+ * ActiveRecord truncation adapter doesn't work with Oracle: https://github.com/DatabaseCleaner/database_cleaner/pull/542
41
+
42
+ === Changes
43
+ * Extract ORM adapters into gems: https://github.com/DatabaseCleaner/database_cleaner/pull/560
44
+ * Allow postgres:///dbname as a local url: https://github.com/DatabaseCleaner/database_cleaner/pull/569
45
+ * Add an optional URL whitelist safeguard: https://github.com/DatabaseCleaner/database_cleaner/pull/526
46
+ * Add `local` tld to safeguard check: https://github.com/DatabaseCleaner/database_cleaner/pull/547
47
+ * Speed up ActiveRecord deletion strategy: https://github.com/DatabaseCleaner/database_cleaner/pull/534
48
+ * Consider `sqlite:` database urls to be local: https://github.com/DatabaseCleaner/database_cleaner/pull/529
49
+
50
+ == 1.7.0 2018-04-19
51
+
52
+ === Bug Fixes
53
+ * Remove unnecessary folders from gem: https://github.com/DatabaseCleaner/database_cleaner/pull/508
54
+ * Properly quote table names: https://github.com/DatabaseCleaner/database_cleaner/pull/501
55
+ * Use more idiomatic Ruby in README: https://github.com/DatabaseCleaner/database_cleaner/pull/510
56
+ * Return ::ActiveRecord::Base from `establish_connection`: https://github.com/DatabaseCleaner/database_cleaner/pull/399
57
+
58
+ === Changes
59
+ * Safeguard against running in production or running against a remote database: https://github.com/DatabaseCleaner/database_cleaner/pull/521
60
+
61
+ == 1.6.2 2017-10-29
62
+
63
+ === Bug Fixes
64
+ * ActiveRecord::Base namespace patch: https://github.com/DatabaseCleaner/database_cleaner/pull/490
65
+ * Better exclusion condition based on Rails version: https://github.com/DatabaseCleaner/database_cleaner/pull/487
66
+
67
+ === Changes
68
+ * Better documentation. Typos were fixed. Sequel deletion is supported: https://github.com/DatabaseCleaner/database_cleaner/pull/500
69
+
3
70
  == 1.6.1 2017-05-09
4
71
 
5
72
  === Bug Fixes