censive 0.27 → 0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/censive.rb +3 -3
- 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: d9d7a9c43e8371994aba6118bc34e34eeb250a3f289e4a3dfe724cb6f9e42cb1
|
4
|
+
data.tar.gz: 84bde447c2e0de60e03a17afc3d266f4018ce7aad5dd0f690d3d52438e0fd343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5eeb09213826f6cd2821d83c0559034163ac701a2cbd3ef190df3dbfde31167d529f51e30363e585b65fc9a7dd29259b14d2957e7ff2f299878de24e3710e2ce
|
7
|
+
data.tar.gz: 4e54a08d30e433234caa04d94bfcbfef2bb2b9f2b36a4a2f6248bab77dd5fbf410f2fef69ab43c7b2c76a8e79d9d50780d55396aabc9c8dab876db820370e9e1
|
data/lib/censive.rb
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
require "strscan"
|
29
29
|
|
30
30
|
class Censive < StringScanner
|
31
|
-
VERSION="0.
|
31
|
+
VERSION="0.28"
|
32
32
|
|
33
33
|
attr :encoding, :out, :rows
|
34
34
|
|
@@ -96,8 +96,8 @@ class Censive < StringScanner
|
|
96
96
|
xsep = Regexp.escape(@sep) # may need to be escaped
|
97
97
|
@eoc = /(?=#{"\\" + xsep}|#{@cr}|#{@lf}|\z)/o # end of cell
|
98
98
|
@eol = /#{@cr}#{@lf}?|#{@lf}/o # end of line
|
99
|
-
@escapes = /(#{@quote})|#{
|
100
|
-
@quotable = /#{
|
99
|
+
@escapes = /(#{@quote})|#{xsep}|#{@cr}|#{@lf}/o
|
100
|
+
@quotable = /#{xsep}|#{@cr}|#{@lf}/o
|
101
101
|
@quotes = /#{@quote}/o
|
102
102
|
@seps = /#{xsep}+/o
|
103
103
|
@quoted = @excel ? /(?:=)?#{@quote}/o : @quote
|