baja 0.8.0 → 0.8.1

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 +15 -11
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0790bf163511f11369ab68c2c817e589674becb7
4
- data.tar.gz: 4e8338b3ebe1de967d49115c5fd98ac360d3c92f
3
+ metadata.gz: d1e70de27ce4a6322c53a58e5203b93f8733c892
4
+ data.tar.gz: 66848afc9d4e9895f8cc8bc7e794845adaaee7f7
5
5
  SHA512:
6
- metadata.gz: da956a809e272045c7cf350c199a1d464daa4901a62a8fea0b3f58632df629604ab4ac90f64f7d8b167a06120d704ba6d2fa8d6b2df4d3d721cbe2ba5f70388c
7
- data.tar.gz: 0e0ec51b67cf8c0866a2458ce1ac29673d633efdc3e66b977d4eba4e02421fad268e30aad4487983357a3797b7ace7294dc4c2b883701ac1faba3e908964d1d9
6
+ metadata.gz: 595ae1f0f8791e1b009fdbbb76044fb8308f1e2e6bb49f03d3207203c9a38782199a479b0461cf77c6afac4d0179dd45bbc60d4521f49951a367aaada91f8cc9
7
+ data.tar.gz: 137257d0e64e0208a70a163e51143707bdd33dd1e0f655f1710479b523fe2727338802496b654f5723085f6b1d25dcf1aba40db9aea0e17298b08ff48cba5a32
data/lib/baja/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Baja
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
data/lib/baja.rb CHANGED
@@ -11,16 +11,18 @@ module Baja
11
11
 
12
12
  class Blast
13
13
  @@definition_file_paths = %w(factories test/factories spec/factories)
14
- @@baja = nil
14
+ @@baja = YAML.load_file('baja.yml')
15
15
  def self.now!
16
16
  @@baja = YAML.load_file('baja.yml')
17
17
  @@baja = JSON.parse(baja.to_json,:symbolize_names => true)
18
- @@baja[:factories].each do |dew|
19
- puts "drinking"
20
- drink = IO.popen("bundle show #{dew}").readline.strip
21
- @@definition_file_paths << Pathname.new("#{drink}/spec/factories")
22
- @@definition_file_paths.uniq!
23
- puts @@definition_file_paths
18
+ if Baja::Blast.baja.contains_key?(:factories)
19
+ @@baja[:factories].each do |dew|
20
+ puts "drinking"
21
+ drink = IO.popen("bundle show #{dew}").readline.strip
22
+ @@definition_file_paths << Pathname.new("#{drink}/spec/factories")
23
+ @@definition_file_paths.uniq!
24
+ puts @@definition_file_paths
25
+ end
24
26
  end
25
27
  puts "throwing it down!"
26
28
 
@@ -124,10 +126,12 @@ end
124
126
  name = :"#{@namespace}__#{name.to_s}"
125
127
  else
126
128
  puts "else lol nut"
127
- Baja::Blast.baja[:factories].each do |dew|
128
- puts "dew: #{dew}"
129
- if FactoryLoad.path.include?(dew)
130
- name = :"#{dew}__#{name.to_s}"
129
+ if Baja::Blast.baja.contains_key?(:factories)
130
+ Baja::Blast.baja[:factories].each do |dew|
131
+ puts "dew: #{dew}"
132
+ if FactoryLoad.path.include?(dew)
133
+ name = :"#{dew}__#{name.to_s}"
134
+ end
131
135
  end
132
136
  end
133
137
  end
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.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Zuercher