Граф коммитов

85803 Коммитов

Автор SHA1 Сообщение Дата
Daisuke Fujimura (fd0) e1c9e6244b Use real filename instead of `__FILE__` 2024-06-02 22:12:05 +09:00
Nobuyoshi Nakada 1f8c45aa51
[DOC] building_ruby: Move the caution to a footnote 2024-06-02 21:33:02 +09:00
Nobuyoshi Nakada 7e52e3e3f7
[DOC] building_ruby: External library links
- `OpenSSL` here is not the class.
- libexecinfo on FreeBSD is present in the base system of all
  supported releases, since 2017.
2024-06-02 21:33:02 +09:00
Nobuyoshi Nakada 457c6b4789
[DOC] building_ruby: Refine links
Get rid of using ambiguous demonstratives as link anchors, for the
accessibility's sake.
2024-06-02 21:33:02 +09:00
Nobuyoshi Nakada 5980f14e88
[DOC] building_ruby: Fold long lines 2024-06-02 21:33:01 +09:00
Jean Boussier 7c12169230 Eliminate internal uses of `Data_Wrap_Struct`
Ref: https://github.com/ruby/ruby/pull/10872

These should be the last internal uses of the old `Data` API
inside Ruby itself. Some use remain in a couple default gems.
2024-06-02 13:59:11 +02:00
Jean Boussier 730e3b2ce0 Stop exposing `rb_str_chilled_p`
[Feature #20205]

Now that chilled strings no longer appear as frozen, there is no
need to offer an API to check for chilled strings.

We however need to change `rb_check_frozen_internal` to no
longer be a macro, as it needs to check for chilled strings.
2024-06-02 13:53:35 +02:00
Nobuyoshi Nakada 3eba84fba0
[DOC] Caution about old GNU make 2024-06-02 19:59:05 +09:00
Nobuyoshi Nakada 26bd4144f7
Add `nightly` recipe
Installs the last revision in the previous `RUBY_RELEASE_DATE`.
2024-06-02 18:36:09 +09:00
Nobuyoshi Nakada 733c72e6f0
Show destination directory after installation
Due to the length of the list of gems to install, the message at the
beginning of the installation scrolls out.
2024-06-02 17:21:22 +09:00
git 07a8d02c0c Update bundled gems list as of 2024-06-01 2024-06-02 06:59:30 +00:00
Tanaka Akira 56fe5ad778 Time internal representation comment removed. 2024-06-02 10:18:56 +09:00
Tanaka Akira d03c61241a Time internal representation described. 2024-06-02 10:17:57 +09:00
S-H-GAMELINKS 0cc5f77c07 Remove unused functions from struct rb_parser_config_struct
StringValueCStr has not used in parse.y
2024-06-02 09:50:43 +09:00
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