ar_csv_importer 0.1 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/ar_csv_importer.rb +3 -3
  2. data/lib/version.rb +1 -1
  3. metadata +1 -1
@@ -7,14 +7,14 @@ module ARCSVImporter
7
7
  self.csv_importer_row_order = row_order
8
8
 
9
9
  def self.csv_import(file_path)
10
- importer.import
10
+ importer(file_path).import
11
11
  end
12
12
 
13
13
  def self.csv_import!(file_path)
14
- importer.import(true)
14
+ importer(file_path).import(true)
15
15
  end
16
16
 
17
- def self.importer
17
+ def self.importer(file_path)
18
18
  @importer ||= ARCSVImporter::Importer.new(file_path, self, self.csv_importer_row_order)
19
19
  end
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module ARCSVImporter
2
- VERSION = 0.1
2
+ VERSION = 0.2
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ar_csv_importer
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: