scaffold_logic 1.7.7 → 1.7.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.7
1
+ 1.7.8
@@ -1,6 +1,6 @@
1
1
  # Adapted from http://paulbarry.com/articles/2008/04/19/importing-data-with-rails
2
2
 
3
- require 'faster_csv' if Object.const_defined?('FasterCSV')
3
+ require Object.const_defined?('FasterCSV') ? 'faster_csv' : 'csv'
4
4
 
5
5
  module ScaffoldLogic
6
6
  class DataImport
@@ -44,7 +44,7 @@ module ScaffoldLogic
44
44
  @errors = []
45
45
  @row_index = 1
46
46
 
47
- FasterCSV.foreach(file, :col_sep => "\t", :row_sep => :auto) do |arg|
47
+ (Object.const_defined?('FasterCSV') ? FasterCSV : CSV).foreach(file, :col_sep => "\t", :row_sep => :auto) do |arg|
48
48
  @row = arg
49
49
  initialize_row!
50
50
  @row_index += 1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "scaffold_logic"
8
- s.version = "1.7.7"
8
+ s.version = "1.7.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Ehmke"]
12
- s.date = "2011-12-11"
12
+ s.date = "2011-12-21"
13
13
  s.description = "Scaffold and UI generator for SEO Logic applications."
14
14
  s.email = "corey@seologic.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 7
10
- version: 1.7.7
9
+ - 8
10
+ version: 1.7.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Ehmke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-11 00:00:00 Z
18
+ date: 2011-12-21 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Scaffold and UI generator for SEO Logic applications.