summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-12-18NEWS.md: Fix typosYusuke Endoh
2022-12-18NEWS.md: Fix a typoYusuke Endoh
2022-12-22Update bundled gems list at 2022-12-22git
2022-12-22Update power_assert to 2.0.3Kazuki Tsujimoto
2022-12-21Introduce some notable IRB features in NEWS [ci skip]Takashi Kokubun
2022-12-21Skip a flaky Ractor test for mswinTakashi Kokubun
2022-12-21Make it clear that it doesn't update the receiver [ci skip]Takashi Kokubun
2022-12-21Add Data#with to examples in the NEWS [ci skip]Takashi Kokubun
2022-12-21Add copy with changes functionality for Data objects (#6766)Ufuk Kayserilioglu
Implements [Feature #19000] This commit adds copy with changes functionality for `Data` objects using a new method `Data#with`. Since Data objects are immutable, the only way to change them is by creating a copy. This PR adds a `with` method for `Data` class instances that optionally takes keyword arguments. If the `with` method is called with no arguments, the behaviour is the same as the `Kernel#dup` method, i.e. a new shallow copy is created with no field values changed. However, if keyword arguments are supplied to the `with` method, then the copy is created with the specified field values changed. For example: ```ruby Point = Data.define(:x, :y) point = Point.new(x: 1, y: 2) point.with(x: 3) # => #<data Point x: 3, y: 2> ``` Passing positional arguments to `with` or passing keyword arguments to it that do not correspond to any of the members of the Data class will raise an `ArgumentError`. Co-authored-by: Alan Wu <XrXr@users.noreply.github.com> Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-12-22Fix the case trailer without newlineNobuyoshi Nakada
cf0b413ef8b794ef6e7436f22fd5a998050dada9
2022-12-22[DOC] Fix typoNobuyoshi Nakada
2022-12-21[ruby/net-http] Adding links to referencesBurdetteLamar
https://github.com/ruby/net-http/commit/71bae5c0fe
2022-12-21[ruby/net-http] Adding links to referencesBurdetteLamar
https://github.com/ruby/net-http/commit/e4df80f299
2022-12-21[ruby/net-http] Adding links to referencesBurdetteLamar
https://github.com/ruby/net-http/commit/df5a554fa8
2022-12-21Set up RBS_SKIP_TESTS (#6862)Soutaro Matsumoto
* Set up RBS_SKIP_TESTS Notes: Merged-By: soutaro <matsumoto@soutaro.com>
2022-12-21[DOC] tool/update-NEWS-refs.rb: Align footnotesNobuyoshi Nakada
2022-12-21[DOC] tool/update-NEWS-refs.rb: Remove extra bracketsNobuyoshi Nakada
Surrounding with brackets is just a convention for the bugs tracker links.
2022-12-21Make Enumerartor.product return nil when called with a blockAkinori MUSHA
2022-12-21Make product consistently yield an array of N elements instead of N argumentsAkinori MUSHA
Inconsistency pointed out by @mame: ``` >> Enumerator.product([1], [2], [3]).to_a => [[1, 2, 3]] >> Enumerator.product([1], [2]).to_a => [[1, 2]] >> Enumerator.product([1]).to_a => [1] >> Enumerator.product().to_a => [nil] ``` Got fixed as follows: ``` >> Enumerator.product([1], [2], [3]).to_a => [[1, 2, 3]] >> Enumerator.product([1], [2]).to_a => [[1, 2]] >> Enumerator.product([1]).to_a => [[1]] >> Enumerator.product().to_a => [[]] ``` This was due to the nature of the N-argument funcall in Ruby.
2022-12-21Removed empty sectionHiroshi SHIBATA
2022-12-21Update bundled_gemsHiroshi SHIBATA
2022-12-21test/socket/test_addrinfo.rb: Suppress Errno::EACCES on WindowsNobuyoshi Nakada
2022-12-21[DOC] Fix formattingNobuyoshi Nakada
2022-12-20MJIT: Refactor Compiler#cast_offset (#6967)Mau Magnaguagno
Subtract max value from offset when sign bit is set, without string operations. Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2022-12-21[ruby/optparse] The encoding argument of `Regexp.new` has been ignored since 1.9Nobuyoshi Nakada
https://github.com/ruby/optparse/commit/766f567405
2022-12-21tool/m4/ruby_wasm_tools.m4: force passing WASI_SDK_PATH when building for wasiYuta Saito
Make the WASI_SDK_PATH variable mandatory when building for wasi host. This requirement prevents developers from being stuck due to unfriendly configuration's error message. Notes: Merged: https://github.com/ruby/ruby/pull/5464
2022-12-21[DOC] fix unintentional verbatimNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/6975
2022-12-21test_readline#test_without_tty: Use EnvUtil.rubybinSorah Fukumori
`ruby` is not always available in certain build environments and configure options. Choose appropriate command line using EnvUtil. Notes: Merged: https://github.com/ruby/ruby/pull/5417
2022-12-21correct typo [ci skip]sampatbadhe
Notes: Merged: https://github.com/ruby/ruby/pull/6973
2022-12-20Use "Fiber storage variables" consistentlyBenoit Daloze
Notes: Merged: https://github.com/ruby/ruby/pull/6974
2022-12-20Improve documentation for fiber-scoped variablesBenoit Daloze
* Especially around Enumerator. Notes: Merged: https://github.com/ruby/ruby/pull/6974
2022-12-20[DOC] Fix formatting for GC.compactPeter Zhu
2022-12-20[DOC] Escape all usages of GCPeter Zhu
RDoc was making every usage of the word "GC" link to the page for GC (which is the same page).
2022-12-20[DOC] Fix call-seq for GC methodsPeter Zhu
RDoc parses the last arrow in the call-seq as the arrow for the return type. It was getting confused over the arrow in the hash.
2022-12-20[DOC] Fix formatting for GC#latest_gc_infoPeter Zhu
2022-12-20[DOC] Fix formatting for GC#latest_compact_infoPeter Zhu
2022-12-20Ensure Fiber storage is only accessed from the Fiber it belongs toBenoit Daloze
Notes: Merged: https://github.com/ruby/ruby/pull/6972
2022-12-20Use an experimental warning for Fiber#storage=Benoit Daloze
Notes: Merged: https://github.com/ruby/ruby/pull/6972
2022-12-20Never use the storage of another Fiber, that violates the whole designBenoit Daloze
* See https://bugs.ruby-lang.org/issues/19078#note-30 Notes: Merged: https://github.com/ruby/ruby/pull/6972
2022-12-20Array#pack: document silent truncationJean Boussier
Ref: [Feature #19245] At the very least this behavior should be documented. Notes: Merged: https://github.com/ruby/ruby/pull/6969
2022-12-20Update default gems list at b2bf5d237ba5f2d1ebaf12d164064c [ci skip]git
2022-12-20[ruby/irb] Version 1.6.2Takashi Kokubun
https://github.com/ruby/irb/commit/a8ea9963c6
2022-12-20[ruby/irb] Respect DLEXT to force-load debug.soTakashi Kokubun
(https://github.com/ruby/irb/pull/481) Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-12-20Fix thrashing of major GC when size pool is smallPeter Zhu
If a size pooll is small, then `min_free_slots < heap_init_slots` is true. This means that min_free_slots will be set to heap_init_slots. This causes `swept_slots < min_free_slots` to be true in a later if statement. The if statement could trigger a major GC which could cause major GC thrashing. Notes: Merged: https://github.com/ruby/ruby/pull/6971
2022-12-21Win32: add dependency of revision.hNobuyoshi Nakada
When out-of-place build, and revision.h does not exist in the source directory, `VPATH` fallbacks to the current directory.
2022-12-21Add links to Wasm port resources to NEWS.mdYuta Saito
Notes: Merged: https://github.com/ruby/ruby/pull/6968
2022-12-17Move Coverage-related items to Stdlib sectionYusuke Endoh
2022-12-17Move Socket-related changes to stdlib sectionYusuke Endoh
2022-12-20Ignore man directories entirely [ci skip]Nobuyoshi Nakada
2022-12-20MSVS lacks `touch` [ci skip]Nobuyoshi Nakada