factory_bot-preload 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/factory_bot/preload.rb +2 -1
- data/lib/factory_bot/preload/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3208014d76a8c6305ef440749ec6dd487488dee2a66a16a67c22620a49b90fc0
|
4
|
+
data.tar.gz: 4175d21970ac15c0e3af4844cf4f8e4eba13bd257ba7664eec7496abefb64545
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e4b4e6bc92c975d9c87226e45cf3578496604c298afec1aa850010e4d278b42e865cb3f60e3e0bd003d9e228cf1d8b067b8cf3e22c91262092d8c04e5a9ebc2
|
7
|
+
data.tar.gz: 1f86d9bab02f4a3a9d6dcd4a97987aca6f2faaa03e81a6ee9ba1c62bf04c5783116d4cc34a207e5e8706e319ad9e52aef8ac1a3a91c43a8bd4e805e928afe9bd
|
data/lib/factory_bot/preload.rb
CHANGED
@@ -67,7 +67,8 @@ module FactoryBot
|
|
67
67
|
|
68
68
|
def self.active_record_names
|
69
69
|
names = active_record.descendants.collect(&:table_name).uniq.compact
|
70
|
-
|
70
|
+
reserved_tables = %w[ar_internal_metadata schema_migrations]
|
71
|
+
names.reject {|name| reserved_tables.include?(name) }
|
71
72
|
end
|
72
73
|
|
73
74
|
def self.reload_factories
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: factory_bot-preload
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|