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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39d2d0e1d5f714e83e8fd226feb92a7adcb3872238fbc1aa842e112ae51a0eb8
4
- data.tar.gz: 1bbe73c86fc82e3d3b5edf5e8e32222acc913da99abd651213ac7bcab38550b6
3
+ metadata.gz: 3208014d76a8c6305ef440749ec6dd487488dee2a66a16a67c22620a49b90fc0
4
+ data.tar.gz: 4175d21970ac15c0e3af4844cf4f8e4eba13bd257ba7664eec7496abefb64545
5
5
  SHA512:
6
- metadata.gz: 27a676e5d40869959c20c7565019e4aaafcb5985c84fa20773b2e0913486cb5782ef14355eb004c02220fd2e67d6aff52fc7aef5daeff6e5f78b486e9526e415
7
- data.tar.gz: 48e36c0a1af45a23c53f8f16ad8d7ae548f7dcb93b27724eab6dea94ab873e89358f81b8c0b9656af44de9a115cd13f12c4c31646ad6e8dfa421ab56372785a3
6
+ metadata.gz: 1e4b4e6bc92c975d9c87226e45cf3578496604c298afec1aa850010e4d278b42e865cb3f60e3e0bd003d9e228cf1d8b067b8cf3e22c91262092d8c04e5a9ebc2
7
+ data.tar.gz: 1f86d9bab02f4a3a9d6dcd4a97987aca6f2faaa03e81a6ee9ba1c62bf04c5783116d4cc34a207e5e8706e319ad9e52aef8ac1a3a91c43a8bd4e805e928afe9bd
@@ -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
- names.reject {|name| name == "schema_migrations" }
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
@@ -5,7 +5,7 @@ module FactoryBot
5
5
  module Version
6
6
  MAJOR = 0
7
7
  MINOR = 2
8
- PATCH = 0
8
+ PATCH = 1
9
9
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
10
10
  end
11
11
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2019-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord