hflr 1.2.3 → 1.2.5

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{hflr}
5
- s.version = "1.2.3"
5
+ s.version = "1.2.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Colin Davis"]
@@ -31,12 +31,12 @@ class FLRFile
31
31
  end
32
32
  if @fast
33
33
  @width = get_record_width_from_file
34
- puts "record width: #{@width}"
34
+
35
35
 
36
36
  records_to_take = 100000000 / @width
37
37
 
38
38
  @buffer_size = @width * records_to_take
39
- puts "buffer size: #{@buffer_size}"
39
+
40
40
 
41
41
  @position=0
42
42
  @current_buffer=nil
@@ -102,25 +102,25 @@ def fast_get_next_known_line_type
102
102
  unless @current_buffer.nil? && (@offsets.nil? || @offsets.empty?)
103
103
  if @current_buffer.nil?
104
104
  chunk = @offsets.shift
105
- puts "About to read chunk #{chunk.inspect}"
105
+
106
106
 
107
107
  @file.pos = chunk.pos
108
108
  @current_buffer=@file.read(chunk.width)
109
- puts "current_buffer set to #{@current_buffer}"
109
+
110
110
  record= @current_buffer.slice(@position,@width)
111
- puts "Got record #{record}"
111
+
112
112
 
113
113
  @position += @width
114
- puts "position: #{@position}"
114
+
115
115
  if @position >= @current_buffer.size
116
- puts "Reseting buffer"
116
+
117
117
  @current_buffer = nil
118
118
  @position=0
119
119
  end
120
120
  return record
121
121
  else
122
122
  record= @current_buffer.slice(@position,@width)
123
- puts "Got subsequent record #{record}"
123
+
124
124
  @position += @width
125
125
  if @position>=@current_buffer.size
126
126
  @position=0
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hflr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.3
5
+ version: 1.2.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Colin Davis