database_cleaner 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +2 -2
- data/README.markdown +2 -2
- data/VERSION.yml +1 -1
- data/examples/Gemfile +1 -0
- data/examples/Gemfile.lock +1 -0
- data/lib/database_cleaner/active_record/base.rb +8 -0
- data/lib/database_cleaner/active_record/deletion.rb +1 -1
- data/lib/database_cleaner/active_record/truncation.rb +1 -1
- metadata +194 -118
- data/examples/Gemfile +0 -1
- data/examples/Gemfile.lock +0 -286
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5e5f677e2a786401bf752e1c2c1d52166244c50b
|
4
|
+
data.tar.gz: 940e89a60acc778efb0bc71ca4c75c45205f5b72
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 814c2563fecfc2c9951f59872630d144f300b367df97bd796bcbe7880afc8edfb4d23cab864ace6be2d34c7a3f295497152702f7f4500c90f8d7a052500d55cb
|
7
|
+
data.tar.gz: ddf414110b85f545a6872f6e45804d4a43f7f7020d0d71eb886f840a4bdaa1b8fd11476f009fead47c9a6d716135bd1158e5adc2d9999b966f6cb6430a34e549
|
data/Gemfile.lock
CHANGED
data/README.markdown
CHANGED
@@ -65,7 +65,7 @@ Here is an overview of the strategies supported for each library:
|
|
65
65
|
<td> Sequel</td>
|
66
66
|
<td> <b>Yes</b></td>
|
67
67
|
<td> Yes</td>
|
68
|
-
<td>
|
68
|
+
<td> Yes</td>
|
69
69
|
</tr>
|
70
70
|
<tr>
|
71
71
|
<td>Redis</td>
|
@@ -363,7 +363,7 @@ This should cover the basics of tear down between scenarios and keeping your dat
|
|
363
363
|
|
364
364
|
For more examples see the section ["Why?"](#why).
|
365
365
|
|
366
|
-
## How to use with multiple
|
366
|
+
## How to use with multiple ORMs
|
367
367
|
|
368
368
|
Sometimes you need to use multiple ORMs in your application.
|
369
369
|
|
data/VERSION.yml
CHANGED
data/examples/Gemfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
examples/../Gemfile
|
@@ -0,0 +1 @@
|
|
1
|
+
examples/../Gemfile.lock
|
@@ -65,6 +65,14 @@ module DatabaseCleaner
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
+
def self.exclusion_condition(column_name)
|
69
|
+
result = " #{column_name} <> '#{::DatabaseCleaner::ActiveRecord::Base.migration_table_name}' "
|
70
|
+
if ::ActiveRecord::VERSION::MAJOR >= 5
|
71
|
+
result += " AND #{column_name} <> '#{::ActiveRecord::Base.internal_metadata_table_name}' "
|
72
|
+
end
|
73
|
+
result
|
74
|
+
end
|
75
|
+
|
68
76
|
private
|
69
77
|
|
70
78
|
def lookup_from_connection_pool
|
@@ -72,7 +72,7 @@ module DatabaseCleaner::ActiveRecord
|
|
72
72
|
INFORMATION_SCHEMA.TABLES
|
73
73
|
WHERE
|
74
74
|
table_schema = '#{db_name}'
|
75
|
-
AND
|
75
|
+
AND #{::DatabaseCleaner::ActiveRecord::Base.exclusion_condition('table_name')};
|
76
76
|
SQL
|
77
77
|
end
|
78
78
|
end
|
@@ -192,7 +192,7 @@ module DatabaseCleaner
|
|
192
192
|
FROM pg_tables
|
193
193
|
WHERE
|
194
194
|
tablename !~ '_prt_' AND
|
195
|
-
|
195
|
+
#{::DatabaseCleaner::ActiveRecord::Base.exclusion_condition('tablename')} AND
|
196
196
|
schemaname = ANY (current_schemas(false))
|
197
197
|
_SQL
|
198
198
|
rows.collect { |result| result.first }
|
metadata
CHANGED
@@ -1,302 +1,379 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_cleaner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
5
|
-
prerelease:
|
4
|
+
version: 1.6.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ben Mabey
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2017-
|
11
|
+
date: 2017-10-30 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: bundler
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: json_pure
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
|
-
- -
|
45
|
+
- - ">="
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '0'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: activerecord-mysql2-adapter
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ">="
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
58
69
|
- !ruby/object:Gem::Dependency
|
59
70
|
name: activerecord
|
60
|
-
requirement:
|
61
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
62
72
|
requirements:
|
63
|
-
- -
|
73
|
+
- - ">="
|
64
74
|
- !ruby/object:Gem::Version
|
65
75
|
version: '0'
|
66
76
|
type: :development
|
67
77
|
prerelease: false
|
68
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: datamapper
|
71
|
-
requirement:
|
72
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
73
86
|
requirements:
|
74
|
-
- -
|
87
|
+
- - ">="
|
75
88
|
- !ruby/object:Gem::Version
|
76
89
|
version: '0'
|
77
90
|
type: :development
|
78
91
|
prerelease: false
|
79
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
80
97
|
- !ruby/object:Gem::Dependency
|
81
98
|
name: dm-migrations
|
82
|
-
requirement:
|
83
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
84
100
|
requirements:
|
85
|
-
- -
|
101
|
+
- - ">="
|
86
102
|
- !ruby/object:Gem::Version
|
87
103
|
version: '0'
|
88
104
|
type: :development
|
89
105
|
prerelease: false
|
90
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
91
111
|
- !ruby/object:Gem::Dependency
|
92
112
|
name: dm-sqlite-adapter
|
93
|
-
requirement:
|
94
|
-
none: false
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
95
114
|
requirements:
|
96
|
-
- -
|
115
|
+
- - ">="
|
97
116
|
- !ruby/object:Gem::Version
|
98
117
|
version: '0'
|
99
118
|
type: :development
|
100
119
|
prerelease: false
|
101
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
102
125
|
- !ruby/object:Gem::Dependency
|
103
126
|
name: mongoid
|
104
|
-
requirement:
|
105
|
-
none: false
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
106
128
|
requirements:
|
107
|
-
- -
|
129
|
+
- - ">="
|
108
130
|
- !ruby/object:Gem::Version
|
109
131
|
version: '0'
|
110
132
|
type: :development
|
111
133
|
prerelease: false
|
112
|
-
version_requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
113
139
|
- !ruby/object:Gem::Dependency
|
114
140
|
name: tzinfo
|
115
|
-
requirement:
|
116
|
-
none: false
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
117
142
|
requirements:
|
118
|
-
- -
|
143
|
+
- - ">="
|
119
144
|
- !ruby/object:Gem::Version
|
120
145
|
version: '0'
|
121
146
|
type: :development
|
122
147
|
prerelease: false
|
123
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
124
153
|
- !ruby/object:Gem::Dependency
|
125
154
|
name: mongoid-tree
|
126
|
-
requirement:
|
127
|
-
none: false
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
128
156
|
requirements:
|
129
|
-
- -
|
157
|
+
- - ">="
|
130
158
|
- !ruby/object:Gem::Version
|
131
159
|
version: '0'
|
132
160
|
type: :development
|
133
161
|
prerelease: false
|
134
|
-
version_requirements:
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
135
167
|
- !ruby/object:Gem::Dependency
|
136
168
|
name: mongo_mapper
|
137
|
-
requirement:
|
138
|
-
none: false
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
139
170
|
requirements:
|
140
|
-
- -
|
171
|
+
- - ">="
|
141
172
|
- !ruby/object:Gem::Version
|
142
173
|
version: '0'
|
143
174
|
type: :development
|
144
175
|
prerelease: false
|
145
|
-
version_requirements:
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
146
181
|
- !ruby/object:Gem::Dependency
|
147
182
|
name: moped
|
148
|
-
requirement:
|
149
|
-
none: false
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
150
184
|
requirements:
|
151
|
-
- -
|
185
|
+
- - ">="
|
152
186
|
- !ruby/object:Gem::Version
|
153
187
|
version: '0'
|
154
188
|
type: :development
|
155
189
|
prerelease: false
|
156
|
-
version_requirements:
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
157
195
|
- !ruby/object:Gem::Dependency
|
158
196
|
name: neo4j-core
|
159
|
-
requirement:
|
160
|
-
none: false
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
161
198
|
requirements:
|
162
|
-
- -
|
199
|
+
- - ">="
|
163
200
|
- !ruby/object:Gem::Version
|
164
201
|
version: '0'
|
165
202
|
type: :development
|
166
203
|
prerelease: false
|
167
|
-
version_requirements:
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ">="
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
168
209
|
- !ruby/object:Gem::Dependency
|
169
210
|
name: couch_potato
|
170
|
-
requirement:
|
171
|
-
none: false
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
172
212
|
requirements:
|
173
|
-
- -
|
213
|
+
- - ">="
|
174
214
|
- !ruby/object:Gem::Version
|
175
215
|
version: '0'
|
176
216
|
type: :development
|
177
217
|
prerelease: false
|
178
|
-
version_requirements:
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
179
223
|
- !ruby/object:Gem::Dependency
|
180
224
|
name: sequel
|
181
|
-
requirement:
|
182
|
-
none: false
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
183
226
|
requirements:
|
184
|
-
- - ~>
|
227
|
+
- - "~>"
|
185
228
|
- !ruby/object:Gem::Version
|
186
229
|
version: 3.21.0
|
187
230
|
type: :development
|
188
231
|
prerelease: false
|
189
|
-
version_requirements:
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 3.21.0
|
190
237
|
- !ruby/object:Gem::Dependency
|
191
238
|
name: ohm
|
192
|
-
requirement:
|
193
|
-
none: false
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
194
240
|
requirements:
|
195
|
-
- - ~>
|
241
|
+
- - "~>"
|
196
242
|
- !ruby/object:Gem::Version
|
197
243
|
version: 0.1.3
|
198
244
|
type: :development
|
199
245
|
prerelease: false
|
200
|
-
version_requirements:
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 0.1.3
|
201
251
|
- !ruby/object:Gem::Dependency
|
202
252
|
name: guard-rspec
|
203
|
-
requirement:
|
204
|
-
none: false
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
205
254
|
requirements:
|
206
|
-
- -
|
255
|
+
- - ">="
|
207
256
|
- !ruby/object:Gem::Version
|
208
257
|
version: '0'
|
209
258
|
type: :development
|
210
259
|
prerelease: false
|
211
|
-
version_requirements:
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
212
265
|
- !ruby/object:Gem::Dependency
|
213
266
|
name: rspec-rails
|
214
|
-
requirement:
|
215
|
-
none: false
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
216
268
|
requirements:
|
217
|
-
- - ~>
|
269
|
+
- - "~>"
|
218
270
|
- !ruby/object:Gem::Version
|
219
271
|
version: 2.14.2
|
220
272
|
type: :development
|
221
273
|
prerelease: false
|
222
|
-
version_requirements:
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - "~>"
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 2.14.2
|
223
279
|
- !ruby/object:Gem::Dependency
|
224
280
|
name: cucumber
|
225
|
-
requirement:
|
226
|
-
none: false
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
227
282
|
requirements:
|
228
|
-
- -
|
283
|
+
- - ">="
|
229
284
|
- !ruby/object:Gem::Version
|
230
285
|
version: '0'
|
231
286
|
type: :development
|
232
287
|
prerelease: false
|
233
|
-
version_requirements:
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
234
293
|
- !ruby/object:Gem::Dependency
|
235
294
|
name: mongo_ext
|
236
|
-
requirement:
|
237
|
-
none: false
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
238
296
|
requirements:
|
239
|
-
- -
|
297
|
+
- - ">="
|
240
298
|
- !ruby/object:Gem::Version
|
241
299
|
version: '0'
|
242
300
|
type: :development
|
243
301
|
prerelease: false
|
244
|
-
version_requirements:
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ">="
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '0'
|
245
307
|
- !ruby/object:Gem::Dependency
|
246
308
|
name: bson_ext
|
247
|
-
requirement:
|
248
|
-
none: false
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
249
310
|
requirements:
|
250
|
-
- -
|
311
|
+
- - ">="
|
251
312
|
- !ruby/object:Gem::Version
|
252
313
|
version: '0'
|
253
314
|
type: :development
|
254
315
|
prerelease: false
|
255
|
-
version_requirements:
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ">="
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: '0'
|
256
321
|
- !ruby/object:Gem::Dependency
|
257
322
|
name: mysql
|
258
|
-
requirement:
|
259
|
-
none: false
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
260
324
|
requirements:
|
261
|
-
- - ~>
|
325
|
+
- - "~>"
|
262
326
|
- !ruby/object:Gem::Version
|
263
327
|
version: 2.9.1
|
264
328
|
type: :development
|
265
329
|
prerelease: false
|
266
|
-
version_requirements:
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - "~>"
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: 2.9.1
|
267
335
|
- !ruby/object:Gem::Dependency
|
268
336
|
name: mysql2
|
269
|
-
requirement:
|
270
|
-
none: false
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
271
338
|
requirements:
|
272
|
-
- -
|
339
|
+
- - ">="
|
273
340
|
- !ruby/object:Gem::Version
|
274
341
|
version: '0'
|
275
342
|
type: :development
|
276
343
|
prerelease: false
|
277
|
-
version_requirements:
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
278
349
|
- !ruby/object:Gem::Dependency
|
279
350
|
name: pg
|
280
|
-
requirement:
|
281
|
-
none: false
|
351
|
+
requirement: !ruby/object:Gem::Requirement
|
282
352
|
requirements:
|
283
|
-
- -
|
353
|
+
- - ">="
|
284
354
|
- !ruby/object:Gem::Version
|
285
355
|
version: '0'
|
286
356
|
type: :development
|
287
357
|
prerelease: false
|
288
|
-
version_requirements:
|
358
|
+
version_requirements: !ruby/object:Gem::Requirement
|
359
|
+
requirements:
|
360
|
+
- - ">="
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: '0'
|
289
363
|
- !ruby/object:Gem::Dependency
|
290
364
|
name: sqlite3
|
291
|
-
requirement:
|
292
|
-
none: false
|
365
|
+
requirement: !ruby/object:Gem::Requirement
|
293
366
|
requirements:
|
294
|
-
- -
|
367
|
+
- - ">="
|
295
368
|
- !ruby/object:Gem::Version
|
296
369
|
version: '0'
|
297
370
|
type: :development
|
298
371
|
prerelease: false
|
299
|
-
version_requirements:
|
372
|
+
version_requirements: !ruby/object:Gem::Requirement
|
373
|
+
requirements:
|
374
|
+
- - ">="
|
375
|
+
- !ruby/object:Gem::Version
|
376
|
+
version: '0'
|
300
377
|
description: Strategies for cleaning databases. Can be used to ensure a clean state
|
301
378
|
for testing.
|
302
379
|
email: ben@benmabey.com
|
@@ -310,12 +387,14 @@ files:
|
|
310
387
|
- CONTRIBUTE.markdown
|
311
388
|
- Gemfile.lock
|
312
389
|
- History.rdoc
|
390
|
+
- LICENSE
|
313
391
|
- README.markdown
|
314
392
|
- Rakefile
|
393
|
+
- TODO
|
315
394
|
- VERSION.yml
|
316
395
|
- cucumber.yml
|
317
|
-
-
|
318
|
-
-
|
396
|
+
- examples/Gemfile
|
397
|
+
- examples/Gemfile.lock
|
319
398
|
- examples/config/database.yml.example
|
320
399
|
- examples/config/redis.yml
|
321
400
|
- examples/db/sqlite_databases_go_here
|
@@ -332,8 +411,6 @@ files:
|
|
332
411
|
- examples/features/step_definitions/redis_steps.rb
|
333
412
|
- examples/features/step_definitions/translation_steps.rb
|
334
413
|
- examples/features/support/env.rb
|
335
|
-
- examples/Gemfile
|
336
|
-
- examples/Gemfile.lock
|
337
414
|
- examples/lib/activerecord_models.rb
|
338
415
|
- examples/lib/couchpotato_models.rb
|
339
416
|
- examples/lib/datamapper_models.rb
|
@@ -350,6 +427,7 @@ files:
|
|
350
427
|
- features/step_definitions/database_cleaner_steps.rb
|
351
428
|
- features/support/env.rb
|
352
429
|
- features/support/feature_runner.rb
|
430
|
+
- lib/database_cleaner.rb
|
353
431
|
- lib/database_cleaner/active_record/base.rb
|
354
432
|
- lib/database_cleaner/active_record/deletion.rb
|
355
433
|
- lib/database_cleaner/active_record/transaction.rb
|
@@ -389,7 +467,6 @@ files:
|
|
389
467
|
- lib/database_cleaner/sequel/deletion.rb
|
390
468
|
- lib/database_cleaner/sequel/transaction.rb
|
391
469
|
- lib/database_cleaner/sequel/truncation.rb
|
392
|
-
- lib/database_cleaner.rb
|
393
470
|
- spec/database_cleaner/active_record/base_spec.rb
|
394
471
|
- spec/database_cleaner/active_record/transaction_spec.rb
|
395
472
|
- spec/database_cleaner/active_record/truncation/mysql2_spec.rb
|
@@ -441,27 +518,26 @@ files:
|
|
441
518
|
homepage: http://github.com/DatabaseCleaner/database_cleaner
|
442
519
|
licenses:
|
443
520
|
- MIT
|
521
|
+
metadata: {}
|
444
522
|
post_install_message:
|
445
523
|
rdoc_options: []
|
446
524
|
require_paths:
|
447
525
|
- lib
|
448
526
|
required_ruby_version: !ruby/object:Gem::Requirement
|
449
|
-
none: false
|
450
527
|
requirements:
|
451
|
-
- -
|
528
|
+
- - ">="
|
452
529
|
- !ruby/object:Gem::Version
|
453
530
|
version: 1.9.3
|
454
531
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
455
|
-
none: false
|
456
532
|
requirements:
|
457
|
-
- -
|
533
|
+
- - ">="
|
458
534
|
- !ruby/object:Gem::Version
|
459
535
|
version: '0'
|
460
536
|
requirements: []
|
461
537
|
rubyforge_project:
|
462
|
-
rubygems_version:
|
538
|
+
rubygems_version: 2.6.8
|
463
539
|
signing_key:
|
464
|
-
specification_version:
|
540
|
+
specification_version: 4
|
465
541
|
summary: Strategies for cleaning databases. Can be used to ensure a clean state for
|
466
542
|
testing.
|
467
543
|
test_files: []
|
data/examples/Gemfile
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gemspec
|
data/examples/Gemfile.lock
DELETED
@@ -1,286 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
database_cleaner (1.6.0)
|
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.14.6
|