fixed_width_file_parser 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 +4 -4
- data/lib/fixed_width_file_parser/version.rb +1 -1
- data/lib/fixed_width_file_parser.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6073402332a1ca5be01c75ac84b18ffda2786894
|
4
|
+
data.tar.gz: 6ab237b87f96ea029e5713ab95685234511a1d1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b875e3099e5cb8361553154374e4424713868778f0d4be0b7e36053d500981cee4cf777f30062341db53693961826414592052a973461a975c11e16a77736c0
|
7
|
+
data.tar.gz: 0f6fd9a8ea774929fc322f2dee59e18fadb4772c3fafb316c411687fca99b6a8bae323db5f87652800eee6b0c053533b552d2ed285181b64bc21306ff2486b16
|
@@ -48,6 +48,8 @@ module FixedWidthFileParser
|
|
48
48
|
raise "Each field's `position` must be a Range or an Integer"
|
49
49
|
end
|
50
50
|
|
51
|
+
GC.start
|
52
|
+
|
51
53
|
file = File.open(filepath)
|
52
54
|
|
53
55
|
while !file.eof?
|
@@ -71,6 +73,8 @@ module FixedWidthFileParser
|
|
71
73
|
yield(line_fields)
|
72
74
|
end
|
73
75
|
|
76
|
+
GC.start
|
77
|
+
|
74
78
|
file.close
|
75
79
|
end
|
76
80
|
end
|
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.
|
4
|
+
version: 0.1.6
|
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-
|
11
|
+
date: 2016-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|