garden 0.0.9.pre → 0.0.10.pre

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.
@@ -154,7 +154,7 @@ module Garden
154
154
 
155
155
  def parse_has_many r, value
156
156
  # puts " // Parsing #{r.name}, #{value}"
157
- ids = value.split(/\s*,\s*/)
157
+ ids = value.to_s.split(/\s*,\s*/)
158
158
  ids.each do |id|
159
159
  related_instance = get_real_instance r.class_name, id
160
160
  # puts ">> Creating a has-many relationship. #{id}, #{related_instance}"
@@ -35,7 +35,7 @@ module Garden
35
35
  @clazz = Table.find_model_class namish
36
36
 
37
37
  if @clazz.nil? || !@clazz.new.is_a?(ActiveRecord::Base)
38
- raise "Class '#{namish}' could not be parsed to an ActiveRecord subclass."
38
+ puts "!! Class '#{namish}' could not be parsed to an ActiveRecord subclass."
39
39
  end
40
40
 
41
41
  # Get the ActiveRecord model from the tablename.
@@ -1,3 +1,3 @@
1
1
  module Garden
2
- VERSION = "0.0.9.pre"
2
+ VERSION = "0.0.10.pre"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garden
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9.pre
5
- prerelease: 6
4
+ version: 0.0.10.pre
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - amoslanka
@@ -13,7 +13,7 @@ date: 2011-10-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: spreadsheet
16
- requirement: &70291078498940 !ruby/object:Gem::Requirement
16
+ requirement: &70203908184880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70291078498940
24
+ version_requirements: *70203908184880
25
25
  description: ! 'Allows you to organize your seeds in different formats. Typical seeds.rb,
26
26
  yaml fixtures, and a variety of spreadsheet formats. '
27
27
  email: