Takashi Kokubun
186b5c0086
Revert "Update bundled gems list at 2022-12-22"
...
This reverts commit 89a66f20d8
.
2022-12-21 21:49:30 -08:00
Jeremy Evans
1e193c78d2
Clarify NEWS entry for Bug #16889
2022-12-21 21:05:08 -08:00
Jeremy Evans
4213f42555
Make sure TracePoint#binding returns nil for c_call/c_return events
...
This makes sure the method returns nil for these events, as
described in NEWS, even if the TracePoint could create a binding.
2022-12-21 21:02:43 -08:00
zverok
ae455a129e
[DOC] Update TracePoint.allow_reentry docs
...
Adjust call-seq to mention block, and add examples
and explanations.
2022-12-22 13:37:58 +09:00
Kazuki Tsujimoto
b7bb14b96e
Update documentation about Time#deconstruct_keys
2022-12-22 13:05:09 +09:00
Nobuyoshi Nakada
4e6c44e297
[DOC] Fix the paragraph about PRNG update
2022-12-22 12:48:11 +09:00
Hiroshi SHIBATA
e3847f39a1
Added the missing word with 1e1d7047fc
2022-12-22 12:27:09 +09:00
Hiroshi SHIBATA
1e1d7047fc
Introduce GH releases for default gems and bundled gems
2022-12-22 12:25:00 +09:00
Yusuke Endoh
2811d9d224
NEWS.md: Tweak "Constant lookup when defining a class/module"
2022-12-18 19:18:35 +09:00
Yusuke Endoh
dd338ae124
NEWS.md: Fix typos
2022-12-18 18:48:02 +09:00
Yusuke Endoh
937299ede1
NEWS.md: Fix a typo
2022-12-18 18:47:19 +09:00
git
89a66f20d8
Update bundled gems list at 2022-12-22
2022-12-22 02:34:24 +00:00
Kazuki Tsujimoto
5b85e4040e
Update power_assert to 2.0.3
2022-12-22 11:12:59 +09:00
Takashi Kokubun
5b76a8ed56
Introduce some notable IRB features in NEWS [ci skip]
2022-12-21 17:41:00 -08:00
Takashi Kokubun
67ef3cd3cc
Skip a flaky Ractor test for mswin
2022-12-21 16:56:41 -08:00
Takashi Kokubun
2537182063
Make it clear that it doesn't update the receiver [ci skip]
2022-12-21 16:45:54 -08:00
Takashi Kokubun
4e6b4cce80
Add Data#with to examples in the NEWS [ci skip]
2022-12-21 16:44:47 -08:00
Ufuk Kayserilioglu
99cee85775
Add copy with changes functionality for Data objects ( #6766 )
...
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>
2022-12-21 16:27:38 -08:00
Nobuyoshi Nakada
398aaed2f0
Fix the case trailer without newline
...
cf0b413ef8
2022-12-22 00:34:21 +09:00
Nobuyoshi Nakada
98fbebf110
[DOC] Fix typo
2022-12-22 00:01:18 +09:00
BurdetteLamar
172dc98c94
[ruby/net-http] Adding links to references
...
https://github.com/ruby/net-http/commit/71bae5c0fe
2022-12-21 09:17:19 -05:00
BurdetteLamar
276b84f8ed
[ruby/net-http] Adding links to references
...
https://github.com/ruby/net-http/commit/e4df80f299
2022-12-21 09:17:19 -05:00
BurdetteLamar
86f0128efe
[ruby/net-http] Adding links to references
...
https://github.com/ruby/net-http/commit/df5a554fa8
2022-12-21 09:17:18 -05:00
Soutaro Matsumoto
6af6857ecf
Set up RBS_SKIP_TESTS ( #6862 )
...
* Set up RBS_SKIP_TESTS
2022-12-21 22:11:51 +09:00
Nobuyoshi Nakada
befc99c008
[DOC] tool/update-NEWS-refs.rb: Align footnotes
2022-12-21 20:48:51 +09:00
Nobuyoshi Nakada
c7c006cc68
[DOC] tool/update-NEWS-refs.rb: Remove extra brackets
...
Surrounding with brackets is just a convention for the bugs tracker
links.
2022-12-21 20:48:51 +09:00
Akinori MUSHA
cc4c28ec2e
Make Enumerartor.product return nil when called with a block
2022-12-21 19:13:15 +09:00
Akinori MUSHA
308ccbaeb2
Make product consistently yield an array of N elements instead of N arguments
...
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-21 18:19:19 +09:00
Hiroshi SHIBATA
684fa46ee6
Removed empty section
2022-12-21 18:57:37 +09:00
Hiroshi SHIBATA
e894ff5ec1
Update bundled_gems
2022-12-21 18:57:36 +09:00
Nobuyoshi Nakada
1a24442193
test/socket/test_addrinfo.rb: Suppress Errno::EACCES on Windows
2022-12-21 15:18:34 +09:00
Nobuyoshi Nakada
9f42ee3e52
[DOC] Fix formatting
2022-12-21 14:34:40 +09:00
Mau Magnaguagno
1e989c49a8
MJIT: Refactor Compiler#cast_offset ( #6967 )
...
Subtract max value from offset when sign bit is set, without string operations.
2022-12-20 21:28:48 -08:00
Nobuyoshi Nakada
502ca37dde
[ruby/optparse] The encoding argument of `Regexp.new` has been ignored since 1.9
...
https://github.com/ruby/optparse/commit/766f567405
2022-12-21 14:09:12 +09:00
Yuta Saito
afd46429fc
tool/m4/ruby_wasm_tools.m4: force passing WASI_SDK_PATH when building for wasi
...
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.
2022-12-21 11:19:23 +09:00
Nobuyoshi Nakada
2b96119fc0
[DOC] fix unintentional verbatim
2022-12-21 09:48:42 +09:00
Sorah Fukumori
47988e63d6
test_readline#test_without_tty: Use EnvUtil.rubybin
...
`ruby` is not always available in certain build environments and
configure options. Choose appropriate command line using EnvUtil.
2022-12-21 09:40:09 +09:00
sampatbadhe
2c3475d96e
correct typo [ci skip]
2022-12-21 08:20:23 +09:00
Benoit Daloze
33debffdd3
Use "Fiber storage variables" consistently
2022-12-20 23:05:56 +01:00
Benoit Daloze
4495dea153
Improve documentation for fiber-scoped variables
...
* Especially around Enumerator.
2022-12-20 23:05:56 +01:00
Peter Zhu
39e70eef72
[DOC] Fix formatting for GC.compact
2022-12-20 15:18:36 -05:00
Peter Zhu
9f4472cad7
[DOC] Escape all usages of GC
...
RDoc was making every usage of the word "GC" link to the page for GC
(which is the same page).
2022-12-20 15:16:36 -05:00
Peter Zhu
63fe03aa4e
[DOC] Fix call-seq for GC methods
...
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 15:09:14 -05:00
Peter Zhu
790b3f7bbd
[DOC] Fix formatting for GC#latest_gc_info
2022-12-20 15:07:11 -05:00
Peter Zhu
ae53986834
[DOC] Fix formatting for GC#latest_compact_info
2022-12-20 15:06:06 -05:00
Benoit Daloze
0efa36ac06
Ensure Fiber storage is only accessed from the Fiber it belongs to
2022-12-20 19:32:23 +01:00
Benoit Daloze
d557f17974
Use an experimental warning for Fiber#storage=
2022-12-20 19:32:23 +01:00
Benoit Daloze
45175962a6
Never use the storage of another Fiber, that violates the whole design
...
* See https://bugs.ruby-lang.org/issues/19078#note-30
2022-12-20 19:32:23 +01:00
Jean Boussier
88040063d0
Array#pack: document silent truncation
...
Ref: [Feature #19245 ]
At the very least this behavior should be documented.
2022-12-20 19:17:57 +01:00
git
3ded50a36c
Update default gems list at b2bf5d237b
[ci skip]
2022-12-20 17:08:54 +00:00