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

87589 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 28a01e306a Ruby exception cannot work here
Just show error messages then ignore the invalid library.
2024-09-30 10:27:30 +09:00
Burdette Lamar 03ca99c93b
[DOC] Tweaks for Array#hash (#11704) 2024-09-29 21:22:43 -04:00
Burdette Lamar 5be11c1d1b
[DOC] Tweaks for Array#first (#11687) 2024-09-29 21:21:55 -04:00
Burdette Lamar 116395d315
[DOC] Tweaks for Array#flatten! (#11689) 2024-09-29 21:21:26 -04:00
Burdette Lamar 154ec2d242
[DOC] Tweaks for Array#insert (#11709) 2024-09-29 21:21:11 -04:00
Lars Kanis 9b4a497456 Fix loading of nonascii script name on Windows
Since the prism parser was enabled by default, loading scripts with nonascii characters somewhere in the script path is no longer working.
It only works when the codepage was switched to 65001 (UTF-8).

This patch doesn't change the encoding of __FILE__. It is still in locale encoding.
That's why pm_load_file() is called with UTF-8 script name and pm_parse_file() with locale encoding.

The loading of nonascii script names is part of the test-all, but it doesn't trigger the failure on GHA, since it is using cp 65001.
On other codepages it fails with:

[53/71] TestRubyOptions#test_command_line_progname_nonascii = 0.04 s
  1) Failure:
