baja 0.6.8 → 0.6.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/baja/version.rb +1 -1
  3. data/lib/baja.rb +29 -14
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fb56a593b6bea4d6596e259d098c0aa2defd774
4
- data.tar.gz: bada4eadb349e86b1d92d4e98c47c3edbae3e61c
3
+ metadata.gz: f67358f8c2ca6738dc9c8def0aec17e9b26dcf46
4
+ data.tar.gz: 1735e2a9a466407f70e2d4ccc71cb4239dbe51c8
5
5
  SHA512:
6
- metadata.gz: 09bc12712286586683c2932efbbb531f7d02f6ec99ef821655101c8e211423e86133801f36d83f438995e307e13d40170034e1e628df10672132008a366420b8
7
- data.tar.gz: 470fd53043bbad11cd9db8e00203d61845a29416ffbb7d879d53693b87330978eb759cc6ff3803f04d681f685d376e766594a4905be34a8e323151e46dccd107
6
+ metadata.gz: fb9e4ed6cacb3f87d783adf483a23ca08d8dbc68ece4b443b9f768102f887c030058dc368613dc4c92f170510d154622b76f2531f3ab2472132b460a12431755
7
+ data.tar.gz: a7121f11ae2547aa32ecd21f27621372ed07205979a0255e27f1ffdab05d9960973aee8abdc8477ad8c0bf3e47256c1ec9ededfe34c9425313724dd3984656dd
data/lib/baja/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Baja
2
- VERSION = "0.6.8"
2
+ VERSION = "0.6.9"
3
3
  end
data/lib/baja.rb CHANGED
@@ -3,7 +3,12 @@ require 'rails'
3
3
  require 'yaml'
4
4
  require 'bundler'
5
5
  require 'factory_girl_rails'
6
- module Baja
6
+
7
+
8
+ module Baja
9
+
10
+
11
+
7
12
  class Blast
8
13
  @@in_namespace
9
14
  def self.now!
@@ -25,25 +30,33 @@ module Baja
25
30
  load "tasks/baja.rake"
26
31
  end
27
32
  end
28
-
29
- module FactoryGirl
30
- def self.find_definitions
31
- absolute_definition_file_paths = definition_file_paths.map { |path| File.expand_path(path) }
32
- puts "defpath: #{definition_file_paths}"
33
- absolute_definition_file_paths.uniq.each do |path|
34
- puts "abspath: #{path}"
35
- Baja::FactoryLoad.load_path("#{path}.rb") if File.exist?("#{path}.rb")
36
-
37
- if File.directory? path
38
- Dir[File.join(path, '**', '*.rb')].sort.each do |file|
39
- Baja::FactoryLoad.load_path(file)
33
+
34
+
35
+
36
+
37
+ module FactoryGirl
38
+ def self.find_definitions
39
+ absolute_definition_file_paths = definition_file_paths.map { |path| File.expand_path(path) }
40
+ puts "defpath: #{definition_file_paths}"
41
+ absolute_definition_file_paths.uniq.each do |path|
42
+ puts "abspath: #{path}"
43
+ Baja::FactoryLoad.load_path("#{path}.rb") if File.exist?("#{path}.rb")
44
+
45
+ if File.directory? path
46
+ Dir[File.join(path, '**', '*.rb')].sort.each do |file|
47
+ Baja::FactoryLoad.load_path(file)
48
+ end
40
49
  end
41
50
  end
42
51
  end
43
52
  end
53
+
54
+
55
+
44
56
  end
45
57
 
46
58
 
59
+
47
60
  module FactoryLoad
48
61
  @@path
49
62
  def self.load_path(path)
@@ -75,7 +88,9 @@ module FactoryLoad
75
88
  end
76
89
  end
77
90
  end
78
- end
91
+
92
+
93
+
79
94
 
80
95
  FactoryGirl::Syntax::Default::DSL
81
96
  class FactoryGirl::Syntax::Default::DSL
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.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Zuercher