Commit graph

89125 commits

Author SHA1 Message Date
Hiroshi SHIBATA
7407aa51ea Don't use Spec::Path.base_system_gem_path 2024-11-18 15:48:20 +09:00
Hiroshi SHIBATA
498c960a12 Install zeitwerk without bundle install 2024-11-18 15:48:20 +09:00
Yuta Saito
29fdb73c5b [ruby/digest] Fix loading of digest ext libraries with --with-static-linked-ext
`rb_ext_resolve_symbol` is not always available on some platforms
including WASI, and we don't need to use it when the extension is built
as a static library. This commit prefers to use `rb_digest_wrap_metadata`
directly when the extension is built as a static library to avoid the
unnecessary use of `rb_ext_resolve_symbol`.

f8ff014622
2024-11-18 04:34:40 +00:00
git
57daed5ec5 Update default gems list at 572eebf603 [ci skip] 2024-11-18 04:29:47 +00:00
Hiroshi SHIBATA
572eebf603 [ruby/tempfile] Bump up v0.3.1
297bdf2c8d
2024-11-18 04:28:47 +00:00
Yuta Saito
6c142d05fa [ruby/tempfile] Stop using IO::NULL for feature detection
`IO::NULL`'s underlying file `/dev/null` is not always available on
WASI, so use of the file on top-level code (introduced in
https://github.com/ruby/tempfile/pull/36) causes tempfile library not
to work at all on WASI.

d50939890e
2024-11-18 04:19:40 +00:00
git
62007415c4 Update default gems list at 9c6217fd05 [ci skip] 2024-11-18 03:24:06 +00:00
Jean Boussier
9c6217fd05 [ruby/json] Fix the BEWARE documentation in load and unsafe_load.
2d62ec449f
2024-11-18 04:23:18 +01:00
Jean Boussier
f3e17a84f4 [ruby/json] Release 2.8.2
d5e4a6e3fd
2024-11-18 04:23:18 +01:00
razokulover
62e1469e8b [ruby/json] Fix redundant to_str call
61f022dfbd
2024-11-18 04:23:18 +01:00
Nobuyoshi Nakada
8fe8021f5a
Win32: Expose wchar main routine only
Warned if both of `main` and `wmain` are exposed:
```
LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup'
```
2024-11-17 22:49:16 +09:00
Nobuyoshi Nakada
36d02dc33e
Fix format modifier for size_t
Also fix the message, just `RB_GC_MAX_NAME_LEN` chars long is OK.
2024-11-17 22:45:07 +09:00
Nobuyoshi Nakada
c129e01125
Make rb_ec_set_vm_stack conformant to the C++11 requirement
Https://learn.microsoft.com/en-us/cpp/build/reference/zc-inline-remove-unreferenced-comdat?view=msvc-140
> If `/Zc:inline` is specified, the compiler enforces the C++11
> requirement that all functions declared inline must have a definition
> available in the same translation unit if they're used.
2024-11-17 19:56:02 +09:00
Nobuyoshi Nakada
a6fe3feacd
Win32: Remove unreferenced COMDAT from object files
Windows 11 SDK Version 10.0.26100.0 introduced a new internal inline
function in ucrt/corecrt_math.h.  Even it appears in object files and
will be included in the DEF file, it will be removed from the DLL and
result in a linker error.
2024-11-17 19:29:16 +09:00
Nobuyoshi Nakada
6588cc4e29
Workaround for VC 19.42.34433 again
Prefix underscore is already removed here.
2024-11-17 10:54:20 +09:00
Misaki Shioi
3c30af77fe
Fix stack-use-after-return (#12105)
http://ci.rvm.jp/results/trunk_asan@ruby-sp1/5409001

```
=================================================================
==3263562==ERROR: AddressSanitizer: stack-use-after-return on address 0x735a8f190da8 at pc 0x735a6f58dabc bp 0x735a639ffd10 sp 0x735a639ffd08
READ of size 4 at 0x735a8f190da8 thread T211
=================================================================
```
2024-11-17 10:36:33 +09:00
Nobuyoshi Nakada
bc409f3fe3
Workaround for VC 19.42.34433
Suddenly it began to add `_ucrt_int_to_float` by the recent version.
2024-11-17 00:05:38 +09:00
Nobuyoshi Nakada
7be4c0a88d
mkexports.rb: Revert removed flip-flop
This reverts commit 63ae1e3cb5.
2024-11-16 22:46:26 +09:00
HoneyryderChuck
002438767d [ruby/io-nonblock] mark extension as ractor safe
ba445b37d5
2024-11-16 04:18:14 +00:00
git
421fecbbfa Update default gems list at 2a0f8d62b6 [ci skip] 2024-11-15 16:10:30 +00:00
Schneems
2a0f8d62b6 [ruby/syntax_suggest] v2.0.2
e99b5ba287
2024-11-15 16:09:30 +00:00
Schneems
3a547e2539 [ruby/syntax_suggest] Explain why class exists
8c36b0cb35
2024-11-15 16:06:25 +00:00
Schneems
03a77c03eb [ruby/syntax_suggest] Fix spelling
9c78283363
2024-11-15 16:06:24 +00:00
Schneems
7969f6791f [ruby/syntax_suggest] Freeze strings
b17bf0baca
2024-11-15 16:06:24 +00:00
Nobuyoshi Nakada
ed4871afed
Update rubyarchdir and rubylibdir as well for tests
These are also different between build time and after installation.
2024-11-15 18:28:16 +09:00
Misaki Shioi
84470d72c5
Disable HEv2 tests temporarily (#12097)
* Disable HEv2 tests temporarily

To suppress error log output in CI.
They should have been DISABLE in PR #12070.

---

Additionally, the following fixes have been made:

- Remove unnecessary `assert_separately` from the related tests
2024-11-15 18:12:37 +09:00
git
31741719ae * append newline at EOF. [ci skip] 2024-11-15 08:50:34 +00:00
Hiroshi SHIBATA
a6f25023ac Port test_warn_zeitwerk.rb to RSpec example 2024-11-15 17:50:24 +09:00
Hiroshi SHIBATA
5bd0dfbf2e Port test_warn_bootsnap_and_gem.rb to RSpec example 2024-11-15 17:50:24 +09:00
Hiroshi SHIBATA
5395afd422 Port test_warn_bootsnap_rubyarchdir_gem.rb to RSpec example 2024-11-15 17:50:24 +09:00
Hiroshi SHIBATA
0afd77d76a Port test_warn_bootsnap.rb to RSpec example 2024-11-15 17:50:24 +09:00
Nobuyoshi Nakada
b4d8e90c2a
rb_bug prints a newline after the given message [ci skip] 2024-11-15 14:52:31 +09:00
Hiroshi SHIBATA
b45f7a54af Find .ext/common path from LOAD_PATH for out-of-place build 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
8dccf5a334 Port test_no_warn_sub_feature.rb to RSpec example 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
52e867268e Port test_warn_sub_feature.rb to RSpec example 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
c5637f940a fiddle provide sub-feature like fiddle/import 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
587955169e Port -r option test to RSpec examples 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
208c46702a Port bundle exec with shebang script to RSpec example 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
703cffffc9 Port bundle exec warning check to RSpec example 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
49fde29f77 Port test_no_warn_dependency.rb to RSpec example 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
bb20083050 Port test_warn_dependency.rb to RSpec example 2024-11-15 14:04:19 +09:00
Hiroshi SHIBATA
699e710ad8 Port test_no_warn_dash_gem.rb to RSpec example 2024-11-15 14:04:19 +09:00
Nobuyoshi Nakada
8e98fbdd19 [ruby/net-http] Remove deprecated constants
These constants, isolated in net/http/backward.rb, have not only been
deprecated since 2001, but have also had a warning since 2021.

265bfa929f
2024-11-15 03:15:04 +00:00
dependabot[bot]
1b417c3e64 Bump github/codeql-action from 3.27.3 to 3.27.4
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.27.3 to 3.27.4.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](396bb3e453...ea9e4e3799)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-15 11:38:40 +09:00
Schneems
226cfda306 [ruby/syntax_suggest] Fix missing line break due to puts logic
In #225 it was reported that the output looks incorrect:

```
$ cat /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
def x.y.z
end
$ ruby /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
/tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb: --> /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
expected a delimiter to close the parametersunexpected '.', ignoring it
> 1  def x.y.z
> 2  end
```

Specifically:

```
expected a delimiter to close the parametersunexpected '.', ignoring it
```

However this does not show up when executing the debug executable:

```
$ bin/bundle exec exe/syntax_suggest /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb
--> /tmp/4a71c7e417cc9eac0971e3a2519b295c/scratch.rb

expected a delimiter to close the parameters
unexpected '.', ignoring it

> 1  def x.y.z
> 2  end
```

This is because `exe/syntax_suggest` uses STDOUT.puts while calling `ruby` with the filename uses a fake IO object represented by MiniStringIO. This class was incorrectly not adding a newline to the end of the print.

The fix was to move the class to it's own file where it can be tested and then fix the behavior.

close https://github.com/ruby/syntax_suggest/pull/225

d2ecd94a3b

Co-authored-by: Andy Yong <andyywz@gmail.com>
2024-11-15 01:31:26 +00:00
Misaki Shioi
51666c827b
Make fast_fallback option false by default temporarily (#12070)
to suppress failing output in CI.
2024-11-15 09:18:09 +09:00
Dave Corson-Knowles
facb82aba5 [rubygems/rubygems] Update test_project_sanity.rb
279eefb8a3
2024-11-14 23:21:05 +00:00
Hiroshi SHIBATA
11265baed9 Use environmental variable for bundled_gems_spec.rb 2024-11-15 08:16:03 +09:00
Hiroshi SHIBATA
2d2e5a38bf Port test_warn_redefined.rb to RSpec example 2024-11-15 08:16:03 +09:00
Hiroshi SHIBATA
1063b5a140 Port test_warn_dash_gem.rb to RSpec example 2024-11-15 08:16:03 +09:00