69650 Commits

Author SHA1 Message Date
Nobuyoshi Nakada
53e2bba0dd
[DOC] Markup the literal false, and constant [ci skip] 2021-11-05 09:58:45 +09:00
Yusuke Endoh
30886be9f4 Skip bundled gem with an extension library under with-static-linked-ext
.. mainly to fix emscripten CI

http://rubyci.s3.amazonaws.com/crossruby/crossruby-master-wasm64_emscripten/log/20211104T024621Z.fail.html.gz
2021-11-05 09:34:46 +09:00
Hiroshi SHIBATA
16331d9abb [rubygems/rubygems] Explicitly ignored empty value for DESTDIR
https://github.com/rubygems/rubygems/commit/69dcc02553
2021-11-05 07:35:25 +09:00
Hiroshi SHIBATA
33d01b7344 [rubygems/rubygems] Skip to set DESTDIR option when it's not provided for mswin platform
https://github.com/rubygems/rubygems/commit/b93546c8d8
2021-11-05 07:35:24 +09:00
Alyssa Ross
1506c8228b [rubygems/rubygems] Don't apply --destdir twice when running setup.rb
Prior to this patch, if I ran:

    ruby setup.rb --destdir /foo

Then Bundler files would be written into /foo/foo, because destdir was
being prepended, even though `bundler_spec.bin_dir` already included
destdir.

https://github.com/rubygems/rubygems/commit/9e857ffb52
2021-11-05 07:23:36 +09:00
David Rodríguez
9503dd91a5 [rubygems/rubygems] Fix --destdir handling on Windows
Driver letters were not accounted for in one place.

