baja 0.9.91 → 0.9.92

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: 177edf378b7337a064e247927747685388f830f1
4
- data.tar.gz: af031838987d4f1181743b40375afa52330a623b
3
+ metadata.gz: 8f7c50635d75e790b8a4fe0c3473e5a395ea96cf
4
+ data.tar.gz: 96d207d3313c7b8569924d0c194804c06b251915
5
5
  SHA512:
6
- metadata.gz: 2978bb1bd6b38c696fe3f03b8b9960293fcdf2f0954a154d2046e2c5a6685e98940914c88bc433db5aa858f56fb4146173d1ffb1e859bec77e0642e079bd12d6
7
- data.tar.gz: 0d1a9b327946a69b6b7ac5585c296377554baa768ef7c1adc007890ed17c74caa1d9f36b22a11b85c407fb5f4f382eda0b4c95fae63c23adac129a0b55bb2ebe
6
+ metadata.gz: 37df2fdc147e3b358b4ae96f77d6c637d8a644a46271c943939a425960ee669342090b4247d8905006926ffd6cd231501d4a28a41ebe0b1c3b6e215d29134bf5
7
+ data.tar.gz: 65828e9184e7a2bd1a3a15e05574b43c3a8226d1c1ac03b9b620cf8e7352bf7009e65744abe269ffc409a36ddaf701d578c0b2fe4bf293357e9f392735eb07b2
@@ -50,9 +50,6 @@ end
50
50
  module FactoryGirl
51
51
  def self.find_definitions
52
52
 
53
-
54
-
55
- puts "defpath: #{Baja::Blast.definition_file_paths}"
56
53
  Baja::Blast.definition_file_paths.each do |path|
57
54
  puts "abspath: #{path}"
58
55
  FactoryLoad.load_path("#{path}.rb") if File.exist?("#{path}.rb")
@@ -97,7 +94,7 @@ end
97
94
  unless @namespace.nil?
98
95
  name = :"#{@namespace}__#{name.to_s}"
99
96
  else
100
- puts "#{Baja::Blast.class_variables}, #{Baja::Blast.baja}"
97
+ puts "#{Baja::Blast.baja.as_json}"
101
98
  unless Baja::Blast.baja[:factories].nil?
102
99
  Baja::Blast.baja[:factories].each do |dew|
103
100
  if FactoryLoad.path.include?(dew[:name])
@@ -1,3 +1,3 @@
1
1
  module Baja
2
- VERSION = "0.9.91"
2
+ VERSION = "0.9.92"
3
3
  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.9.91
4
+ version: 0.9.92
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Zuercher
@@ -93,7 +93,6 @@ files:
93
93
  - lib/baja/version.rb
94
94
  - lib/tasks/baja.rake
95
95
  - spec/baja_spec.rb
96
- - spec/factories/helper.rb
97
96
  - spec/factories/sample.rb
98
97
  - spec/spec_helper.rb
99
98
  homepage: ''
@@ -1,80 +0,0 @@
1
-
2
- module Helpers
3
- def create_db
4
- ActiveRecord::Migration.verbose = false
5
-
6
- ActiveRecord::Schema.define(:version => 1) do
7
- create_table 'samples', :force => true do |t|
8
- t.string 'string'
9
- t.text 'text'
10
- t.integer 'integer'
11
- t.float 'float'
12
- t.decimal 'decimal'
13
- t.datetime 'datetime'
14
- t.time 'time'
15
- t.date 'date'
16
- t.binary 'binary'
17
- t.boolean 'boolean'
18
- t.datetime 'created_at', :null => false
19
- t.datetime 'updated_at', :null => false
20
- end
21
-
22
- create_table 'another_samples', :force => true do |t|
23
- t.string 'string'
24
- t.text 'text'
25
- t.integer 'integer'
26
- t.float 'float'
27
- t.decimal 'decimal'
28
- t.datetime 'datetime'
29
- t.time 'time'
30
- t.date 'date'
31
- t.binary 'binary'
32
- t.boolean 'boolean'
33
- t.datetime 'created_at', :null => false
34
- t.datetime 'updated_at', :null => false
35
- end
36
-
37
- create_table 'yet_another_samples', :force => true do |t|
38
- t.string 'string'
39
- t.text 'text'
40
- t.integer 'integer'
41
- t.float 'float'
42
- t.decimal 'decimal'
43
- t.datetime 'datetime'
44
- t.time 'time'
45
- t.date 'date'
46
- t.binary 'binary'
47
- t.boolean 'boolean'
48
- t.datetime 'created_at', :null => false
49
- t.datetime 'updated_at', :null => false
50
- end
51
-
52
- create_table 'empty_models', force: true
53
-
54
- @already_called ||= false
55
-
56
- end
57
-
58
- if !@already_called
59
- Object.const_set('Sample', Class.new(ActiveRecord::Base))
60
-
61
- Object.const_set('AnotherSample', Class.new(ActiveRecord::Base))
62
-
63
- Object.const_set('YetAnotherSample', Class.new(ActiveRecord::Base))
64
-
65
- Object.const_set('NoTableModel', Class.new(ActiveRecord::Base))
66
-
67
- Object.const_set('EmptyModel', Class.new(ActiveRecord::Base))
68
-
69
- @already_called = true
70
- end
71
- end
72
-
73
- def load_sample_data
74
- Rails.application.eager_load!
75
-
76
- Sample.create!
77
-
78
- ChildSample.create!
79
- end
80
- end