database_rewinder 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/database_rewinder.gemspec +1 -1
- data/lib/database_rewinder.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95027bd40b3b8d879effcf6483f2c5406f2e9e25
|
4
|
+
data.tar.gz: 08aefc2ce25711d7fb0839de87622804e8e3fbc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8b1ea85af1d3314b99dbd57574553ac7c315ec60af4663581c876611f8a7a3bc7f9051f5664bb7ed6f42c8827b6f5cc682f893afdb4edd84d18a21848ee62c3
|
7
|
+
data.tar.gz: c0aaa34d77f91e33b23d96b40b42b54528d1313502958e9fc7b31bc3e7b93c76e30540f584ac4f1594059627a8b08e94fcac004653d88e661ab83592b6ae2270
|
data/database_rewinder.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "database_rewinder"
|
7
|
-
spec.version = '0.6.
|
7
|
+
spec.version = '0.6.5'
|
8
8
|
spec.authors = ["Akira Matsuda"]
|
9
9
|
spec.email = ["ronnie@dio.jp"]
|
10
10
|
spec.description = "A minimalist's tiny and ultra-fast database cleaner"
|
data/lib/database_rewinder.rb
CHANGED
@@ -71,10 +71,10 @@ module DatabaseRewinder
|
|
71
71
|
|
72
72
|
# cache AR connection.tables
|
73
73
|
def all_table_names(connection)
|
74
|
-
|
74
|
+
cache_key = connection.pool.spec.config
|
75
75
|
#NOTE connection.tables warns on AR 5 with some adapters
|
76
76
|
tables = ActiveSupport::Deprecation.silence { connection.tables }
|
77
|
-
@table_names_cache[
|
77
|
+
@table_names_cache[cache_key] ||= tables.reject do |t|
|
78
78
|
(t == ActiveRecord::Migrator.schema_migrations_table_name) ||
|
79
79
|
(ActiveRecord::Base.respond_to?(:internal_metadata_table_name) && (t == ActiveRecord::Base.internal_metadata_table_name))
|
80
80
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_rewinder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|