activerecord_csv_importer 0.1.5 → 0.1.6

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
2
  SHA1:
3
- metadata.gz: 9744cb1373101061120e69c5452f98e6a0be4074
4
- data.tar.gz: 7a14bdf31809ac736e901d66634de7c1ef961a36
3
+ metadata.gz: 51557f583780074a8a0718c67716819019fdf6a4
4
+ data.tar.gz: b8189aa2383e03520fea9135a26865a045f91ed3
5
5
  SHA512:
6
- metadata.gz: 7a1d6f8892b0e62d79a1c30f5bf1544d77a747583c93616ac509a2098a30ff80f753ae914341b88ef1a1fd5b658a3528bc46562542ea5aa66de3a036824a2f3c
7
- data.tar.gz: 20676ec098259d1e0e082fbc127a7f0599ea7210b741b7b427cb0bd6c8e54fe7fe4edfff427a54cf59830dd58e8a5c427d2d7b1d5b44e84c41050828d4a30feb
6
+ metadata.gz: 6f08ead55c0b4e07c74ea76d19684406b5a7cde9c859cc3d0e1726844609357a243c9c74745495c928897316ea856badda6edef721bcfd9a587185843c249b9e
7
+ data.tar.gz: 7ef1d416e306142fd613d1b274841c2e555ebf6bfc3075119e6432eccd8916c3a2e9fc461a95ade5856afd145e76a4bcdd547b4bf1f5a161b3d5e7f504b7bba6
@@ -22,7 +22,7 @@ module ActiveRecordCSVImporter
22
22
 
23
23
  # mapped column names
24
24
  def column_definition_names
25
- column_definitions.map(&:name).map(&:to_s)
25
+ columns.map { |c| c.definition.name if c.definition }.compact
26
26
  end
27
27
 
28
28
  def column_name_for_model_attribute(attribute)
@@ -1,3 +1,3 @@
1
1
  module ActiveRecordCSVImporter
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.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.5
4
+ version: 0.1.6
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-08 00:00:00.000000000 Z
11
+ date: 2017-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus