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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f74a89f8e5b0490d73aef50dae8c500dd1246187
4
- data.tar.gz: 27e4281fa43d00c6ab040b87f175cedcbe1f5cca
3
+ metadata.gz: 555ca37949f532f46aca3714be5b469d74efcfc6
4
+ data.tar.gz: 10426bcb7e5f33ab0cc8b6313bb467547963d756
5
5
  SHA512:
6
- metadata.gz: e0fa5869f94aa17e695ed48bea6dcf807241c1a4b4e3306259a1f26a7d4999ea85c952fe5d015b03da9e7dcba83f4c0653a44de67a4755ae9e8c8fbfb3338aff
7
- data.tar.gz: ca99e8671a7c57941993344094b6297d457d21ce35662da997cbd5b2076aa0bcd85dbf77055cedb156865e1c4028955dd8ff35cb0183d60baf39a176712cf6d7
6
+ metadata.gz: 70dabdee82dc0d783282dbde1cb99ab3ceca8bb821ee6b43549760cdb780c326c7092f1c752c00d34df2ded5052edd3a474506f81f001024114e10470db3bb3d
7
+ data.tar.gz: 63afbba01abd41040605fed106daa94fe9c997d6934160cde81ee76caf26413cdcdc03937df97a053da7a8a3ae97a25c9ab86dbdd8ecb4927d4659027eaec8d9
@@ -1,5 +1,5 @@
1
1
  module RubySL
2
2
  module StringIO
3
- VERSION = "2.2"
3
+ VERSION = "2.3"
4
4
  end
5
5
  end
@@ -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 = string.find_string("\n\n", pos)
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 = string.find_string(sep, pos)
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.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: 2017-10-23 00:00:00.000000000 Z
11
+ date: 2018-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler