summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-10-01Skip broken strings as the locale encodingNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4915
2021-10-01Replace expanded load path only when modifiedNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4915
2021-10-01Copy path strings as interned stringsNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4915
2021-10-01Fix the encoding of loaded feature names [Bug #18191]Nobuyoshi Nakada
The feature names loaded from the default load paths should also be in the file system encoding. Notes: Merged: https://github.com/ruby/ruby/pull/4915
2021-10-01Use macos-11 instead of macos-latestKazuhiro NISHIYAMA
Notes: Merged: https://github.com/ruby/ruby/pull/4920
2021-10-01Use macos-10.15 and macos-11 instead of macos-latestKazuhiro NISHIYAMA
https://github.blog/changelog/2021-09-29-github-actions-jobs-running-on-macos-latest-are-now-running-on-macos-big-sur-11/ Notes: Merged: https://github.com/ruby/ruby/pull/4920
2021-10-01Define ACTION-IF-UNIVERSAL of `AC_C_BIGENDIAN` [Bug #18156]Nobuyoshi Nakada
As we do not use config.h.in, just define the helper macro instead.
2021-09-30Make Array#min/max optimization respect refined methodsJeremy Evans
Pass in ec to vm_opt_newarray_{max,min}. Avoids having to call GET_EC inside the functions, for better performance. While here, add a test for Array#min/max being redefined to test_optimization.rb. Fixes [Bug #18180] Notes: Merged: https://github.com/ruby/ruby/pull/4911 Merged-By: jeremyevans <code@jeremyevans.net>
2021-09-30Enhanced RDoc for Enumerable (#4917)Burdette Lamar
Treats: #each_with_index #reverse_each #each_entry #each_slice #each_cons #each_with_object Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-10-01* 2021-10-01 [ci skip]git
2021-09-30Use faster any_hash logic in rb_hashJohn Hawthorn
From the documentation of rb_obj_hash: > Certain core classes such as Integer use built-in hash calculations and > do not call the #hash method when used as a hash key. So if you override, say, Integer#hash it won't be used from rb_hash_aref and similar. This avoids method lookups in many common cases. This commit uses the same optimization in rb_hash, a method used internally and in the C API to get the hash value of an object. Usually this is used to build the hash of an object based on its elements. Previously it would always do a method lookup for 'hash'. This is primarily intended to speed up hashing of Arrays and Hashes, which call rb_hash for each element. compare-ruby: ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-linux] built-ruby: ruby 3.1.0dev (2021-09-29T02:13:24Z fast_hash d670bf88b2) [x86_64-linux] # Iteration per second (i/s) | |compare-ruby|built-ruby| |:----------------|-----------:|---------:| |hash_aref_array | 1.008| 1.769| | | -| 1.76x| Notes: Merged: https://github.com/ruby/ruby/pull/4916
2021-09-30marshal.c: don't call the proc with partially initialized objects. (#4866)Jean byroot Boussier
For cyclic objects, it requires to keep a st_table of the partially initialized objects. Notes: Merged-By: byroot <jean.boussier@gmail.com>
2021-09-30Needs `AC_PROG_CC`Nobuyoshi Nakada
Although `AC_PROG_CC_C99` has been obsolete, `AC_PROG_CC` is not and the latter is necessary not to make C++ compiler mandatory. Notes: Merged: https://github.com/ruby/ruby/pull/4914
2021-09-30rb_fiber_raise(): add doxygen卜部昌平
Must not be a bad idea to improve documents. Notes: Merged: https://github.com/ruby/ruby/pull/4912
2021-09-30* 2021-09-30 [ci skip]git
2021-09-29Enhanced RDoc for Enumerable (#4910)Burdette Lamar
Treats: #min #max #minmax #min_by #max_by #minmax_by #include? Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-09-29lldb: Get rid of error at unpreserved encodings [ci skip]Nobuyoshi Nakada
2021-09-29[ruby/reline] Support ed_argument_digit by M+numaycabta
The vi mode can handle "argument number" before an operator or a motion, such as, "3x" (equals "xxx"), and "3l" (equals "lll"). In the emacs mode, GNU Readline can handle argument number with meta key, like "Meta+3 x" (equals "xxx"). https://github.com/ruby/reline/commit/9183cc2e8b
2021-09-28Enhanced RDoc for Enumerable (#4908)Burdette Lamar
Treated: #none? #one? #min Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-09-29Refactor rb_add_event_hook functionS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/4907
2021-09-29* 2021-09-29 [ci skip]git
2021-09-28Enhanced RDoc for Enumerable (#4906)Burdette Lamar
Treats: #partition #group_by #tally #first #sort #sort_by #all? #any? Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-09-28lldb: Show encoding of String [ci skip]Nobuyoshi Nakada
2021-09-28[ruby/ostruct] Strip trailing spacesNobuyoshi Nakada
https://github.com/ruby/ostruct/commit/df1109c18f
2021-09-28Followed up behavior change of setHiroshi SHIBATA
https://github.com/ruby/ruby/commit/f360ebb30606a4143029996073d29d007069428d
2021-09-28Followed up ruby/spec examples for date.Hiroshi SHIBATA
https://github.com/ruby/ruby/commit/f9f7f3a75ec5af4a70e3332f8f5aa300c13432e2
2021-09-28[ruby/did_you_mean] Disable error_highlight when testing did_you_meanYusuke Endoh
Fixes #160 https://github.com/ruby/did_you_mean/commit/93df310873
2021-09-28[rubygems/rubygems] Only disallow FIXME/TODO for first word of gemspec ↵Ellen Marie Dash
description 7890c98 matched the start of each line, whereas this matches the start of the entire string. https://github.com/rubygems/rubygems/commit/432de7b819
2021-09-28[rubygems/rubygems] Add missing `rubygem_push` prerequisiteDavid Rodríguez
Just like all the other tasks using the `built_gem_path`, the `:build` task is a prerequisite for this task too. https://github.com/rubygems/rubygems/commit/d193f9a7f9
2021-09-28[ruby/set] Make Set#pretty_print IRB::ColorPrinter friendlyKazuki Tsujimoto
https://github.com/ruby/set/commit/f467028cdb
2021-09-28[ruby/un] Bump version to 0.2.0Kazuhiro NISHIYAMA
https://github.com/ruby/un/commit/104bc10c57
2021-09-28[ruby/date] Make %v strftime flag use uppercase monthJeremy Evans
%v is supposed to be the VMS date, and VMS date format uses an uppercase month. Ruby 1.8 used an uppercase month for %v, but the behavior was changed without explanation in r31672. Time#strftime still uses an uppercase month for %v, so this change makes Date#strftime consistent with Time#strftime. Fixes [Bug #13810] https://github.com/ruby/date/commit/56c489fd7e
2021-09-28[ruby/drb] 6d890ec5979ec72586dd5f66dd8d33f7a9aefd1e was introduced to ↵Hiroshi SHIBATA
support only Ruby 2.7+ https://github.com/ruby/drb/commit/bec410d184
2021-09-28[ruby/drb] Use omit instead of skip for test-unitHiroshi SHIBATA
https://github.com/ruby/drb/commit/0da149e7a9
2021-09-28[ruby/drb] gemspec: Remove "executables" configurationOlle Jonsson
This gem exposes 0 executables. https://github.com/ruby/drb/commit/ed4d0363e5
2021-09-28[ruby/ostruct] Allow properties to be accessed even when the object is moved ↵rm155
to another Ractor (https://github.com/ruby/ostruct/pull/29) https://github.com/ruby/ostruct/commit/d85639f2f5
2021-09-28Removed needless rake and bundler files for rdocHiroshi SHIBATA
2021-09-28Move platform maintainers listU.Nakamura
2021-09-28[ruby/reline] Ignore NUL by ed_quoted_insertaycabta
https://github.com/ruby/reline/commit/43b7c01a98
2021-09-28Move some function declaration to internal/io.hS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/4901
2021-09-27Enhanced RDoc for Struct (#4895)Burdette Lamar
Revises introductory material. Adds section "What's Here". Adds previously missing documentation for method #deconstruct_keys. Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2021-09-28[ruby/timeout] test that yield is given number of secondsJohn Bachir
https://github.com/ruby/timeout/commit/ec5a614334
2021-09-28* 2021-09-28 [ci skip]git
2021-09-28Set the locale encoding to UTF-8Nobuyoshi Nakada
Cirrus CI sets the environment variable `CIRRUS_COMMIT_MESSAGE` from the pull request description. Notes: Merged: https://github.com/ruby/ruby/pull/4900
2021-09-28Revert "Unexport `CIRRUS_COMMIT_MESSAGE`"Nobuyoshi Nakada
This reverts commit 09863a4cd8eb40b34b310083d8cdda899ab5bcc1. Notes: Merged: https://github.com/ruby/ruby/pull/4900
2021-09-27Unexport `CIRRUS_COMMIT_MESSAGE`Nobuyoshi Nakada
Cirrus CI sets this environment variable from the pull request description. However it does not seem any locales other than C are installed, the default external encoding is US-ASCII. That means this environment variable will be an invalid byte sequence, and some tests fail.
2021-09-27Show failed environment variablesNobuyoshi Nakada
2021-09-27[ruby/timeout] Freeze VERSIONrm155
https://github.com/ruby/timeout/commit/ac7b010c41
2021-09-27Add printf-style format attribute to oniguruma functionsNobuyoshi Nakada
Also make the format string compatible with literal strings which are const arrays of "plain" chars. Notes: Merged: https://github.com/ruby/ruby/pull/4899 Merged-By: nobu <nobu@ruby-lang.org>
2021-09-27[ruby/base64] Avoid unnecessary string duplicationJoao Fernandes
String#ljust returns a new string, so whenever we need to add padding, we can replace "-/" in place with String#tr! and avoid creating yet another copy of the string. https://github.com/ruby/base64/commit/6401ef5824