baja 0.6.2 → 0.6.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/baja/version.rb +1 -1
  3. data/lib/baja.rb +4 -3
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6dea34775358042ea022a4caa7ff8240672c42e
4
- data.tar.gz: 642c4117204b55f5293aec976d6f9de5cdcb0ef3
3
+ metadata.gz: 8a35f249a880ae0ff55f60f5d56b94c292111bee
4
+ data.tar.gz: 9b9018fb2f9897d69b8b14cc338bcfe233308d26
5
5
  SHA512:
6
- metadata.gz: 5ec1b6f1897fb048f96b78d9237bd0e5b0dc606f8ad1ed450b6f29f4702489073f2ce50c7780081548ece34c821d739c913c0078b40c64f6c513ff4c50d76014
7
- data.tar.gz: fb0bc92d803172bde46467189f7c422d7cfc08117d9f89070527114189d42ea8e0aaa8bd737bcebed0155cc0b9e45cb56ed3f57e86968298ccd9837967f60d72
6
+ metadata.gz: 62e7a996ba15524f31e32a8d67800164cc29ecf25d2797effb92632e237720f441f113265a128185763f3955456b83f1cfc760e401f2790d917ba4d272a75bca
7
+ data.tar.gz: b6dd15a89832afe0a086f9dc8254a9424df647612ddeae9656b677dceda6446dc237e9939e8c6e6fdfb83e07bea8a3120b7033218f8bf3765786091b982397f0
data/lib/baja/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Baja
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
data/lib/baja.rb CHANGED
@@ -57,11 +57,11 @@ module FactoryGirl
57
57
  absolute_definition_file_paths = definition_file_paths.map { |path| File.expand_path(path) }
58
58
 
59
59
  absolute_definition_file_paths.uniq.each do |path|
60
- FactoryLoad.load_path(path)
60
+ FactoryLoad.load_path(path) if File.exist?("#{path}.rb")
61
61
 
62
62
  if File.directory? path
63
63
  Dir[File.join(path, '**', '*.rb')].sort.each do |file|
64
- load file
64
+ FactoryLoad.load_path(file)
65
65
  end
66
66
  end
67
67
  end
@@ -72,7 +72,8 @@ module FactoryLoad
72
72
  @@path
73
73
  def self.load_path(path)
74
74
  @@path = path
75
- load("#{path}.rb") if File.exist?("#{path}.rb")
75
+ puts path
76
+ load("#{path}.rb")
76
77
  end
77
78
  def self.path
78
79
  @@path
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baja
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Zuercher