71026 Commits
Author SHA1 Message Date
Hiroshi SHIBATA 0a3704f218 bump teeny v3_1_7 2025-03-26 13:20:36 +09:00
Takashi Kokubun c426ad1f62 Drop CODEOWNERS from ruby_3_1 2025-03-05 20:06:30 -08:00
git 385400217a * 2025-03-06 [ci skip] 2025-03-06 01:06:42 +00:00
Hiroshi SHIBATA 18a84ad8e3 Use actions/checkout@v4 2025-03-06 10:06:29 +09:00
git bc2311fce0 * 2025-02-28 [ci skip] 2025-02-28 07:43:48 +00:00
Hiroshi SHIBATA 16b298a39a Skip VS2022 17.13.x build
see https://github.com/ruby/ruby/pull/12830
2025-02-28 16:43:37 +09:00
git 35534fb92f * 2025-02-26 [ci skip] 2025-02-26 09:49:52 +00:00
Hiroshi SHIBATA ca7cc093c4 Merge uri-0.12.4 2025-02-26 18:49:41 +09:00
Hiroshi SHIBATA b97108a646 Merge cgi-0.3.7 2025-02-26 18:49:41 +09:00
Hiroshi SHIBATA 69bdfc4c6d Update vcpkg baseline 2025-02-15 08:26:16 +09:00
Hiroshi SHIBATA 0ce2770e93 Revert "[ruby/openssl] Relax error message check for OpenSSL 3.1"
This reverts commit 2864f0696b.
2025-02-15 08:26:16 +09:00
git 78fe0b6e5c * 2025-02-14 [ci skip] 2025-02-14 06:58:32 +00:00
Nobuyoshi Nakada 2864f0696b [ruby/openssl] Relax error message check for OpenSSL 3.1
A tentative measures fo https://github.com/ruby/openssl/issues/606.

With OpenSSL 3.1.0, the error message at connection using "self-signed
certificate" seems to return `SSL_R_TLSV1_ALERT_UNKNOWN_CA` instead of
`SSL_R_CERTIFICATE_VERIFY_FAILED`.

https://github.com/ruby/openssl/commit/fc4629d246
2025-02-14 15:58:21 +09:00
Hiroshi SHIBATA 3e4289c24a Switch to use manifest mode of vcpkg.
We should avoid to accidentally upgrade of OpenSSL 3.4.x
2025-02-14 15:58:21 +09:00
git 326a6cbf9b * 2024-12-03 [ci skip] 2024-12-03 02:09:57 +00:00
Hiroshi SHIBATA 62c113c437 Lock json-schema-5.1.0 for using pure ruby version 2024-12-03 11:09:44 +09:00
git 430bcf8a57 * 2024-11-20 [ci skip] 2024-11-20 09:19:04 +00:00
Nobuyoshi Nakada 72bad339e9 Set target_os for a7577dbfd3 2024-11-20 18:18:52 +09:00
Nobuyoshi Nakada bd95287a0f 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-20 18:18:52 +09:00
Hiroshi SHIBATA b92a9905ae Revert "Skip tests that suddenly started failing for MinGW"
This reverts commit 279fb0083a.
2024-11-20 06:53:12 +09:00
Nobuyoshi Nakada f6e272fb4a Make MUNICODE_FLAG simply expanded
It is not expected that `target_os` will change going forward.
2024-11-20 06:53:12 +09:00
Daisuke Fujimura (fd0) c03d788d7e EXE_LDFLAGS uses the same MUNICODE_FLAG 2024-11-20 06:53:12 +09:00
Daisuke Fujimura (fd0) cf74c988d1 -municode is available for MinGW-w64 targets only 2024-11-20 06:53:12 +09:00
Nobuyoshi Nakada 92c6816039 Use wide character startup
Mingw crt-git 12.0.0.r369.g0d4221712-1 now prohibits "command line
contains characters that are not supported in the active code page".
https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0d42217123d3aec0341b79f6d959c76e09648a1e/

Already Ruby builds `argv` in `rb_w32_sysinit`, instead of mswin- or
mingw-made `argv`.  Just bypass the conversion in mingw crt.
2024-11-20 06:53:12 +09:00
git 40e058a1a9 * 2024-11-19 [ci skip] 2024-11-19 10:16:19 +00:00
Hiroshi SHIBATA dcbec61efb Added configuration for vcpkg and system openssl libraries 2024-11-19 19:16:08 +09:00
Nobuyoshi Nakada 0c40fe8aae 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-19 19:16:08 +09:00
Nobuyoshi Nakada b34e440d3e 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-19 19:16:08 +09:00
Hiroshi SHIBATA 3722b18e8d Enabled windows-2022 again 2024-11-19 19:16:08 +09:00
git 7a4f7df335 * 2024-11-11 [ci skip] 2024-11-11 07:06:59 +00:00
Hiroshi SHIBATA 5f5d84aa0c Removed temporary workaround for MinGW 2024-11-11 13:44:21 +09:00
MSP-Greg fdb2bee0fe [ruby/net-http] test_https.rb - fix test_session_reuse_but_expire
https://github.com/ruby/net-http/commit/5544243c41
2024-11-11 13:43:58 +09:00
Job Snijders bcc3ad7ff0 [ruby/openssl] Only CSR version 1 (encoded as 0) is allowed by PKIX standards
RFC 2986, section 4.1 only defines version 1 for CSRs. This version
is encoded as a 0. Starting with OpenSSL 3.3, setting the CSR version
to anything but 1 fails.

Do not attempt to generate a CSR with invalid version (which now fails)
and invalidate the CSR in test_sign_and_verify_rsa_sha1 by changing its
subject rather than using an invalid version.

This commit fixes the following error.

```
 2) Error: test_version(OpenSSL::TestX509Request): OpenSSL::X509::RequestError:
X509_REQ_set_version: passed invalid argument
/home/runner/work/openssl/openssl/test/openssl/test_x509req.rb:18:in `version='
/home/runner/work/openssl/openssl/test/openssl/test_x509req.rb:18:in `issue_csr'
/home/runner/work/openssl/openssl/test/openssl/test_x509req.rb:43:in
`test_version'
     40:     req = OpenSSL::X509::Request.new(req.to_der)
     41:     assert_equal(0, req.version)
     42:
  => 43:     req = issue_csr(1, @dn, @rsa1024, OpenSSL::Digest.new('SHA256'))
     44:     assert_equal(1, req.version)
     45:     req = OpenSSL::X509::Request.new(req.to_der)
     46:     assert_equal(1, req.version)
```

https://github.com/ruby/openssl/commit/c06fdeb091
2024-11-11 13:43:58 +09:00
Hiroshi SHIBATA 5d10d1f348 Drop EOL versions and added Ruby 3.1 to ruby/spec 2024-11-06 15:44:06 +09:00
git c7c895ce06 * 2024-11-06 [ci skip] 2024-11-06 04:30:42 +00:00
Hiroshi SHIBATA 06926ffb65 OpenSSL::TestX509Request#test_sign_and_verify_rsa_sha1 is also not working with MinGW 2024-11-06 13:30:32 +09:00
Takashi Kokubun 279fb0083a Skip tests that suddenly started failing for MinGW
These test failures first appeared on irrelevant changes. It probably
came from changes in GitHub Actions instead of CRuby's.

Until we figure out how to fix these tests, let's skip them to make the
CI usable.
2024-11-06 13:30:32 +09:00
Hiroshi SHIBATA e9cc29bb5d Pend some tests because these are not working with macOS 15 and Xcode 16 2024-11-06 13:30:32 +09:00
Hiroshi SHIBATA ccbe0390fc Retired macos-12 and added macos-14 and macos-15 on GitHub Actions 2024-11-06 13:30:32 +09:00
Hiroshi SHIBATA b57d40d150 Fix test tail with mjit options for clang provided by Xcode 16
```
clang: error: unknown argument '-emit-pch'; did you mean '-Xclang -emit-pch'?
MJIT warning: Making precompiled header failed on compilation. Stopping MJIT worker...
Successful MJIT finish
```
2024-11-06 13:30:32 +09:00
git 19c93a5c8f * 2024-11-01 [ci skip] 2024-11-01 01:16:10 +00:00
Hiroshi SHIBATA 3713db9a24 Bump up REXML-3.3.9 2024-11-01 10:16:00 +09:00
git f14d521094 * 2024-09-30 [ci skip] 2024-09-30 07:02:00 +00:00
Hiroshi SHIBATA 165aeb87fa -l option of 7z is unknown switch with the ubuntu-latest.
https://github.com/ruby/actions/actions/runs/11095032727/job/30823174026#step:3:349
2024-09-30 16:01:48 +09:00
git 30d00a0b43 * 2024-09-10 [ci skip] 2024-09-10 07:00:41 +00:00
tomoya ishida b33c331184 Improve base time of assert_linear_performance (#11369)
Remove `.ceil` from base time calculation that makes 10x gap.
This will make the assertion more strict and also less flaky.
2024-09-10 16:00:29 +09:00
Hiroshi SHIBATA af17a34c88 Added explicitly begin-end block for Ruby 2.4.
strscan, ipaddr and some default gems still support Ruby 2.4.

  After this, I extract this CoreAssertions to their repositories.
2024-09-10 16:00:29 +09:00
Hiroshi SHIBATA ebd44ef570 Suppress warning for shadowing outer local variable 2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada bfa4073dc2 core_assertions.rb: Support old rubies
Some symbol argument might not be accepted by Process.clock_gettime.
2024-09-10 16:00:29 +09:00
Nobuyoshi Nakada e67ef294fe core_assertions.rb: Prefer CPU time clocks
To prevent influence from other processes.
2024-09-10 16:00:29 +09:00