summaryrefslogtreecommitdiff
path: root/ext/stringio
AgeCommit message (Collapse)Author
11 days[ruby/stringio] Extract internal part as the functionNobuyoshi Nakada
`str_chilled_p` (https://github.com/ruby/stringio/pull/136) https://github.com/ruby/stringio/commit/3c52ddc4c8
2025-05-13[ruby/stringio] Add a comment to explicit RUBY_FL_USER2 |Jean Boussier
RUBY_FL_USER3 (https://github.com/ruby/stringio/pull/133) This way when someone removes these flags from Ruby or update them, they'll find this reference when greping. Followup: https://github.com/ruby/stringio/pull/128 https://github.com/ruby/stringio/commit/fad26ee14b
2025-05-12Add a missing dependency for stringioTakashi Kokubun
18d395e0784401585b5c14300e689de55e208647
2025-05-13[ruby/stringio] Fix Ruby 3.4 checkJeremy Evans
https://github.com/ruby/stringio/commit/a27c5d5e2e Co-authored-by: Sutou Kouhei <[email protected]>
2025-05-13[ruby/stringio] Do not issue warning when calling set_encoding if string is ↵Jeremy Evans
chilled StringIO does not warn for unchilled unfrozen string or for frozen string, so it should not warn for chilled string. https://github.com/ruby/stringio/commit/4ac33b8c70
2025-04-22Mark development version for unreleased gemsHiroshi SHIBATA
2025-04-21[ruby/stringio] Development of 3.1.8 started.Sutou Kouhei
https://github.com/ruby/stringio/commit/14fbdcc02c
2025-04-21[ruby/stringio] Development of 3.1.7 started.Sutou Kouhei
https://github.com/ruby/stringio/commit/ee3ee1df31
2025-04-15[ruby/stringio] Support for `rb_io_mode_t`Samuel Williams
(https://github.com/ruby/stringio/pull/129) Companion PR to <https://github.com/ruby/ruby/pull/7894>. https://github.com/ruby/stringio/commit/2d3988e12f
2025-03-31stringio-3.1.6 has been releasedHiroshi SHIBATA
2025-02-21[ruby/stringio] Fix SEGV at unget to a null device StringIONobuyoshi Nakada
https://github.com/ruby/stringio/commit/eb4ee49218
2025-02-21Bump up development version of stringioHiroshi SHIBATA
2025-02-20[ruby/stringio] Make sure shared buffer is copied on mutationAaron Patterson
(https://github.com/ruby/stringio/pull/117) We need to ensure shared buffers are made independent on mutation. Otherwise we could end up mutating unrelated string buffers. --------- https://github.com/ruby/stringio/commit/5101cfb030 Co-authored-by: Aaron Patterson <[email protected]> Co-authored-by: Alan Wu <[email protected]> Co-authored-by: Aaron Patterson <[email protected]> Co-authored-by: Sutou Kouhei <[email protected]>
2025-01-02[ruby/stringio] Provide a 'Changelog' link onmark-young-atg
rubygems.org/gems/stringio (https://github.com/ruby/stringio/pull/111) By providing a 'changelog_uri' in the metadata of the gemspec a 'Changelog' link will be shown on https://rubygems.org/gems/stringio which makes it quick and easy for someone to check on the changes introduced with a new version. Details of this functionality can be found on https://guides.rubygems.org/specification-reference/#metadata --------- https://github.com/ruby/stringio/commit/8c084bfcdb Co-authored-by: Sutou Kouhei <[email protected]>
2024-12-26Bump up fiddle 1.1.7.dev and stringio 3.1.3.devHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12469
2024-12-13Lock released version of stringio-3.1.2Hiroshi SHIBATA
2024-11-05[ruby/stringio] Copy from the relocated stringNobuyoshi Nakada
When ungetting the string same as the same buffer string, extending the buffer can move the pointer in the argument. Reported by manun Manu (manun) at https://hackerone.com/reports/2805165. https://github.com/ruby/stringio/commit/95c1194832
2024-10-26[ruby/stringio] An empty string should be converted to empty in any encodingNobuyoshi Nakada
https://github.com/ruby/stringio/commit/ef03f9368d
2024-10-26[ruby/stringio] Unreachable after an invalid argument exceptionNobuyoshi Nakada
https://github.com/ruby/stringio/commit/a2aab4721c
2024-10-26[ruby/stringio] Remove `SafeStringValue`Nobuyoshi Nakada
In Ruby 2.7 and later, it is the same as `StringValue`. https://github.com/ruby/stringio/commit/561ea67ea8
2024-08-31Added pre-release suffix for development version of default gemsHiroshi SHIBATA
https://github.com/ruby/stringio/issues/81
2024-06-13[ruby/stringio] Development of 3.1.2 started.Sutou Kouhei
https://github.com/ruby/stringio/commit/9ad5551160
2024-05-30[ruby/stringio] Remove special handling of chilled stringsJean Boussier
[Feature #20205] Followup: https://github.com/ruby/stringio/pull/94 They no longer need to be special cases. If StringIO end up mutating a chilled string, a warning will be emitted. https://github.com/ruby/stringio/commit/dc62d65449
2024-04-27ruby tool/update-deps --fix卜部昌平
2024-04-17[ruby/stringio] strio_read: preserve buffer encoding on partialJean byroot Boussier
reads (https://github.com/ruby/stringio/pull/95) [[Bug #20418]](https://bugs.ruby-lang.org/issues/20418) Ruby IO#read preserves the encoding on partial read, but change it when reading the whole IO from commit https://github.com/ruby/ruby/commit/0ca7036682da: > * io.c (read_all): should associate default external encoding. > * io.c (io_read): should NOT associate default external encoding. https://github.com/ruby/stringio/commit/073172da31 Co-authored-by: Jean Boussier <[email protected]>
2024-03-27[ruby/stringio] Extract `readonly_string_p`Nobuyoshi Nakada
https://github.com/ruby/stringio/commit/0da5b725c8
2024-03-28[ruby/stringio] Adjust styles [ci skip]Nobuyoshi Nakada
https://github.com/ruby/stringio/commit/4e8e82fc30
2024-03-28[ruby/stringio] Eagerly defrost chilled stringsÉtienne Barrié
[Feature #20390] https://github.com/ruby/stringio/commit/17ee957f34 Co-authored-by: Jean Boussier <[email protected]>
2024-03-15[ruby/stringio] NULL StringIO by `StringIO.new(nil)`Nobuyoshi Nakada
https://github.com/ruby/stringio/commit/779f71359d
2024-03-14[ruby/stringio] [DOC] Package rdoc filesNobuyoshi Nakada
https://github.com/ruby/stringio/commit/8522c90e4b
2024-03-14[ruby/stringio] [DOC] Add missing documentsNobuyoshi Nakada
https://github.com/ruby/stringio/commit/9cc1dfa19c
2024-03-14[ruby/stringio] [DOC] Add rdoc taskNobuyoshi Nakada
https://github.com/ruby/stringio/commit/5dd52d4aec
2024-03-13[ruby/stringio] Define `StringIO::MAX_LENGTH`Nobuyoshi Nakada
https://github.com/ruby/stringio/commit/0205bd1c86
2024-01-18[ruby/stringio] Fix ascii_only? flag in strio_writetomoya ishida
(https://github.com/ruby/stringio/pull/77) Followup of #79 `rb_str_resize()` was changed by https://github.com/ruby/ruby/commit/b0b9f7201acab05c2a3ad92c3043a1f01df3e17f . ```c rb_str_resize(string, shorter) // clear ENC_CODERANGE in some case rb_str_resize(string, longer) // does not clear ENC_CODERANGE anymore ``` ```c // rb_str_resize in string.c if (slen > len && ENC_CODERANGE(str) != ENC_CODERANGE_7BIT) { ENC_CODERANGE_CLEAR(str); } ``` I think this change is based on an assumption that appending null bytes will not change flag `ascii_only?`. `strio_extend()` will make the string longer if needed, and update the flags correctly for appending null bytes. Before `memmove()`, we need to `rb_str_modify()` because updated flags are not updated for `memmove()`. https://github.com/ruby/stringio/commit/b31a538576
2024-01-16[ruby/stringio] Update the coderange after overwriteNobuyoshi Nakada
Fix https://bugs.ruby-lang.org/issues/20185 https://github.com/ruby/stringio/commit/8230552a46
2023-12-25Revert "Rollback to released version numbers of stringio and strscan"Hiroshi SHIBATA
This reverts commit 6a79e53823e328281b9e9eee53cd141af28f8548.
2023-12-16Rollback to released version numbers of stringio and strscanHiroshi SHIBATA
2023-11-28[ruby/stringio] Development of 3.1.1 started.Sutou Kouhei
https://github.com/ruby/stringio/commit/75da93d48f
2023-11-27[ruby/stringio] Do not compile the C extension on TruffleRubyBenoit Daloze
* Before this it was compiled but not used, because TruffleRuby has a stringio.rb in stdlib and .rb has precedence over .so. In fact that extension never worked on TruffleRuby, because rb_io_extract_modeenc() has never been defined on TruffleRuby. * So this just skip compiling the extension since compilation of it now fails: https://github.com/ruby/openssl/issues/699 https://github.com/ruby/stringio/commit/d791b63df6
2023-11-08[ruby/stringio] Development of 3.1.0 started.Sutou Kouhei
https://github.com/ruby/stringio/commit/a2f8ef1a6a
2023-11-08[ruby/stringio] Add missing row separator encoding conversionSutou Kouhei
(https://github.com/ruby/stringio/pull/69) The conversion logic is borrowed from ruby/ruby's io.c: https://github.com/ruby/ruby/blob/40391faeab608665da87a05c686c074f91a5a206/io.c#L4059-L4079 Fix ruby/stringio#68 Reported by IWAMOTO Kouichi. Thanks!!! https://github.com/ruby/stringio/commit/4b170c1a68
2023-11-04[ruby/stringio] Make STRINGIO_VERSION uniformNobuyoshi Nakada
https://github.com/ruby/stringio/commit/4400bf3380
2023-11-04[ruby/stringio] Move Java version to Java directoryNobuyoshi Nakada
https://github.com/ruby/stringio/commit/3f90a0d619
2023-10-05[ruby/stringio] StringIO#pread: handle 0 length like IO#preadJean byroot Boussier
(https://github.com/ruby/stringio/pull/67) Fix: https://github.com/ruby/stringio/issues/66 If length is 0, IO#pread don't even try to read the IO, it simply return the buffer untouched if there is one or a new empty buffer otherwise. It also doesn't validate the offset when length is 0. cc @jdelStrother @kou https://github.com/ruby/stringio/commit/37e9279337 Co-authored-by: Jean Boussier <[email protected]>
2023-09-22[ruby/stringio] [DOC] Fix linkBurdette Lamar
(https://github.com/ruby/stringio/pull/65) https://github.com/ruby/stringio/commit/e3ea087d04
2023-08-29Development of 3.0.9 started.Sutou Kouhei
2023-08-02Implement StringIO#pread (#56)Jean byroot Boussier
Both for being closer to real IOs and also because it's a convenient API in multithreaded scenarios. Co-authored-by: Jean Boussier <[email protected]>
2023-06-02[ruby/stringio] Development of 3.0.8 started.Hiroshi SHIBATA
https://github.com/ruby/stringio/commit/1587d3698e
2023-06-01[ruby/stringio] Avoid direct struct usage.Samuel Williams
(https://github.com/ruby/stringio/pull/54) We will eventually want to refactor this, but for now this is compatible enough.
2023-06-01Revert "Hide most of the implementation of `struct rb_io`. (#6511)"NARUSE, Yui
This reverts commit 18e55fc1e1ec20e8f3166e3059e76c885fc9f8f2. fix [Bug #19704] https://bugs.ruby-lang.org/issues/19704 This breaks compatibility for extension libraries. Such changes need a discussion.