summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-09-13Put typeprof.gemspecYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11612
2024-09-13Try to find bundled gem version from lib/*/version.rbYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11612
2024-09-13Use the development version of typeprof in test-bundled-gemsYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/11612
2024-09-13typo otherBasis -> orthoBasisaoki1980taichi
The original function name in ao.c was orthoBasis. I guess the function is generating orthonormal basis (https://en.wikipedia.org/wiki/Orthonormal_basis). Notes: Merged: https://github.com/ruby/ruby/pull/6056
2024-09-13Dont't warn reline called from irb, reline is already declared at irb gemspecHiroshi SHIBATA
2024-09-13[ruby/net-http] Prevent warningsYusuke Endoh
``` /home/chkbuild/chkbuild/tmp/build/20240913T003003Z/ruby/test/net/http/utils.rb:32: warning: assigned but unused variable - e /home/chkbuild/chkbuild/tmp/build/20240913T003003Z/ruby/test/net/http/utils.rb:61: warning: assigned but unused variable - version /home/chkbuild/chkbuild/tmp/build/20240913T003003Z/ruby/test/net/http/utils.rb:124: warning: method redefined; discarding old query ``` https://github.com/ruby/net-http/commit/6f818346ce
2024-09-13Prevent a warning: assigned but unused variable - exp_eventsYusuke Endoh
2024-09-13Prevent a warning: assigned but unused variable - t0Yusuke Endoh
2024-09-13Constify `struct getpwnam_r_args::login`Nobuyoshi Nakada
2024-09-12Move checks for heap traversal to rb_gc_mark_weakPeter Zhu
If we are during heap traversal, we don't want to call rb_gc_impl_mark_weak. This commit moves that check from rb_gc_impl_mark_weak to rb_gc_mark_weak. Notes: Merged: https://github.com/ruby/ruby/pull/11606
2024-09-12Assert that we are during GC when markingPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/11606
2024-09-12Add variable objspace in RB_GC_MARK_OR_TRAVERSEPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/11606
2024-09-12Move special const checks to rb_gc_mark_weakPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/11606
2024-09-12[PRISM] Fix up pm_compile_branch_condition issue with single insn iseqsKevin Newton
2024-09-12[DOC] Tweaks for Array#fetch_values (#11603)Burdette Lamar
Notes: Merged-By: peterzhu2118 <[email protected]>
2024-09-12[DOC] Tweaks for Array#fetch (#11602)Burdette Lamar
Notes: Merged-By: peterzhu2118 <[email protected]>
2024-09-12[PRISM] Ignore test_parse_directory if error is nilKevin Newton
2024-09-12[PRISM] Check error type for parsing directoryKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12[ruby/prism] Check errno for parsing directoryKevin Newton
https://github.com/ruby/prism/commit/d68ea29d04 Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12Fix opening multibyte character filepath on WindowsKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12Fix FILE_SHARE_* permissions for Windows in read_entire_fileKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12Temporarily exclude some TestRubyOptions test for parse.yKevin Newton
The description has been updated when running with Prism to have +PRISM, which means that tests asserting against the description when running with --parser=parse.y will be incorrect if the subprocess ends up using Prism. We need to fix these tests, but we are currently disabling them in order to get this over the line. Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12[PRISM] Omit some TestAST tests when Prism is enabledKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12[PRISM] Move compile scope node to its own functionKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12[PRISM] Move case node compilation into its own functionKevin Newton
Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12Switch the default parser from parse.y to PrismKevin Newton
This commit switches the default parser to Prism. There are a couple of additional changes related to this that are a part of this as well to make this happen. * Switch the default parser in parse.h * Remove the Prism-specific workflow and add a parse.y-specific workflow to CI so that it continues to be tested * Update a few test exclusions since Prism has the correct behavior but parse.y doesn't per https://bugs.ruby-lang.org/issues/20504. * Skips a couple of tests on RBS which are failing because they are using RubyVM::AbstractSyntaxTree.of. Fixes [Feature #20564] Notes: Merged: https://github.com/ruby/ruby/pull/11497
2024-09-12Add error checking to readdir, telldir, and closedir calls in dir.cJeremy Evans
Raise SystemCallError exception when these functions return an error. This changes behavior for the following case (found by the tests): ```ruby dir1 = Dir.new('..') dir2 = Dir.for_fd(dir1.fileno) dir1.close dir2.close ``` The above code is basically broken, as `dir1.close` closed the file descriptor. The subsequent `dir2.close` call is undefined behavior. When run in isolation, it raises Errno::EBADF after the change, but if another thread opens a file descriptor between the `dir1.close` and `dir2.close` calls, the `dir2.close` call could close the file descriptor opened by the other thread. Raising an exception is much better in this case as it makes it obvious there is a bug in the code. For the readdir check, since the GVL has already been released, reacquire it rb_thread_call_with_gvl if an exception needs to be raised. Due to the number of closedir calls, this adds static close_dir_data and check_closedir functions. The close_dir_data takes a struct dir_data * and handles setting the dir entry to NULL regardless of failure. Fixes [Bug #20586] Co-authored-by: Nobuyoshi Nakada <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/11393 Merged-By: jeremyevans <[email protected]>
2024-09-12[ruby/prism] Do not warn \r in shebang on windowsKevin Newton
https://github.com/ruby/prism/commit/e8c862ca1f
2024-09-12[ruby/irb] Remove KEYWORD_ALIASES which handled special alias nametomoya ishida
of irb_break irb_catch and irb_next command (https://github.com/ruby/irb/pull/1004) * Remove KEYWORD_ALIASES which handled special alias name of irb_break irb_catch and irb_next command * Remove unused instance variable user_aliases Co-authored-by: Stan Lo <[email protected]> --------- https://github.com/ruby/irb/commit/f256d7899f Co-authored-by: Stan Lo <[email protected]>
2024-09-12Accept version rangeNobuyoshi Nakada
Single `Integer` argument means an exact match to the major version. Notes: Merged: https://github.com/ruby/ruby/pull/11604
2024-09-12Related for Array#eql?BurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/11600
2024-09-12[DOC] Related for Array#empty?BurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/11599
2024-09-12[DOC] Tweaks for Array#each_indexBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/11598
2024-09-12Release GVL for get{pwnam,pwuid,grgid,grnam}_r calls in process.cJeremy Evans
Do not release GVL around get{pwuid,pwnam,grgid,grnam} calls, as doing so is not thread-safe. Another C extension could have a concurrent call, and derefencing the returned pointer from these calls could result in a segfault. Have rb_home_dir_of call rb_getpwdirnam_for_login if available, so it can use getpwnam_r and release GVL in a thread-safe manner. This is related to GVL releasing work in [Bug #20587]. Notes: Merged: https://github.com/ruby/ruby/pull/11202
2024-09-12Assume VM is locked in rb_vm_ci_freePeter Zhu
The GC always locks the VM, so we don't need to lock it in rb_vm_ci_free. Notes: Merged: https://github.com/ruby/ruby/pull/11585
2024-09-12Remove unnecessary fileydah
Notes: Merged: https://github.com/ruby/ruby/pull/11590
2024-09-12Lrama v0.6.10ydah
Notes: Merged: https://github.com/ruby/ruby/pull/11590
2024-09-12Warn missing irb casesHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11601
2024-09-12Fixed ensure scopeHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11601
2024-09-12Don't use instance variableHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11601
2024-09-12Back to Bundler.ui and Bundler::Definition.no_lockHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11601
2024-09-12Support bundler/inline modeHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11601
2024-09-12Use better resolution by Bundler at force_activateHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11601
2024-09-11Fix issue with super and forwarding arguments in prism_compile.cLuke Gruber
Fixes [Bug #20720] Notes: Merged: https://github.com/ruby/ruby/pull/11565
2024-09-11[ruby/prism] UTF-8 characters in file nameKevin Newton
https://github.com/ruby/prism/commit/487f0ffe78
2024-09-11[rubygems/rubygems] Small simplification in Definition classDavid Rodríguez
https://github.com/rubygems/rubygems/commit/03ddfd7610 Co-authored-by: Jonathan Hefner <[email protected]>
2024-09-11[rubygems/rubygems] Uncomment and possibly fix spec on JRubyDavid Rodríguez
This was commented out almost 10 years ago, but I think it passes now! https://github.com/rubygems/rubygems/commit/4a6b1aba3c
2024-09-11[ruby/psych] Ensure strings with only underscores are not processed as IntegerJohn Meade
A string similar to "0x____" should be treated as a string. Currently it is processed as an Integer. This alters the regex specified by http://yaml.org/type/int.html to ensure at least one numerical symbol is present in the string before converting to Integer. https://github.com/ruby/psych/commit/81479b203e
2024-09-11[DOC] Tweaks for Array#eachBurdetteLamar
Notes: Merged: https://github.com/ruby/ruby/pull/11597
2024-09-11[DOC] Tweaks for Array#difference (#11593)Burdette Lamar
Notes: Merged-By: peterzhu2118 <[email protected]>