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

70256 Коммитов

Автор SHA1 Сообщение Дата
Baron Bloomer a8b11b5cdd
[ruby/logger] Changes to datetime formatting
Formatting a datetime should only pertain to itself and valid datetimes do not contain a space. Should there be a desire to show show a space between the datetime and the process pid in the formatted log, this formatting logic should take place there.
Furthermore, the default datetime format is moved to a class variable to allowing this variable to be overwritten by subclasses.

https://github.com/ruby/logger/commit/7cbd434349
2021-12-18 08:38:57 +09:00
Alan Wu cc5fcae170 YJIT: Remove double check for block arg handling
Inline and remove iseq_supported_args_p(iseq) to remove a potentially
dangerous double check on `iseq->body->param.flags.has_block` and
`iseq->body->local_iseq == iseq`. Double checking should be fine at the
moment as there should be no case where we perform a call to an iseq
that takes a block but `local_iseq != iseq`, but such situation might
be possible when we add support for calling into BMETHODs, for example.
Inlining also has the benefit of mirroring the interpreter's code for
blockarg setup in `setup_parameters_complex()`, making checking for
parity easier.

Extract `vm_ci_flag(ci) & VM_CALL_KWARG` into a const local for brevity.
Constify `doing_kw_call` because we can.
2021-12-17 15:26:04 -08:00
John Hawthorn c2197bf821 YJIT: Fix check for required kwargs
Previously, YJIT would not check that all the required keywords were
specified in the case that there were optional arguments specified. In
this case YJIT would incorrectly call the method with invalid arguments.
2021-12-17 15:26:04 -08:00
John Hawthorn 83aa68447c YJIT: Allow iseq with both opt and kwargs
Previously we mirrored the fast paths the interpreter had for having
only one of kwargs or optional args. This commit aims to combine the
cases and reduce complexity.

