Hiroshi SHIBATA and Claude Opus 5.5
e1488e6b75
[ruby/stringio] Convert whence to Integer again in StringIO#seek
...
d3c5e6d compared whence with Fixnums directly, so a Float or an object with `to_int`, which IO#seek and the JRuby version accept, raised Errno::EINVAL.
https://github.com/ruby/stringio/commit/6ecc66a590
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 23:54:42 +00:00
Hiroshi SHIBATA and Claude Opus 5.5
7ccbe8d06c
[ruby/stringio] Use PRIdLEN for the negative length message
...
`len` is rb_len_t since d3c5e6d, so `%ld` no longer matches it once rb_len_t is wider than long.
https://github.com/ruby/stringio/commit/8d87a64188
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-10 23:54:42 +00:00
Hiroshi SHIBATA and Claude Opus 5.5
8dc5c8268b
Drop the ULEN2NUM fallback left in stringio
...
The rb_len_t fallback synced from ruby/stringio already defines ULEN2NUM. The upstream file has no such block, so a sync would never remove it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-11 08:10:53 +09:00
Nobuyoshi Nakada
17aeb89200
[ruby/stringio] Adopt rb_len_t
...
https://github.com/ruby/stringio/commit/d3c5e6d01e
2026-10-10 23:55:50 +09:00
Hiroshi SHIBATA and Claude Opus 5.5
80067ba1f0
Use ULEN2NUM for StringIO#size
...
ULONG2NUM would cut the length to 32 bits on mswin once rb_len_t widens. The fallback keeps older Ruby building.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-09 14:00:15 +09:00
John Hawthorn
12c1ddef89
[ruby/stringio] Fix thread safety of strio_free
...
(https://github.com/ruby/stringio/pull/223 )
Follow up to #222
This refcount previously wasn't thread safe (and shouldn't have been
declared `RUBY_TYPED_THREAD_SAFE_FREE`), but it's easy enough to fix
using ruby/atomic.h (Ruby 3.0+)
https://github.com/ruby/stringio/commit/2825dc3007
2026-08-01 07:32:12 +00:00
Jean Boussier
0c3d8b3492
[ruby/stringio] Declare TypedData with RUBY_TYPED_THREAD_SAFE_FREE
...
(https://github.com/ruby/stringio/pull/222 )
Available on Ruby 4.1: [Feature #22067 ]
Ref: https://bugs.ruby-lang.org/issues/22067
When available this flag superseed RUBY_TYPED_FREE_IMMEDIATELY and allow
parallel sweeping of the type.
https://github.com/ruby/stringio/commit/8d27a7f4f1
2026-07-12 11:39:44 +00:00
Nobuyoshi Nakada and Pranjali Thakur
d5f27aea78
[ruby/stringio] Skip chompped record separator
...
Fix ruby/stringio#218 .
https://github.com/ruby/stringio/commit/cff28a1dab
Co-Authored-By: Pranjali Thakur <pranjali@depthfirst.com >
2026-07-10 11:04:24 +00:00
Jean Boussier
105ee02159
[ruby/stringio] Update str_chilled_p for Ruby 4.1
...
(https://github.com/ruby/stringio/pull/219 )
Ref: https://github.com/ruby/ruby/pull/17781
[[Feature #22137 ]](https://bugs.ruby-lang.org/issues/22137 )
The only cause for chilled is now literals.
`STR_CHILLED_SYMBOL_TO_S` has been removed because `Symbol#to_s` always
return a frozen string.
https://github.com/ruby/stringio/commit/5915b45c40
2026-07-10 07:27:22 +00:00
Nobuyoshi Nakada
1d2d4ac734
[ruby/stringio] Cannot read into the underlying string
...
Fix https://hackerone.com/reports/3716987
https://github.com/ruby/stringio/commit/4ed1d6b7cf
2026-05-07 05:40:09 +00:00
Nobuyoshi Nakada
66b1559d39
[ruby/stringio] Check arguments in pread
...
https://github.com/ruby/stringio/commit/efe8351676
2026-05-07 05:03:57 +00:00
Nobuyoshi Nakada
8d64eb6854
[ruby/stringio] Allow read-only methods to work with frozen StringIO
...
Fix https://github.com/ruby/stringio/pull/120
https://github.com/ruby/stringio/commit/b0e3ce88b3
2026-03-03 03:29:20 +00:00
Nobuyoshi Nakada
59bfa2b510
[ruby/stringio] Use raw FL macros over using RBASIC directly
...
https://github.com/ruby/stringio/commit/d6dd409b74
2026-02-11 15:39:33 +00:00
Hiroshi SHIBATA
93df966848
Mark development version for unreleased gems
2025-12-26 11:00:51 +09:00
Burdette Lamar
ae46f916f1
[ruby/stringio] [DOC] Doc for StringIO#read
...
(https://github.com/ruby/stringio/pull/197 )
Previous doc merely linked to `IO#read`; new doc stays local, shows
examples using `StringIO`.
https://github.com/ruby/stringio/commit/e8b66f8cdd
2025-12-26 11:00:51 +09:00
Burdette Lamar
9a76ccdbab
[ruby/stringio] [DOC] Doc for StringIO#putc
...
(https://github.com/ruby/stringio/pull/196 )
Previous doc merely linked to `IO#putc`. The new doc stays local,
provides examples using `StringIO` objects.
https://github.com/ruby/stringio/commit/8983f32c50
2025-12-26 11:00:51 +09:00
Burdette Lamar
354dc574de
[ruby/stringio] [DOC] Doc for StringIO#pread
...
(https://github.com/ruby/stringio/pull/195 )
Previous doc unhelpfully pointed to `IO#pread`; this PR documents
locally, with StringIO examples.
https://github.com/ruby/stringio/commit/806f3d9741
2025-12-26 11:00:51 +09:00
Sutou Kouhei
67f830e092
[ruby/stringio] Development of 3.2.1 started.
...
https://github.com/ruby/stringio/commit/c9cd1c9947
2025-12-26 11:00:51 +09:00
Hiroshi SHIBATA
d5257bea48
Bundle stringio-3.2.0
2025-12-17 15:47:43 +09:00
Burdette Lamar
33837abb81
[ruby/stringio] [DOC] Tweaks for StringIO#pos=
...
(https://github.com/ruby/stringio/pull/194 )
https://github.com/ruby/stringio/commit/3cef1e0e5f
2025-12-06 23:22:04 +00:00
Burdette Lamar
82577ac090
[ruby/stringio] [DOC] Tweaks for StringIO#pos
...
(https://github.com/ruby/stringio/pull/193 )
https://github.com/ruby/stringio/commit/90728bbbca
2025-12-06 23:22:00 +00:00
Burdette Lamar
c9fe3cba39
[ruby/stringio] [DOC] Tweaks for StringIO#lineno=
...
(https://github.com/ruby/stringio/pull/192 )
https://github.com/ruby/stringio/commit/8b1ee03cbe
2025-12-06 23:21:38 +00:00
Burdette Lamar
f298beb2d9
[ruby/stringio] [DOC] Tweaks for StringIO#lineno
...
(https://github.com/ruby/stringio/pull/191 )
https://github.com/ruby/stringio/commit/f2a2a5a99e
2025-12-06 23:21:17 +00:00
BurdetteLamar
87bc106b87
[ruby/stringio] [DOC] Change link to on-page
...
https://github.com/ruby/stringio/commit/a7c118d786
2025-12-06 17:49:13 +00:00
BurdetteLamar
734dab5ec8
[ruby/stringio] [DOC] Link to on-page section, not class File doc
...
https://github.com/ruby/stringio/commit/dc93aa51d2
2025-12-06 03:02:45 +00:00
Burdette Lamar
9e8a661f3b
[ruby/stringio] [DOC] Fix #seek link
...
(https://github.com/ruby/stringio/pull/174 )
Method #seek deserves (and will get) documentation independent of that
in class IO.
Meanwhile, the link should go someplace sensible and useful.
https://github.com/ruby/stringio/commit/d026549719
2025-11-15 13:50:58 +00:00
Burdette Lamar
abf3056381
[ruby/stringio] [DOC] Doc for StringIO.size
...
(https://github.com/ruby/stringio/pull/171 )
https://github.com/ruby/stringio/commit/95a111017a
2025-11-15 13:49:03 +00:00
Burdette Lamar and Sutou Kouhei
b5c9269604
[ruby/stringio] [DOC] Tweaks for StringIO#each_line
...
(https://github.com/ruby/stringio/pull/165 )
Adds to "Position": pos inside a character.
Makes a couple of minor corrections.
---------
https://github.com/ruby/stringio/commit/ff332abafa
Co-authored-by: Sutou Kouhei <kou@cozmixng.org >
2025-11-15 13:48:14 +00:00
Sutou Kouhei
090099b0c0
Development of 3.1.9 started.
2025-11-12 10:52:22 +09:00
Nobuyoshi Nakada
b1dfcd6507
[ruby/stringio] [DOC] Suppress documentation for internals
...
https://github.com/ruby/stringio/commit/27b2fb2fce
2025-11-10 03:45:08 +00:00
Burdette Lamar
d24bb1e761
[ruby/stringio] [DOC] Tweaks for StringIO#string=
...
(https://github.com/ruby/stringio/pull/172 )
https://github.com/ruby/stringio/commit/17ae4daf9a
2025-11-05 00:09:36 +00:00
Burdette Lamar
be905b2e58
[ruby/stringio] [DOC] Tweaks for StringIO#flush
...
(https://github.com/ruby/stringio/pull/169 )
https://github.com/ruby/stringio/commit/bef6541b55
2025-11-05 00:09:02 +00:00
Burdette Lamar
00b5b3c563
[ruby/stringio] [DOC] Tweaks for StringIO#isatty
...
(https://github.com/ruby/stringio/pull/167 )
https://github.com/ruby/stringio/commit/94303ace95
2025-11-05 00:08:41 +00:00
Burdette Lamar
d5acffba82
[ruby/stringio] [DOC] Tweaks for StringIO#fsync
...
(https://github.com/ruby/stringio/pull/170 )
https://github.com/ruby/stringio/commit/da338d7e5d
2025-11-05 00:05:33 +00:00
Burdette Lamar
e22d9abad3
[ruby/stringio] [DOC] Tweaks for StringIO#fileno
...
(https://github.com/ruby/stringio/pull/168 )
https://github.com/ruby/stringio/commit/9f10c7ae86
2025-11-05 00:05:17 +00:00
Burdette Lamar
9c0f2729c0
[ruby/stringio] [DOC] Tweaks for StringIO#internal_encoding
...
(https://github.com/ruby/stringio/pull/166 )
https://github.com/ruby/stringio/commit/5eeb61df34
2025-11-05 00:03:04 +00:00
Burdette Lamar
554a78daab
[ruby/stringio] [DOC] Doc for StringIO.getc
...
(https://github.com/ruby/stringio/pull/163 )
https://github.com/ruby/stringio/commit/a126fe252f
2025-11-04 23:57:52 +00:00
Burdette Lamar
15e64bd2e6
[ruby/stringio] [DOC] Doc for StringIO#gets
...
(https://github.com/ruby/stringio/pull/164 )
https://github.com/ruby/stringio/commit/10e991e31d
2025-11-04 01:09:55 +00:00
Burdette Lamar
be495013a7
[ruby/stringio] [DOC] Doc for StringIO#getbyte
...
(https://github.com/ruby/stringio/pull/162 )
https://github.com/ruby/stringio/commit/95a7dd592c
2025-11-04 00:59:03 +00:00
Burdette Lamar
0d210f4d39
[ruby/stringio] [DOC] Tweaks for StringIO#external_encoding
...
(https://github.com/ruby/stringio/pull/161 )
https://github.com/ruby/stringio/commit/92656f5c66
2025-11-04 00:47:13 +00:00
Burdette Lamar
6695a3b333
[ruby/stringio] [DOC] Tweaks for StringIO#eof?
...
(https://github.com/ruby/stringio/pull/160 )
https://github.com/ruby/stringio/commit/5034156245
2025-11-04 00:45:25 +00:00
Nobuyoshi Nakada
0f5c69b317
[DOC] Moved non ASCII documents to separated files
...
C99 does not declare ways to designate the charset encoding of the
source file. We can assume just US-ASCII characters will be safe.
2025-10-28 13:07:59 +09:00
Burdette Lamar and Sutou Kouhei
02d53bab56
[ruby/stringio] [DOC] Doc for StringIO#each_byte
...
(https://github.com/ruby/stringio/pull/157 )
https://github.com/ruby/stringio/commit/624ce56b4e
Co-authored-by: Sutou Kouhei <kou@cozmixng.org >
2025-10-28 13:07:59 +09:00
Burdette Lamar and Sutou Kouhei
218c2805f9
[ruby/stringio] [DOC] Doc for StringIO#each_codepoint
...
(https://github.com/ruby/stringio/pull/159 )
https://github.com/ruby/stringio/commit/6628d4837b
Co-authored-by: Sutou Kouhei <kou@cozmixng.org >
2025-10-28 03:09:50 +00:00
Burdette Lamar and Sutou Kouhei
9fd32ee414
[ruby/stringio] [DOC] Doc for StringIO#each_char
...
(https://github.com/ruby/stringio/pull/158 )
https://github.com/ruby/stringio/commit/ec6bf815ae
Co-authored-by: Sutou Kouhei <kou@cozmixng.org >
2025-10-28 03:06:45 +00:00
Nobuyoshi Nakada
d0a6780d1e
[ruby/stringio] [DOC] Split the examples StringIO into the document file
...
https://github.com/ruby/stringio/commit/04ba28af00
2025-10-27 07:53:15 +00:00
Burdette Lamar
e221a4b73e
[ruby/stringio] [DOC] Doc for StringIO#each
...
(https://github.com/ruby/stringio/pull/154 )
https://github.com/ruby/stringio/commit/eca2588274
2025-10-27 04:24:32 +00:00
Burdette Lamar and Sutou Kouhei
2dd01c8f5c
[ruby/stringio] [DOC] Tweaks for StringIO#close_write
...
(https://github.com/ruby/stringio/pull/150 )
https://github.com/ruby/stringio/commit/ea6e36f797
Co-authored-by: Sutou Kouhei <kou@cozmixng.org >
2025-10-27 04:23:29 +00:00
Burdette Lamar
fcf8b10b3c
[ruby/stringio] [DOC] Tweaks for StringIO#close_read
...
(https://github.com/ruby/stringio/pull/149 )
https://github.com/ruby/stringio/commit/11995db341
2025-10-27 01:02:38 +00:00
Burdette Lamar
daaa09bcc2
[ruby/stringio] [DOC] Tweaks for StringIO.closed_read?
...
(https://github.com/ruby/stringio/pull/152 )
https://github.com/ruby/stringio/commit/7ded426718
2025-10-27 01:02:14 +00:00