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
- SHA1:
3
- metadata.gz: 5c5547719b7176a9e7653bdd06094d445f2d7c76
4
- data.tar.gz: ec13cb9230eacacf5772dfad65070304ff912afb
2
+ SHA256:
3
+ metadata.gz: eb4c51d30843219e41ccb6efe102a5bb385b7bc6854b7d703617f36c3b594d09
4
+ data.tar.gz: aeadb2c99cc90f2c0912348e9530412a165d8bcb66a6e75b6fd35a28203aa3ee
5
5
  SHA512:
6
- metadata.gz: 8d5b1935b3575a09c113f7e5d5f03b512e6d85b51c9b879a368937ee819795c4e0965f25e2d3d80eb043aef5f6a9254ab751159daf15ed3ac846224594cd3849
7
- data.tar.gz: b1d34b32357f1b915d463defb673418aca540371151c63a23b34d13f77e17203936c4bfd3ba084aa724e2e867e0674111b79ef573f04605ce78ebe8b372f1c78
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
 
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordCSVImporter
2
- VERSION = '0.1.9'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
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.1.9
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: 2017-01-18 00:00:00.000000000 Z
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.5.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