database_cleaner-active_record 1.8.0 → 1.99.0.beta
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b2de97c4b26f157421bd11d3e7d756ba18c43ff7f79a5e493a4da397942d50d
|
4
|
+
data.tar.gz: f4c41eb36d1c04070c2c67c47d1e0b5b042e4b5f6b1ce1b76860e1e6380990e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcfbdfaaca620c4821d96540d65de76c3e1b38b1db2d32f83428239ae3b612105876016dcb9920485a7145046745592d082b1b97d35aa1b85529d2a8ec44a83c
|
7
|
+
data.tar.gz: 6561670cfc0f9dec82f9fa84c311e535801afe16644bd243e67206c88a11f33fa1ffb46a04ea8d996287e8df9ee0d312d90eb314d0dca5cfd4e715578f034c1d
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
database_cleaner (1.
|
4
|
+
database_cleaner (1.99.0.beta)
|
5
5
|
|
6
6
|
PATH
|
7
7
|
remote: .
|
8
8
|
specs:
|
9
|
-
database_cleaner-active_record (1.
|
9
|
+
database_cleaner-active_record (1.99.0.beta)
|
10
10
|
activerecord
|
11
|
-
database_cleaner (~> 1.
|
11
|
+
database_cleaner (~> 1.99.0.beta)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_dependency "database_cleaner", "~> 1.
|
24
|
+
spec.add_dependency "database_cleaner", "~> 1.99.0.beta"
|
25
25
|
spec.add_dependency "activerecord"
|
26
26
|
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'active_record/base'
|
2
2
|
require 'database_cleaner/active_record/base'
|
3
3
|
require 'active_record/connection_adapters/abstract_adapter'
|
4
|
+
require 'database_cleaner/deprecation'
|
4
5
|
|
5
6
|
#Load available connection adapters
|
6
7
|
%w(
|
@@ -233,6 +234,13 @@ module DatabaseCleaner::ActiveRecord
|
|
233
234
|
include ::DatabaseCleaner::ActiveRecord::Base
|
234
235
|
include ::DatabaseCleaner::Generic::Truncation
|
235
236
|
|
237
|
+
def initialize(*)
|
238
|
+
super
|
239
|
+
if !@reset_ids.nil?
|
240
|
+
DatabaseCleaner.deprecate "The `:reset_ids` option for the ActiveRecord truncation strategy has no effect, and is deprecated. It will be removed in database_cleaner 2.0 with no replacement."
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
236
244
|
def clean
|
237
245
|
connection = connection_class.connection
|
238
246
|
connection.disable_referential_integrity do
|
@@ -260,7 +268,9 @@ module DatabaseCleaner::ActiveRecord
|
|
260
268
|
|
261
269
|
# overwritten
|
262
270
|
def migration_storage_names
|
263
|
-
[::DatabaseCleaner::ActiveRecord::Base.migration_table_name]
|
271
|
+
result = [::DatabaseCleaner::ActiveRecord::Base.migration_table_name]
|
272
|
+
result << ::ActiveRecord::Base.internal_metadata_table_name if ::ActiveRecord::VERSION::MAJOR >= 5
|
273
|
+
result
|
264
274
|
end
|
265
275
|
|
266
276
|
def cache_tables?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_cleaner-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.99.0.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernesto Tagwerker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: database_cleaner
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.99.0.beta
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.99.0.beta
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -192,11 +192,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
192
192
|
version: '0'
|
193
193
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
|
-
- - "
|
195
|
+
- - ">"
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version:
|
197
|
+
version: 1.3.1
|
198
198
|
requirements: []
|
199
|
-
rubygems_version: 3.0.
|
199
|
+
rubygems_version: 3.0.8
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: Strategies for cleaning databases using ActiveRecord. Can be used to ensure
|