fixed_width_file_parser 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04730af88a0166b4bb3867a05e16e8809b88ee9c
4
- data.tar.gz: 841b3ff29e6317526003204f9d416410a3c7da08
3
+ metadata.gz: f6661790ab6b56f7cd205d30f258192aba5503f6
4
+ data.tar.gz: 6199078e6bb6e8200e176dd1e8fe83078aac0453
5
5
  SHA512:
6
- metadata.gz: 043a55b1803586954e8e31507401cc17303e4bcb40eda28893323d93256906735f555918a013490eee840e7aa6d74f6f82f7baed5143f25df9824a642a157d80
7
- data.tar.gz: b048ec7f10529162fe334433d015f3aa884837bcbd142a3648ebb06635d62b328c39cf22e037570f19a3d05619c5a6598605714f49d28e0576560e390fcccc4b
6
+ metadata.gz: d0e8e8aed4297f3299d4dcb4391bda177d79d35b9edef9dbe577487a37a7f0f740242e83839e45e6910d37fefb0b8d50018b5460095e4cc91645cdbb76ede550
7
+ data.tar.gz: 06f2981faff08ff51fbc4d3283b8e8c88055ba712b99f9065446fdc78b22a44d192ba94efd7f7b1f8e1a1296189add072d197d58a87666e8a401ef27bf53d96e
@@ -50,7 +50,8 @@ module FixedWidthFileParser
50
50
  while !file.eof?
51
51
  line = file.readline
52
52
  # If the current line is blank, skip to the next line
53
- next if line.blank?
53
+ # chomp to remove "\n" and "\r\n"
54
+ next if line.chomp.empty?
54
55
 
55
56
  line_fields = {}
56
57
  fields.each do |field|
@@ -1,3 +1,3 @@
1
1
  module FixedWidthFileParser
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixed_width_file_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Smith