csv 3.2.9 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS.md +7 -0
- data/lib/csv/parser.rb +10 -7
- data/lib/csv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4be2aab05afe081e964c806337cab1e8763532ecf66ef29bb8f6854cd65b29bf
|
4
|
+
data.tar.gz: 716f28f2377749b95d8f5f9f19a7cba50499e4ff46c4978efdc002ba25162475
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc67687257ea7790091d9755199624dced05c3ea07a9afc47b86cc49dac1dfce77b884e1c2397de71f1f2de22720778135373652d7af05acb990814e6fa2d940
|
7
|
+
data.tar.gz: fce6230a6fdcff2ae8044a0f374ea71403cdf1f59d2024bb64a87ade52a897a907dfcb271b39d1ad81299cbd9eebf2ca43008dec99d86648550f73584d8c468c
|
data/NEWS.md
CHANGED
data/lib/csv/parser.rb
CHANGED
@@ -901,15 +901,18 @@ class CSV
|
|
901
901
|
def skip_needless_lines
|
902
902
|
return unless @skip_lines
|
903
903
|
|
904
|
-
@scanner.
|
905
|
-
@scanner.each_line(@row_separator) do |line|
|
906
|
-
line << @row_separator if parse_row_end
|
907
|
-
break unless skip_line?(line)
|
908
|
-
@lineno += 1
|
909
|
-
@scanner.keep_drop
|
904
|
+
until @scanner.eos?
|
910
905
|
@scanner.keep_start
|
906
|
+
line = @scanner.scan_all(@not_line_end) || "".encode(@encoding)
|
907
|
+
line << @row_separator if parse_row_end
|
908
|
+
if skip_line?(line)
|
909
|
+
@lineno += 1
|
910
|
+
@scanner.keep_drop
|
911
|
+
else
|
912
|
+
@scanner.keep_back
|
913
|
+
return
|
914
|
+
end
|
911
915
|
end
|
912
|
-
@scanner.keep_back
|
913
916
|
end
|
914
917
|
|
915
918
|
def skip_line?(line)
|
data/lib/csv/version.rb
CHANGED