aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Remove test-only & unused methods from Checksum::StoreMartin Emde2023-12-152-21/+13
| | | | https://github.com/rubygems/rubygems/commit/79636dec12
* [ruby/prism] Finish keyword hash node flag refactor by renaming flagUfuk Kayserilioglu2023-12-1531-72/+66
| | | | https://github.com/ruby/prism/commit/7f812389f8
* Update error message in test_rubyoptionsKevin Newton2023-12-151-1/+1
|
* update message to clarify compiler, not parserAdam Hess2023-12-151-1/+1
| | | Co-authored-by: Ufuk Kayserilioglu <ufuk@paralaus.com>
* Introduce --parser runtime flagHParker2023-12-1510-53/+579
| | | | | | | | | | | | | | | | | Introduce runtime flag for specifying the parser, ``` ruby --parser=prism ``` also update the description: ``` $ ruby --parser=prism --version ruby 3.3.0dev (2023-12-08T04:47:14Z add-parser-runtime.. 0616384c9f) +PRISM [x86_64-darwin23] ``` [Bug #20044]
* [DOC] RDoc for Complex (#9254)Burdette Lamar2023-12-151-14/+33
|
* [Bug #20062] Fixed numbered parameter syntax errorNobuyoshi Nakada2023-12-162-4/+14
| | | | | At the method definition, the local scope that saves the context of the numbered parameters needs to be pushed before saving.
* rb_bug_for_fatal_signal: exit with the right signalJean Boussier2023-12-151-0/+1
| | | | | | | | `die()` calls `abort()` which always exit as it `SIGABRT` was received. This isn't very friendly with systems that automatically collect crashes as the `%s` parameter will be changed.
* remove `Ractor::Selector` from Ruby levelKoichi Sasada2023-12-163-143/+116
| | | | | | | | | `Ractor::Selector` is not approved by Matz so remove it from Ruby-level. The implementation is used by `Ractor.select` so most of implementation was remaind and calling `rb_init_ractor_selector()`, `Ractor::Selector` will be defined. I will provide `ractor-selector` gem to try it.
* support `skip` in bootstraptestKoichi Sasada2023-12-161-2/+7
|
* [rubygems/rubygems] Use mkdir_p helper in bundler.rbSamuel Giddins2023-12-151-5/+3
| | | | | | Small refactor, no functional change https://github.com/rubygems/rubygems/commit/5edb7a1026
* free ractors with ractor_freeHParker2023-12-152-5/+1
| | | | | | | Previously with RUBY_FREE_ON_EXIT, ractors where being xfree-ed which is incorrect since they are not xmalloced. Instead we can free ractors with ractor free during shutdown. This change only effects main ractor freeing when RUBY_FREE_ON_EXIT is set. Co-authored-by: John Hawthorn <john@hawthorn.email>
* [PRISM] Fix `compile_prism` when src is a fileeileencodes2023-12-152-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `compile_prism` can take a source and file (and other arguments) or a file as the source. `compile` checks if the source is a file and if it is converts it. `compile_prism` is now doing the same thing. On the Ruby side `compile` handles a file [here](https://github.com/ruby/ruby/blob/master/iseq.c#L1159-L1162). Before: ``` "********* Ruby *************" == disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(26,21)> local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: -1]) [ 1] name@0 0000 putstring "Prism" ( 25)[Li] 0002 setlocal name@0, 0 0005 putself ( 26)[Li] 0006 putobject "hello, " 0008 getlocal name@0, 0 0011 dup 0012 objtostring <calldata!mid:to_s, argc:0, FCALL|ARGS_SIMPLE> 0014 anytostring 0015 concatstrings 2 0017 send <calldata!mid:puts, argc:1, FCALL|ARGS_SIMPLE>, nil 0020 leave hello, Prism "********* PRISM *************" ./test.rb:13:in `compile_prism': wrong argument type File (expected String) (TypeError) from ./test.rb:13:in `<main>' make: *** [run] Error 1 ``` After: ``` "********* Ruby *************" == disasm: #<ISeq:<compiled>@<compiled>:1 (1,0)-(26,21)> local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: -1]) [ 1] name@0 0000 putstring "Prism" ( 25)[Li] 0002 setlocal name@0, 0 0005 putself ( 26)[Li] 0006 putobject "hello, " 0008 getlocal name@0, 0 0011 dup 0012 objtostring <calldata!mid:to_s, argc:0, FCALL|ARGS_SIMPLE> 0014 anytostring 0015 concatstrings 2 0017 send <calldata!mid:puts, argc:1, FCALL|ARGS_SIMPLE>, nil 0020 leave "********* PRISM *************" == disasm: #<ISeq:<compiled>@test_code.rb:24 (24,0)-(25,21)> local table (size: 1, argc: 0 [opts: 0, rest: -1, post: 0, block: -1, kw: -1@-1, kwrest: -1]) [ 1] name@0 0000 putstring "Prism" ( 24)[Li] 0002 setlocal name@0, 0 0005 putself ( 25)[Li] 0006 putobject "hello, " 0008 getlocal name@0, 0 0011 dup 0012 objtostring <calldata!mid:to_s, argc:0, FCALL|ARGS_SIMPLE> 0014 anytostring 0015 concatstrings 2 0017 send <calldata!mid:puts, argc:1, FCALL|ARGS_SIMPLE>, nil 0020 leave ( 24) ``` Fixes ruby/prism#1609
* [ruby/rdoc] [DOC] nodoc for probably internal methodsNobuyoshi Nakada2023-12-167-1/+16
| | | | https://github.com/ruby/rdoc/commit/f7dd147a8c
* [ruby/rdoc] [DOC] Add missing documentsNobuyoshi Nakada2023-12-1612-2/+63
| | | | https://github.com/ruby/rdoc/commit/e4c90340d0
* [ruby/rdoc] Require fileutils before using itNobuyoshi Nakada2023-12-161-0/+1
| | | | https://github.com/ruby/rdoc/commit/edb2523018
* [ruby/rdoc] Remove unused method `RDoc::Encoding.remove_frozen_string_literal`Nobuyoshi Nakada2023-12-161-11/+0
| | | | https://github.com/ruby/rdoc/commit/7a8e9a97fa
* [ruby/prism] Fix eval parsing depthKevin Newton2023-12-152-3/+10
| | | | https://github.com/ruby/prism/commit/89bf7a4948
* [ruby/prism] Invalid pinned locals in pattern matchingKevin Newton2023-12-156-11/+28
| | | | https://github.com/ruby/prism/commit/3a67b37a56
* [rubygems/rubygems] Save array allocation for every dependency in GemfileSamuel Giddins2023-12-151-4/+2
| | | | | | Only need to check for lack of git key when branch option is present https://github.com/rubygems/rubygems/commit/ebfca1b389
* [rubygems/rubygems] Refactor vendoring to allow validating vendoring is ↵Samuel Giddins2023-12-1514-1/+98
| | | | | | | | reproducible Helps ensure that unsuspecting diffs to the vendored code arent accidentally introduced https://github.com/rubygems/rubygems/commit/7c425d49dd
* [DOC] RDoc for Complex (#9243)Burdette Lamar2023-12-151-16/+42
|
* Follow removed conflict filesNobuyoshi Nakada2023-12-152-2/+32
| | | | After editing a conflict, continue without removed files.
* [ruby/prism] Add TODO commentKevin Newton2023-12-151-0/+1
| | | | https://github.com/ruby/prism/commit/885d1d78cb
* [ruby/prism] Add an error for `in` keyword in argumentsTSUYUSATO Kitsune2023-12-154-0/+19
| | | | | | Fix https://github.com/ruby/prism/pull/2026 https://github.com/ruby/prism/commit/c4b41cd477
* loading/testing in different processes for multiple runsSatoshi Tagomori2023-12-151-16/+19
|
* [rubygems/rubygems] Fix `ruby setup.rb` leaving traces in source folderDavid Rodríguez2023-12-151-6/+0
| | | | | | | | It's the `Gem::Installer` below what installs executables, and the code being deleted here is now actually creating a `gems/` folder in the root of the source repo when running `ruby setup.rb`. https://github.com/rubygems/rubygems/commit/0e69a8b0d6
* Ignore the spcial case of target_cpuNobuyoshi Nakada2023-12-151-0/+1
| | | | On Windows, x86_64 is called as x64.
* Fix `ARCH_FLAG` when cross-compiling on macOSNobuyoshi Nakada2023-12-152-1/+5
|
* Fix `ARCH_FLAG` when `--with-arch` with single CPUNobuyoshi Nakada2023-12-151-7/+9
|
* Explained about test_for_warn_bundled_gemsHiroshi SHIBATA2023-12-151-0/+21
|
* Revert "[Bug #20060] Properly return matched gem name in case of EXACT"Hiroshi SHIBATA2023-12-151-1/+1
| | | | | | This reverts commit 75c40802cb06d83fc2c3d0eca6d904fa41307230. This change is now working correctly with warning cases.
* * append newline at EOF. [ci skip]git2023-12-151-1/+1
|
* Added test case of dash gem like net-smtpHiroshi SHIBATA2023-12-152-0/+15
|
* Added test case of bootsnapHiroshi SHIBATA2023-12-152-0/+21
|
* Added test case of bundle execHiroshi SHIBATA2023-12-153-0/+15
|
* Added test case of bundled gems dependenciesHiroshi SHIBATA2023-12-152-0/+18
|
* Added basic test case of bundled gems warningHiroshi SHIBATA2023-12-152-0/+8
|
* Fix gem detection for names with dashDavid Rodríguez2023-12-151-3/+2
|
* Update bundled gems list at b562efdf6d23d056764b334764a030 [ci skip]git2023-12-151-1/+1
|
* Bump up bundled net-ftp gem version to 0.3.3Shugo Maeda2023-12-151-1/+1
|
* add a testKoichi Sasada2023-12-151-0/+22
| | | | proposed at https://bugs.ruby-lang.org/issues/20050#note-5
* check modifcation whil ar->stKoichi Sasada2023-12-153-42/+65
| | | | | | | | | | | | | * delete `ar_try_convert` but use `ar_force_convert_table` to make program simple. * `ar_force_convert_table` checks hash modification while calling `#hash` method with the following strategy: 1. copy keys (and vals) of ar_table 2. calc hashes from keys 3. check copied keys and hash's keys. if not matched, repeat from 1 fix [Bug #20050]
* Remove unused variables in test_call_op_asgn_keywords_mutableJeremy Evans2023-12-141-2/+1
|
* stop warnings from running the test case requiring .so twiceSatoshi Tagomori2023-12-151-5/+10
|
* Trigger auto-request-review only for master branchTakashi Kokubun2023-12-141-1/+1
|
* [DOC] Reverse-merge YJIT release notes to NEWSTakashi Kokubun2023-12-141-25/+33
|
* [PRISM] Implement safe navigation in CallNodesJemma Issroff2023-12-142-6/+76
| | | | | This commit implements safe navigation for CallNodes, CallAndWriteNodes and CallOperatorWriteNodes
* [DOC] Enhance docs for WeakMap and WeakKeyMap (#9160)Victor Shepelev2023-12-141-24/+205
| | | | | | | Enhance docs for WeakMap and WeakKeyMap * WeakKeyMap: more class-level explanations, more details on #getkey, fix a slight bug in code of #delete example; * WeekMap: a bit more detailed class- and method-level docs.
* [DOC] Adjust some new features wording/examples. (#9183)Victor Shepelev2023-12-148-47/+65
| | | | | | | | | | | | | | | | | * Reword Range#overlap? docs last paragraph. * Docs: add explanation about Queue#freeze * Docs: Add :rescue event docs for TracePoint * Docs: Enhance Module#set_temporary_name documentation * Docs: Slightly expand Process::Status deprecations * Fix MatchData#named_captures rendering glitch * Improve Dir.fchdir examples * Adjust Refinement#target docs