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

70644 Коммитов

Автор SHA1 Сообщение Дата
git 2fac066b3a * 2022-01-01 [ci skip] 2022-01-01 00:00:30 +09:00
Nobuyoshi Nakada f59b2e440e
NEWS: Removed methods 2021-12-31 23:59:50 +09:00
Nobuyoshi Nakada 60e9aa5733
NEWS: Removed C APIs 2021-12-31 23:59:04 +09:00
NAKAMURA Usaku a493732c8e re-enabled YJIT on x64-mswin64
note that YJIT does not work correctly on the platform now.
2021-12-31 20:13:11 +09:00
Nobuyoshi Nakada 93591d31b0
Use rb_cObject instead of rb_cData 2021-12-31 10:53:54 +09:00
Burdette Lamar 87c03694e6
Enhanced RDoc for IO (#5367)
Adds sections to class RDoc:

    Lines
        Line Separator
        Line Limit
        Line Number

Revises example text file t.txt to:

    Include paragraphs (separated by double line separator).
    Avoid being too long.

Revises examples that use the changed example file.

There are several other methods that will point to the added sections.
2021-12-30 16:46:24 -06:00
git a2f47cf8e3 * 2021-12-31 [ci skip] 2021-12-31 07:37:58 +09:00
Jeremy Evans f53dfab95c Add support for anonymous rest and keyword rest argument forwarding
This allows for the following syntax:

```ruby
def foo(*)
  bar(*)
end
def baz(**)
  quux(**)
end
```

This is a natural addition after the introduction of anonymous
block forwarding.  Anonymous rest and keyword rest arguments were
already supported in method parameters, this just allows them to
be used as arguments to other methods.  The same advantages of
anonymous block forwarding apply to rest and keyword rest argument
forwarding.

This has some minor changes to #parameters output.  Now, instead
of `[:rest], [:keyrest]`, you get `[:rest, :*], [:keyrest, :**]`.
These were already used for `...` forwarding, so I think it makes
it more consistent to include them in other cases.  If we want to
use `[:rest], [:keyrest]` in both cases, that is also possible.

I don't think the previous behavior of `[:rest], [:keyrest]` in
the non-... case and `[:rest, :*], [:keyrest, :**]` in the ...
case makes sense, but if we did want that behavior, we'll have to
make more substantial changes, such as using a different ID in the
... forwarding case.

Implements [Feature #18351]
2021-12-30 14:37:42 -08:00
Alan Wu 2d2ee338f3 YJIT: Avoid pointer size assumption with intptr_t
Cast to `void *` first to use the definition of `intptr_t`.
2021-12-30 08:21:51 -05:00
nagachika d5fc3fa4db win32/win32.c Fix PROT_EXEC bit flag check for FlushInstrucitonCache() 2021-12-30 21:16:29 +09:00
Nobuyoshi Nakada db547a3bc4
[ruby/win32ole] Undefine allocator of WIN32OLE_VARIABLE to get rid of warning
https://github.com/ruby/win32ole/commit/27d0fdc622
2021-12-30 21:13:11 +09:00
YO4 31c69d66d2 [ruby/reline] windows fix scroll
https://github.com/ruby/reline/commit/c559d0f7a9
2021-12-30 20:53:21 +09:00
aycabta 2a311594cc [ruby/reline] Omit a test on Ruby 2.6
Some tokens in Ruby 2.6 have difference information than in 2.7 and later,
but 2.6 will soon be out of support.

https://github.com/ruby/reline/commit/f3bc698385
2021-12-30 20:52:06 +09:00
aycabta 9295732af8 [ruby/reline] Use ripper_lex_without_warning
https://github.com/ruby/reline/commit/b7536dc224
2021-12-30 20:52:06 +09:00
ima1zumi f589242e75 [ruby/reline] Use unix_line_discard when Ctrl-u is entered
The kill-line was called when C-u was entered, so it is now called unix-line-discard.

In readline(3):

> unix-line-discard (C-u)
>               Kill backward from point to the beginning of the line.
>               The killed text is saved on the kill-ring.

https://github.com/ruby/reline/commit/27570d195e
2021-12-30 20:23:58 +09:00
Nobuyoshi Nakada 8727161fcf
Flush deprecation declarations for versions older than 3.0 2021-12-30 18:52:04 +09:00
Nobuyoshi Nakada a90d188b57 Remove declarations of deprecated functions 2021-12-30 15:33:40 +09:00
David Rodríguez 1954a95f8b [rubygems/rubygems] Better way to join path components
The current way works, but error messages show duplicate "/" in paths,
which is weird.

https://github.com/rubygems/rubygems/commit/9123deb4fa
2021-12-30 07:02:30 +09:00
git 7304e357a8 * 2021-12-30 [ci skip] 2021-12-30 06:21:05 +09:00
Peter Zhu 52525b527b [Bug #18451] [ci skip] Update documentation for GC.stat
Adds documentation for keys `time`, `compact_count`,
`read_barrier_faults`, `total_moved_objects`.
2021-12-29 16:20:50 -05:00
Nobuyoshi Nakada 002fa28599 On 64bit macOS, enlarge heap pages to reduce mmap calls [Bug #18447] 2021-12-29 20:53:43 +09:00
Hiroshi SHIBATA 239e71c0af [ruby/reline] Use omit instead of skip
https://github.com/ruby/reline/commit/a538de421f
2021-12-29 20:12:36 +09:00
Hiroshi SHIBATA f25c2e6336
Use omit instead of skip: test/ruby/enc/**/*.rb 2021-12-29 19:27:58 +09:00
git 6d57290210 Update bundled gems list at 2021-12-29 2021-12-29 07:02:15 +00:00
Nobuyoshi Nakada 4e4c4fab3c
YJIT: Use proper size prefix and conversion where IL32LLP64 2021-12-29 14:09:37 +09:00
Nobuyoshi Nakada 5ca51ddde8
[DOC] Integer#coerce deals with also Float 2021-12-29 11:50:28 +09:00
Nobuyoshi Nakada 27765a7502
Fix the warning in rb_big2dbl, Bignum is no longer defined 2021-12-29 11:49:06 +09:00
Nobuyoshi Nakada 3238164f9c `ioctl_narg_len` is used only when ioctl(2) is available 2021-12-29 11:40:04 +09:00
git 7fbd93e60f Update default gems list at d75f7078c8 [ci skip] 2021-12-29 01:03:36 +00:00
Nobuyoshi Nakada d75f7078c8
[ruby/io-console] bump up to 0.5.11
https://github.com/ruby/io-console/commit/ad3805200c
2021-12-29 09:37:59 +09:00
Samuel Williams e4cd319f3d [ruby/irb] Prefer `IO#wait_readable` over `IO#select`. (https://github.com/ruby/irb/pull/323)
https://github.com/ruby/irb/commit/1c03bd3373
2021-12-29 09:37:05 +09:00
Samuel Williams f27eb8148f
Sync io-console gem. 2021-12-29 13:27:40 +13:00
John Hawthorn 38a3965dea YJIT: Fix warning in iface.c
Fixes warning:

    <internal:yjit>:16: warning: undefining the allocator of T_DATA
    class RubyVM::YJIT::Block
2021-12-29 08:57:34 +09:00
git 39b3aa4fb3 * 2021-12-29 [ci skip] 2021-12-29 00:22:18 +09:00
Koichi Sasada c9af8a32a0 `USE_RUBY_DEBUG_LOG` doesn't check `RUBY_DEVEL`
`USE_RUBY_DEBUG_LOG` was only defined when `RUBY_DEVEL` is defined.
This patch removes this dependency (`USE_RUBY_DEBUG_LOG` is defined
independently from `RUBY_DEVEL`).

Do not commit a patch which enables `USE_RUBY_DEBUG_LOG`.
2021-12-29 00:22:02 +09:00
Hiroshi SHIBATA 763592d208
Use omit instead of skip: test/-ext-/**/*.rb 2021-12-28 21:13:39 +09:00
Hiroshi SHIBATA 55cdb8b013
Use omit instead of skip: test/socket/**/*.rb 2021-12-28 20:29:54 +09:00
Nobuyoshi Nakada bab8623343
The `include`d set should be expanded values [ci skip]
While the `matrix` level values are expanded from the production
of each arrays, `include`d set should be consist from expanded
single values.
2021-12-28 19:29:47 +09:00
Nobuyoshi Nakada bf97415c02 Removed deprecated Dir.exists? and File.exists? 2021-12-28 18:36:30 +09:00
Nobuyoshi Nakada 0a47896d20 s/an Bignum/a Bignum/ [ci skip] 2021-12-28 18:35:03 +09:00
Nobuyoshi Nakada 40e7aefeba Remove obsolete Fixnum and Bignum 2021-12-28 18:35:03 +09:00
Masataka Pocke Kuwabara b948b1a4e1
Fix RBS test failures of taint/trust (#5364) 2021-12-28 18:18:40 +09:00
Takashi Kokubun 63358581bc
Fix weird MinGW failure notifications
It's been "MinGW / Array", but it will be "MinGW MINGW64 / check" or
"MinGW UCRT64 / check" by this.
2021-12-27 23:35:13 -08:00
Takashi Kokubun 3cd1731920
Skip testing --enable-all in MinGW for now
If we don't intend to support this platform, we should probably enable
MJIT for MinGW. However, since the code for https://bugs.ruby-lang.org/issues/18439
is in place, I'm adjusting the test for it in the meantime.

following up https://github.com/ruby/ruby/pull/5363
2021-12-27 22:30:34 -08:00
Takashi Kokubun eb49aa3119
Fix test_rubyoptions for MinGW (#5363)
* Fix test_rubyoptions for MinGW

follows up a74a2f456a

* Require jit_support

* Fix MinGW platform

* Handle MinGW UCRT

and fix the prefix

* Make it more robust
2021-12-27 22:22:09 -08:00
卜部昌平 a6e5d70346 USE_RVARGC released; why not CI 2021-12-28 14:52:55 +09:00
Takashi Kokubun 91b7be7708
Do not support non-x86_64 platforms
This was probably not intended in 85a426dc86.
2021-12-27 19:57:30 -08:00
Kazuhiro NISHIYAMA f445eccfb4
Expand URL to its canonical form [ci skip] 2021-12-28 10:23:46 +09:00
git 2c7aed46ba * 2021-12-28 [ci skip] 2021-12-28 04:38:44 +09:00
David Rodríguez 95d2e06c2b [rubygems/rubygems] Fix `bundle update --bundler` no longer updating lockfile
https://github.com/rubygems/rubygems/commit/a053b7e4d4
2021-12-28 04:38:31 +09:00