summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-04-25[DOC] mention assignment expression valuesNobuyoshi Nakada
2022-04-25Update to ruby/spec@3affe1eBenoit Daloze
2022-04-25Update to ruby/mspec@215497eBenoit Daloze
2022-04-25Fix ARGF#lineno to return Integer as documentedJean Boussier
[Bug #18753] Notes: Merged: https://github.com/ruby/ruby/pull/5841
2022-04-25[ruby/rdoc] Fix a typo [ci skip]Kazuhiro NISHIYAMA
https://github.com/ruby/rdoc/commit/b42c4a2fe2
2022-04-24More details for Rational literals (#5840)Burdette Lamar
Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-25* 2022-04-25 [ci skip]git
2022-04-24Reuse `rb_proc_arity`S.H
Notes: Merged: https://github.com/ruby/ruby/pull/5823 Merged-By: jeremyevans <code@jeremyevans.net>
2022-04-24* 2022-04-24 [ci skip]git
2022-04-24add description for IO.nonblock=.Tanaka Akira
2022-04-23Remove unnecessary sortKazuhiro NISHIYAMA
Because `Dir.[]` returns the sorted results since Ruby 3.0. Notes: Merged: https://github.com/ruby/ruby/pull/5832
2022-04-22Avoid defining the same test class in multiple filesJeremy Evans
Should fix issues with parallel testing sometimes not running all tests. This should be viewed skipping whitespace changes. Fixes [Bug #18731] Notes: Merged: https://github.com/ruby/ruby/pull/5839
2022-04-22Fix build if UBF_TIMER == UBF_TIMER_PTHREADJeremy Evans
2022-04-22rbinstall: Also do `Gem.ruby` patching for unpacked bundled gemsAlan Wu
Pointing `Gem.ruby` to the newly installed ruby gives mkmf the right inputs to build extensions in bundled gems. Previously, this patching was only done for compressed bundled gems. This patch also prevents `tool/fake.rb` from propagating to the child process running mkmf for the native extension. The way `tool/fake.rb` changes mkmf variables using `Kernel#trace_var` created spooky action at a distance which made debugging difficult. AppVeyor Windows CI started to fail starting with 8a3663789c52ec5635194656af6b69d3d03120ee because it enabled extension building for bundled gems on mswin. This patch should address the CI failures. Notes: Merged: https://github.com/ruby/ruby/pull/5838
2022-04-23introduce struct `rb_native_thread`Koichi Sasada
`rb_thread_t` contained `native_thread_data_t` to represent thread implementation dependent data. This patch separates them and rename it `rb_native_thread` and point it from `rb_thraed_t`. Now, 1 Ruby thread (`rb_thread_t`) has 1 native thread (`rb_native_thread`). Notes: Merged: https://github.com/ruby/ruby/pull/5836
2022-04-23* 2022-04-23 [ci skip]git
2022-04-23refactoring thread inits in vm.cKoichi Sasada
* `th_init` accepts vm and ractor. * remove `ruby_thread_init` because it is duplicated with `th_init`. * add some comments. Notes: Merged: https://github.com/ruby/ruby/pull/5834
2022-04-21Uncomment code to raise LocalJumpError for yield across thread through enumJeremy Evans
Not sure if this is the correct fix. It does raise LocalJumpError in the yielding thread as you would expect, but the value yielded to the calling thread is still yielded without an exception. Fixes [Bug #18649] Notes: Merged: https://github.com/ruby/ruby/pull/5692
2022-04-22Use https for wss testHiroshi SHIBATA
2022-04-22[ruby/uri] Include RFC2396_REGEXP module directlyPeter Zhu
REGEXP is defined as RFC2396_REGEXP in lib/uri/common.rb. If we include REGEXP then a broken URL is generated in rdoc for URI and URI::MailTo. https://github.com/ruby/uri/commit/ed6ded9c80
2022-04-22[ruby/uri] Feat: Support WSSOKURA Masafumi
There was a file for WSS so I added one line of `require_relative` to make it work. Now `URI.parse('wss://example.com')` returns `URI::WS`. https://github.com/ruby/uri/commit/ff8a103564
2022-04-22* 2022-04-22 [ci skip]git
2022-04-22rename thread internal namingKoichi Sasada
Now GVL is not process *Global* so this patch try to use another words. * `rb_global_vm_lock_t` -> `struct rb_thread_sched` * `gvl->owner` -> `sched->running` * `gvl->waitq` -> `sched->readyq` * `rb_gvl_init` -> `rb_thread_sched_init` * `gvl_destroy` -> `rb_thread_sched_destroy` * `gvl_acquire` -> `thread_sched_to_running` # waiting -> ready -> running * `gvl_release` -> `thread_sched_to_waiting` # running -> waiting * `gvl_yield` -> `thread_sched_yield` * `GVL_UNLOCK_BEGIN` -> `THREAD_BLOCKING_BEGIN` * `GVL_UNLOCK_END` -> `THREAD_BLOCKING_END` * removed * `rb_ractor_gvl` * `rb_vm_gvl_destroy` (not used) There are GVL functions such as `rb_thread_call_without_gvl()` yet but I don't have good name to replace them. Maybe GVL stands for "Greate Valuable Lock" or something like that. Notes: Merged: https://github.com/ruby/ruby/pull/5814
2022-04-21[ruby/pathname] Implement Pathname#lutimeAkinori MUSHA
https://github.com/ruby/pathname/commit/268cb5acff
2022-04-21Private local variables should shadow outer variables [Bug #18629]Nobuyoshi Nakada
2022-04-21[Win32] allow pipe in flockNobuyoshi Nakada
2022-04-21* 2022-04-21 [ci skip]git
2022-04-21[Doc] correct my understanding about nonblocking mode卜部昌平
I was wrong. Nonblocking mode nowadays does not interface with IO#read. Document updated. [ci skip]
2022-04-20[CI] resort to clang-14 (#5824)卜部昌平
* [CI] resort to clang-14 Clang 15 + --std=c2x combination seems actively developed now. Might better wait for them to mature * also change default compiler Notes: Merged-By: shyouhei <shyouhei@ruby-lang.org>
2022-04-20Added assert_true and assert_false same as test-unit gemHiroshi SHIBATA
2022-04-20[ruby/net-http] Feature detect to make net/http usable with JRubyKarol Bucek
Handle missing session_new_cb= and do not call session_cache_mode=, as JRuby SSL does not support these methods. https://github.com/ruby/net-http/commit/3237ef4d8c
2022-04-20Enable C backtraces on Apple silicon (#5770)Jean byroot Boussier
Co-authored-by: Jean Boussier <jean.boussier@gmail.com> Notes: Merged-By: nurse <naruse@airemix.jp>
2022-04-20* 2022-04-20 [ci skip]git
2022-04-20[ruby/net-http] Add ignore_eof access to HTTP and HTTPResponseJeremy Evans
The ignore_eof setting on HTTPResponse makes it so an EOFError is raised when reading bodies with a defined Content-Length, if the body read was truncated due to the socket be closed. The ignore_eof setting on HTTP sets the values used in responses that are created by the object. For backwards compatibility, the default is for both settings is true. However, unless you are specifically tested for and handling truncated responses, it's a good idea to set ignore_eof to false so that errors are raised for truncated responses, instead of those errors silently being ignored. Fixes [Bug #14972] https://github.com/ruby/net-http/commit/4d47e34995
2022-04-19[DOC] adjust indentNobuyoshi Nakada
2022-04-19Resolve several markedown warningsTim Smith
- Spaces before and after blocks. - Single spaces after sentences everywhere Signed-off-by: Tim Smith <tsmith@mondoo.com> Notes: Merged: https://github.com/ruby/ruby/pull/5816
2022-04-19Github -> GitHubTim Smith
Fix the case of GitHub in various places Signed-off-by: Tim Smith <tsmith@mondoo.com> Notes: Merged: https://github.com/ruby/ruby/pull/5817
2022-04-18[DOC] Enhanced RDoc for MatchData (#5822)Burdette Lamar
Treats: #to_s #named_captures #string #inspect #hash #== Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-18Enhanced RDoc for MatchData (#5821)Burdette Lamar
Treats: #[] #values_at Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-18Enhanced RDoc for MatchData (#5820)Burdette Lamar
Treats: #pre_match #post_match #to_a #captures Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-18[DOC] Enhanced RDoc for MatchData (#5819)Burdette Lamar
Treats: #begin #end #match #match_length Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-18[DOC] Enhanced RDoc for MatchData (#5818)Burdette Lamar
Treats: #regexp #names #size #offset Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-19* 2022-04-19 [ci skip]git
2022-04-18[DOC] Enhanced RDoc for Regexp (#5815)Burdette Lamar
Treats: ::new ::escape ::try_convert ::union ::last_match Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2022-04-18Fix the wrong index of the previous component [Bug #18739]Nobuyoshi Nakada
2022-04-18[DOC] Use consistent terms [Bug #18680]Nobuyoshi Nakada
2022-04-18[ruby/bigdecimal] Fix docsPeter Zhu
rdoc parses f[i] as a link, which results in a broken link. https://github.com/ruby/bigdecimal/commit/a18522e9ca
2022-04-18[ruby/bigdecimal] Adjust a local variable type to exponentNobuyoshi Nakada
https://github.com/ruby/bigdecimal/commit/70146fb6ad
2022-04-18[ruby/tsort] Small tweaks for easier vendoringDavid Rodríguez
Bundler vendors this file and we have some tools to automatically prepend the `Bundler::` namespace so that the vendored version does not collide with the stdlib version. However, due to how methods are defined, it's hard for our vendoring tool to do the right thing. I think this makes the code simpler and things easier for us too. https://github.com/ruby/tsort/commit/7088a7c814
2022-04-18* 2022-04-18 [ci skip]git