summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-12-13[rubygems/rubygems] Don't print a bunch of blank lines when setting up ↵David Rodríguez
dependencies https://github.com/rubygems/rubygems/commit/48fd2d0514
2024-12-12Improve "Building Ruby" docs (#12320)Alexander Momchilov
* Clarify “Building Ruby” docs * Fix test examples to work from `build` dir * Clarify “Testing Ruby” examples with real examples All the commands should run correctly by default, without the user needing to modify them. This builds confidence that the relative paths are working correct from within the `build` directory. Also, let’s use a consistent example throughout, for greater clarity. * Improve examples to use `-v` flag in-context This shows the correct way to combine `-v` with another parameter, e.g. a specific file to test. * Other readability improvements * Clarify `make` implementation support
2024-12-13[ruby/resolv] Allow setting default Resolv::DNS config in Resolv.newJeremy Evans
If a positional argument is provided, the use_ipv6 keyword option is ignored: ```ruby Resolv.new([Resolv::DNS.new], use_ipv6: false) ``` Issue a warning in this case. Currently, you have to pass a positional hash argument to set the DNS config. However, after support for the use_ipv6 keyword argument is removed, you will be able to pass either a positional hash or keyword arguments. Code that was just specifying the use_ipv6 keyword optional will still work correctly in that case. https://github.com/ruby/resolv/commit/5ff9dda991
2024-12-12[DOC] Improve formatting in Markdown files (#12322)Alexander Momchilov
* Fix WASM bullet/code indentation * Use `console` code highlighting where appropriate … which handles the prefix `$` correctly. * Migrate feature proposal template to MarkDown * Set language on code blocks
2024-12-13Update default gems list at 43faf09bb9ca325ca042ba725a923f [ci skip]git
2024-12-13[ruby/resolv] Bump up v0.6.0Hiroshi SHIBATA
https://github.com/ruby/resolv/commit/cb4b335034
2024-12-13Update default gems list at 573c18212886cc95a47ed16b740099 [ci skip]git
2024-12-13Lock released version of stringio-3.1.2Hiroshi SHIBATA
2024-12-13[ruby/logger] Bump up v1.6.3Hiroshi SHIBATA
https://github.com/ruby/logger/commit/97bce95f49
2024-12-12bootstraptest: On -j failure, show total test countAlan Wu
It used to always try to divide by zero like: FAIL 1/0 tests failed
2024-12-13Update default gems list at f5850c0cf762717892a76ed9630316 [ci skip]git
2024-12-13[ruby/shellwords] Bump up v0.2.2Hiroshi SHIBATA
https://github.com/ruby/shellwords/commit/55ab74d37a
2024-12-13Update default gems list at 5a9008516a4cf9e3006b402fad966e [ci skip]git
2024-12-13[ruby/zlib] Bump up v3.2.1Hiroshi SHIBATA
https://github.com/ruby/zlib/commit/d2e29b23c8
2024-12-12Add an environment variable for controlling the default Thread quantumAaron Patterson
This commit adds an environment variable `RUBY_THREAD_TIMESLICE` for specifying the default thread quantum in milliseconds. You can adjust this variable to tune throughput, which is especially useful on multithreaded systems that are mixing CPU bound work and IO bound work. The default quantum remains 100ms. [Feature #20861] Co-Authored-By: John Hawthorn <john@hawthorn.email> Notes: Merged: https://github.com/ruby/ruby/pull/11981
2024-12-12YJIT: Allow then-unknown `static_mut_refs` on older Rusts [ci skip]Alan Wu
2024-12-12Fix error messages so we don't output an extra lineAaron Patterson
Before this commit, when a file ended with a newline, the syntax error message would show an extra line after the file. For example, the error message would look like this: ``` [aaron@tc-lan-adapter ~/g/ruby (master)]$ echo "foo(" > test.rb [aaron@tc-lan-adapter ~/g/ruby (master)]$ od -c test.rb 0000000 f o o ( \n 0000005 [aaron@tc-lan-adapter ~/g/ruby (master)]$ wc -l test.rb 1 test.rb [aaron@tc-lan-adapter ~/g/ruby (master)]$ ./miniruby test.rb test.rb: test.rb:1: syntax error found (SyntaxError) > 1 | foo( | ^ unexpected end-of-input; expected a `)` to close the arguments 2 | ``` This commit fixes the "end of line" book keeping when printing an error so that there is no extra line output at the end of the file: ``` [aaron@tc-lan-adapter ~/g/ruby (fix-last-line-error)]$ echo "foo(" | ./miniruby -: -:1: syntax error found (SyntaxError) > 1 | foo( | ^ unexpected end-of-input; expected a `)` to close the arguments [aaron@tc-lan-adapter ~/g/ruby (fix-last-line-error)]$ echo -n "foo(" | ./miniruby -: -:1: syntax error found (SyntaxError) > 1 | foo( | ^ unexpected end-of-input; expected a `)` to close the arguments ``` Notice that in the above example, the error message only displays one line regardless of whether or not the file ended with a newline. [Bug #20918] [ruby-core:120035] Notes: Merged: https://github.com/ruby/ruby/pull/12324
2024-12-12[DOC] Fix grammar errors, typos, and improve readability of trace_point.rb ↵Stan Lo
(#12150) Notes: Merged-By: peterzhu2118 <peter@peterzhu.ca>
2024-12-12Fix LoadError's linking issueStan Lo
Original issue: https://github.com/ruby/rdoc/issues/1128 The problem is caused by the `# :stopdoc:` directive in `bundled_gems.rb`, which's scope covers the redefinition of `LoadError`. Since the goal of `# :stopdoc:` is to hide the documentation of `Gem::BUNDLED_GEMS`, we can use `# :nodoc:` on it instead. Notes: Merged: https://github.com/ruby/ruby/pull/12317
2024-12-13`Ractor.set_if_absent(key)`Koichi Sasada
to initialize ractor local storage in thread-safety. [Feature #20875] Notes: Merged: https://github.com/ruby/ruby/pull/12321
2024-12-12Call rb_bug_without_die when ASAN error reportedPeter Zhu
This will give us the Ruby stack trace when an ASAN error is reported. Notes: Merged: https://github.com/ruby/ruby/pull/12309
2024-12-12Don't output memory map in crash report for ASANPeter Zhu
ASAN maps a large amount of memory, which makes the memory map section massive. Notes: Merged: https://github.com/ruby/ruby/pull/12309
2024-12-12Implement rb_bug_without_diePeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/12309
2024-12-12[ruby/irb] Load history when starting a direct debug sessionJames Reid-Smith
(https://github.com/ruby/irb/pull/1046) * Load history when starting a direct debug session When starting a debug session directly with RUBY_DEBUG_IRB_CONSOLE=1 and `require 'debug'; debugger`, IRB's history wasn't loaded. This commit ensures history is loaded in this case by calling `load_history` when configuring IRB for the debugger. Fixes ruby/irb#975 * Update test/irb/test_history.rb * Update lib/irb/debug.rb --------- https://github.com/ruby/irb/commit/7f851b5353 Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-12-12[ruby/reline] Undo and redo should restore indentationtomoya ishida
(https://github.com/ruby/reline/pull/793) * Undo and redo should restore indentation Undo and redo should not perform auto indentation. It should not change the indentation. Instead, it should restore previous indentation. * Rename ivar undoing(undoing or redoing) to restoring https://github.com/ruby/reline/commit/6355a6e0b2
2024-12-12[ruby/win32ole] Deprecate old constants in toplevelNobuyoshi Nakada
https://github.com/ruby/win32ole/commit/eaa1507262
2024-12-12[ruby/win32ole] [DOC] Hide old constants for the backward compatibility from ↵Nobuyoshi Nakada
RDoc https://github.com/ruby/win32ole/commit/99e1ea403f
2024-12-12[ruby/win32ole] [DOC] Fix a markup for codeNobuyoshi Nakada
https://github.com/ruby/win32ole/commit/542d39372c
2024-12-12increase diff.renameLimitNARUSE, Yui
2024-12-12Update default gems list at 911879e01f061c9ea2d3ca4eb6d73d [ci skip]git
2024-12-12[ruby/irb] Bump version to v1.14.2Stan Lo
(https://github.com/ruby/irb/pull/1045) https://github.com/ruby/irb/commit/dd31884657
2024-12-12[Feature #20884] News of toplevel "Ruby" name reservationNobuyoshi Nakada
2024-12-12[Feature #20884] Reserve "Ruby" toplevel nameNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12315
2024-12-12Add `rb_warn_reserved_name_at`Nobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12315
2024-12-12Launchable: Start recording test-spec results (#12302)Naoto Ono
Notes: Merged-By: ono-max <onoto1998@gmail.com>
2024-12-12Update default gems list at 78ca87f8a8c79f0af1b7c6a0d819fa [ci skip]git
2024-12-12Lock released version of strscan-3.1.1Hiroshi SHIBATA
2024-12-12Separated load path for test-bundler tasks for WindowsHiroshi SHIBATA
2024-12-12* append newline at EOF. [ci skip]git
2024-12-12tmp/test-pipes is no longer neededHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12250
2024-12-12Hide pending results of turbo_testsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12250
2024-12-12Use directory structure and GEM_HOME for ruby-core repositoryHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12250
2024-12-12Use patched version of turbo_testsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12250
2024-12-12Use turbo_tests instead of parallel_testsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12250
2024-12-12[ruby/prism] Use isinf on non-mingw windowsv3_4_0_rc1Kevin Newton
https://github.com/ruby/prism/commit/2f903d7865
2024-12-11Fix compilation with MALLOC_ALLOCATED_SIZEJohn Hawthorn
Previously compilation failed with -DMALLOC_ALLOCATED_SIZE=1 Co-authored-by: Matthew Draper <matthew@trebex.net> Notes: Merged: https://github.com/ruby/ruby/pull/12313
2024-12-12[ruby/prism] Decode %r like % stringsAaron Patterson
%r regular expressions need to be decoded like strings. This commit fixes %r decoding so it works like strings. https://github.com/ruby/prism/commit/85bfd9c0cd
2024-12-12[ruby/prism] Same numbered param cannot be used in child blocksAaron Patterson
Raise an exception when the same numbered param is used inside a child block. For example, the following code should be a syntax error: ```ruby -> { _1 + -> { _1 } } ``` Fixes https://github.com/ruby/prism/pull/3291 https://github.com/ruby/prism/commit/d4fc441838
2024-12-11Use malloc for prism string sourceJohn Hawthorn
Prism will later free this string via free rather than xfree, so we need to use malloc rather than xmalloc. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org> Co-authored-by: Matthew Draper <matthew@trebex.net> Notes: Merged: https://github.com/ruby/ruby/pull/12312
2024-12-11Use ruby_strdup/xfree in fast_fallbackJohn Hawthorn
Any memory allocated with xmalloc needs to be matched with xfree rather than plain free. Ruby unfortunately redefines strdup to be ruby_strdup, which uses xmalloc so needs to be xfreed. Previously these were mismatched. This commit changes the copy to be an explicit ruby_strdup (to avoid confusion) and the free to be xfree. Notes: Merged: https://github.com/ruby/ruby/pull/12311