Jean Boussier
71dae78b89
[ruby/stringio] Implement write barrier on StringIO
...
It only has a single reference set in 3 places which
makes it fairly easy to implement.
009896b973
2023-02-28 03:07:10 +00:00
BurdetteLamar
d3ee9e590c
[ruby/stringio] Remove (newly unneeded) remarks about aliases
...
60bb320477
2023-02-25 08:38:19 +00:00
Nobuyoshi Nakada
cbd5de4f88
[ruby/stringio] Development of 3.0.6 started.
...
a7561f447b
2023-02-03 07:49:31 +00:00
Nobuyoshi Nakada
89d9547800
[ruby/stringio] Revert "bump up to 3.0.6" [ci skip]
...
This reverts commit 325933500b
.
It is bumped to 3.0.5 in advance but not released yet.
af67c36693
2023-02-02 12:44:53 +00:00
Nobuyoshi Nakada
8087ba736e
[ruby/stringio] bump up to 3.0.6
...
325933500b
2023-02-02 04:44:38 +00:00
Nobuyoshi Nakada
21dced8b01
[ruby/stringio] [Bug #19389 ] Fix chomping with longer separator
...
eb322a9716
2023-01-28 13:00:08 +00:00
Sutou Kouhei
10c9ce9d4c
bump up to 3.0.5
2022-12-26 15:09:21 +09:00
Hiroshi SHIBATA
7d04cddfef
Merge stringio-3.0.4
2022-12-09 16:36:22 +09:00
Sutou Kouhei
8bbf4e5d8d
[ruby/stringio] bump up to 3.0.5
...
e62b9d78d3
2022-12-08 20:58:53 +00:00
Sutou Kouhei
b9d055d760
[ruby/stringio] bump up to 3.0.4
...
5ba853d6ff
2022-12-08 05:12:15 +00:00
Hiroshi SHIBATA
faafb7b740
[ruby/stringio] Revert "Bump version to 3.0.4"
...
This reverts commit aeb7e1a0bd
.
003dd0d003
2022-12-05 08:03:29 +00:00
Hiroshi SHIBATA
95e272baf8
[ruby/stringio] Bump version to 3.0.4
...
aeb7e1a0bd
2022-12-05 08:02:25 +00:00
Burdette Lamar
35e03a44b8
[ruby/stringio] [DOC] Enhanced RDoc for StringIO
...
(https://github.com/ruby/stringio/pull/36 )
Treats:
- #each_codepoint
- #gets
- #readline (shows up in doc for module IO::generic_readable, not class
StringIO)
- #each_line
659aca7fe5
2022-10-21 14:12:45 +00:00
Burdette Lamar
c32180d5ce
[ruby/stringio] [DOC] Enhanced RDoc for StringIO
...
(https://github.com/ruby/stringio/pull/35 )
Treated:
- #getc
- #getbyte
- #ungetc
- #ungetbyte
- #readchar
- #readbyte
- #each_char
6400af8d9f
2022-10-19 15:33:08 +00:00
Burdette Lamar
18b96d8a82
[ruby/stringio] [DOC] StringIO doc enhancements
...
(https://github.com/ruby/stringio/pull/33 )
Treated:
- ::new
- ::open
- #string
- #string=
- #close
- #close_read
- #close_write
- #closed?
- #closed_read?
- #closed_write?
- #eof?
be9b64d739
2022-10-19 09:12:18 +09:00
Nobuyoshi Nakada
01d56b99bf
[DOC] Fix rdoc-ref
2022-10-19 08:52:29 +09:00
Burdette Lamar
6bd72a6406
[DOC] Enhanced RDoc for StringIO ( #34 )
...
Treated:
- #lineno
- #lineno=
- #binmode
- #reopen
- #pos
- #pos=
- #rewind
- #seek
- #sync
- #each_byte
2022-10-18 18:41:00 +00:00
Nobuyoshi Nakada
302f353fd9
[ruby/stringio] Fix the result of StringIO#truncate
so compatible with File
...
16847fea32
2022-07-01 00:52:29 +09:00
Nobuyoshi Nakada
7976142791
[ruby/stringio] Fix extracting encoding names in the fallback code
...
0fe2e0c1e5
2022-05-30 14:48:45 +09:00
Nobuyoshi Nakada
d3e986d9ab
[ruby/stringio] Accept external and internal encodings pair
...
Fix https://github.com/ruby/stringio/pull/16
c8a69e80d2
2022-05-30 14:48:44 +09:00
Jeremy Evans
609d73e892
[ruby/stringio] Fix handling of chomp with paragraph separator
...
Try to mirror IO behavior, where chomp takes out the entire paragraph
separators between entries, but does not chomp a single line separator
at the end of the string.
Partially Fixes [Bug #18768 ]
a83ddbb7f0
2022-05-30 13:10:46 +09:00
Jeremy Evans
7e3920f0d9
[ruby/stringio] Update ext/stringio/stringio.c
...
1edc88587e
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-05-30 13:01:18 +09:00
Jeremy Evans
adaaf12857
[ruby/stringio] Ignore chomp keyword for nil separator
...
nil separator means no separator at all, so nothing should be
chomped.
Partial fix for Ruby [Bug #18770 ]
feaa2ec631
2022-05-30 13:01:17 +09:00
Jeremy Evans
1f82269f4e
[ruby/stringio] Fix each with multiple character string and chomp
...
Previously, this could result in an infinite loop. Always update
the e pointer in this case, setting w when chomping so the chomped
data is not included in the output.
Fixes [Bug #18769 ]
4bf64d5130
2022-05-30 12:55:47 +09:00
Nobuyoshi Nakada
bb6357cddd
[ruby/stringio] Fix expanding size at ungetc/ungetbyte
...
a35268a3ac
2022-05-30 12:51:37 +09:00
Sutou Kouhei
30632efeaa
[ruby/stringio] bump up to 3.0.3
...
64f225bf00
2022-05-09 16:47:28 +09:00
Sutou Kouhei
fbbe7ac7e3
[ruby/stringio] Bump version
...
b79152d08f
2022-05-09 16:36:01 +09:00
Sutou Kouhei
2aca566a10
[ruby/stringio] bump up to 3.0.2.pre1
...
14ec9bc193
2022-04-16 06:34:31 +09:00
Hiroshi SHIBATA
8eb8522f47
[ruby/stringio] Bump up stringio version to 3.0.1
...
f7c40aa339
2021-10-21 20:53:53 +09:00
Nobuyoshi Nakada
771f6dd75d
[ruby/stringio] Suppress a sign-compare warning
...
a88c070e0b
2021-07-08 16:43:22 +09:00
Nobuyoshi Nakada
32a13591e0
[ruby/stringio] Check if closed in loop
...
[Bug #17675 ] https://bugs.ruby-lang.org/issues/17675
1ed61d0cbc
2021-03-08 10:13:29 +09:00
Nobuyoshi Nakada
8918a9cf6c
Removed rb_cData entity
...
* Use the wrapper of rb_cObject instead of data access
* Replaced rest of extentions
* Updated the version guard for Data
* Added the version guard of rb_cData
2020-12-22 02:51:49 +09:00
Kenta Murata
c71934f8a5
[stringio] Version 3.0.0
...
831be01071
2020-12-18 22:00:07 +09:00
Kenta Murata
3d31944129
[stringio] Make stringio Ractor safe
...
ee3fec7512
18dcd045ef
18dcd045ef
2020-12-18 22:00:07 +09:00
卜部昌平
43b95bafd5
delete deprecated IO-like methods
...
This commit deletes
{IO,ARGF,StringIO,Zib::GZipReader}#{bytes,chars,lines,codepoints}, which
have been deprecated since c47c095b97
.
Note that String also has those methods. They are neither depreacted
nor deleted because they are not aliases of counterpart each_something.
2020-12-03 12:47:51 +09:00
Nobuyoshi Nakada
280d028125
[ruby/stringio] Bump version to 0.1.4
...
64f2360d38
2020-08-27 23:55:17 +09:00
Yoann Lecuyer
b3c1c767ea
[stringio] fix stringio codepoint enumerator off by one error
2020-08-27 23:41:22 +09:00
Nobuyoshi Nakada
16daee1c75
[ruby/stringio] Bump version to 0.1.3
...
376516cd2d
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
ddb2acbba6
[ruby/stringio] No compatibility check in US-ASCII case
...
59df1c8293
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
a7c67fc6da
[ruby/stringio] Removed wrong UNREACHABLE
...
f528538d10
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
574871781b
[ruby/stringio] Bump version to 0.1.2
...
8cbe3f7397
2020-07-20 14:59:19 +09:00
Nobuyoshi Nakada
6ff9604f85
[ruby/stringio] Raise an error if encoding conversion not succeeded
...
As `rb_str_conv_enc()` returns the argument string object itself
unchanged when any conversion failed, check the incompatibility in
that case.
Fixes https://github.com/ruby/stringio/issues/13
ede6bdcc71
2020-07-20 14:59:19 +09:00
Kenta Murata
f4f157fc81
Suppress warnings no inline ruby debug ( #3107 )
...
* Suppress unused warnings occurred due to -fno-inline
* Suppress warning occurred due to RUBY_DEBUG=1
2020-05-22 13:49:08 +09:00
Nobuyoshi Nakada
a8ced388fd
[ruby/stringio] Bump version to 0.1.1
...
05d75e5e66
2020-03-15 22:13:23 +09:00
Jean Boussier
e257c08f2e
[ruby/stringio] StringIO#initialize default to the source string encoding
...
[Bug #16497 ]
4958a5ccab
2020-03-15 18:43:01 +09:00
Hiroshi SHIBATA
af4b3f16ce
[ruby/stringio] Bump version to 0.1.0
...
4c1e267e1a
2019-11-30 15:39:56 +09:00
Jeremy Evans
ebc884461b
[ruby/stringio] Remove taint support
...
Ruby 2.7 deprecates taint and it no longer has an effect.
The lack of taint support should not cause a problem in
previous Ruby versions.
60ee9ccd95
2019-10-31 16:24:02 +09:00
zverok
2746fd5d50
Update StringIO docs:
...
* More explanations/examples in class docs;
* Fix links to other methods (remove <code> tag);
* Fix wording of method docs (remove *stringio*
receiver name, as it is not rendered by modern
RDoc);
* Add option mention to linereading
methods (added in 2.4);
* Several other small fixes.
2019-10-26 10:24:20 -07:00
Nobuyoshi Nakada
f6f03dcad6
[ruby/stringio] Bump up the version
...
f0e5027279
2019-09-29 18:55:34 +09:00
Nobuyoshi Nakada
7fe253f47f
[ruby/stringio] Use rb_funcallv_kw when delegating arguments
...
5892663e32
2019-09-29 18:55:32 +09:00