database_cleaner 1.5.3 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- database_cleaner (1.5.2)
4
+ database_cleaner (1.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -283,4 +283,4 @@ DEPENDENCIES
283
283
  tzinfo
284
284
 
285
285
  BUNDLED WITH
286
- 1.11.2
286
+ 1.14.6
@@ -1,5 +1,10 @@
1
1
  == Development (master)
2
2
 
3
+ == 1.5.3 2016-04-22
4
+
5
+ === Bug Fixes
6
+ * @P9GIT fixed issue #436
7
+
3
8
  == 1.5.2 2016-04-17
4
9
 
5
10
  === New Features/Changes
@@ -166,7 +166,7 @@ passed to [`keys`](http://redis.io/commands/keys)).
166
166
 
167
167
  (I should point out the truncation strategy will never truncate your schema_migrations table.)
168
168
 
169
- Some strategies need to be started before tests are run (for example the `:transaction` strategy needs to know to open up a transaction). This can be accomplished by calling `DatabaseCleaner.start` at the beginning of the run, or by running the tests inside a block to `Database.cleaning`. So you would have:
169
+ Some strategies need to be started before tests are run (for example the `:transaction` strategy needs to know to open up a transaction). This can be accomplished by calling `DatabaseCleaner.start` at the beginning of the run, or by running the tests inside a block to `DatabaseCleaner.cleaning`. So you would have:
170
170
 
171
171
  ```ruby
172
172
  require 'database_cleaner'
@@ -284,7 +284,7 @@ RSpec.configure do |config|
284
284
  MSG
285
285
  end
286
286
  DatabaseCleaner.clean_with(:truncation)
287
- end
287
+ end
288
288
 
289
289
  config.before(:each) do
290
290
  DatabaseCleaner.strategy = :transaction
@@ -482,7 +482,7 @@ For ActiveRecord, you add the following parameter in your database.yml file:
482
482
  test:
483
483
  adapter: postgresql
484
484
  # ...
485
- min_messages: WARNING
485
+ min_messages: WARNING
486
486
  </pre>
487
487
 
488
488
  ### Nothing happens in JRuby with Sequel using transactions
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
- :minor: 5
4
- :patch: 3
3
+ :minor: 6
4
+ :patch: 0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- database_cleaner (1.5.2)
4
+ database_cleaner (1.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -283,4 +283,4 @@ DEPENDENCIES
283
283
  tzinfo
284
284
 
285
285
  BUNDLED WITH
286
- 1.11.2
286
+ 1.14.6
@@ -57,6 +57,14 @@ module DatabaseCleaner
57
57
  end
58
58
  end
59
59
 
60
+ def self.migration_table_name
61
+ if ::ActiveRecord::VERSION::MAJOR < 5
62
+ ::ActiveRecord::Migrator.schema_migrations_table_name
63
+ else
64
+ ::ActiveRecord::SchemaMigration.table_name
65
+ end
66
+ end
67
+
60
68
  private
61
69
 
62
70
  def lookup_from_connection_pool
@@ -54,8 +54,27 @@ module DatabaseCleaner::ActiveRecord
54
54
 
55
55
  def tables_with_new_rows(connection)
56
56
  @db_name ||= connection.instance_variable_get('@config')[:database]
57
- result = connection.exec_query("SELECT table_name FROM information_schema.tables WHERE table_schema = '#{@db_name}' AND table_rows > 0")
58
- result.map{ |row| row['table_name'] } - ['schema_migrations']
57
+ stats = table_stats_query(connection, @db_name)
58
+ if stats != ''
59
+ connection.exec_query(stats).inject([]) {|all, stat| all << stat['table_name'] if stat['exact_row_count'] > 0; all }
60
+ else
61
+ []
62
+ end
63
+ end
64
+
65
+ def table_stats_query(connection, db_name)
66
+ if @cache_tables && !@table_stats_query.nil?
67
+ return @table_stats_query
68
+ else
69
+ @table_stats_query = connection.select_values(<<-SQL).join(' UNION ')
70
+ SELECT CONCAT('SELECT \"', table_name, '\" AS table_name, COUNT(*) AS exact_row_count FROM ', table_name)
71
+ FROM
72
+ INFORMATION_SCHEMA.TABLES
73
+ WHERE
74
+ table_schema = '#{db_name}'
75
+ AND table_name <> '#{migration_table_name}';
76
+ SQL
77
+ end
59
78
  end
60
79
 
61
80
  def information_schema_exists? connection
@@ -192,7 +192,7 @@ module DatabaseCleaner
192
192
  FROM pg_tables
193
193
  WHERE
194
194
  tablename !~ '_prt_' AND
195
- tablename <> '#{::ActiveRecord::Migrator.schema_migrations_table_name}' AND
195
+ tablename <> '#{::DatabaseCleaner::ActiveRecord::Base.migration_table_name}' AND
196
196
  schemaname = ANY (current_schemas(false))
197
197
  _SQL
198
198
  rows.collect { |result| result.first }
@@ -257,7 +257,7 @@ module DatabaseCleaner::ActiveRecord
257
257
 
258
258
  # overwritten
259
259
  def migration_storage_names
260
- [::ActiveRecord::Migrator.schema_migrations_table_name]
260
+ [::DatabaseCleaner::ActiveRecord::Base.migration_table_name]
261
261
  end
262
262
 
263
263
  def cache_tables?
@@ -11,5 +11,10 @@ module DatabaseCleaner
11
11
  def self.clean
12
12
  # no-op
13
13
  end
14
+
15
+ def self.cleaning(&block)
16
+ # no-op
17
+ yield
18
+ end
14
19
  end
15
20
  end
@@ -25,7 +25,7 @@ module DatabaseCleaner
25
25
  @connection ||= begin
26
26
  if url == :default
27
27
  ::Redis.new
28
- elsif db.class.is_a?(::Redis) # pass directly the connection
28
+ elsif db.is_a?(::Redis) # pass directly the connection
29
29
  db
30
30
  else
31
31
  ::Redis.new(:url => url)
@@ -40,7 +40,7 @@ module DatabaseCleaner
40
40
  Truncation.new.clean
41
41
  end
42
42
 
43
- it "should use ActiveRecord's schema_migrations_table_name" do
43
+ it "should use ActiveRecord's SchemaMigration.table_name" do
44
44
  connection.stub(:database_cleaner_table_cache).and_return(%w[pre_schema_migrations_suf widgets dogs])
45
45
  ::ActiveRecord::Base.stub(:table_name_prefix).and_return('pre_')
46
46
  ::ActiveRecord::Base.stub(:table_name_suffix).and_return('_suf')
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+
3
+ module DatabaseCleaner
4
+ describe NullStrategy do
5
+ it 'responds to .start' do
6
+ expect { NullStrategy.start }.not_to raise_error(NoMethodError)
7
+ end
8
+
9
+ it 'responds to .clean' do
10
+ expect { NullStrategy.clean }.not_to raise_error(NoMethodError)
11
+ end
12
+
13
+ describe '.cleaning' do
14
+ it 'fails without a block' do
15
+ expect { NullStrategy.cleaning }.to raise_error(LocalJumpError)
16
+ end
17
+
18
+ it 'no-ops with a block' do
19
+ effect = double
20
+ expect(effect).to receive(:occur).once
21
+
22
+ NullStrategy.cleaning do
23
+ effect.occur
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
metadata CHANGED
@@ -1,379 +1,302 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: database_cleaner
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.6.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Ben Mabey
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-04-22 00:00:00.000000000 Z
12
+ date: 2017-05-04 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70262422868720 !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - ">="
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :development
21
23
  prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
24
+ version_requirements: *70262422868720
27
25
  - !ruby/object:Gem::Dependency
28
26
  name: bundler
29
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70262422866940 !ruby/object:Gem::Requirement
28
+ none: false
30
29
  requirements:
31
- - - ">="
30
+ - - ! '>='
32
31
  - !ruby/object:Gem::Version
33
32
  version: '0'
34
33
  type: :development
35
34
  prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
35
+ version_requirements: *70262422866940
41
36
  - !ruby/object:Gem::Dependency
42
37
  name: json_pure
43
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &70262422881960 !ruby/object:Gem::Requirement
39
+ none: false
44
40
  requirements:
45
- - - ">="
41
+ - - ! '>='
46
42
  - !ruby/object:Gem::Version
47
43
  version: '0'
48
44
  type: :development
49
45
  prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
46
+ version_requirements: *70262422881960
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: activerecord-mysql2-adapter
57
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &70262422880740 !ruby/object:Gem::Requirement
50
+ none: false
58
51
  requirements:
59
- - - ">="
52
+ - - ! '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  type: :development
63
56
  prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
57
+ version_requirements: *70262422880740
69
58
  - !ruby/object:Gem::Dependency
70
59
  name: activerecord
71
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &70262422879560 !ruby/object:Gem::Requirement
61
+ none: false
72
62
  requirements:
73
- - - ">="
63
+ - - ! '>='
74
64
  - !ruby/object:Gem::Version
75
65
  version: '0'
76
66
  type: :development
77
67
  prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
68
+ version_requirements: *70262422879560
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: datamapper
85
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &70262422878200 !ruby/object:Gem::Requirement
72
+ none: false
86
73
  requirements:
87
- - - ">="
74
+ - - ! '>='
88
75
  - !ruby/object:Gem::Version
89
76
  version: '0'
90
77
  type: :development
91
78
  prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
79
+ version_requirements: *70262422878200
97
80
  - !ruby/object:Gem::Dependency
98
81
  name: dm-migrations
99
- requirement: !ruby/object:Gem::Requirement
82
+ requirement: &70262422876600 !ruby/object:Gem::Requirement
83
+ none: false
100
84
  requirements:
101
- - - ">="
85
+ - - ! '>='
102
86
  - !ruby/object:Gem::Version
103
87
  version: '0'
104
88
  type: :development
105
89
  prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
90
+ version_requirements: *70262422876600
111
91
  - !ruby/object:Gem::Dependency
112
92
  name: dm-sqlite-adapter
113
- requirement: !ruby/object:Gem::Requirement
93
+ requirement: &70262422875160 !ruby/object:Gem::Requirement
94
+ none: false
114
95
  requirements:
115
- - - ">="
96
+ - - ! '>='
116
97
  - !ruby/object:Gem::Version
117
98
  version: '0'
118
99
  type: :development
119
100
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ">="
123
- - !ruby/object:Gem::Version
124
- version: '0'
101
+ version_requirements: *70262422875160
125
102
  - !ruby/object:Gem::Dependency
126
103
  name: mongoid
127
- requirement: !ruby/object:Gem::Requirement
104
+ requirement: &70262422890620 !ruby/object:Gem::Requirement
105
+ none: false
128
106
  requirements:
129
- - - ">="
107
+ - - ! '>='
130
108
  - !ruby/object:Gem::Version
131
109
  version: '0'
132
110
  type: :development
133
111
  prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - ">="
137
- - !ruby/object:Gem::Version
138
- version: '0'
112
+ version_requirements: *70262422890620
139
113
  - !ruby/object:Gem::Dependency
140
114
  name: tzinfo
141
- requirement: !ruby/object:Gem::Requirement
115
+ requirement: &70262422889660 !ruby/object:Gem::Requirement
116
+ none: false
142
117
  requirements:
143
- - - ">="
118
+ - - ! '>='
144
119
  - !ruby/object:Gem::Version
145
120
  version: '0'
146
121
  type: :development
147
122
  prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - ">="
151
- - !ruby/object:Gem::Version
152
- version: '0'
123
+ version_requirements: *70262422889660
153
124
  - !ruby/object:Gem::Dependency
154
125
  name: mongoid-tree
155
- requirement: !ruby/object:Gem::Requirement
126
+ requirement: &70262422888440 !ruby/object:Gem::Requirement
127
+ none: false
156
128
  requirements:
157
- - - ">="
129
+ - - ! '>='
158
130
  - !ruby/object:Gem::Version
159
131
  version: '0'
160
132
  type: :development
161
133
  prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
134
+ version_requirements: *70262422888440
167
135
  - !ruby/object:Gem::Dependency
168
136
  name: mongo_mapper
169
- requirement: !ruby/object:Gem::Requirement
137
+ requirement: &70262422886480 !ruby/object:Gem::Requirement
138
+ none: false
170
139
  requirements:
171
- - - ">="
140
+ - - ! '>='
172
141
  - !ruby/object:Gem::Version
173
142
  version: '0'
174
143
  type: :development
175
144
  prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - ">="
179
- - !ruby/object:Gem::Version
180
- version: '0'
145
+ version_requirements: *70262422886480
181
146
  - !ruby/object:Gem::Dependency
182
147
  name: moped
183
- requirement: !ruby/object:Gem::Requirement
148
+ requirement: &70262422884460 !ruby/object:Gem::Requirement
149
+ none: false
184
150
  requirements:
185
- - - ">="
151
+ - - ! '>='
186
152
  - !ruby/object:Gem::Version
187
153
  version: '0'
188
154
  type: :development
189
155
  prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
156
+ version_requirements: *70262422884460
195
157
  - !ruby/object:Gem::Dependency
196
158
  name: neo4j-core
197
- requirement: !ruby/object:Gem::Requirement
159
+ requirement: &70262422883860 !ruby/object:Gem::Requirement
160
+ none: false
198
161
  requirements:
199
- - - ">="
162
+ - - ! '>='
200
163
  - !ruby/object:Gem::Version
201
164
  version: '0'
202
165
  type: :development
203
166
  prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
167
+ version_requirements: *70262422883860
209
168
  - !ruby/object:Gem::Dependency
210
169
  name: couch_potato
211
- requirement: !ruby/object:Gem::Requirement
170
+ requirement: &70262422882840 !ruby/object:Gem::Requirement
171
+ none: false
212
172
  requirements:
213
- - - ">="
173
+ - - ! '>='
214
174
  - !ruby/object:Gem::Version
215
175
  version: '0'
216
176
  type: :development
217
177
  prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
178
+ version_requirements: *70262422882840
223
179
  - !ruby/object:Gem::Dependency
224
180
  name: sequel
225
- requirement: !ruby/object:Gem::Requirement
181
+ requirement: &70262422897700 !ruby/object:Gem::Requirement
182
+ none: false
226
183
  requirements:
227
- - - "~>"
184
+ - - ~>
228
185
  - !ruby/object:Gem::Version
229
186
  version: 3.21.0
230
187
  type: :development
231
188
  prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
235
- - !ruby/object:Gem::Version
236
- version: 3.21.0
189
+ version_requirements: *70262422897700
237
190
  - !ruby/object:Gem::Dependency
238
191
  name: ohm
239
- requirement: !ruby/object:Gem::Requirement
192
+ requirement: &70262422896360 !ruby/object:Gem::Requirement
193
+ none: false
240
194
  requirements:
241
- - - "~>"
195
+ - - ~>
242
196
  - !ruby/object:Gem::Version
243
197
  version: 0.1.3
244
198
  type: :development
245
199
  prerelease: false
246
- version_requirements: !ruby/object:Gem::Requirement
247
- requirements:
248
- - - "~>"
249
- - !ruby/object:Gem::Version
250
- version: 0.1.3
200
+ version_requirements: *70262422896360
251
201
  - !ruby/object:Gem::Dependency
252
202
  name: guard-rspec
253
- requirement: !ruby/object:Gem::Requirement
203
+ requirement: &70262422895460 !ruby/object:Gem::Requirement
204
+ none: false
254
205
  requirements:
255
- - - ">="
206
+ - - ! '>='
256
207
  - !ruby/object:Gem::Version
257
208
  version: '0'
258
209
  type: :development
259
210
  prerelease: false
260
- version_requirements: !ruby/object:Gem::Requirement
261
- requirements:
262
- - - ">="
263
- - !ruby/object:Gem::Version
264
- version: '0'
211
+ version_requirements: *70262422895460
265
212
  - !ruby/object:Gem::Dependency
266
213
  name: rspec-rails
267
- requirement: !ruby/object:Gem::Requirement
214
+ requirement: &70262422894520 !ruby/object:Gem::Requirement
215
+ none: false
268
216
  requirements:
269
- - - "~>"
217
+ - - ~>
270
218
  - !ruby/object:Gem::Version
271
219
  version: 2.14.2
272
220
  type: :development
273
221
  prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - "~>"
277
- - !ruby/object:Gem::Version
278
- version: 2.14.2
222
+ version_requirements: *70262422894520
279
223
  - !ruby/object:Gem::Dependency
280
224
  name: cucumber
281
- requirement: !ruby/object:Gem::Requirement
225
+ requirement: &70262422894020 !ruby/object:Gem::Requirement
226
+ none: false
282
227
  requirements:
283
- - - ">="
228
+ - - ! '>='
284
229
  - !ruby/object:Gem::Version
285
230
  version: '0'
286
231
  type: :development
287
232
  prerelease: false
288
- version_requirements: !ruby/object:Gem::Requirement
289
- requirements:
290
- - - ">="
291
- - !ruby/object:Gem::Version
292
- version: '0'
233
+ version_requirements: *70262422894020
293
234
  - !ruby/object:Gem::Dependency
294
235
  name: mongo_ext
295
- requirement: !ruby/object:Gem::Requirement
236
+ requirement: &70262422893100 !ruby/object:Gem::Requirement
237
+ none: false
296
238
  requirements:
297
- - - ">="
239
+ - - ! '>='
298
240
  - !ruby/object:Gem::Version
299
241
  version: '0'
300
242
  type: :development
301
243
  prerelease: false
302
- version_requirements: !ruby/object:Gem::Requirement
303
- requirements:
304
- - - ">="
305
- - !ruby/object:Gem::Version
306
- version: '0'
244
+ version_requirements: *70262422893100
307
245
  - !ruby/object:Gem::Dependency
308
246
  name: bson_ext
309
- requirement: !ruby/object:Gem::Requirement
247
+ requirement: &70262422892560 !ruby/object:Gem::Requirement
248
+ none: false
310
249
  requirements:
311
- - - ">="
250
+ - - ! '>='
312
251
  - !ruby/object:Gem::Version
313
252
  version: '0'
314
253
  type: :development
315
254
  prerelease: false
316
- version_requirements: !ruby/object:Gem::Requirement
317
- requirements:
318
- - - ">="
319
- - !ruby/object:Gem::Version
320
- version: '0'
255
+ version_requirements: *70262422892560
321
256
  - !ruby/object:Gem::Dependency
322
257
  name: mysql
323
- requirement: !ruby/object:Gem::Requirement
258
+ requirement: &70262422891680 !ruby/object:Gem::Requirement
259
+ none: false
324
260
  requirements:
325
- - - "~>"
261
+ - - ~>
326
262
  - !ruby/object:Gem::Version
327
263
  version: 2.9.1
328
264
  type: :development
329
265
  prerelease: false
330
- version_requirements: !ruby/object:Gem::Requirement
331
- requirements:
332
- - - "~>"
333
- - !ruby/object:Gem::Version
334
- version: 2.9.1
266
+ version_requirements: *70262422891680
335
267
  - !ruby/object:Gem::Dependency
336
268
  name: mysql2
337
- requirement: !ruby/object:Gem::Requirement
269
+ requirement: &70262422907300 !ruby/object:Gem::Requirement
270
+ none: false
338
271
  requirements:
339
- - - ">="
272
+ - - ! '>='
340
273
  - !ruby/object:Gem::Version
341
274
  version: '0'
342
275
  type: :development
343
276
  prerelease: false
344
- version_requirements: !ruby/object:Gem::Requirement
345
- requirements:
346
- - - ">="
347
- - !ruby/object:Gem::Version
348
- version: '0'
277
+ version_requirements: *70262422907300
349
278
  - !ruby/object:Gem::Dependency
350
279
  name: pg
351
- requirement: !ruby/object:Gem::Requirement
280
+ requirement: &70262422905720 !ruby/object:Gem::Requirement
281
+ none: false
352
282
  requirements:
353
- - - ">="
283
+ - - ! '>='
354
284
  - !ruby/object:Gem::Version
355
285
  version: '0'
356
286
  type: :development
357
287
  prerelease: false
358
- version_requirements: !ruby/object:Gem::Requirement
359
- requirements:
360
- - - ">="
361
- - !ruby/object:Gem::Version
362
- version: '0'
288
+ version_requirements: *70262422905720
363
289
  - !ruby/object:Gem::Dependency
364
290
  name: sqlite3
365
- requirement: !ruby/object:Gem::Requirement
291
+ requirement: &70262422904580 !ruby/object:Gem::Requirement
292
+ none: false
366
293
  requirements:
367
- - - ">="
294
+ - - ! '>='
368
295
  - !ruby/object:Gem::Version
369
296
  version: '0'
370
297
  type: :development
371
298
  prerelease: false
372
- version_requirements: !ruby/object:Gem::Requirement
373
- requirements:
374
- - - ">="
375
- - !ruby/object:Gem::Version
376
- version: '0'
299
+ version_requirements: *70262422904580
377
300
  description: Strategies for cleaning databases. Can be used to ensure a clean state
378
301
  for testing.
379
302
  email: ben@benmabey.com
@@ -387,22 +310,14 @@ files:
387
310
  - CONTRIBUTE.markdown
388
311
  - Gemfile.lock
389
312
  - History.rdoc
390
- - LICENSE
391
313
  - README.markdown
392
314
  - Rakefile
393
- - TODO
394
315
  - VERSION.yml
395
316
  - cucumber.yml
396
- - examples/Gemfile
397
- - examples/Gemfile.lock
398
- - examples/config/database.yml
317
+ - LICENSE
318
+ - TODO
399
319
  - examples/config/database.yml.example
400
320
  - examples/config/redis.yml
401
- - examples/db/activerecord_one.db
402
- - examples/db/activerecord_two.db
403
- - examples/db/datamapper_default.db
404
- - examples/db/datamapper_one.db
405
- - examples/db/datamapper_two.db
406
321
  - examples/db/sqlite_databases_go_here
407
322
  - examples/features/example.feature
408
323
  - examples/features/example_multiple_db.feature
@@ -413,8 +328,12 @@ files:
413
328
  - examples/features/step_definitions/mongoid_steps.rb
414
329
  - examples/features/step_definitions/mongomapper_steps.rb
415
330
  - examples/features/step_definitions/neo4j_steps.rb
331
+ - examples/features/step_definitions/ohm_steps.rb
332
+ - examples/features/step_definitions/redis_steps.rb
416
333
  - examples/features/step_definitions/translation_steps.rb
417
334
  - examples/features/support/env.rb
335
+ - examples/Gemfile
336
+ - examples/Gemfile.lock
418
337
  - examples/lib/activerecord_models.rb
419
338
  - examples/lib/couchpotato_models.rb
420
339
  - examples/lib/datamapper_models.rb
@@ -429,11 +348,8 @@ files:
429
348
  - features/cleaning_multiple_dbs.feature
430
349
  - features/cleaning_multiple_orms.feature
431
350
  - features/step_definitions/database_cleaner_steps.rb
432
- - features/step_definitions/ohm_steps.rb
433
- - features/step_definitions/redis_steps.rb
434
351
  - features/support/env.rb
435
352
  - features/support/feature_runner.rb
436
- - lib/database_cleaner.rb
437
353
  - lib/database_cleaner/active_record/base.rb
438
354
  - lib/database_cleaner/active_record/deletion.rb
439
355
  - lib/database_cleaner/active_record/transaction.rb
@@ -473,6 +389,7 @@ files:
473
389
  - lib/database_cleaner/sequel/deletion.rb
474
390
  - lib/database_cleaner/sequel/transaction.rb
475
391
  - lib/database_cleaner/sequel/truncation.rb
392
+ - lib/database_cleaner.rb
476
393
  - spec/database_cleaner/active_record/base_spec.rb
477
394
  - spec/database_cleaner/active_record/transaction_spec.rb
478
395
  - spec/database_cleaner/active_record/truncation/mysql2_spec.rb
@@ -499,6 +416,7 @@ files:
499
416
  - spec/database_cleaner/moped/truncation_spec.rb
500
417
  - spec/database_cleaner/neo4j/base_spec.rb
501
418
  - spec/database_cleaner/neo4j/transaction_spec.rb
419
+ - spec/database_cleaner/null_strategy_spec.rb
502
420
  - spec/database_cleaner/ohm/truncation_spec.rb
503
421
  - spec/database_cleaner/redis/base_spec.rb
504
422
  - spec/database_cleaner/redis/truncation_spec.rb
@@ -523,26 +441,27 @@ files:
523
441
  homepage: http://github.com/DatabaseCleaner/database_cleaner
524
442
  licenses:
525
443
  - MIT
526
- metadata: {}
527
444
  post_install_message:
528
445
  rdoc_options: []
529
446
  require_paths:
530
447
  - lib
531
448
  required_ruby_version: !ruby/object:Gem::Requirement
449
+ none: false
532
450
  requirements:
533
- - - ">="
451
+ - - ! '>='
534
452
  - !ruby/object:Gem::Version
535
453
  version: 1.9.3
536
454
  required_rubygems_version: !ruby/object:Gem::Requirement
455
+ none: false
537
456
  requirements:
538
- - - ">="
457
+ - - ! '>='
539
458
  - !ruby/object:Gem::Version
540
459
  version: '0'
541
460
  requirements: []
542
461
  rubyforge_project:
543
- rubygems_version: 2.4.5.1
462
+ rubygems_version: 1.8.2
544
463
  signing_key:
545
- specification_version: 4
464
+ specification_version: 3
546
465
  summary: Strategies for cleaning databases. Can be used to ensure a clean state for
547
466
  testing.
548
467
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 64740b1d65d20ee023833ff94e6181ff12ea639d
4
- data.tar.gz: 0537efb1973f10ea1f6e33c96724529767424c61
5
- SHA512:
6
- metadata.gz: d4b44fb28aed2b40a5ca92c6f04bfa0a0800a39aac0daa92d9e784112545ce904a49f2b3eeb6424ee1eae3c28f93966ba8fb5f6fa12aacfe710295072bc5ad70
7
- data.tar.gz: 10a2624dab7c161dffae633b867890c7842d81dedcad3c87d2f67034b347c978679e95afbb506e9a4e6d38339df82e558892e0d27c4506d37711986efde708b6
@@ -1,7 +0,0 @@
1
- ---
2
- one:
3
- adapter: sqlite3
4
- database: "/Users/etagwerker/Projects/database_cleaner/examples/features/support/../../db/activerecord_one.db"
5
- two:
6
- adapter: sqlite3
7
- database: "/Users/etagwerker/Projects/database_cleaner/examples/features/support/../../db/activerecord_two.db"