Though this allows calling iseqs which have have both optional and
keyword arguments, it requires that all optional arguments are specified
when there are keyword arguments, since unspecified optional arguments
appear before the kwargs. Support for this can be added a in a future
PR.
2021-12-17 15:26:04 -08:00
Burdette Lamar 5588aa79d4
What's Here for Symbol (#5289)
* What's Here for Symbol
2021-12-17 17:02:12 -06:00
git 6a1365d725 Update bundled gems list at 2021-12-17 2021-12-17 19:21:56 +00:00
Koichi Sasada dbb5abc45b debug.gem 1.4.0 2021-12-18 04:21:18 +09:00
git 74b58dd690 Update bundled gems list at 2021-12-17 2021-12-17 16:18:25 +00:00
git 55a93533e8 * 2021-12-18 [ci skip] 2021-12-18 01:18:08 +09:00
Nobuyoshi Nakada 73d44512e8
[DOC] Update bundled gems list 2021-12-18 01:17:38 +09:00
Kazuhiro NISHIYAMA 9ac52e8ed3
Fix a typo [ci skip] 2021-12-17 22:30:23 +09:00
Burdette Lamar f7e266e6d2
Enhanced RDoc for case mapping (#5245)
Adds file doc/case_mapping.rdoc, which describes case mapping and provides a link target that methods doc can link to.

Revises:

    String#capitalize
    String#capitalize!
    String#casecmp
    String#casecmp?
    String#downcase
    String#downcase!
    String#swapcase
    String#swapcase!
    String#upcase
    String#upcase!
    Symbol#capitalize
    Symbol#casecmp
    Symbol#casecmp?
    Symbol#downcase
    Symbol#swapcase
    Symbol#upcase
2021-12-17 06:05:31 -06:00
Yusuke Endoh 4639336b05 NEWS.md: Fix a typo 2021-12-17 20:34:25 +09:00
David Rodríguez 8d29d1292b [rubygems/rubygems] Improve errors a bit more
https://github.com/rubygems/rubygems/commit/f481e8f41a
2021-12-17 16:35:20 +09:00
David Rodríguez 1537471871 [rubygems/rubygems] Share gem not found logic with transitive dependencies too
https://github.com/rubygems/rubygems/commit/e4a1a9663d
2021-12-17 16:35:20 +09:00
David Rodríguez f3b50507c7 [rubygems/rubygems] Remove unnecessary line break
https://github.com/rubygems/rubygems/commit/84e2d6a955
2021-12-17 16:35:19 +09:00
David Rodríguez 79f72a4540 [rubygems/rubygems] Fix crash when no matching variants are found for the current platform
If we are resolving a dependency against a particular platform, and
there are no platform specific variants of the candidates that match
that platform, we should not consider those candidates.

https://github.com/rubygems/rubygems/commit/f6077fe27d
2021-12-17 16:35:18 +09:00
David Rodríguez c710cdb905 [rubygems/rubygems] Improve error message if only platform doesn't match
https://github.com/rubygems/rubygems/commit/077e3c2e4d
2021-12-17 16:35:18 +09:00
David Rodríguez af4b4fd19b [rubygems/rubygems] Improve resolver error messages
Use a more standard naming for gems.

https://github.com/rubygems/rubygems/commit/75121e83f1
2021-12-17 16:35:17 +09:00
Koichi Sasada ce6fc20f97 data type should be `static` 2021-12-17 15:46:50 +09:00
Koichi Sasada c8f2766ae2 `RUBY_DEFAULT_FREE` is not needed.
pointed by @nobu.
2021-12-17 15:46:50 +09:00
Koichi Sasada 37bd795cf8 `ENV` ivars should not be accessible from ractors
The `ENV` object can have instance variables like other objects,
but they should be accessed only on the main ractor.

fix https://github.com/ruby/ruby/pull/5263#issuecomment-995585766
2021-12-17 15:46:50 +09:00
Masataka Pocke Kuwabara d524b9dec9
NEWS.md: Add link to `rbs collection` documentation 2021-12-17 13:54:23 +09:00
Yusuke Endoh 58333c94d5 NEWS.md: Describe changes of RBS 2021-12-17 13:46:09 +09:00
Nobuyoshi Nakada 2585ff30d7
Send the message for s390x to stderr [ci skip]
Parallel worker's stdout is captured as the control protocol.
2021-12-17 11:28:06 +09:00
git c4c78343e0 Update stdlib version at 693a561cfa [ci skip] 2021-12-16 17:58:00 +00:00
Nobuyoshi Nakada 693a561cfa
[DOC] Exclude non-updated stdlibs since the previous release 2021-12-17 02:41:17 +09:00
git b746b713e5 * 2021-12-17 [ci skip] 2021-12-17 01:56:16 +09:00
Nobuyoshi Nakada 06bdb41c45
dln.c: refine preprocessor conditions by USE_DLN_DLOPEN and _WIN32 2021-12-17 00:44:54 +09:00
Lars Kanis fff058a8d6 Add description of ruby header files to extension.rdoc 2021-12-16 20:10:55 +09:00
S.H 9b187fec58
Add `rb_parser_set_pos` function
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-authored-by: Marivaldo Cavalheiro <marivaldo@gmail.com>
2021-12-16 20:03:44 +09:00
Matheus Richard 41d4902c27 Improve wording on NEWS.md 2021-12-16 20:02:07 +09:00
Nobuyoshi Nakada cf54de637c
[DOC] random number by range 2021-12-16 18:00:23 +09:00
Nobuyoshi Nakada 5bf0060e0a
[DOC] Skip tests if only documents change [ci skip]
Run only checks for source code.  Currently, our CIs do almost
nothing about the documents.
2021-12-16 17:50:20 +09:00
Nobuyoshi Nakada 32ee6f80ee Restore the global random seed 2021-12-16 17:44:12 +09:00
Nobuyoshi Nakada 6c87f8fc29 Fix Kernel#srand and Kernel#rand descriptions [ci skip]
Actually used methods are all instance method, not the singleton
method.
2021-12-16 17:44:12 +09:00
Nobuyoshi Nakada 18fef09a02 Refine wording about the default random seed [ci skip] 2021-12-16 17:44:12 +09:00
Yuta Saito f1a02ebfb9 Install gemspec even though no .rb and no .so
When building with --with-static-linked-ext, some exts without rb file
doesn't produce neither .so or .rb under .ext/common. Therefore, change
rbinstall.rb to install gemspec even if there is no .so or .rb for that
case.
2021-12-16 16:17:41 +09:00
Yuta Saito 332d1e52e6 btest: assign $stderr = STDOUT instead of IO#reopen to be more portable
`IO#reopen` internally uses dup syscall but some platforms don't support
the syscall. re-assigning `$stderr` is enough to capture the interpreter's
errors and warnings.
2021-12-16 16:16:40 +09:00
Nobuyoshi Nakada 69a7eaae38
Use `to_s` and `puts` in tests
`to_s` has the explict specification while `inspect` is often
vague.
2021-12-16 15:12:12 +09:00
Nobuyoshi Nakada 05c9dfe23a
Suppress empty-body warning 2021-12-16 14:19:28 +09:00
Takashi Kokubun 02ba0bda7e
Remove RubyVM::JIT (#5275)
[Feature #18349] reverts [Feature #17490]
2021-12-15 20:02:30 -08:00
git 40cc8e9231 * 2021-12-16 [ci skip] 2021-12-16 06:13:40 +09:00
Alan Wu 7e27de2f1e
YJIT: Remove unused branch_t::src_ctx field
No one reads it at the moment and it's heap allocated.
2021-12-15 16:13:23 -05:00
git fbd21a81f3 Update stdlib version at 333865e56f [ci skip] 2021-12-15 12:52:15 +00:00
Nobuyoshi Nakada 333865e56f
Workaround for reline.gemspec
This file searches "lib/reline/version.rb" in the same directory,
"lib/reline".  As no such path, the file in the default load path
is loaded unexpectedly.
2021-12-15 21:47:41 +09:00
Hiroshi SHIBATA 1694190833
Skip test_operating_system_customizing_default_dir for failing with rubyci 2021-12-15 21:32:32 +09:00
git 1fc80754dd Update stdlib version at 9f87c0cc6d [ci skip] 2021-12-15 10:47:15 +00:00
David Rodríguez 9f87c0cc6d [rubygems/rubygems] Pass `:bimode` explicitly to `File.open`
The `File::BINARY` flag is apparently ignored due to a ruby bug, and
thus writing can cause encoding issues.

https://github.com/rubygems/rubygems/commit/db4efbebf2
2021-12-15 19:46:44 +09:00
David Rodríguez c2dbdf3067 [rubygems/rubygems] Extract a helper to temporarily modify internal encoding
https://github.com/rubygems/rubygems/commit/93051fd2aa
2021-12-15 19:46:43 +09:00