fabrication 2.11.1 → 2.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fabrication/config.rb +2 -0
- data/lib/fabrication/schematic/manager.rb +5 -3
- data/lib/fabrication/version.rb +1 -1
- 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: 3a222f89e30985db0798235fee3b189f592d04e2
|
4
|
+
data.tar.gz: c6c10424d2714f10ec306634905689a85b3ac875
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 544b44a365a5a846fa980732cc67bcbf6dd52a12b686a358578564919d058a40797152a4a1e60eec9848a7e3ea93c01c4bba0466c512f8fef4a99a0e04e7da64
|
7
|
+
data.tar.gz: c3eb3213550dfd6031b1f3c25307921b82cbf2ab9373d71c9bb093c3ca1edc216c8ef193b2783e2313699338f4b08196693083946989fad57b38e38f33386a89
|
data/lib/fabrication/config.rb
CHANGED
@@ -15,6 +15,7 @@ module Fabrication
|
|
15
15
|
def fabricator_path
|
16
16
|
@fabricator_path ||= ['test/fabricators', 'spec/fabricators']
|
17
17
|
end
|
18
|
+
alias fabricator_paths fabricator_path
|
18
19
|
|
19
20
|
def fabricator_dir
|
20
21
|
puts "DEPRECATION WARNING: Fabrication::Config.fabricator_dir has been replaced by Fabrication::Config.fabricator_path"
|
@@ -40,6 +41,7 @@ module Fabrication
|
|
40
41
|
def path_prefix
|
41
42
|
@path_prefix ||= [defined?(Rails) ? Rails.root : "."]
|
42
43
|
end
|
44
|
+
alias path_prefixes path_prefix
|
43
45
|
|
44
46
|
attr_writer :register_with_steps
|
45
47
|
def register_with_steps?; @register_with_steps end
|
@@ -41,9 +41,11 @@ class Fabrication::Schematic::Manager
|
|
41
41
|
|
42
42
|
def load_definitions
|
43
43
|
preinitialize
|
44
|
-
Fabrication::Config.
|
45
|
-
|
46
|
-
|
44
|
+
Fabrication::Config.path_prefixes.each do |prefix|
|
45
|
+
Fabrication::Config.fabricator_paths.each do |folder|
|
46
|
+
Dir.glob(File.join(prefix, folder, '**', '*.rb')).sort.each do |file|
|
47
|
+
load file
|
48
|
+
end
|
47
49
|
end
|
48
50
|
end
|
49
51
|
rescue Exception => e
|
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.11.
|
4
|
+
version: 2.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Elliott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-29 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.
|