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

70124 Коммитов

Автор SHA1 Сообщение Дата
git 2f79d6d3f2 Update bundled_gems at 2021-12-12 2021-12-12 07:12:13 +00:00
Nobuyoshi Nakada e4b35b158a [ruby/cgi] Check integer overflow in long range
https://hackerone.com/reports/1328463

https://github.com/ruby/cgi/commit/ccaf6027e0
2021-12-12 13:05:15 +09:00
git fbd7337016 * 2021-12-12 [ci skip] 2021-12-12 08:45:23 +09:00
Alan Wu 3518b00d75
YJIT: Edit module documentation for clarity
Add an empty line before the module doc string so RDoc can find it.
While we are at it, edit for clarity. The file should already be
using frozen string literals since c10d5085a2.

[ci skip]
2021-12-11 18:45:07 -05:00
Nobuyoshi Nakada d7ef372c95 Remove the macOS badge [ci skip]
It is disabled for the throughput of CI for now.
2021-12-11 23:05:16 +09:00
Samuel Williams b5c4570af4 [ruby/reline] Prefer wait_readable for fiber scheduler.
https://github.com/ruby/reline/commit/06b4aa31fd
2021-12-11 14:29:20 +09:00
Kazuhiro NISHIYAMA c91fb5db59
Update stdlib versions [ci skip] 2021-12-11 14:01:19 +09:00
Yuta Saito ecb2ff6050 intern/select/posix.h: remove unused parameter from rb_fd_dup
This unused parameter seems to be accidently introduced by https://github.com/ruby/ruby/commit/9e6e39c
2021-12-11 02:23:30 +09:00
Burdette Lamar e5ff030f60
Enhanced RDoc for String (#5234)
Treated:

    #to_i
    #to_f
    #to_s
    #inspect
    #dump
    #undump
2021-12-10 10:50:13 -06:00
git d6817d0538 * 2021-12-11 [ci skip] 2021-12-11 00:13:41 +09:00
Vyacheslav Alexeev 1a62a50c4f [rubygems/rubygems] Add `github` and `ref` options to `bundle add`
https://github.com/rubygems/rubygems/commit/c3e54acab0
2021-12-11 00:13:25 +09:00
ima1zumi 5f1975a454 [ruby/reline] @convert_meta is true unless 8-bit characters
If Reline::IOGate.encoding contains 7-bit characters, convert-meta will set it On.

Because in readline(3):

>  The default is On, but readline will set it to Off if the locale contains eight-bit characters.

As far as I know, 7-bit encoding used in terminals is only US-ASCII.

https://github.com/ruby/reline/commit/b71d1fa496
2021-12-10 22:19:14 +09:00
ima1zumi 519a945efc [ruby/reline] Execute compress_meta_key if convert_meta is on
fix `#357`

When using 8-bit characters, it is better not to use `compress_meta_key`.
I believe not to use `compress_meta_key` unless `set convert-meta on` is written in the `.inputrc`.

The following is a quote from tmtm's comments.

> The behavior of this compress_meta_key method is similar to the behavior of convert-meta=on in readline, but readline turns off convert-meta if the locale contains 8bit characters.

> In readline(3):

> convert-meta (On)
> If set to On, readline will convert characters with the eighth
> bit set to an ASCII key sequence by stripping the eighth bit and
> prefixing it with an escape character (in effect, using escape
> as the meta prefix). The default is On, but readline will set
> it to Off if the locale contains eight-bit characters.

https://github.com/ruby/reline/commit/9491cc8542

Co-authored-by: TOMITA Masahiro <tommy@tmtm.org>
2021-12-10 22:19:14 +09:00
YO4 3a2ae5bb19 [ruby/reline] unleash real pasting speed
2700msec -> 410msec

read 80 console inputs at once

https://github.com/ruby/reline/commit/eb3ef7af98
2021-12-10 22:18:26 +09:00
YO4 74765a5a36 [ruby/reline] unleash pasting speed
https://github.com/ruby/reline/commit/074e407c62
2021-12-10 22:18:25 +09:00
YO4 aed21d6574 [ruby/reline] support input surrogate paird codepoint
support surrogate pair input

https://github.com/ruby/reline/commit/0b4acedc6a
2021-12-10 22:16:46 +09:00
YO4 66e14e2076 [ruby/reline] follow consolemode change
fix 'https://github.com/ruby/reline/issues/300'

https://github.com/ruby/reline/commit/b2cc6805a8
2021-12-10 22:15:56 +09:00
Kevin Logan eb2d3c19fe [rubygems/rubygems] Properly fetch Gem#latest_spec_for with multiple sources
https://github.com/rubygems/rubygems/commit/a93ec63df3
2021-12-10 20:54:29 +09:00
David Rodríguez 0e60bc118b [rubygems/rubygems] Ignore dependencies not actually locked from frozen check
Only needed if there can be no explicit global source (bundler < 3).

https://github.com/rubygems/rubygems/commit/73923f4af5
2021-12-10 19:09:55 +09:00
Nobuyoshi Nakada 30268d1de6
Prefer flat_map 2021-12-10 18:39:48 +09:00
Nobuyoshi Nakada a5baf8d6bc
Revert zero-check for alloca
Something weird results in int-in-bool-context and
stringop-overflow warnings.
2021-12-10 18:39:48 +09:00
Yuta Saito 787daea6d2 Allow configuring TRANSIENT_HEAP_TOTAL_SIZE
Some platforms have memory resource limits, but theap's memory area is
too large for such situations. So allow configuring the size at
build-time.
2021-12-10 17:15:17 +09:00
git 0cefc2fbdf Update bundled_gems at 2021-12-10 2021-12-10 07:01:36 +00:00
Kazuhiro NISHIYAMA 21749f7be3
Update stdlib versions [ci skip] 2021-12-10 14:55:03 +09:00
Jeremy Evans 2727815068 Add {Method,UnboundMethod}#{public?,private?,protected?}
These methods allow for checking whether the method has that
visibility.

Implements [Feature #11689]
2021-12-09 12:59:37 -08:00
Alan Wu 74159f7f3e
[DOC] Stop mentioning Qfalse==0 for C extensions
See [Feature #18397] for detail. Follow up for
b859397e1b.

[ci skip]

Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-12-09 13:38:20 -05:00
Jemma Issroff b859397e1b
[DOC] Stop recommending Qfalse==0 assumption to C extensions
Encourage use of RTEST(), direct Qfalse comparison, and remove references to
Qfalse == 0 in extension documentation.

See [Bug #18397] for detail.
[ci skip]
2021-12-09 11:23:51 -05:00
Nobuyoshi Nakada bcc2bb28b0 Fix stack buffer overflow
https://hackerone.com/reports/1306859
2021-12-10 01:04:59 +09:00
Koichi Sasada 9873af0b1a `TracePoint.allow_reentry`
In general, while TracePoint callback is running,
other registerred callbacks are not called to avoid
confusion by reentrace.
This method allow the reentrace. This method should be
used carefully, otherwize the callback can be easily called
infinitely.

[Feature #15912]

Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2021-12-10 00:56:25 +09:00
git 88c804a6e7 * 2021-12-10 [ci skip] 2021-12-10 00:33:46 +09:00
Nobuyoshi Nakada da652e1827
Check month overflow when marshal
https://hackerone.com/reports/1244185
2021-12-09 21:51:39 +09:00
Nobuyoshi Nakada 12a0a89e22 [ruby/securerandom] Split Random::Formatter from SecureRandom [Feature #18190]
https://github.com/ruby/securerandom/commit/1e57277b9e
2021-12-09 20:26:44 +09:00
Hiroshi SHIBATA 4258c8df86
Fixed filename for Open3::VERSION 2021-12-09 19:48:22 +09:00
Hiroshi SHIBATA b06e37e242
Followed up f5d80c26d4 for sync_default_gems.rb 2021-12-09 19:33:47 +09:00
Hiroshi SHIBATA d74fe2061d
Adjust gemspec location of default gems 2021-12-09 19:28:55 +09:00
Hiroshi SHIBATA f5d80c26d4
Removed JRuby specific helper for open3 2021-12-09 19:28:54 +09:00
Charles Oliver Nutter 080169147e
[ruby/open3] Use RbConfig's 'host_os'
RUBY_PLATFORM on JRuby is always 'java' so it does not indicate
the host OS.

https://github.com/ruby/open3/commit/d2308040e6
2021-12-09 19:28:54 +09:00
Charles Oliver Nutter eb06b37c46
[ruby/open3] Update to match JRuby 9.4
This allows the wrapper functions in the main open3 to be defined
while using our ProcessBuilder logic for the internal popen
implementation.

Note this adds logic to reject redirects from a numeric fd to a
live IO object (or not a String or to_path object) since we cannot
support direct IO redirects with ProcesBuilder.

This patch allows tests to complete with the ProcessBuilder impl.
Only three tests fail:

* test_numeric_file_descriptor2 and test_numeric_file_descriptor2
  fail due to redirecting streams to a pipe IO.
* test_pid fails expecting a real PID which we cannot provide via
  ProcessBuilder.

https://github.com/ruby/open3/commit/73f986c233
2021-12-09 19:28:54 +09:00
Charles Oliver Nutter 01febcab3e
[ruby/open3] Add JRuby's Windows (JDK non-native) Open3 support
This adds JRuby's logic used on platforms where we do not have
native access to posix_spawn and related posix functions needed
to do fully-native subprocess launching and management. The code
here instead uses the JDK ProcessBuilder logic to simulate most
of the Open3 functionality.

This code does not pass all tests, currently, but provides most of
the key functionality on pure-Java (i.e. no native FFI) platforms.

https://github.com/ruby/open3/commit/689da19c42
2021-12-09 19:28:54 +09:00
Charles Oliver Nutter 34ebd13923
[ruby/open3] Only use JITSupport on CRuby
Fixes #2

https://github.com/ruby/open3/commit/6b7ede69e8
2021-12-09 19:28:54 +09:00
Olle Jonsson d150b8d06f
[ruby/open-uri] gemspec: This gem exposes 0 executables
This just makes that fact more explicit.

https://github.com/ruby/open-uri/commit/ffbfba5d69
2021-12-09 19:28:54 +09:00
Hiroshi SHIBATA c41751f10e
[ruby/io-wait] Bump up 0.2.1
https://github.com/ruby/io-wait/commit/c97ab9a212
2021-12-09 19:28:54 +09:00
Olle Jonsson dd8b9c1d03
[ruby/English] gemspec: Remove unused "executables" configuration
This gem exposes no executables.

https://github.com/ruby/English/commit/bb1ce0af20
2021-12-09 19:28:53 +09:00
aycabta 6ff9fcdfa8 [ruby/rdoc] Support addition Object class when adding methods to top level
https://github.com/ruby/rdoc/commit/23747b4950
2021-12-09 18:16:06 +09:00
aycabta 2e50989ad3 [ruby/rdoc] Resolve class and method of the same name correctly
https://github.com/ruby/rdoc/commit/1e16284fe5
2021-12-09 18:16:05 +09:00
aycabta fa806cf233 Fix typo of namespace 2021-12-09 18:15:52 +09:00
Koichi Sasada cce331272b `Ractor.make_shareable` checks proc's sefl
`Ractor.make_shareable(proc_obj)` raises an `IsolationError`
if the self of `proc_obj` is not a shareable object.

[Bug #18243]
2021-12-09 16:20:04 +09:00
Akihiro Sada c5f68a9a24
Fix typo in NEWS-2.5.0 [ci skip] 2021-12-09 12:28:42 +09:00
David Rodríguez 45c5794d32 [rubygems/rubygems] Don't load system rubygems during tests
Since tests are about testing our development copy of rubygems, not
whatever is installed in the system.

https://github.com/rubygems/rubygems/commit/f5e0b68cdd
2021-12-09 08:58:25 +09:00
Alan Wu 82bb9cedd3 YJIT: Fix leak in compilation loop
Previously, when there are too many blocks in a batch, the last block in
the batch is not tracked in the array of batches and not freed.
2021-12-08 16:59:52 -05:00