smarter_csv 1.0.14 → 1.0.15

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: 0de809c12c1c25c789fbd6727e7cbf22c2ca163a
4
- data.tar.gz: c58846fdda8db460d85445bdb4a13afb8b820c91
3
+ metadata.gz: 7fe73934009f54b4447577c4190d8051e315544f
4
+ data.tar.gz: b32b1635d2cb25f5feac9e06522058c319d6291d
5
5
  SHA512:
6
- metadata.gz: c362e175aae92eeab199f99fdb9eb49ba77ea5cea4decc1eb672dca166a3b11f4a74b2a416ff482e1c15b112597e5a94797178ff56ccb916ee8b2e387df4bfe7
7
- data.tar.gz: 11c4f7357010aec018b73f32c3e9b9f279af27aa00c46a732979dea9c05bdce2476345b1c569e6b27efd88d9633ed10dcde29fafd76cea03dbd20f0312937f7e
6
+ metadata.gz: 726b149bde30de57bbabd90078b92f20a4b59d6a41dfb076b0bdb8fae6d47d7701fbdd427f154e1c523fcce3e93ae0af71c4f9426ff48edca10241ab1b50ce5b
7
+ data.tar.gz: 4cc80396cb2a41fae08c20969b3c4ff05b13900289f81a32ef36cc830f363d710428d050b666bc0843b0641ea63486b0157ddf2c728b59a2a47e3eb9974e265d
data/README.md CHANGED
@@ -134,6 +134,7 @@ The options and the block are optional.
134
134
  | :comment_regexp | /^#/ | regular expression which matches comment lines (see NOTE about the CSV header) |
135
135
  | :chunk_size | nil | if set, determines the desired chunk-size (defaults to nil, no chunk processing) |
136
136
  | :key_mapping | nil | a hash which maps headers from the CSV file to keys in the result hash |
137
+ | :remove_unmapped_keys | false | when using :key_mapping option, should non-mapped keys / columns be removed? |
137
138
  | :downcase_header | true | downcase all column headers |
138
139
  | :strings_as_keys | false | use strings instead of symbols as the keys in the result hashes |
139
140
  | :strip_whitespace | true | remove whitespace before/after values and headers |
@@ -168,6 +169,7 @@ The options and the block are optional.
168
169
  #### NOTES on Key Mapping:
169
170
  * keys in the header line of the file can be re-mapped to a chosen set of symbols, so the resulting Hashes can be better used internally in your application (e.g. when directly creating MongoDB entries with them)
170
171
  * if you want to completely delete a key, then map it to nil or to '', they will be automatically deleted from any result Hash
172
+ * if you have input files with a large number of columns, and you want to ignore all columns which are not specifically mapped with :key_mapping, then use option :remove_unmapped_keys => true
171
173
 
172
174
  #### NOTES on the use of Chunking and Blocks:
173
175
  * chunking can be VERY USEFUL if used in combination with passing a block to File.read_csv FOR LARGE FILES
@@ -216,6 +218,10 @@ Or install it yourself as:
216
218
 
217
219
  ## Changes
218
220
 
221
+ #### 1.0.15 (2013-11-01)
222
+ * new option:
223
+ * :remove_unmapped_keys to completely ignore columns which were not mapped with :key_mapping (thanks to Dave Sanders)
224
+
219
225
  #### 1.0.14 (2013-11-01)
220
226
  * added GPL-2 and MIT license to GEM spec file; if you need another license contact me
221
227
 