TestRubyOptions#test_command_line_progname_nonascii [C:/Users/Administrator/ruby/test/ruby/test_rubyoptions.rb:1086]:
[ruby-dev:48752] [Bug #10555]
pid 1736 exit 1
| C:\Users\Administrator\ruby\ruby.exe: No such file or directory -- �.rb (LoadError)
.

1. [1/2] Assertion for "stdout"
   | <["\xFF.rb"]> expected but was
   | <[]>.

2. [2/2] Assertion for "stderr"
   | <[]> expected but was
   | <["C:\\Users\\Administrator\\ruby\\ruby.exe: No such file or directory -- \xFF.rb (LoadError)"]>.
2024-09-29 19:01:18 -04:00
Nobuyoshi Nakada a0838a3902
Raise fatal error instead of BUG
Failures due to the external setting is not a bug of ruby itself.
2024-09-30 00:20:35 +09:00
Nobuyoshi Nakada 5139a574aa
Make directory for shared-GC libraries at build 2024-09-30 00:19:16 +09:00
Nobuyoshi Nakada 9d60480094
CI: Remove `SHARED_GC` compilation
It is checked in ubuntu.yml.
2024-09-30 00:03:14 +09:00
Nobuyoshi Nakada 5e466ad3f7
CI: Remove `ENABLE_PATH_CHECK` compilation
As `ENABLE_PATH_CHECK` is defaulted to 1 on other than DOSISH and
Cygwin, setting this macro to 1 on Ubuntu changes nothing from the
default.  As for `ENABLE_PATH_CHECK=0` tests, we have real CI
platforms already.
2024-09-30 00:03:14 +09:00
Nobuyoshi Nakada 1f6d2e77d9
Remove leading spaces from `LIBPATHFLAG` and `RPATHFLAG`
Join with a space in `MakeMakefile#libpathflag` instead.
2024-09-29 23:07:16 +09:00
git 9138b388ee Update bundled gems list as of 2024-09-29 2024-09-29 13:24:09 +00:00
Nobuyoshi Nakada 52e40aeab6
Bump actions/checkout 2024-09-29 21:38:14 +09:00
Nobuyoshi Nakada f5d9d9b5f8
win32/sspi: Use `start_with?` to see prefix 2024-09-29 21:00:26 +09:00
Nobuyoshi Nakada 25eb9bded8
win32/sspi: Rafactor pack/unpack 2024-09-29 21:00:26 +09:00
Nobuyoshi Nakada 30230ed9e6
win32/sspi: For Ractor use a constant instead of a class variable 2024-09-29 21:00:26 +09:00
Nobuyoshi Nakada fc2f196cb8
win32/sspi: Fix missing A suffix in an API constant name 2024-09-29 21:00:26 +09:00
Nobuyoshi Nakada b7bca0ebdc
win32/sspi: Fix Win32::SSPI::SSPIResult#== with Integer
The values of `@@map` are `Symbol`s and `@value` should be an
`Integer` since unpacked as unsigned long, so this comparison should
be false always.  Probably comparison with `Symbol` was intended.
2024-09-29 21:00:26 +09:00
Nobuyoshi Nakada 1179c86384
win32/sspi: Already Fixnum has been removed years ago 2024-09-29 21:00:25 +09:00
Nobuyoshi Nakada 65a0795c3f
[DOC] Mention block mode of `String#unpack` 2024-09-29 19:09:59 +09:00
Nobuyoshi Nakada e7144af750
[DOC] Refine about offset directives 2024-09-29 19:07:16 +09:00
Nobuyoshi Nakada 066ac0fdc2
Expand buffer at once then fill it at once 2024-09-29 18:55:15 +09:00
Nobuyoshi Nakada 3b43585a84
Extract common code from `pack_pack` and `pack_unpack_internal` 2024-09-29 18:45:47 +09:00
Nobuyoshi Nakada e1889dd7de
Assertions should not have side effects 2024-09-29 11:42:10 +09:00
BurdetteLamar 01ff65af32 [DOC] Tweaks for Array#replace 2024-09-28 21:13:21 -04:00
BurdetteLamar 3986b5fef5 [DOC] Tweaks for Array#include? 2024-09-28 21:12:17 -04:00
BurdetteLamar d64528c695 [DOC] Tweaks for Array#freeze 2024-09-28 20:59:36 -04:00
Burdette Lamar 5a7b66fa97
[DOC] Tweaks for Array#flatten (#11688) 2024-09-28 20:58:14 -04:00
Ellen Marie Dash 87212a5486 [rubygems/rubygems] Improve Gem::SpecFetcher tests.
https://github.com/rubygems/rubygems/commit/6e0456583b
2024-09-28 21:12:26 +00:00
Ellen Marie Dash 5c18b63d00 [rubygems/rubygems] [tests] Don't expect suggestions that aren't actually helpful.
https://github.com/rubygems/rubygems/commit/e7d6b92e31
2024-09-28 21:12:25 +00:00
Ellen Marie Dash 47a3482a41 [rubygems/rubygems] Remove code that makes suggest_gems_from_name give worse results.
https://github.com/rubygems/rubygems/commit/09ec67ffdf
2024-09-28 21:12:25 +00:00
tompng b9e225fcbf Allow dot3 in defs singleton 2024-09-28 22:37:44 +09:00
ydah 8f678d6989 Implement OP_ASGN2 NODE locations 2024-09-28 20:53:09 +09:00
Nobuyoshi Nakada 027ef60500
[Bug #20763] Add tests 2024-09-28 02:45:22 +09:00
Kevin Newton addb5fea94 Fix up compiling popped ranges with non-optimizable bounds
Fixes [Bug #20763]
2024-09-27 13:43:37 -04:00
Nobuyoshi Nakada 7e19904c88 Remove on `RSTRING_END` dependency from parser 2024-09-28 01:59:33 +09:00
David Rodríguez d1324170b6 [rubygems/rubygems] Warning about PATH in `--user-install` mode is only necessary for gems with executables
https://github.com/rubygems/rubygems/commit/2fe0f452a2
2024-09-27 16:49:32 +00:00
Benoit Daloze b873787a42 Update recommendations regarding parsing Ruby code now that Prism is stable 2024-09-27 16:45:36 +02:00
Nobuyoshi Nakada 94ad2c3fe9 Reduce creating `rb_parser_string_t` repeatedly for literals.
Since #11698, `parser_str_new` makes `rb_parser_string_t` and `VALUE`
but discards the former, and then `STR_NEW3` makes the same thing
again.
2024-09-27 23:10:14 +09:00
Nobuyoshi Nakada 710d916c32 Add wrapper macros of `rb_parser_str_buf_cat` 2024-09-27 23:10:14 +09:00
Stan Lo 098649bc59 [ruby/rdoc] Add home page link to output message
(https://github.com/ruby/rdoc/pull/1165)

The link is clickable in the terminal and opens the home page in the browser

https://github.com/ruby/rdoc/commit/b7d580afab
2024-09-27 13:58:36 +00:00
S-H-GAMELINKS 7f83bd3732 Reduce `is_ascii_string` function dependency for parser
Changed to use `rb_parser_is_ascii_string` function instead of `is_ascii_string` function
2024-09-27 19:34:35 +09:00
Hiroshi SHIBATA c1ee5ea28f
Avoid to unintentional Bundler definition by Bundler::Definition.no_lock 2024-09-27 18:39:05 +09:00
Hiroshi SHIBATA ff3f61556f
Only warn fiddle as optional dependency 2024-09-27 18:39:05 +09:00
ydah eff16d9302 Implement OP_ASGN1 NODE locations 2024-09-27 18:20:00 +09:00
David Rodríguez a70adce1ce Only `warn` about bundled gems when require succeeds 2024-09-27 17:03:45 +09:00
Hiroshi SHIBATA a896c4cc53 RGENGC_FORCE_MAJOR_GC is disabled same as current HEAD 2024-09-27 14:39:59 +09:00
Hiroshi SHIBATA b63f3c9d9e Use user.login instead of actor 2024-09-27 14:39:59 +09:00
Hiroshi SHIBATA e58c7a9330 Applied https://github.com/ruby/ruby/pull/11574 2024-09-27 14:39:59 +09:00
卜部昌平 52bb90f92d sequential execution of some CI tasks
reduced parallelism from some 50-ish to 10-ish so that other jobs
can run.
2024-09-27 14:39:59 +09:00