fabrication 2.23.1 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fabrication/schematic/manager.rb +7 -5
- data/lib/fabrication/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: 46c7e53ea6d74620bacecedf60b84c5dc0d5793aea89021e1be6d6218890447b
|
4
|
+
data.tar.gz: 9ee71c80936fff69f09a688795689980d62236a9eafd035097892f7855f48f2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db610acf91e476297f901ecb90498d7c0e84990846ec7fc202a831e850bb81e69fcc2537f4884bf85859c54bb82f6a3d0dd756570f3c3913997bc14af1bcf0ef
|
7
|
+
data.tar.gz: 995cd1eb8d021667bbf9c3c76db26b8036527104c94c387152e8409d89caed07810e65a6c7c3166db184eeebd3de3de5e8c5204b530855cc63bbf1a811fec19f
|
@@ -55,14 +55,16 @@ module Fabrication
|
|
55
55
|
def load_definitions
|
56
56
|
preinitialize
|
57
57
|
Fabrication::Config.path_prefixes.each do |prefix|
|
58
|
-
Fabrication::Config.fabricator_paths.each do |
|
59
|
-
|
60
|
-
load
|
58
|
+
Fabrication::Config.fabricator_paths.each do |path|
|
59
|
+
if File.file?(path)
|
60
|
+
load path
|
61
|
+
else
|
62
|
+
Dir.glob(File.join(prefix.to_s, path, '**', '*.rb')).sort.each do |file|
|
63
|
+
load file
|
64
|
+
end
|
61
65
|
end
|
62
66
|
end
|
63
67
|
end
|
64
|
-
rescue StandardError => e
|
65
|
-
raise e
|
66
68
|
ensure
|
67
69
|
freeze
|
68
70
|
end
|
data/lib/fabrication/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fabrication
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Elliott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Fabrication is an object generation framework for ActiveRecord, Mongoid,
|
14
14
|
DataMapper, Sequel, or any other Ruby object.
|