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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51cda89ea052783eaff7e7f54a15c20384806c6f
4
- data.tar.gz: 5fc0e39c30dbcc8d3c87156aefcf40f8b2f37906
3
+ metadata.gz: 3a222f89e30985db0798235fee3b189f592d04e2
4
+ data.tar.gz: c6c10424d2714f10ec306634905689a85b3ac875
5
5
  SHA512:
6
- metadata.gz: b9bee0dd2589ae8ca4909052f2f3b72fc9832baf3c2baf15af93c6faa9ac1e86c020a21d5447231c6827dde2446e39bbee815a337ad00abf53138ee34903699a
7
- data.tar.gz: 7ff5b3cf881b233b1ebe2c1f851d1e4b00657cdf4f94e9e2188e7159e0af1d11dfea5be9cebba8f263ebaf48f2f34d667f00cb07e6e67060db0c30e9f8bad53c
6
+ metadata.gz: 544b44a365a5a846fa980732cc67bcbf6dd52a12b686a358578564919d058a40797152a4a1e60eec9848a7e3ea93c01c4bba0466c512f8fef4a99a0e04e7da64
7
+ data.tar.gz: c3eb3213550dfd6031b1f3c25307921b82cbf2ab9373d71c9bb093c3ca1edc216c8ef193b2783e2313699338f4b08196693083946989fad57b38e38f33386a89
@@ -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.fabricator_path.each do |folder|
45
- Dir.glob(File.join(Fabrication::Config.path_prefix, folder, '**', '*.rb')).sort.each do |file|
46
- load file
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
@@ -1,3 +1,3 @@
1
1
  module Fabrication
2
- VERSION = '2.11.1'
2
+ VERSION = '2.11.2'
3
3
  end
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.1
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-14 00:00:00.000000000 Z
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.