baja 0.8.7 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/baja/version.rb +1 -1
- data/lib/baja.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ae522b5fed50cc24d8713c59ade97548f8fdd04e
|
|
4
|
+
data.tar.gz: b7b4647b30ad7a7149c9975fc8cb308524fe8c18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e1f1b8991a2d57fdd1b3f606ea1d580059ec1e85b5e041150853240a1218f6cc07730d9341903455749683b7d2039370621cb2ae76e3c07e23a23ca9a5c637a
|
|
7
|
+
data.tar.gz: bb2d459cc39199f93458cb1aa26e392343c92665110238a1365629c90210c79a92b049c7039ce4f219de5844e3378a4660903855f32c14f63b0077a2e74d721b
|
data/lib/baja/version.rb
CHANGED
data/lib/baja.rb
CHANGED
|
@@ -10,7 +10,7 @@ module Baja
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Blast
|
|
13
|
-
@@definition_file_paths = %w(factories test/factories spec/factories)
|
|
13
|
+
@@definition_file_paths = %w(factories test/factories spec/factories).map { |path| File.expand_path(path) }
|
|
14
14
|
@@baja = JSON.parse(YAML.load_file('baja.yml').to_json,:symbolize_names => true)
|
|
15
15
|
def self.now!
|
|
16
16
|
unless Baja::Blast.baja[:factories].nil?
|
|
@@ -45,9 +45,8 @@ end
|
|
|
45
45
|
|
|
46
46
|
module FactoryGirl
|
|
47
47
|
def self.find_definitions
|
|
48
|
-
absolute_definition_file_paths = Baja::Blast.definition_file_paths.map { |path| File.expand_path(path) }
|
|
49
48
|
puts "defpath: #{Baja::Blast.definition_file_paths}"
|
|
50
|
-
|
|
49
|
+
Baja::Blast.definition_file_paths.uniq.each do |path|
|
|
51
50
|
puts "abspath: #{path}"
|
|
52
51
|
FactoryLoad.load_path("#{path}.rb") if File.exist?("#{path}.rb")
|
|
53
52
|
|