@@ -312,6 +318,7 @@ And a special thanks to those who contributed pull requests:
312
318
  * [Graham Wetzler](https://github.com/grahamwetzler)
313
319
  * [Marcos G. Zimmermann](https://github.com/marcosgz)
314
320
  * [Jordan Running](https://github.com/jrunning)
321
+ * [Dave Sanders](https://github.com/DaveSanders)
315
322
 
316
323
 
317
324
  ## Contributing
@@ -7,7 +7,8 @@ module SmarterCSV
7
7
  default_options = {:col_sep => ',' , :row_sep => $/ , :quote_char => '"', :force_simple_split => false , :verbose => false ,
8
8
  :remove_empty_values => true, :remove_zero_values => false , :remove_values_matching => nil , :remove_empty_hashes => true , :strip_whitespace => true,
9
9
  :convert_values_to_numeric => true, :strip_chars_from_headers => nil , :user_provided_headers => nil , :headers_in_file => true,
10
- :comment_regexp => /^#/, :chunk_size => nil , :key_mapping_hash => nil , :downcase_header => true, :strings_as_keys => false, :file_encoding => 'utf-8'
10
+ :comment_regexp => /^#/, :chunk_size => nil , :key_mapping_hash => nil , :downcase_header => true, :strings_as_keys => false, :file_encoding => 'utf-8',
11
+ :remove_unmapped_keys => false,
11
12
  }
12
13
  options = default_options.merge(options)
13
14
  csv_options = options.select{|k,v| [:col_sep, :row_sep, :quote_char].include?(k)} # options.slice(:col_sep, :row_sep, :quote_char)
@@ -60,7 +61,7 @@ module SmarterCSV
60
61
  # do some key mapping on the keys in the file header
61
62
  # if you want to completely delete a key, then map it to nil or to ''
62
63
  if ! key_mappingH.nil? && key_mappingH.class == Hash && key_mappingH.keys.size > 0
63
- headerA.map!{|x| key_mappingH.has_key?(x) ? (key_mappingH[x].nil? ? nil : key_mappingH[x].to_sym) : x}
64
+ headerA.map!{|x| key_mappingH.has_key?(x) ? (key_mappingH[x].nil? ? nil : key_mappingH[x].to_sym) : (options[:remove_unmapped_keys] ? nil : x)}
64
65
  end
65
66
  end
66
67
 
@@ -1,3 +1,3 @@
1
1
  module SmarterCSV
2
- VERSION = "1.0.14"
2
+ VERSION = "1.0.15"
3
3
  end
@@ -0,0 +1,2 @@
1
+ Column 0,Column 1,Column 2,Column 3,Column 4,Column 5,Column 6,Column 7,Column 8,Column 9,Column 10,Column 11,Column 12,Column 13,Column 14,Column 15,Column 16,Column 17,Column 18,Column 19,Column 20,Column 21,Column 22,Column 23,Column 24,Column 25,Column 26,Column 27,Column 28,Column 29,Column 30,Column 31,Column 32,Column 33,Column 34,Column 35,Column 36,Column 37,Column 38,Column 39,Column 40,Column 41,Column 42,Column 43,Column 44,Column 45,Column 46,Column 47,Column 48,Column 49,Column 50,Column 51,Column 52,Column 53,Column 54,Column 55,Column 56,Column 57,Column 58,Column 59,Column 60,Column 61,Column 62,Column 63,Column 64,Column 65,Column 66,Column 67,Column 68,Column 69,Column 70,Column 71,Column 72,Column 73,Column 74,Column 75,Column 76,Column 77,Column 78,Column 79,Column 80,Column 81,Column 82,Column 83,Column 84,Column 85,Column 86,Column 87,Column 88,Column 89,Column 90,Column 91,Column 92,Column 93,Column 94,Column 95,Column 96,Column 97,Column 98,Column 99,Column 100,Column 101,Column 102,Column 103,Column 104,Column 105,Column 106,Column 107,Column 108,Column 109,Column 110,Column 111,Column 112,Column 113,Column 114,Column 115,Column 116,Column 117,Column 118,Column 119,Column 120,Column 121,Column 122,Column 123,Column 124,Column 125,Column 126,Column 127,Column 128,Column 129,Column 130,Column 131,Column 132,Column 133,Column 134,Column 135,Column 136,Column 137,Column 138,Column 139,Column 140,Column 141,Column 142,Column 143,Column 144,Column 145,Column 146,Column 147,Column 148,Column 149,Column 150,Column 151,Column 152,Column 153,Column 154,Column 155,Column 156,Column 157,Column 158,Column 159,Column 160,Column 161,Column 162,Column 163,Column 164,Column 165,Column 166,Column 167,Column 168,Column 169,Column 170,Column 171,Column 172,Column 173,Column 174,Column 175,Column 176,Column 177,Column 178,Column 179,Column 180,Column 181,Column 182,Column 183,Column 184,Column 185,Column 186,Column 187,Column 188,Column 189,Column 190,Column 191,Column 192,Column 193,Column 194,Column 195,Column 196,Column 197,Column 198,Column 199,Column 200,Column 201,Column 202,Column 203,Column 204,Column 205,Column 206,Column 207,Column 208,Column 209,Column 210,Column 211,Column 212,Column 213,Column 214,Column 215,Column 216,Column 217,Column 218,Column 219,Column 220,Column 221,Column 222,Column 223,Column 224,Column 225,Column 226,Column 227,Column 228,Column 229,Column 230,Column 231,Column 232,Column 233,Column 234,Column 235,Column 236,Column 237,Column 238,Column 239,Column 240,Column 241,Column 242,Column 243,Column 244,Column 245,Column 246,Column 247,Column 248,Column 249,Column 250,Column 251,Column 252,Column 253,Column 254,Column 255,Column 256,Column 257,Column 258,Column 259,Column 260,Column 261,Column 262,Column 263,Column 264,Column 265,Column 266,Column 267,Column 268,Column 269,Column 270,Column 271,Column 272,Column 273,Column 274,Column 275,Column 276,Column 277,Column 278,Column 279,Column 280,Column 281,Column 282,Column 283,Column 284,Column 285,Column 286,Column 287,Column 288,Column 289,Column 290,Column 291,Column 292,Column 293,Column 294,Column 295,Column 296,Column 297,Column 298,Column 299,Column 300,Column 301,Column 302,Column 303,Column 304,Column 305,Column 306,Column 307,Column 308,Column 309,Column 310,Column 311,Column 312,Column 313,Column 314,Column 315,Column 316,Column 317,Column 318,Column 319,Column 320,Column 321,Column 322,Column 323,Column 324,Column 325,Column 326,Column 327,Column 328,Column 329,Column 330,Column 331,Column 332,Column 333,Column 334,Column 335,Column 336,Column 337,Column 338,Column 339,Column 340,Column 341,Column 342,Column 343,Column 344,Column 345,Column 346,Column 347,Column 348,Column 349,Column 350,Column 351,Column 352,Column 353,Column 354,Column 355,Column 356,Column 357,Column 358,Column 359,Column 360,Column 361,Column 362,Column 363,Column 364,Column 365,Column 366,Column 367,Column 368,Column 369,Column 370,Column 371,Column 372,Column 373,Column 374,Column 375,Column 376,Column 377,Column 378,Column 379,Column 380,Column 381,Column 382,Column 383,Column 384,Column 385,Column 386,Column 387,Column 388,Column 389,Column 390,Column 391,Column 392,Column 393,Column 394,Column 395,Column 396,Column 397,Column 398,Column 399,Column 400,Column 401,Column 402,Column 403,Column 404,Column 405,Column 406,Column 407,Column 408,Column 409,Column 410,Column 411,Column 412,Column 413,Column 414,Column 415,Column 416,Column 417,Column 418,Column 419,Column 420,Column 421,Column 422,Column 423,Column 424,Column 425,Column 426,Column 427,Column 428,Column 429,Column 430,Column 431,Column 432,Column 433,Column 434,Column 435,Column 436,Column 437,Column 438,Column 439,Column 440,Column 441,Column 442,Column 443,Column 444,Column 445,Column 446,Column 447,Column 448,Column 449,Column 450,Column 451,Column 452,Column 453,Column 454,Column 455,Column 456,Column 457,Column 458,Column 459,Column 460,Column 461,Column 462,Column 463,Column 464,Column 465,Column 466,Column 467,Column 468,Column 469,Column 470,Column 471,Column 472,Column 473,Column 474,Column 475,Column 476,Column 477,Column 478,Column 479,Column 480,Column 481,Column 482,Column 483,Column 484,Column 485,Column 486,Column 487,Column 488,Column 489,Column 490,Column 491,Column 492,Column 493,Column 494,Column 495,Column 496,Column 497,Column 498,Column 499
2
+ rFDAsZLKkINpb,ChLVlxWpwZfrOZg,uGJbxzrFncG,R,P,j,QoKRekBnucMA,N,KJFTwrG,Fs,pKazVnOVFnLvAcK,bo,EgJwvAwnGYPdvj,qVPGxupPKQI,FtNJBxxMIBxezfS,,qrcOm,Angkc,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,,sWXjt,dNkgPEgim,WVmBPZSTa,KJnedQffhg,e,XhgwuoHiR,rt,FYNI,Rk,ImHT,QXR,Ta,wvU,qhsGIux,yyrLPMQmKVkCp,SBYM,a,aCxwZKlj,,lcNXLvIEkjQTO,XjpXtlM,PhdrxqxDVWO,pCIQtTuwu,WAbZHWAEtzLJOql,XDETKm,KuF,PozCBInp,d,tWtj,QKjx,eFevbQsOtGGxJM,FZIvXPnOKDMDgdB,khe,YdnPTMxczkm,L,SREiJirL,irZJxq,vl,SYsHw,vKSe,ypvRthKFyTRs,IuAdRz,lGotaaKUU,hxMTxzrUFT,dFCbGN,WDTco,xXhedTTXbbDllWX,M,MrhdNyXzFxP,LjX,qRqvrGrNzC,E,nQ,gOWQSgeCwVIq,ASGxcPYYmTAVm,gbnOqDOicyz,h,gviqOP,oV,QjDOngDXFeYp,ojPwZPSodxzxbu,jcWTp,ERHZmFboGYVCQxP,ox,PsFrmpSe,GbhohxlLVcU,rKMLpQNsvH,UzMJMaK,GilkAEVQWzUA,PGCrmxvKB,jOEDmSM,arTAqyNOUtsWj,,,sQXstIGqFfJg,FYOsFdUYr,DwYhqnBlsGtfez,FcKkwqG,sqZFwfyPByL,RkB,tYVdRtbHpdTRPBf,kObsAtqgghqe,,awzrSqHxz,,aXarXMPnQJgqJyM,ldb,NOdwJ,gUYvxxVPCcrmDOd,dcNR,,uglxXybrDyaHCU,JYRLQC,SoolzzZaZ,OZXZiMSimJrH,iZQiZl,bIDq,OSd,UopfHT,f,v,ynUYQwMmKrH,MtF,Cn,ad
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ fixture_path = 'spec/fixtures'
4
+
5
+ describe ':remove_unmapped_keys option' do
6
+
7
+ it 'it has no effect on loading a file without options' do
8
+ options = {}
9
+ data = SmarterCSV.process("#{fixture_path}/lots_of_columns.csv", options)
10
+ data.size.should eq 1
11
+ data.first.size.should eq 474 # there are some empty rows in the fixture
12
+ end
13
+
14
+ it 'it has no effect if provided without :key_mapping' do
15
+ options = {:remove_unmapped_keys => true}
16
+ data = SmarterCSV.process("#{fixture_path}/lots_of_columns.csv", options)
17
+ data.size.should eq 1
18
+ data.first.size.should eq 474 # there are some empty rows in the fixture
19
+ end
20
+
21
+ it 'it defaults to false and has no effect if :key_mapping is provided without :remove_unmapped_keys' do
22
+ options = {:key_mapping => {:column_0 => :one, :column_15 => :two, :column_42 => :three}}
23
+ data = SmarterCSV.process("#{fixture_path}/lots_of_columns.csv", options)
24
+ data.size.should eq 1
25
+ data.first.size.should eq 474 # there are some empty rows in the fixture
26
+ end
27
+
28
+ it 'it removes non-mapped keys/columns when set to true and :key_mapping is provided' do
29
+ options = {:remove_unmapped_keys => true, :key_mapping => {:column_0 => :one, :column_15 => :two, :column_42 => :three}}
30
+ data = SmarterCSV.process("#{fixture_path}/lots_of_columns.csv", options)
31
+ data.size.should eq 1
32
+ data.first.size.should eq 2 # column_15 is empty
33
+ end
34
+ end
35
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smarter_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - |
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2013-11-02 00:00:00 Z
14
+ date: 2013-12-07 00:00:00 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec
@@ -51,6 +51,7 @@ files:
51
51
  - spec/fixtures/basic.csv
52
52
  - spec/fixtures/binary.csv
53
53
  - spec/fixtures/chunk_cornercase.csv
54
+ - spec/fixtures/lots_of_columns.csv
54
55
  - spec/fixtures/no_header.csv
55
56
  - spec/fixtures/pets.csv
56
57
  - spec/fixtures/quoted.csv
@@ -65,6 +66,7 @@ files:
65
66
  - spec/smarter_csv/not_downcase_header_spec.rb
66
67
  - spec/smarter_csv/quoted_spec.rb
67
68
  - spec/smarter_csv/remove_keys_from_hashes_spec.rb
69
+ - spec/smarter_csv/remove_not_mapped_keys_spec.rb
68
70
  - spec/smarter_csv/remove_values_matching_spec.rb
69
71
  - spec/smarter_csv/remove_zero_values_spec.rb
70
72
  - spec/smarter_csv/strings_as_keys_spec.rb
@@ -100,6 +102,7 @@ test_files:
100
102
  - spec/fixtures/basic.csv
101
103
  - spec/fixtures/binary.csv
102
104
  - spec/fixtures/chunk_cornercase.csv
105
+ - spec/fixtures/lots_of_columns.csv
103
106
  - spec/fixtures/no_header.csv
104
107
  - spec/fixtures/pets.csv
105
108
  - spec/fixtures/quoted.csv
@@ -114,6 +117,7 @@ test_files:
114
117
  - spec/smarter_csv/not_downcase_header_spec.rb
115
118
  - spec/smarter_csv/quoted_spec.rb
116
119
  - spec/smarter_csv/remove_keys_from_hashes_spec.rb
120
+ - spec/smarter_csv/remove_not_mapped_keys_spec.rb
117
121
  - spec/smarter_csv/remove_values_matching_spec.rb
118
122
  - spec/smarter_csv/remove_zero_values_spec.rb
119
123
  - spec/smarter_csv/strings_as_keys_spec.rb