rubysl-stringio 2.2 → 2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubysl/stringio/version.rb +1 -1
- data/lib/stringio.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 555ca37949f532f46aca3714be5b469d74efcfc6
|
4
|
+
data.tar.gz: 10426bcb7e5f33ab0cc8b6313bb467547963d756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70dabdee82dc0d783282dbde1cb99ab3ceca8bb821ee6b43549760cdb780c326c7092f1c752c00d34df2ded5052edd3a474506f81f001024114e10470db3bb3d
|
7
|
+
data.tar.gz: 63afbba01abd41040605fed106daa94fe9c997d6934160cde81ee76caf26413cdcdc03937df97a053da7a8a3ae97a25c9ab86dbdd8ecb4927d4659027eaec8d9
|
data/lib/stringio.rb
CHANGED
@@ -696,6 +696,7 @@ class StringIO
|
|
696
696
|
d = @__data__
|
697
697
|
pos = d.pos
|
698
698
|
string = d.string
|
699
|
+
m = Rubinius::Mirror.reflect string
|
699
700
|
|
700
701
|
if sep.nil?
|
701
702
|
if limit
|
@@ -705,7 +706,7 @@ class StringIO
|
|
705
706
|
end
|
706
707
|
d.pos += line.bytesize
|
707
708
|
elsif sep.empty?
|
708
|
-
if stop =
|
709
|
+
if stop = m.find_string("\n\n", pos)
|
709
710
|
stop += 2
|
710
711
|
line = string.byteslice(pos, stop - pos)
|
711
712
|
while string.getbyte(stop) == 10
|
@@ -717,7 +718,7 @@ class StringIO
|
|
717
718
|
d.pos = string.bytesize
|
718
719
|
end
|
719
720
|
else
|
720
|
-
if stop =
|
721
|
+
if stop = m.find_string(sep, pos)
|
721
722
|
if limit && stop - pos >= limit
|
722
723
|
stop = pos + limit
|
723
724
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysl-stringio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '2.
|
4
|
+
version: '2.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Shirai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|