fixed_width_file_parser 0.1.2 → 0.1.3

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: f6661790ab6b56f7cd205d30f258192aba5503f6
4
- data.tar.gz: 6199078e6bb6e8200e176dd1e8fe83078aac0453
3
+ metadata.gz: cf95cd36cb7b92195d33900fd56fff97477c1a6a
4
+ data.tar.gz: 2f08e3b3d175cb2586fe73a7303b8f0855c23a67
5
5
  SHA512:
6
- metadata.gz: d0e8e8aed4297f3299d4dcb4391bda177d79d35b9edef9dbe577487a37a7f0f740242e83839e45e6910d37fefb0b8d50018b5460095e4cc91645cdbb76ede550
7
- data.tar.gz: 06f2981faff08ff51fbc4d3283b8e8c88055ba712b99f9065446fdc78b22a44d192ba94efd7f7b1f8e1a1296189add072d197d58a87666e8a401ef27bf53d96e
6
+ metadata.gz: 705fbc3925a1d6ada7a0c265e81771a0b1eba62443099deb084cc3640aec63a5ece0c2795972ea2b48cab8b881ada200a97cbd505455db52247046768e1eabf2
7
+ data.tar.gz: a055eacf68de52ef66fe28cb1e640c36d00a1850453cdd1dbf86de0dbaccce39a09be33ee98ff096af36389907fbe79cdfd22b8650303b9936f1066f7c97ccce
@@ -1,3 +1,3 @@
1
1
  module FixedWidthFileParser
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -55,7 +55,7 @@ module FixedWidthFileParser
55
55
 
56
56
  line_fields = {}
57
57
  fields.each do |field|
58
- line_fields[field[:name].to_sym] = line[ field[:position] ].strip
58
+ line_fields[field[:name].to_sym] = line[ field[:position] ].try(:strip)
59
59
  end
60
60
 
61
61
  yield(line_fields)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixed_width_file_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Smith
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2016-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler