Skip to content

Commit

Permalink
Fixed issue in fixed width parser with ruby 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cdimartino committed Feb 22, 2010
1 parent 863108b commit cbfa1a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/etl/parser/fixed_width_parser.rb
Expand Up @@ -12,7 +12,7 @@ def initialize(source, options={})

# Return each row
def each
Dir.glob(file).each do |file|
Dir.glob(file.to_s).each do |file|
open(file).each do |line|
row = {}
lines_skipped = 0
Expand Down Expand Up @@ -62,4 +62,4 @@ def initialize(name, field_start, field_end=nil, field_length=nil)
end
end
end
end
end

0 comments on commit cbfa1a9

Please sign in to comment.