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

75619 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 4378de02f9
Test of environment variables order for HOME on Windows 2022-12-24 23:49:27 +09:00
Lars Kanis d0f5dc9eac Windows: Prefer USERPROFILE over HOMEPATH
HOMEPATH is set to "\WINDOWS\system32" when running per "runas" session.
This directory is not writable by ordinary users, leading to errors with many ruby tools.
Also config files in the home directory are not recognized.

Still keeping HOME at first which is not used by native Windows,
but by ruby specs and by MSYS2 environment.
2022-12-24 23:48:47 +09:00
Nobuyoshi Nakada 6a55b4601a
Add Dir.home test with encoding 2022-12-24 22:55:12 +09:00
Lars Kanis d6ce4180a5 Windows: Fix encoding of Dir.home
Dir.home returns an UTF-8 string since ruby-3.0, but the actual
encoding of the bytes was CP_ACP or CP_OEMCP.
That led to invalid bytes when calling Dir.home with an unicode
username.
2022-12-24 22:54:23 +09:00
Nobuyoshi Nakada 18c1ca8f4c
Fix test-syntax-suggest order
Prepare for test-syntax-suggest after other tests finished.
2022-12-24 20:18:10 +09:00
NARUSE, Yui 3fb1d49a1f Revert "darwin: resolve rb symbols from ext by `-flat_namespace` to see libruby transitively"
This reverts commit c5eefb7f37.

