Nobuyoshi Nakada
ae203984ff
Ditto for NODE_DOT2 and NODE_DOT3
2024-06-02 09:43:33 +09:00
Nobuyoshi Nakada
2889ed1bcb
Use `RNode_DREGX` variable for debuggers
...
At least LLDB needs an actual variable not only casts to access the
type in debugger sessions.
2024-06-02 09:43:33 +09:00
Nobuyoshi Nakada
cedc7737b6
Make interchangeable NODE types aliases
2024-06-02 09:43:33 +09:00
Nobuyoshi Nakada
a7d0a91009
Raise memerror when really memory exhausted
...
Fix segfault when `RUBY_THREAD_VM_STACK_SIZE` environment variable is
very large.
2024-06-02 09:39:20 +09:00
Tanaka Akira
fc495951b1
Tempfile document updated.
2024-06-02 01:12:26 +09:00
Nobuyoshi Nakada
fd74614059
Get rid of type-punning pointer casts
2024-06-01 21:51:27 +09:00
Nobuyoshi Nakada
05553cf22d
[Bug #20517 ] Make a multibyte character one token at meta escape
2024-06-01 19:33:12 +09:00
Stan Lo
cda69b5910
[ruby/reline] Overhaul io gate structure
...
(https://github.com/ruby/reline/pull/666 )
* Overhaul IO gate structure
1. Move IO related classes to `lib/reline/io/` directory.
2. Rename `GeneralIO` to `Dumb`.
3. Use IO classes as instances instead of classes.
* Update lib/reline/io/ansi.rb
Co-authored-by: tomoya ishida <tomoyapenguin@gmail.com>
---------
https://github.com/ruby/reline/commit/dc1518e1ac
Co-authored-by: tomoya ishida <tomoyapenguin@gmail.com>
2024-06-01 10:28:08 +00:00
Tanaka Akira
767aa0cdb6
move `Tempfile.create(anonymous: true)` entry.
2024-06-01 18:14:29 +09:00
Nobuyoshi Nakada
c05f60a600
Suppress -Wclobbered warning for BLOCKING_REGION
2024-06-01 16:25:12 +09:00
Nobuyoshi Nakada
a720a1c447
Suppress -Wmaybe-uninitialized warnings with LTO
2024-06-01 16:22:31 +09:00
Tanaka Akira
1eb651fb50
described about `Tempfile.create(anonymous: true)`.
2024-06-01 15:18:31 +09:00
akr
3ee83c73c3
Tempfile.create(anonymous: true) implemented. ( #10803 )
...
The keyword argument `anonymous` is implemented for `Tempfile.create`
The default is `anonymous: false`.
The behavior is not changed as before.
The created temporary file is immediately removed if `anonymous: true` is specified.
So applications don't need to remove the file.
The actual storage of the file is reclaimed by the OS when the file is closed.
It uses `O_TMPFILE` for Linux 3.11 or later.
It creates an anonymous file from the beginning.
It uses FILE_SHARE_DELETE for Windows.
It makes it possible to remove the opened file.
[Feature #20497 ]
2024-06-01 15:11:19 +09:00
Nobuyoshi Nakada
5308da5e1c
Add dependencies of configure.ac
2024-06-01 14:21:45 +09:00
Alan Wu
6c8ae44a38
YJIT: Fix out of bounds access when splatting empty array
...
Previously, we read the last element array even when the array was
empty, doing an out-of-bounds access. This sometimes caused a SEGV.
[Bug #20496 ]
2024-05-31 18:37:13 -04:00
Martin Emde
bc40d06091
[rubygems/rubygems] String search based parsing of compact index versions
...
This significantly reduces memory usage.
https://github.com/rubygems/rubygems/commit/8a76506c90
2024-05-31 20:20:03 +00:00
Kevin Newton
b5c8fb9a3f
[ruby/prism] Fix up heredoc location translation for parser
...
https://github.com/ruby/prism/commit/a4e164e22b
2024-05-31 19:31:53 +00:00
Kevin Newton
63ea77916a
[ruby/prism] Match % strings in parser
...
https://github.com/ruby/prism/commit/840185110f
2024-05-31 19:31:53 +00:00
Kevin Newton
1b392ba7c6
[ruby/prism] Use correct opening and closing parenthesis for array pattern in parser
...
https://github.com/ruby/prism/commit/beed43922c
2024-05-31 19:31:53 +00:00
Kevin Newton
47f05dffa1
[ruby/prism] Match match_hash_var when quotes are used
...
https://github.com/ruby/prism/commit/f2a327449a
2024-05-31 19:31:52 +00:00
Kevin Newton
02b27aca50
[ruby/prism] Match parser for match_rest in pattern
...
https://github.com/ruby/prism/commit/785de2c39d
2024-05-31 19:31:52 +00:00
Alan Wu
533f9ea973
YJIT: CI: Extend SYNTAX_SUGGEST_TIMEOUT for macOS
...
To make it the same as the Ubuntu job. To avoid timeout failures due to
added compilation time in call-threshold=1 runs.
See: https://github.com/ruby/ruby/actions/runs/9317760443/job/25648721990
2024-05-31 13:07:33 -04:00
David Rodríguez
082472451d
[rubygems/rubygems] Raise a friendly error whenever commands run in subshell take more than a minute
...
I expect to make occasional CI hangs easier to investigate.
Implementation was adapted from tty-command.
https://github.com/rubygems/rubygems/commit/39c92955bf
2024-05-31 16:49:44 +00:00
David Rodríguez
cc8b9855e1
[rubygems/rubygems] Remove no longer necessary code
...
Upstream PR was merged and released.
https://github.com/rubygems/rubygems/commit/d6afbfd664
2024-05-31 16:49:44 +00:00
Martin Emde
78860b8e52
[rubygems/rubygems] Move compact index concurrency to fetcher
...
https://github.com/rubygems/rubygems/commit/ffd3711d00
2024-05-31 16:41:25 +00:00
David Rodríguez
10c256f98f
Sychronize with rubygems/rubygems repo
2024-06-01 01:13:55 +09:00
Jeremy Evans
89486c79bb
Make error messages clear blocks/keywords are disallowed in index assignment
...
Blocks and keywords are allowed in regular index.
Also update NEWS to make this more clear.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2024-05-31 08:22:40 -07:00
David Rodriguez
8e2a6435e4
[rubygems/rubygems] Fix `gem uninstall` warning when two versions of psych installed
...
https://github.com/rubygems/rubygems/commit/1b5644b666
2024-05-31 15:09:37 +00:00
David Rodríguez
78ccf770aa
[rubygems/rubygems] Make sure `rake` auto install works on Windows + Ruby 3.0
...
https://github.com/rubygems/rubygems/commit/f513ea49b5
2024-05-31 11:58:01 +00:00
David Rodríguez
f4f56b23c3
[rubygems/rubygems] Make stub sorting stable
...
https://github.com/rubygems/rubygems/commit/6b70e9043d
2024-05-31 11:58:00 +00:00
David Rodríguez
5668933296
[rubygems/rubygems] Extract a `spec` variable
...
It's consistent with the previous test and makes print debugging easier.
https://github.com/rubygems/rubygems/commit/d7f424df16
2024-05-31 11:58:00 +00:00
David Rodríguez
21f10cabb9
[rubygems/rubygems] Improve spec about `rubygems-update` in non default path
...
Make it not also install the gem in the default GEM_HOME.
https://github.com/rubygems/rubygems/commit/22de9a810a
2024-05-31 11:58:00 +00:00
David Rodríguez
530c85be49
[rubygems/rubygems] Remove unnecessary reset
...
https://github.com/rubygems/rubygems/commit/33328e54fd
2024-05-31 11:58:00 +00:00
Yusuke Endoh
a15e4d405b
Revert 528c4501f4
...
Recently, `TestRubyLiteral#test_float` fails randomly.
```
1) Error:
TestRubyLiteral#test_float:
ArgumentError: SyntaxError#path changed: "(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)"->"(eval at /home/chkbuild/chkbuild/tmp/build/20240527T050036Z/ruby/test/ruby/test_literal.rb:642)"
```
https://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20240527T050036Z.fail.html.gz
According to Launchable, the first failure was on Apr 30.
This is just when 528c4501f4
was
committed. I don't know if the change is really the cause, but I want to
revert it once to see if the random failure disappears.
2024-05-31 18:24:43 +09:00
dependabot[bot]
392ee05843
Bump ruby/action-slack from 3.2.1 to 3.2.2 in /.github/actions/slack
...
Bumps [ruby/action-slack](https://github.com/ruby/action-slack ) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/ruby/action-slack/releases )
- [Commits](0bd85c7223...5417516237
)
---
updated-dependencies:
- dependency-name: ruby/action-slack
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-30 19:46:27 -07:00
dependabot[bot]
30960cb6d4
Bump ruby/setup-ruby from 1.177.1 to 1.178.0
...
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby ) from 1.177.1 to 1.178.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Commits](943103cae7...0cde4689ba
)
---
updated-dependencies:
- dependency-name: ruby/setup-ruby
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-05-30 19:40:21 -07:00
Sorah Fukumori
fd549b229b
test_bignum: defined? returns String ( #10880 )
...
didn't verify the test is working properly due to mistaken auto-merge… [Bug #20515 ]
bug: https://bugs.ruby-lang.org/issues/20515
follow-up: 22e4eeda65
follow-up: https://github.com/ruby/ruby/pull/10875
2024-05-30 19:59:30 +00:00
Kevin Newton
4e36abbab3
[PRISM] Support for compiling builtins
2024-05-30 15:38:02 -04:00
Kevin Newton
4558abec02
[ruby/prism] Disallow unescape test on FFI backend
...
https://github.com/ruby/prism/commit/32277722d4
2024-05-30 19:36:40 +00:00
Kevin Newton
308c835676
[PRISM] Un-exclude the encoding tests
2024-05-30 15:18:20 -04:00
Kevin Newton
72452f4387
[ruby/prism] Tests overhaul
...
https://github.com/ruby/prism/commit/6f886be0a4
2024-05-30 15:18:20 -04:00
Sorah Fukumori
1ab7c412d2
RUBY_CHECK_HEADER didn't define HAVE_{header-file} ( #10876 )
...
--with-gmp is not working at all because HAVE_GMP_H
was missing since 18eaf0be90
. [Bug #20515 ]
bug: https://bugs.ruby-lang.org/issues/20515
follow-up: https://bugs.ruby-lang.org/issues/20494
follow-up: 18eaf0be90
follow-up: https://github.com/ruby/ruby/pull/10805
2024-05-30 18:52:26 +00:00
Sorah Fukumori
22e4eeda65
ci: Test whether GMP is working in compilers.yml ( #10875 )
...
Avoid reoccurence of [Bug #20515 ]
Requires https://github.com/ruby/ruby/pull/10876 since 18eaf0be90
bug: https://bugs.ruby-lang.org/issues/20515
2024-05-30 18:44:31 +00:00
David Rodríguez
4f160ad9cf
[rubygems/rubygems] Don't let `bundle config` report a path without a Gemfile as "local app"
...
https://github.com/rubygems/rubygems/commit/6aa2ac337f
2024-05-30 18:23:36 +00:00
Jean Boussier
15501e13d7
[ruby/stringio] Remove special handling of chilled strings
...
[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-05-30 15:11:48 +00:00
Hiroshi SHIBATA
78bfde5d9f
Revert "[ruby/strscan] Doc for StringScanner"
...
This reverts commit 974ed1408c
.
2024-05-30 21:13:10 +09:00
Hiroshi SHIBATA
d70b0da482
Revert "Fix reference path for strscan documentation"
...
This reverts commit 1fa93fb948
.
2024-05-30 21:13:01 +09:00
Nobuyoshi Nakada
949fabe4e9
[DEBUG] More info when SyntaxError#path changed
2024-05-30 19:05:52 +09:00
Brandon Weaver
bc6860db23
[ruby/net-http] Update lib/net/http/header.rb
...
https://github.com/ruby/net-http/commit/826e008cfe
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2024-05-30 09:16:15 +00:00
Brandon Weaver
4839493f3f
[ruby/net-http] Replace Regexp in for headers for perf
...
https://github.com/ruby/net-http/commit/15f1349e4e
2024-05-30 09:16:15 +00:00