70673 Commits

Author SHA1 Message Date
Victor Shepelev
e7c2d5cc02
[DOC] Adjust IO::Buffer docs (#5374) 2022-01-02 21:43:01 +13:00
Nobuyoshi Nakada
1136985cc0 [ruby/etc] Note for rb_deprecate_constant [ci skip]
https://github.com/ruby/etc/commit/f87fe7ad93
2022-01-02 15:16:43 +09:00
git
30c03f9e93 Update default gems list at 6f53425825eb71d71c7fdd424801a2 [ci skip] 2022-01-02 06:06:11 +00:00
Nobuyoshi Nakada
6f53425825
NEWS: Removed constants 2022-01-02 15:05:02 +09:00
Nobuyoshi Nakada
462079611a [ruby/etc] Remove deprecate constants under Struct
https://github.com/ruby/etc/commit/143edbd215
2022-01-02 15:03:29 +09:00
Nobuyoshi Nakada
eb294491c0 [ruby/etc] bump up to 1.4.0
https://github.com/ruby/etc/commit/ca41f182f6
2022-01-02 15:03:05 +09:00
Nobuyoshi Nakada
91d09ca95b [ruby/etc] bump up to 1.3.1
https://github.com/ruby/etc/commit/82dd69a4cf
2022-01-02 14:52:31 +09:00
Nobuyoshi Nakada
bb0a725f1f [ruby/etc] [DOC] Refine Etc::Passwd#passwd description
https://github.com/ruby/etc/commit/17b99fe42e
2022-01-02 14:52:28 +09:00
Nobuyoshi Nakada
314effdf77 [ruby/etc] [DOC] Document Etc::Passwd and Etc::Group as classes
https://github.com/ruby/etc/commit/106429f10b
2022-01-02 14:52:27 +09:00
Nobuyoshi Nakada
9135a3e864 [ruby/etc] [DOC] Add document task
https://github.com/ruby/etc/commit/8c8c6198e2
2022-01-02 14:52:25 +09:00
Nobuyoshi Nakada
546dbcfe69
[ruby/etc] Update ruby versions
https://github.com/ruby/etc/commit/959416b18a
2022-01-02 13:29:01 +09:00
aycabta
76181ae940 [ruby/reline] Check capname of tigetstr/tigetflag/tigetnum
Incorrect arguments can cause SEGV.

https://github.com/ruby/reline/commit/a58748bcf9
2022-01-02 11:44:07 +09:00
aycabta
f375b6414d [ruby/reline] Add test_tigetstr_with_error
https://github.com/ruby/reline/commit/1ca779740a
2022-01-02 11:44:06 +09:00
git
b2a88063d6 Update default gems list at 6d1b406dc8dea6f618ae14899dc6b7 [ci skip] 2022-01-02 02:29:48 +00:00
aycabta
6d1b406dc8 [ruby/reline] Version 0.3.1
https://github.com/ruby/reline/commit/9ab5850444
2022-01-02 11:24:14 +09:00
aycabta
85f304b931 [ruby/reline] Implement Reline::Terminfo.tigetnum
https://github.com/ruby/reline/commit/695212d5d2
2022-01-02 10:27:09 +09:00
Nobuyoshi Nakada
071653ecd7
Run the prerequisites of test-bundled-gems in order 2022-01-02 02:04:05 +09:00
git
fa5b32f13c * 2022-01-02 [ci skip] 2022-01-02 00:40:00 +09:00
aycabta
530586fafc [ruby/reline] Fix the difinition of tigetflag() in comment...
https://github.com/ruby/reline/commit/af4d77ba09
2022-01-02 00:39:45 +09:00
aycabta
0af9eab08e [ruby/reline] Consolidate tests that were unnecessarily divided
https://github.com/ruby/reline/commit/62eec42e4a
2022-01-01 23:13:32 +09:00
aycabta
7deee741ab [ruby/reline] Remove unnecessary qualifiers on definition of comments
https://github.com/ruby/reline/commit/abc1e4ee88
2022-01-01 23:12:07 +09:00
aycabta
6300c4dcc3 [ruby/reline] Implement Reline::Terminfo.tigetflag
https://github.com/ruby/reline/commit/0451ed7a28
2022-01-01 23:06:53 +09:00
Nobuyoshi Nakada
fae0b66431 Remove deprecated Random::DEFAULT [Feature #17351] 2022-01-01 18:55:52 +09:00
Nobuyoshi Nakada
84891bffe8 Remove unnecessary Random::DEFAULT expectations
The respond_to expectation just suffice as duck-typing.
2022-01-01 18:55:52 +09:00
Nobuyoshi Nakada
789da481fc
Prefer RBOOL 2022-01-01 17:02:04 +09:00
Nobuyoshi Nakada
069cca6f74
Negative RBOOL usage 2022-01-01 17:02:04 +09:00
Nobuyoshi Nakada
77ee47188e
Make the internal predict int_zero_p return a bool 2022-01-01 17:01:40 +09:00
Samuel Williams
243320d22f
Fix incorrect minimum read length. (#5353) 2022-01-01 20:23:47 +13:00
John Hawthorn
5414de4b6e YJIT: Fix SP index with optarg and unordered kwarg
Previously when we were calling a method with an optional argument and
multiple keywords arguments which weren't in the order the receiver
expected we would use the wrong SP index to rearrange them.

Fixes Bug #18453
2021-12-31 17:30:47 -08:00
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