https://github.com/rubygems/rubygems/commit/fbe42460d7
2021-11-05 07:23:36 +09:00
David Rodríguez
5e855be86b [rubygems/rubygems] More refactoring of --destdir handling
https://github.com/rubygems/rubygems/commit/f42c2025ed
2021-11-05 07:23:35 +09:00
David Rodríguez
70cbca48b8 [rubygems/rubygems] Refactor --destdir handling
https://github.com/rubygems/rubygems/commit/8aab3d11b0
2021-11-05 07:23:35 +09:00
Maxime Chevalier-Boisvert
2421527d6e
YJIT code pages refactoring for code GC (#5073)
* New code page allocation logic

* Fix leaked globals

* Fix leaked symbols, yjit asm tests

* Make COUNTED_EXIT take a jit argument, so we can eliminate global ocb

* Remove extra whitespace

* Change block start_pos/end_pos to be pointers instead of uint32_t

* Change branch end_pos and start_pos to end_addr, start_addr
2021-11-04 16:05:41 -04:00
git
85b4cf16e2 * 2021-11-05 [ci skip] 2021-11-05 00:54:21 +09:00
Yusuke Endoh
0c69f2401a test/ruby/test_gc_compact.rb: Backpatch the URL to the PR 2021-11-04 08:54:05 -07:00
Yusuke Endoh
8821a0de0e test/ruby/test_gc_compact.rb: Do not run on s390x
The compaction tests get stuck randomly on s390x for unknown reason.

http://rubyci.s3.amazonaws.com/s390x/ruby-master/log/20211104T030003Z.fail.html.gz
```
[13715/21145] TestGCCompact#test_gc_compact_statstimeout: output interval exceeds 1800.0 seconds.
```

We spent some time to investigate this issue, but we can't figure out
why, and it is unlikely that we'll be able to fix it anytime soon.

This random failure makes the CI unuseful, so tentatively we suppress
this test for a while. A contribution from those who are familiar with
s390x is welcome.
2021-11-04 08:54:05 -07:00
Nobuyoshi Nakada
539c42ed89 [rubygems/rubygems] Fix typos
https://github.com/rubygems/rubygems/commit/f328ef6f77
2021-11-04 23:06:25 +09:00
Nobuyoshi Nakada
3d8e1ee40f [ruby/net-http] Warn deprecated old constants
https://github.com/ruby/net-http/commit/2a97b4729b
2021-11-04 20:51:51 +09:00
Nobuyoshi Nakada
b49dbe025f [ruby/net-http] Fix the typo in a constant name
https://github.com/ruby/net-http/commit/dada6007bf
2021-11-04 20:51:42 +09:00
Kazuki Yamaguchi
5f2c4e344d [ruby/net-http] Reset keep_alive timer on new connection
The last_communicated timestamp is for HTTP persistent connection, to
decide whether the current TCP connection may be reused for the
subsequent requests or not. Naturally, the timer must be reset if the
connection is recreated since it is no longer relevant.

https://github.com/ruby/net-http/commit/0a013de42d
2021-11-04 20:44:04 +09:00
Kazuhiro NISHIYAMA
a53aab1273
Fix typos [ci skip] 2021-11-04 12:58:09 +09:00
180909
ee9f7fc2f7 fix typo in ChangeLog-1.9.3 2021-11-04 12:08:12 +09:00
Nobuyoshi Nakada
e1ae889c9c [ruby/racc] Fix a private method name
https://github.com/ruby/racc/commit/1f52571225
2021-11-04 08:58:45 +09:00
Nobuyoshi Nakada
acf5ccd185 [ruby/racc] Fix typo in a local variable name
https://github.com/ruby/racc/commit/03d0b86b90
2021-11-04 08:58:44 +09:00
git
481aa61cb7 * 2021-11-04 [ci skip] 2021-11-04 08:56:52 +09:00
Nobuyoshi Nakada
f6330a45f2 [ruby/rdoc] Fix typos in test method names [ci skip]
https://github.com/ruby/rdoc/commit/8386333323
2021-11-04 08:56:38 +09:00
Nobuyoshi Nakada
5b8d22ebe6 [ruby/openssl] Fix typos [ci skip]
https://github.com/ruby/openssl/commit/708ebf2f7a
2021-11-03 23:43:04 +09:00
Nobuyoshi Nakada
b5d9c44267 [ruby/optparse] Fix typo [ci skip]
https://github.com/ruby/optparse/commit/0aa18752cf
2021-11-03 19:55:24 +09:00
Nobuyoshi Nakada
e9a13332e8
Fix typos [ci skip] 2021-11-03 19:11:45 +09:00
David Rodríguez
c5224c71ae [rubygems/rubygems] Fix gem install vs gem fetch inconsistency
https://github.com/rubygems/rubygems/commit/b3e985799e
2021-11-03 17:42:39 +09:00
Yusuke Endoh
9fc7ea64a1 configure.ac: don't use shutdown on emscripten
... to absorb a change on Ubuntu 21.10
2021-11-03 14:00:51 +09:00
Yusuke Endoh
4b248e7994 string.c: Follow up to ae2359f602bb467ca755eef02d73d361d35eaed7
* Mention `\0`
* Make the example of hash replacement meaningful
2021-11-03 03:52:28 +09:00
git
a4f834c41e * 2021-11-03 [ci skip] 2021-11-03 03:05:21 +09:00
Burdette Lamar
ae2359f602
Enhanced RDoc for String (#5060)
Treated:

    #slice!
    #sub
    #sub!
    #gsub
    #gsub!
2021-11-02 13:04:58 -05:00
Yusuke Endoh
8413749ec0 ext/socket/extconf.rb: Fix the chech if if_indextoname is available
The check had not work because "headers" were not passed.
2021-11-02 23:41:01 +09:00
Nobuyoshi Nakada
e0915ba679
Fix typos in ChangeLog files [ci skip] 2021-11-02 19:17:37 +09:00
Nobuyoshi Nakada
a202408180
Fix typos 2021-11-02 19:17:37 +09:00
Vít Ondruch
c2dcaa7362 [rubygems/rubygems] Use OpenSSL constants for error codes.
This fixes the following test error testing against OpenSSL 3.x:

~~~
  2) Failure:
TestGemRequest#test_verify_certificate_extra_message [/builddir/build/BUILD/ruby-3.0.2/test/rubygems/test_gem_request.rb:358]:
<"ERROR:  SSL verification error at depth 0: invalid CA certificate (24)\n" +
"ERROR:  Certificate  is an invalid CA certificate\n"> expected but was
<"ERROR:  SSL verification error at depth 0: invalid CA certificate (79)\n" +
"ERROR:  Certificate  is an invalid CA certificate\n">.
~~~

Where the root cause is this OpenSSL commit:

1e41dadfa7

It seems that OpenSSL upstream considers the constant value just an
implementation detail and therefore this changes the test case to
follow the suite.

https://github.com/rubygems/rubygems/commit/8acf8e95dc
2021-11-02 19:12:35 +09:00
180909
83704a2851 remove the repeat 'the' 2021-11-02 18:34:17 +09:00
Yusuke Endoh
905b6aaa7c test/readline/test_readline.rb: Use TERM=vt100 to run the tests
Readline seems to emit an escape sequence `"\e[?1034h` at an
unpredictable timing when `TERM=xterm` or something.
This leads to a noisy random test failure.

http://rubyci.s3.amazonaws.com/amazon2/ruby-master/log/20211102T063005Z.fail.html.gz
```
  1) Failure:
TestReadline#test_modify_text_in_pre_input_hook [/home/chkbuild/chkbuild/tmp/build/20211102T063005Z/ruby/test/readline/test_readline.rb:404]:
<"> hello world\n"> expected but was
<"\e[?1034h> hello world\n">.
```

This test is for Ruby's readline extension, not for readline library
itself. So here this change force to use "TERM=vt100" to run the tests.
2021-11-02 17:28:23 +09:00
Carlos Palhares
38785aa3b9
Update licenses= documentation 2021-11-02 10:24:35 +09:00
Carlos Palhares
17f8fd6568
Allow custom LicenseRef 2021-11-02 10:24:00 +09:00
Josef Šimánek
b74385e78d
Remove SimpleCov at all. 2021-11-02 10:22:24 +09:00
Hiroshi SHIBATA
4a39167260
Removed the related code of gem server 2021-11-02 10:19:34 +09:00
git
1d88eec8e3 * 2021-11-02 [ci skip] 2021-11-02 00:28:41 +09:00
David Rodríguez
ed0f326e88 [rubygems/rubygems] Leave ":" after MANPATH when not set
So that system man pages still work after a gem with man pages overrides
it.

https://github.com/rubygems/rubygems/commit/1031879b87
2021-11-02 00:28:28 +09:00
John Hawthorn
2fa51c7068
YJIT: Support kwargs sends with all defaults (#5067)
* YJIT: Support kwargs sends with all defaults

Previously keyword argument methods were only compiled by YJIT when all
keywords were specified in the caller.

This adds support for calling methods with keyword arguments when no
keyword arguments are specified and all are filled with the defaults.

* Remove unused send_iseq_kwargs_none_passed
2021-11-01 10:54:59 -04:00
Kazuki Yamaguchi
b474049c78 [ruby/openssl] x509name: improve docs for X509::Name
Add docs for X509::Name.parse_openssl and X509::Name.parse_rfc2253,
which are currently undocumented despite being widely used.

Small changes are also made to #to_s and the class description to
recommend using RFC 2253-based methods.

Fixes: https://github.com/ruby/openssl/issues/470

https://github.com/ruby/openssl/commit/74041a35d4
2021-11-01 17:48:03 +09:00
Kazuki Yamaguchi
1ac7f23bb8 [ruby/openssl] ssl: disallow reading/writing to unstarted SSL socket
OpenSSL::SSL::SSLSocket allowed #read and #write to be called before an
SSL/TLS handshake is completed. They passed unencrypted data to the
underlying socket.

This behavior is very odd to have in this library. A verbose mode
warning "SSL session is not started yet" was emitted whenever this
happened. It also didn't behave well with OpenSSL::Buffering. Let's
just get rid of it.

Fixes: https://github.com/ruby/openssl/issues/9

https://github.com/ruby/openssl/commit/bf780748b3
2021-11-01 17:48:02 +09:00
git
f0226f9a01 Update bundled_gems at 2021-11-01 2021-11-01 07:07:34 +00:00
Nobuyoshi Nakada
b93a5f96c8
bundled_gems: Pull before new commit [ci skip] 2021-11-01 12:50:23 +09:00
git
266c90eaf9 * 2021-11-01 [ci skip] 2021-11-01 02:01:52 +09:00
David Rodríguez
4e7e057692 [rubygems/rubygems] Memoize materialized specs when requiring bundler/setup
Calling `Bundler.definition.specs` will memoize materialized specs.
However, requiring `bundler/setup` will end up materializing the same
set of specs, but not memoize them.

This change makes things consistent.

https://github.com/rubygems/rubygems/commit/e4c2b52824
2021-11-01 02:01:36 +09:00
Nobuyoshi Nakada
13a9597c7c Argument forwarding definition without parentheses [Bug #18267] 2021-10-31 18:27:55 +09:00