activerecord_csv_importer 0.1.9 → 0.2.0
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: eb4c51d30843219e41ccb6efe102a5bb385b7bc6854b7d703617f36c3b594d09
|
4
|
+
data.tar.gz: aeadb2c99cc90f2c0912348e9530412a165d8bcb66a6e75b6fd35a28203aa3ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f043d82d6871910b315673031d2acb26a8dd2d13702c9539373d599b8b440645c89fb5131afe36084f99f965d990f6a4f4d21ff490759846a7b116a91ec1106
|
7
|
+
data.tar.gz: 48f1b4e0a48fef5a36db9572792f6554a97594838af91f539ec1b1eb6f6620206e396db56b03db7c5398df9b98a053ddd08d468c9f27e5679895e6e68ad228e8
|
@@ -46,6 +46,8 @@ module ActiveRecordCSVImporter
|
|
46
46
|
def match?(column_name, search_query = (as || name))
|
47
47
|
return false if column_name.nil?
|
48
48
|
|
49
|
+
column_name.gsub!("\xEF\xBB\xBF", '') #strip BOM
|
50
|
+
|
49
51
|
downcased_column_name = column_name.downcase
|
50
52
|
underscored_column_name = downcased_column_name.gsub(/\s+/, '_')
|
51
53
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_csv_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zulfiqar Ali
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.
|
176
|
+
rubygems_version: 2.7.3
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: A modified version of CSV Import using activerecord-import
|