spreader 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/spreader.rb +1 -1
  2. metadata +1 -1
data/lib/spreader.rb CHANGED
@@ -65,7 +65,7 @@ class Spreader
65
65
  load(transform(data, model_name, latitude_field_name, longitude_field_name))
66
66
  end
67
67
 
68
- def self.seed(relative_path, model_name, latitude_field_name, longitude_field_name)
68
+ def self.sow(relative_path, model_name, latitude_field_name, longitude_field_name)
69
69
  spreader = Spreader.new
70
70
  spreader.transformLoad(spreader.extract(relative_path){|data| XML::Reader.file("#{data}", :options => XML::Parser::Options::NOBLANKS | XML::Parser::Options::NOENT)}, model_name, latitude_field_name, longitude_field_name) if spreader.xml?(relative_path)
71
71
  spreader.transformLoad(spreader.extract(relative_path){|data| File.open("#{data}")}, model_name, latitude_field_name, longitude_field_name) if !spreader.xml?(relative_path)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: