| Age | Commit message (Collapse) | Author |
|
|
|
Now Proc#to_s returns
"#<Proc:0x00000237a0f5f170@t.rb:1>".
However, it is convenient to select a file name by (double-)clicking
on some terminals by separating ' ' instead of '@' like
"#<Proc:0x00000237a0f5f170 t.rb:1>"
[Feature #16101]
|
|
Coverity Scan says:
```
** CID 1452284: Uninitialized variables (UNINIT)
/eval.c: 223 in rb_ec_cleanup()
```
```
>>> CID 1452284: Uninitialized variables (UNINIT)
>>> Using uninitialized value "errs[1]".
```
|
|
* include/ruby/io.h (rb_io_enc_t): add typedef.
* io.c (rb_io_extract_modeenc): export.
|
|
https://github.com/ruby/stringio/commit/b249631c43
|
|
https://github.com/ruby/stringio/commit/53def32ba0
|
|
https://github.com/ruby/stringio/commit/d28927b561
|
|
https://github.com/ruby/stringio/commit/c4a13d41cd
https://github.com/ruby/stringio/commit/359c9f395c
|
|
https://github.com/ruby/stringio/commit/7b20075ab0
|
|
https://github.com/ruby/ruby/runs/192869165
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
|
|
because it has been unstable, and also it sometimes does not work for a
pull request like:
https://github.com/ruby/ruby/pull/2358/checks?check_run_id=192685048#step:4:17
Notes:
Merged: https://github.com/ruby/ruby/pull/2360
|
|
They are used by default gems like forwardable.
* assert_raise_with_message
* assert_warning
* assert_warn
Notes:
Merged-By: hsbt <hsbt@ruby-lang.org>
|
|
|
|
|
|
* io.c (io_strip_bom): if the first 2 bytes are 0xFF0xFE, it
should be a little-endian UTF, 16 or 32. [Bug #16099]
|
|
because clone does not checkout exact commit sha, and also we'd need to handle
pull_request on fork, so I tentatively stopped to do this.
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
|
|
|
|
This commit gives Enumerator compaction support
|
|
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It has not been used for 4 years, since r60856,
e33b1690d06f867e45750bd8e3e8b06d78b5bc26.
|
|
As `rb_objspace_each_objects_without_setup` doesn't reset and
restore `dont_incremental` flag, renamed the bare iterator as
`objspace_each_objects_without_setup`. `objspace_each_objects`
calls it when called with the flag disabled, wrap the arguments
otherwise only.
|
|
|
|
|
|
|
|
|
|
And pass rb_execution_context_t as an argument.
|
|
Renaming this function. "No pin" leaks some implementation details. We
just want users to know that if they mark this object, the reference may
move and they'll need to update the reference accordingly.
|
|
You can rescue it:
f = ObjectSpace.each_object(Class){|c| break c if c.name == 'fatal'}
begin
raise f
rescue f
2
end # => 2
It's not a good idea to rescue fatal exceptions you didn't generate
yourself, though.
Fixes [Bug #10691]
|
|
Notes:
Merged-By: k0kubun <takashikkbn@gmail.com>
|
|
|
|
|
|
We're already updating the location of default values, so we may as well
unpin them.
|
|
|
|
Just a few updates to make the English sound a bit more natural
|
|
|
|
|
|
Notes:
Merged: https://github.com/pull/2347
|
|
|
|
This change:
* Added an explanation about back references except \n and \k<n>
(\` \& \' \+ \0)
* Added an explanation about an escape (\\)
* Added some rdoc references
* Rephrased and clarified the reason why double escape is needed, added
some examples, and moved the note to the last (because it is not
specific to the method itself).
|
|
* ext/date/date_parse.c (date_zone_to_diff): trim off by zone name
length.
|
|
* ext/date/date_parse.c (date_zone_to_diff): get rid of copying
the whole argument string.
|
|
|
|
|
|
Closes: https://github.com/ruby/ruby/pull/2346
|