Flat namespace breaks gems with C extention if its symbols conflict
with ohter libraries.
2022-12-24 18:59:45 +09:00
Takashi Kokubun b9332ac8e7
MJIT: Cancel all on disastrous situations (#7019)
I noticed this while running test_yjit with --mjit-call-threshold=1, 
which redefines `Integer#<`. When Ruby is monkey-patched, 
MJIT itself could be broken.

Similarly, Ruby scripts could break MJIT in many different ways. I
prepared the same set of hooks as YJIT so that we could possibly
override it and disable it on those moments. Every constant under
RubyVM::MJIT is private and thus it's an unsupported behavior though.
2022-12-24 01:13:40 -08:00
Hiroshi SHIBATA d521c9e5a7
cosmetic changes for external link 2022-12-24 17:54:21 +09:00
Hiroshi SHIBATA 8263feaa22
Added some of new features for RubyGems 3.4 and Bundler 2.4 2022-12-24 17:20:09 +09:00
git 03e030d463 Update default gems list at f6620037ba [ci skip] 2022-12-24 07:57:38 +00:00
Hiroshi SHIBATA f6620037ba Merge RubyGems-3.4.0 and Bundler-2.4.0 2022-12-24 16:57:07 +09:00
Nobuyoshi Nakada d5635dfe36
Extract setup of environment variables 2022-12-24 11:29:11 +09:00
zverok 640dca9ae7 [DOC] Document AST.parse's keyword arguments 2022-12-24 10:52:20 +09:00
Victor Shepelev c3c116f6a6
[DOC] Document new methods of IO::Buffer and Fiber::Scheduler (#7016)
Co-authored-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
2022-12-24 11:48:58 +13:00
Samuel Williams 11ad9a42d7
Fix missing handling of offset argument in `IO::Buffer` `pread` and `pwrite`. (#7012) 2022-12-24 07:52:10 +13:00
Yusuke Endoh af4cd997a1 sample/trick2022/03-mame/entry.rb: remove trailing spaces 2022-12-24 03:19:45 +09:00
Yusuke Endoh a8485291bb test/test_trick.rb: Add tests for TRICK 2022 entries 2022-12-24 03:19:45 +09:00
Yusuke Endoh e8b0180974 sample/trick2022/: adds the top-three entries of TRICK 2022
See https://github.com/tric/trick2022 for TRICK 2022.
2022-12-24 03:19:45 +09:00
Takashi Kokubun 1d3bfd804c
MJIT: Export fewer shape functions (#7007) 2022-12-23 10:18:57 -08:00
NARUSE, Yui ee60756495
Fix backtrace beyond _singtramp on macOS arm64 (#7015)
* move ptrauth_strip logic into vm_dump.c
* don't use _sigtramp special logic on arm64
2022-12-24 02:24:55 +09:00
Peter Zhu 1876cda972 Add tests for compacting shared arrays 2022-12-23 11:21:14 -05:00
Peter Zhu 7891f94071 Don't allow re-embedding frozen arrays
Frozen arrays should not move from heap allocated to embedded because
frozen arrays could be shared roots for other (shared) arrays. If the
frozen array moves from heap allocated to embedded it would cause issues
since the shared array would no longer know where to set the pointer
in the shared root.
2022-12-23 11:21:14 -05:00
zverok d61a4cec61 Docs: path: option for IO.new 2022-12-23 18:09:49 +02:00
zverok c621c6140a Docs: Fix problems with Fiber's docs
* References to Scheduler (was outdated to SchedulerInterface)
* References between new methods (storage, [], []=)
* Storage's call-sequence (rendered confusingly)
2022-12-23 18:09:49 +02:00
zverok 5c04ff944e Docs: Fix small glitch in GC 2022-12-23 18:09:49 +02:00
zverok 64cdf1936a Docs: Separate documentation for UnboundMethod#== 2022-12-23 18:09:49 +02:00
zverok b3d57fdd64 Docs: Update Struct docs about keyword initialization 2022-12-23 18:09:49 +02:00
zverok 91076b2c59 Docs: Fix rendering of SyntaxError#path 2022-12-23 18:09:49 +02:00
Yusuke Endoh 65920cfc40 addr2line.c: Strip pointer authentication
We need to manually strip pointer authentication bits on M1 mac because
libunwind leaks them out.

Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
Co-Authored-By: Yuta Saito <kateinoigakukun@gmail.com>
2022-12-23 23:48:18 +09:00
Peter Zhu 97280faf28 Add blog post on VWA to NEWS.md [ci skip]
The link currently 404s but the blog post will be published on Dec 25.
2022-12-23 09:46:37 -05:00
Nobuyoshi Nakada 540b67da4d test-syntax-suggest is run by check now 2022-12-23 20:33:27 +09:00
Nobuyoshi Nakada cae5384273 Test syntax_suggest by `make check` 2022-12-23 20:33:27 +09:00
Nobuyoshi Nakada 17b63ab6b1
[ruby/rdoc] Fix fragile tests
When the temporary path is long enough, the formatter may fold the
path and may hit a hyphen at the end of line, and miscounted.

https://github.com/ruby/rdoc/commit/5f46479543
2022-12-23 20:31:25 +09:00
Hiroshi SHIBATA edb83dc3a2
Revert the additional change from openssl-3.1.0
Revert "[ruby/openssl] pkey/ec: constify"

  This reverts commit d2cd903c85.
2022-12-23 19:37:24 +09:00
Hiroshi SHIBATA eb8d4d7b51
Revert the additional changes from net-http-0.3.2 2022-12-23 19:36:43 +09:00
Hiroshi SHIBATA d40064d184
Revert the accidentally commit from erb-4.0.2
Revert "[ruby/erb] Use a ruby-lang alias on spec.email"

  This reverts commit fa64889abb.
2022-12-23 19:33:27 +09:00
Yuta Saito c5eefb7f37 darwin: resolve rb symbols from ext by `-flat_namespace` to see libruby transitively
This repairs the assumption, which many fat-gem maintainer expect, "An
extension built with --disable-shared Ruby is loadable from
--enable-shared Ruby".

By default all references resolved to a dynamic library use "two-level
namespace", which record the library name and symbol name for each
resolution entry. On the other hand, `-flat_namespace` discards the
library name information and resolves symbols "flatly".
This behavior is useful for us to ignore which image (`ruby`
executable or `libruby.dylib`) provides rb symbols at runtime.
2022-12-23 17:45:20 +09:00
Nobuyoshi Nakada 9c1f03a38a
Debug for zlinux CI [ci skip] 2022-12-23 16:57:15 +09:00
Koichi Sasada 970b26fb71 NEWS.md: add 2 functions for debuggers [ci skip] 2022-12-23 15:30:59 +09:00
git 0d75d403ab Update bundled gems list at 2192f2e6bc [ci skip] 2022-12-23 05:49:37 +00:00
Shugo Maeda 2192f2e6bc
Update bundled_gems for net-imap 2022-12-23 14:48:35 +09:00
Hiroshi SHIBATA 4aeea3cc09 Removed the needless test guard for syntax_suggest.
It's resolved by 5bb43aeb89
2022-12-23 14:07:02 +09:00
Nobuyoshi Nakada bf3b376522 [ruby/syntax_suggest] Remove debug print
https://github.com/ruby/syntax_suggest/commit/4d53d31bc5
2022-12-23 13:05:26 +09:00
Nobuyoshi Nakada 5bb43aeb89 [ruby/syntax_suggest] Should not hardcode ruby name
https://github.com/ruby/syntax_suggest/commit/0d5201b24d
2022-12-23 13:05:25 +09:00
dependabot[bot] 4d05a96d14 Bump actions/checkout from 3.1.0 to 3.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](93ea575cb5...755da8c3cf)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-23 12:54:36 +09:00
dependabot[bot] cc35d3ccb7 Bump actions/cache from 3.0.11 to 3.2.0
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.11 to 3.2.0.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](9b0c1fce7a...c17f4bf466)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-23 11:47:20 +09:00
Nobuyoshi Nakada d2cd903c85 [ruby/openssl] pkey/ec: constify
https://github.com/ruby/openssl/commit/6fb3499a7b
2022-12-23 11:42:15 +09:00
Marco Costa d2847009db
[DOC] Fix most of Range#cover? marked as verbatim 2022-12-23 11:12:16 +09:00
Nobuyoshi Nakada 792c50e917 [ruby/rdoc] Clean up home directories for each test
https://github.com/ruby/rdoc/commit/f067c174da
2022-12-23 11:05:09 +09:00
dependabot[bot] def8ad4072 Bump octokit/request-action
Bumps [octokit/request-action](https://github.com/octokit/request-action) from 52ce92ce3185e00e2425f043c3e9509121929aea to 8cd8f5d6738d122de9213dc5cf87e116c40f5fae.
- [Release notes](https://github.com/octokit/request-action/releases)
- [Commits](52ce92ce31...8cd8f5d673)

---
updated-dependencies:
- dependency-name: octokit/request-action
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-23 10:21:36 +09:00