summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-15Add a missing semicolon.Takashi Tamura
Notes: Merged: https://github.com/ruby/ruby/pull/4180
2021-02-14Make global ruby namespace usage explicitMarvin Schmidt
If the use of the ruby namespace isn't prepended by `::` to make it explicit that the global ruby namespace is referenced here, it can clash with other non-global namespace named ruby, e.g. ``` // declaration namespace myproject { namespace ruby { // my ruby classes } } // implementation using namespace myproject; [...] rb_define_method(...); [...] ``` leads to the following error: ``` ../ruby/choice.cc: In function 'void {anonymous}::do_register_choice()': ../ruby/choice.cc:342:9: error: reference to 'ruby' is ambiguous 342 | rb_define_method(c_choices, "each", RUBY_FUNC_CAST(&choices_each), 0); | ^~~~~~~~~~~~~~~~ In file included from ../ruby/choice.cc:20: ../ruby/paludis_ruby.hh:53:15: note: candidates are: 'namespace paludis::ruby { }' 53 | namespace ruby | ^~~~ In file included from /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby/backward/2/stdalign.h:23, from /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby/defines.h:77, from /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby/ruby.h:23, from /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby.h:38, from ../ruby/paludis_ruby.hh:44, from ../ruby/choice.cc:20: /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby/internal/stdalign.h:92:11: note: 'namespace ruby { }' 92 | namespace ruby { | ^~~~ In file included from /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby/internal/anyargs.h:83, from /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby/ruby.h:24, from /usr/x86_64-pc-linux-gnu/include/ruby-3.0/ruby.h:38, from ../ruby/paludis_ruby.hh:44, from ../ruby/choice.cc:20: ../ruby/choice.cc:342:9: error: '::define' has not been declared 342 | rb_define_method(c_choices, "each", RUBY_FUNC_CAST(&choices_each), 0); | ^~~~~~~~~~~~~~~~ ../ruby/choice.cc:344:9: error: reference to 'ruby' is ambiguous 344 | rb_define_method(c_choices, "find_by_name_with_prefix", RUBY_FUNC_CAST(&choices_find_by_name_with_prefix), 1); | ^~~~~~~~~~~~~~~~ ``` Notes: Merged: https://github.com/ruby/ruby/pull/4185 Merged-By: nobu <nobu@ruby-lang.org>
2021-02-14Fixed codepage for utime [Bug #17626]xtkoba (Tee KOBAYASHI)
Should use the given codepage argument. Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
2021-02-14Set verbose flag at retryingNobuyoshi Nakada
2021-02-14Directory mapping for default gemsNobuyoshi Nakada
To uniform directory structures, sometimes files are gathered in different directory than the upstreams, executable files in `libexec` for instance. Re-map these files to consistent with the upstreams.
2021-02-14Revert following rbinstall.rb changesNobuyoshi Nakada
Because unexpected names are listed in gemspec files. * "Fix gemspec only case" fc56b96b09e477686975c978142e3af9179219cd * "Refined installation of gemspecs placed other than ext and lib" 31f4dec6373c15a58899f8b86e35d48a7d813bf6
2021-02-14Remove binstubs which are generated by `Gem::Installer` now.Vít Ondruch
There is no real reason to carry these around, since they can be generated during the installation. The `Gem::Installer` generates up to date date stubs, where the racc stubs were of older format and regenerated anyway.
2021-02-14Use UnpackedInstaller to install default gems.Vít Ondruch
Use UnpackedInstaller for installation of default gems similarly it is already used to install bundled gems. This allows to reuse RubyGems functionality instead of custom code full of exceptions.
2021-02-14Fix gemspec only caseNobuyoshi Nakada
2021-02-14* 2021-02-14 [ci skip]git
2021-02-14Refined installation of gemspecs placed other than ext and libNobuyoshi Nakada
2021-02-13opt_equality_by_mid for rb_equal_optKoichi Sasada
This patch improves the performance of sequential and parallel execution of rb_equal() (and rb_eql()). [Bug #17497] rb_equal_opt (and rb_eql_opt) does not have own cd and it waste a time to initialize cd. This patch introduces opt_equality_by_mid() to check equality without cd. Furthermore, current master uses "static" cd on rb_equal_opt (and rb_eql_opt) and it hurts CPU caches on multi-thread execution. Now they are gone so there are no bottleneck on parallel execution. Notes: Merged: https://github.com/ruby/ruby/pull/4177
2021-02-13* 2021-02-13 [ci skip]git
2021-02-12[Fixes #17622] Mark and move the previous epPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/4175
2021-02-12Thread::Queue.new should accept an Enumerable [Feature #17327]Nobuyoshi Nakada
Enumerable implements #to_a but not #to_array.
2021-02-12Define rb_to_array which converts with to_aNobuyoshi Nakada
2021-02-12correct the result of casecmp? examples [ci skip]Sarun Rattanasiri
Notes: Merged: https://github.com/ruby/ruby/pull/4174 Merged-By: nobu <nobu@ruby-lang.org>
2021-02-11Make a cyclic prepend not modify ancestors for the receiverJeremy Evans
Check for cyclic prepend before making any changes. This requires scanning the module ancestor chain twice, but in general modules do not have large numbers of ancestors. Notes: Merged: https://github.com/ruby/ruby/pull/4165
2021-02-12* 2021-02-12 [ci skip]git
2021-02-12[ruby/irb] Fix inverse separator conditionNobuyoshi Nakada
https://github.com/ruby/irb/commit/33f933196f
2021-02-11Fixed time_t conversion modifiers for debugNobuyoshi Nakada
2021-02-11Merged too-short salt conditions instead of UNREACHABLE_RETURNNobuyoshi Nakada
2021-02-11[DOC] Improved regexp.rdoc [ci skip]Nobuyoshi Nakada
* Sub-sectioned "Repetition" section * Added examples of "Possessive match"
2021-02-11Comment in sh needs to be the beginning of a wordNobuyoshi Nakada
2021-02-11[ruby/irb] The command "irb_info" should show RUBY_PLATFORMaycabta
https://github.com/ruby/irb/commit/39d1cd874f
2021-02-11[ruby/irb] Suppress colorize on Windows testsaycabta
https://github.com/ruby/irb/commit/5be9354cf9
2021-02-11[ruby/irb] Suppress error when File::ALT_SEPARATOR is nilaycabta
https://github.com/ruby/irb/commit/96accf3b95
2021-02-11The Queue constructor should take an initial set of objectsChris Seaton
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Notes: Merged: https://github.com/ruby/ruby/pull/4140 Merged-By: nobu <nobu@ruby-lang.org>
2021-02-11Do not run File.write while Ractors are runningTakashi Kokubun
also make sure all local variables have the __bmdv_ prefix.
2021-02-10Add a benchmark-driver runner for Ractor (#4172)Takashi Kokubun
* Add a benchmark-driver runner for Ractor * Process.clock_gettime(Process:CLOCK_MONOTONIC) could be slow in Ruby 3.0 Ractor * Fetching Time could also be slow * Fix a comment * Assert overriding a private method Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2021-02-11Fix 404 linkS-H-GAMELINKS
Notes: Merged: https://github.com/ruby/ruby/pull/4169
2021-02-10Update class documentation for StringScannerJeremy Evans
The [] wasn't being displayed, and try to fix formatting for bol? and << (even if they aren't linked). Fixes [Bug #17620]
2021-02-11* 2021-02-11 [ci skip]git
2021-02-10Don't document that Thread#group can return nilJeremy Evans
Thread's are assigned a group at initialization, and no API exists for them to unassign them from a group without assigning them to another group. Fixes [Bug #17505] Notes: Merged: https://github.com/ruby/ruby/pull/4163
2021-02-10[DOC] Update README files to use autoreconf [ci skip]Nobuyoshi Nakada
2021-02-10Compile debugging code for time alwaysNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4168
2021-02-10Fixed the signature of find_time_numguess_getterNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/4168
2021-02-10Fixed race in dtoa [Bug #17612]Nobuyoshi Nakada
Fixed the race condition when replacing `freelist` entry with its chained next element. At acquiring an entry, hold the entry once with the special value, then release by replacing it with the next element again after acquired. If another thread is holding the same entry at that time, spinning until the entry gets released. Co-Authored-By: Koichi Sasada <ko1@atdot.net> Notes: Merged: https://github.com/ruby/ruby/pull/4167
2021-02-10Simple benchmark of Float#to_sNobuyoshi Nakada
2021-02-10.github/workflows/compilers.yml: clang-13卜部昌平
LLVM made release/122.x branch. Its master is now version 12. Notes: Merged: https://github.com/ruby/ruby/pull/4166
2021-02-10[ruby/zlib] Don't use gemspec for gem dependecyHiroshi SHIBATA
https://github.com/ruby/zlib/commit/7d3d19710f
2021-02-10[ruby/zlib] test-unit didn't provide __name__ attributeHiroshi SHIBATA
https://github.com/ruby/zlib/commit/7d3fc1f325
2021-02-09Fix documentation for Module#ruby2_keywordsJeremy Evans
It returns nil, not self. Fixes [Bug #17560]
2021-02-09Fix broken linkUse amazing-print instead
The document should point to doc/syntax/comments.rdoc (with an "s") as there currently no `doc/syntax/comment.rdoc` Notes: Merged: https://github.com/ruby/ruby/pull/4162
2021-02-10* 2021-02-10 [ci skip]git
2021-02-10vm_dump.c: Dump machine registers on RISC-V LinuxYusuke Endoh
Fixes [Bug #17615] Co-Authored-By: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-02-09Improve the wording surrounding `Proc#isolate`Use amazing-print instead
This change moves the statement that `Proc#isolate` isn't yet exposed for Ruby users to the first time the method is mentioned. This is so that readers don't waste time trying to look it up in Ruby docs. There was also unnecessary duplication: ``` Paragraph 1: "Given block will be isolated from outer scope by Proc#isolate." Paragraph 2: "Given block will be isolated by Proc#isolate method" ``` So I combined the two sentences and slightly improved the wording for clarity. Notes: Merged: https://github.com/ruby/ruby/pull/4161
2021-02-09[ruby/console] Updated dependNobuyoshi Nakada
2021-02-09[ruby/io-console] Fixed typoNobuyoshi Nakada
2021-02-09[ruby/io-console] Fixed regression against 3.0Nobuyoshi Nakada