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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 976efbc15675621fa210269b957a18779104e541
4
- data.tar.gz: b7839de06cc4b2596421c79988fe353510c199a8
3
+ metadata.gz: 6073402332a1ca5be01c75ac84b18ffda2786894
4
+ data.tar.gz: 6ab237b87f96ea029e5713ab95685234511a1d1e
5
5
  SHA512:
6
- metadata.gz: de67c84d35c1c8b4927032ac2902ecab46a62f9952f241e33f3e542880222caff2b00854f1b400b7c192bf0f4cc9c68227a0e5effd0bbdafb3b287d110e1c1ce
7
- data.tar.gz: 3295067dec03f267224e8781356a2f9403884cfe03cb95156d553862cf2ef1cd573f9bf63ba411888bb598cb08d7b63b37ae36a8b0d7eb835bac8a353e2644cd
6
+ metadata.gz: 5b875e3099e5cb8361553154374e4424713868778f0d4be0b7e36053d500981cee4cf777f30062341db53693961826414592052a973461a975c11e16a77736c0
7
+ data.tar.gz: 0f6fd9a8ea774929fc322f2dee59e18fadb4772c3fafb316c411687fca99b6a8bae323db5f87652800eee6b0c053533b552d2ed285181b64bc21306ff2486b16
@@ -1,3 +1,3 @@
1
1
  module FixedWidthFileParser
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -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.5
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-07-28 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler