Project

General

Profile

Activity

From 07/01/2023 to 07/07/2023

07/07/2023

08:37 PM Revision 7f2bd17f (git): [DOC] RDoc for dir.c (#8037)
burdettelamar (Burdette Lamar)
07:55 PM Revision dadf1781 (git): Add ruby_globals to lldb for easier debugging (#8041)
jemmai (Jemma Issroff)
05:46 PM Revision 9e3a5cc5 (git): [ruby/yarp] Add a yp_location_for_node function to the C API
yp_location_for_node takes a parser and a node and returns the
location in a way that can be punned into ruby/ruby types
https://github.com/ruby/yarp/commit/75e06016a7
jemmai (Jemma Issroff)
05:46 PM Revision 31f83a6f (git): [ruby/yarp] Add source to ParseResult
https://github.com/ruby/yarp/commit/f3802e03e0 jemmai (Jemma Issroff)
05:46 PM Revision 61efa9c8 (git): [ruby/yarp] Remove bin/newlines
Since newlines are working, this bin/newlines is less helpful, and
we can remove the API for newlines
https://github.com/ruby/yarp/commit/b538460b99
jemmai (Jemma Issroff)
05:27 PM Revision 24d9e21f (git): [ruby/reline] Reduce direct references to `Reline::IOGate`
(https://github.com/ruby/reline/pull/566)
* Avoid referencing IOGate from IOGate classes
The only time those classes being used is when themselves being the IOGate.
So when referencing to IOGate, it's better to use `self` instead.
* A...
st0012 (Stan Lo)
08:14 AM Bug #19760: Marshal.load Segmentation fault in ruby 2.2.10 aarch64
I wonder if it's a similar issue to https://github.com/ruby/setup-ruby/issues/496, i.e., 2.2 is too old and miscompiled on recent OS/compiler. Eregon (Benoit Daloze)
07:06 AM Bug #19760 (Rejected): Marshal.load Segmentation fault in ruby 2.2.10 aarch64
Ruby 2.2 is too old. We currently support only Ruby 3.0 or later. Please try the newer versions. mame (Yusuke Endoh)
06:45 AM Bug #19760: Marshal.load Segmentation fault in ruby 2.2.10 aarch64
gcc version 7.3.0 (GCC) [email protected] (jian li)
06:42 AM Bug #19760: Marshal.load Segmentation fault in ruby 2.2.10 aarch64
Executing Marshal. load multiple times may cause Ruby program segment errors in arrch64 CPU.
For some reason, I am unable to upgrade to the Ruby version.
Can you help determine if a patch can be applied to this issue? thanks
[email protected] (jian li)
06:40 AM Bug #19760 (Rejected): Marshal.load Segmentation fault in ruby 2.2.10 aarch64
irb(main):121:0> 100000.times{ Marshal.load(Marshal.dump(""))}
(irb):121: [BUG] Segmentation fault at 0x00000000000000
ruby 2.2.10p489 (2018-03-28 revision 63023) [aarch64-linux]
-- C level backtrace information --------------------...
[email protected] (jian li)
04:03 AM Bug #19751: Ruby 3.2.2 Fails to Compile from Source
My version.i martin_vahi (Martin Vahi)
02:04 AM Feature #19057: Hide implementation of `rb_io_t`.
k0kubun (Takashi Kokubun) wrote in #note-20:
> It looks like @byroot sent a patch for this at https://yhbt.net/kgio-public/[email protected]/T/#u.
`rb_convert_type(io, T_FILE, "IO", "to_io")` can be `rb_i...
nobu (Nobuyoshi Nakada)
12:41 AM Feature #19057: Hide implementation of `rb_io_t`.
> I've noticed the same thing while trying to install kgio with the latest ruby HEAD.
It looks like @byroot sent a patch for this at https://yhbt.net/kgio-public/[email protected]/T/#u.
Both patches are...
k0kubun (Takashi Kokubun)
01:20 AM Bug #19759: Surprising automatic splat with ruby2_keywords_hash
I submitted a pull request to fix this: https://github.com/ruby/ruby/pull/8039 jeremyevans0 (Jeremy Evans)
12:28 AM Revision a642a94b (git): llvm-objcopy is not provided by Xcode Command Line Tools.
Revert "Disable YJIT if objcopy command is old"
This reverts commit 75f8781c08da421d6bcfb2c3c8b7b74efea3bec2.
hsbt (Hiroshi SHIBATA)

07/06/2023

11:54 PM Bug #19759 (Closed): Surprising automatic splat with ruby2_keywords_hash
On Ruby 3 and newer the following prints `[:aa, :bb, :k]`:
```ruby
def yielder(splat)
yield([:a, :b], *splat)
end
yielder([[:aa, :bb], Hash.ruby2_keywords_hash({k: :k})]) do |a, b, k:|
p [a, b, k]
end
```
It expanded t...
alanwu (Alan Wu)
11:04 PM Feature #19717: `ConditionVariable#signal` is not fair when the wakeup is consistently spurious.
@ioquatix any thboughts? :) kjtsanaktsidis (KJ Tsanaktsidis)
07:51 PM Revision 48d95de6 (git): YJIT: Use registers to pass stack temps to C calls (#7920)
* YJIT: Use registers to pass stack temps to C calls
* YJIT: Update comments in ccall
k0kubun (Takashi Kokubun)
06:20 PM Misc #19722: DevMeeting-2023-07-13
* [Bug #11064] #singleton_methods for objects with special singleton_class returns an empty array (jeremyevans0)
* Is it OK to make {NilClass,TrueClass,FalseClass}#singleton_method always raise an exception?
* [Bug #19293] The new Ti...
jeremyevans0 (Jeremy Evans)
05:26 PM Revision 06c2d3e0 (git): Resync YARP (#8036)
It got out of sync again. After this re-sync, it should happen
cherry-picking automatically.
jemmai (Jemma Issroff)
04:27 PM Revision 055f7219 (git): Improve ArgumentError message for Module#set_temporary_name
Eregon (Benoit Daloze)
04:27 PM Revision 9ee1877e (git): Ensure the name given to Module#set_temporary_name is not a valid constant path
Co-authored-by: Nobuyoshi Nakada <[email protected]> Eregon (Benoit Daloze)
04:27 PM Revision e76022f4 (git): Specs for Module#set_temporary_name should be in their own file
Eregon (Benoit Daloze)
02:17 PM Revision 2acb44e0 (git): YJIT: add new stats counter for compiled ISEQ entry points (#8032)
* YJIT: add new stats counter for compiled ISEQ entry points
* Update yjit.rb
Co-authored-by: Takashi Kokubun <[email protected]>
---------
Co-authored-by: Takashi Kokubun <[email protected]>
maximecb (Maxime Chevalier-Boisvert)
12:16 PM Revision 75f8781c (git): Disable YJIT if objcopy command is old
Co-authored-by: Takashi Kokubun <[email protected]> nobu (Nobuyoshi Nakada)
09:22 AM Feature #19351: Promote bundled gems at Ruby 3.3
https://github.com/ruby/ruby/pull/7436 is working fine to load bundled gems without Gemfile declaration. hsbt (Hiroshi SHIBATA)
08:26 AM Revision 20478caf (git): do not set environment variables
These variables were used only once. shyouhei (Shyouhei Urabe)
05:01 AM Revision d287d859 (git): [rubygems/rubygems] Avoid to use Base64 library because I have a plan to base64 gem to bundled gems in ruby/ruby.
https://github.com/rubygems/rubygems/commit/221797cfd1 hsbt (Hiroshi SHIBATA)
01:46 AM Misc #19758: Statically link ext/json
The problem appears to be here:
```
$(LIBRUBY_A): $(OBJS) $(INITOBJS)
$(ECHO) linking static-library $(@:\=/)
$(Q) $(AR) $(ARFLAGS)$@ $(OBJS) $(INITOBJS)
```
where:
```
INITOBJS = dmyext.$(OBJEXT) dmyenc.$(OBJEXT)
```
...
MyCo (Maik Menz)

07/05/2023

09:42 PM Revision 57bf7322 (git): Add a NEWS entry for --yjit-exec-mem-size [ci skip]
k0kubun (Takashi Kokubun)
09:21 PM Revision 9c1776e6 (git): YJIT: Use --yjit-exec-mem-size=128 by default (#8031)
k0kubun (Takashi Kokubun)
09:18 PM Revision f314656c (git): Skip a failing spec for the latest bigdecimal
k0kubun (Takashi Kokubun)
09:10 PM Revision f0f099a5 (git): Disable clippy on Cirrus for now
k0kubun (Takashi Kokubun)
09:10 PM Revision 7c9ce38c (git): Remove duplicated Rust installation
k0kubun (Takashi Kokubun)
08:58 PM Revision 163cdb4c (git): Deleted unnecessary YARP fuzzing doc file
jemmai (Jemma Issroff)
08:58 PM Revision 9614a613 (git): Fixed build scripts for YARP
jemmai (Jemma Issroff)
08:58 PM Revision bfb93337 (git): Manual YARP resync
jemmai (Jemma Issroff)
08:38 PM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
Dan0042 (Daniel DeLorme) wrote in #note-7:
> While all this is technically true and correct, I am not particularly interested in "what is permitted"; I think "what actually exists in the real world out there" is the only thing worth car...
jeremyevans0 (Jeremy Evans)
07:25 PM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
While all this is technically true and correct, I am not particularly interested in "what is permitted"; I think "what actually exists in the real world out there" is the only thing worth caring about.
The robustness principle is "be ...
Dan0042 (Daniel DeLorme)
07:08 PM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
This is a better thread overall and there are a *number* of points worth reading in it. It boils down to:
- Underscores are not permitted in hostnames and therefore URLs/URIs.
- Leading underscores are permitted in DNS labels.
- Und...
austin (Austin Ziegler)
06:58 PM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
Dan0042 (Daniel DeLorme) wrote in #note-4:
> shugo (Shugo Maeda) wrote in #note-3:
> ...
RFC1123 and related RFCs suggest that network reachable hostnames *may not* have underscores, although they are permitted in informational DNS rec...
austin (Austin Ziegler)
03:15 PM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
shugo (Shugo Maeda) wrote in #note-3:
> is there any use case to use them with URI::HTTP.build?
I assume the purpose of `URI::HTTP.build` is the same as `URI.parse` but with a hash instead of a string. While writing a crawler I have ...
Dan0042 (Daniel DeLorme)
04:18 AM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
Dan0042 (Daniel DeLorme) wrote in #note-2:
> Maybe underscores are not allowed by some spec, but they are common in the wild. `_dmarc.example.com` and `google._domainkey.example.com` are standard subdomains. And many/most DNS servers wi...
shugo (Shugo Maeda)
03:12 AM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
Maybe underscores are not allowed by some spec, but they are common in the wild. `_dmarc.example.com` and `google._domainkey.example.com` are standard subdomains. And many/most DNS servers will happily accept subdomains with underscores. Dan0042 (Daniel DeLorme)
08:21 PM Revision 6f9d1b4b (git): [ruby/reline] Update Relin::IOGate dinamically when it is needed
(https://github.com/ruby/reline/pull/560)
https://github.com/ruby/reline/commit/4680d1c9e0
tompng (tomoya ishida)
08:15 PM Revision 5f07f78e (git): [ruby/bigdecimal] Update to_s doc examples
https://github.com/ruby/bigdecimal/commit/8a94a29cf1 cryptogopher (crypto gopher)
08:15 PM Revision 10f59dcb (git): [ruby/bigdecimal] Add .to_s('F') digit grouping for integer part
https://github.com/ruby/bigdecimal/commit/f63544d465 cryptogopher (crypto gopher)
05:56 PM Feature #19757: Add new C API to create a subclass of `Data`
Why not just using `rb_funcall()`? Eregon (Benoit Daloze)
10:25 AM Feature #19757 (Closed): Add new C API to create a subclass of `Data`
I propose a C API `rb_data_define` which crates a subclass of `Data`.
```C
/**
* Defines an anonymous data class.
*
* @endinternal
*
* @param[in] super Superclass of the defining class. Must be a
* ...
nobu (Nobuyoshi Nakada)
05:10 PM Revision 1dde9d72 (git): Explain why YJIT is disabled for clang<=9 [ci skip]
k0kubun (Takashi Kokubun)
04:33 PM Revision cd7166cc (git): [ruby/reline] Fix wrong byte_pointer passed to auto_indent_proc
(https://github.com/ruby/reline/pull/562)
https://github.com/ruby/reline/commit/4348354604
tompng (tomoya ishida)
03:01 PM Misc #19758: Statically link ext/json
nobu (Nobuyoshi Nakada) wrote in #note-2:
> Does generated ext/extinit.c include `init(Init_parser, "json/ext/parser")` line?
Yes, it also contains the other libraries that are missing,eg. Init_socket
MyCo (Maik Menz)
02:55 PM Misc #19758: Statically link ext/json
Does generated ext/extinit.c include `init(Init_parser, "json/ext/parser")` line? nobu (Nobuyoshi Nakada)
02:35 PM Misc #19758: Statically link ext/json
EDIT: I'm using `--enable-install-static-library --with-static-linked-ext` and it appears as if non of the ext's are actually linked into the static lib. MyCo (Maik Menz)
01:24 PM Misc #19758 (Assigned): Statically link ext/json
Hi,
I'm building Ruby both as dynamic and static library with MSVC for a project. Everything appears to work fine, but now I'm trying to use the json ext, and it only works with the dynamically linked version.
In the statically linke...
MyCo (Maik Menz)
02:34 PM Revision 6a871baa (git): Note that YJIT requires FLONUM [ci skip]
nobu (Nobuyoshi Nakada)
02:13 PM Revision 833b32f5 (git): also disable yjit for clang < 10
They don't compile. I guess nobody actively maintain such old
compilers. Chances are the situation won't improve. Let's stop
testing yjit on them.
shyouhei (Shyouhei Urabe)
02:13 PM Revision dd7c590f (git): disable yjit when for non-flonum
YJIT does not interface with this flag. shyouhei (Shyouhei Urabe)
01:45 PM Revision 00f92315 (git): [DOC] RDoc for some of dir.c (#8026)
burdettelamar (Burdette Lamar)
11:37 AM Revision 1f9618fc (git): Remove stale YARP snapshort file [ci skip]
nobu (Nobuyoshi Nakada)
11:37 AM Revision bd936024 (git): Sync man pages
Co-Authored-By: David Rodríguez <[email protected]> ParadoxV5
11:37 AM Revision 89844421 (git): [rubygems/rubygems] `gemfile.5`: Quote default glob to escape Markdown
For consistency, I chose code format over plaintext escaping. Jimmy H
10:11 AM Revision 1e7ddfa7 (git): [ruby/psych] Extract accessor methods without forwardable
We should leave additional dependency if we leave from them.
https://github.com/ruby/psych/commit/3d0325a774
hsbt (Hiroshi SHIBATA)
09:21 AM Feature #16657 (Assigned): Don't ship bundled gems as .gem files as well as in expanded form
hsbt (Hiroshi SHIBATA)
04:09 AM Revision 62b49834 (git): [ruby/rdoc] [DOC] Improve CSS for "toggle source" hovering over one more method signatures
This commit improves the behavior of showing the "toggle source" element on mouseover.
For example, when a method has one more signatures by using `:call-seq:`,
```ruby
# :call-seq:
# foo {|element| ... } -> self
# foo -> new_enume...
Masafumi Koba
04:08 AM Revision f9288fb5 (git): [ruby/rdoc] Add source_code, homepage and changelog uris to gemspec metadata [ci skip]
https://github.com/ruby/rdoc/commit/b93687fdd0 Vinicius Stock
03:39 AM Revision 62754503 (git): [ruby/rdoc] [DOC] Fix to use KeyboardEvent.key over keyCode
https://github.com/ruby/rdoc/commit/663edc807c gemmaro
03:37 AM Revision 77fa4787 (git): [ruby/rdoc] Add keydown event listener to focus on search field
https://github.com/ruby/rdoc/commit/db62e47df2 gemmaro

07/04/2023

08:45 PM Revision fd6da40f (git): [ruby/irb] Use `max_by` for `longest_cmd_name_length`
(https://github.com/ruby/irb/pull/628)
https://github.com/ruby/irb/commit/5e87f3bfdd
Co-authored-by: Andy Waite <[email protected]>
Andy Waite
08:02 PM Revision 6b2abe57 (git): YJIT: Avoid reloading InsnOut operands (#8021)
k0kubun (Takashi Kokubun)
07:57 PM Revision a1d4dada (git): YJIT: Break register cycles for C arguments (take 2) (#8018)
* Revert "Revert "YJIT: Break register cycles for C arguments (#7918)""
This reverts commit 78ca085785460de46bfc4851a898d525c1698ef8.
* Use shfited_live_ranges for the last-insn check
k0kubun (Takashi Kokubun)
04:19 PM Bug #19756: URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
Note that underscores are not allowed in host names.
I think it is a reasonable behavior for `URI::HTTP.build(host:"_gateway")` to raise an exception in order to prevent the generation of invalid URI strings.
It is arguable about the...
mame (Yusuke Endoh)
02:11 AM Bug #19756 (Open): URI::HTTP.build does not accept a host of `_gateway`, but `URI.parse` will.
I noticed a difference in behavior between `URI::HTTP.build` and `URI.parse`. `URI::HTTP.build` will not accept `host:` value of `_gateway`, but `URI.parse` will.
## Steps To Reproduce
```ruby
URI::HTTP.build(host: "_gateway")
``...
postmodern (Hal Brodigan)
03:17 PM Revision f6af5a11 (git): [ruby/irb] Refactor eval history
(https://github.com/ruby/irb/pull/623)
* Rename `ext/history.rb` to `ext/eval_history.rb`
To confusion with `lib/irb/history.rb`
* Add eval_history tests
* Rename eval_history's History to EvalHistory to avoid confusion
st0012 (Stan Lo)
03:07 PM Revision 2f603bc4 (git): ruby_3_2 backport for #8006 (#8008)
YJIT: Fix autosplat miscomp for blocks with optionals
When passing an array as the sole argument to `yield`, and the yieldee
takes more than 1 optional parameter, the array is expanded similar
to `*array` splat calls. This is called "au...
alanwu (Alan Wu)
02:45 PM Revision 296782ab (git): YJIT: Fix autosplat miscomp for blocks with optionals (#8006)
* YJIT: Fix autosplat miscomp for blocks with optionals
When passing an array as the sole argument to `yield`, and the yieldee
takes more than 1 optional parameter, the array is expanded similar
to `*array` splat calls. This is called "...
alanwu (Alan Wu)
02:18 PM Revision 218f913a (git): Suppressing security alert of atty dependency by env_logger-0.9.0
hsbt (Hiroshi SHIBATA)
01:52 PM Revision 0a8b5cac (git): [ruby/reline] Refactor Reline::Core
(https://github.com/ruby/reline/pull/561)
* Use Reline::Core.encoding instead of directly referencing IOGate
* Set input/output based on the IOGate's interface
st0012 (Stan Lo)
01:23 PM Revision 2e6a8a86 (git): [DOC] Dir doc (#8014)
burdettelamar (Burdette Lamar)
01:14 PM Revision 9178a998 (git): Remove reference to USE_RINCGC
This compile time flag was removed in https://github.com/ruby/ruby/pull/7313
This commit cleans up some related dead code.
eightbitraptor (Matt V-H)
12:30 PM Revision 8ddfc177 (git): Use `uint_least32_t`
The elements of `ruby_global_name_punct_bits` table are 32-bit masks. nobu (Nobuyoshi Nakada)
11:13 AM Revision ab661556 (git): fix substitution errors
These expressions don't exist. shyouhei (Shyouhei Urabe)
11:13 AM Revision 7ee39556 (git): fix typo
`matrix.name` doesn't exist. shyouhei (Shyouhei Urabe)
11:13 AM Revision 72e58bbd (git): fix typo
According to https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#check_suite
the key is "types", not "type".
shyouhei (Shyouhei Urabe)
11:13 AM Revision 7690a312 (git): chore: add blank lines [ci skip]
A bit readable to me. shyouhei (Shyouhei Urabe)
11:13 AM Revision f7732d63 (git): Use `${{}}` for if statement [ci skip]
Looking at `git log` it seems multiple members of the team prefer
this style. Let us follow the tradition.
shyouhei (Shyouhei Urabe)
11:13 AM Revision b0977e40 (git): chore: just add spaces [ci skip]
As seen in:
https://docs.github.com/en/actions/learn-github-actions/expressions
shyouhei (Shyouhei Urabe)
11:13 AM Revision 8ba5437f (git): annocheck: de-matrix
This workflow have never needed matrix since its birth. shyouhei (Shyouhei Urabe)
11:13 AM Revision d1efc7a3 (git): chore: prettier [ci skip]
This is just `prettier --single-quote`. Single quote is because
it generated smaller diff than vice verca.
shyouhei (Shyouhei Urabe)
11:13 AM Revision 420d069c (git): refactor extract mkdir
Everyone does `mkdir build; src/autogen.sh`; why not merge them. shyouhei (Shyouhei Urabe)
10:32 AM Bug #19751: Ruby 3.2.2 Fails to Compile from Source
I have what looks to be the exact same issue, with the same errors and a very similar log. The issue manifests with both the tarball and with the git repo on the ruby_3_2 branch. I can provide a full log if needed just for quick comparis... Kagetsuki (零 影月)
09:51 AM Bug #19751 (Feedback): Ruby 3.2.2 Fails to Compile from Source
Waiting for feedback. nobu (Nobuyoshi Nakada)
08:51 AM Revision 6f4c8d1d (git): [Cirrus] Run only when YJIT sources change [skip appveyor]
[ci skip] on other CIs.
Our tasks very often reach a concurrency limit on Cirrus-CI, and get
delayed. Submitting new tasks during the delay seems to make delay
longer and longer. So I think we should restrict the use of Cirrus,
provis...
nobu (Nobuyoshi Nakada)
05:54 AM Revision 4f2f1ddf (git): [rubygems/rubygems] Test that git sources in lockfiles have stable sort order
https://github.com/rubygems/rubygems/commit/4c982684ea Ellen Marie Dash
05:54 AM Revision 09382135 (git): [rubygems/rubygems] Fix git source lockfile unstability
We have some flags that limit running git commit commands under certain
situations, for example, when running under `--local`. However, those
should only affect remote git operations, not local read-only operations
like `git --version`, ...
deivid (David Rodríguez)
05:54 AM Revision 0ae2709d (git): [rubygems/rubygems] When printing frozen errors, print only Gemfile information
https://github.com/rubygems/rubygems/commit/93f74abc5f deivid (David Rodríguez)
05:54 AM Revision 0fcb4c6a (git): [rubygems/rubygems] Fix another incorrect removal of "ruby" platform from lockfile
When dependencies in path sources have changed, we'll be re-resolving,
and we can't really know whether the resolution will be valid or invalid
for the Ruby platform, so skip the removal in that case.
https://github.com/rubygems/rubygem...
deivid (David Rodríguez)
04:47 AM Bug #19753: IO::Buffer#get_string can't handle negative offset
nobu (Nobuyoshi Nakada) wrote in #note-3:
> > irb(main):003:0> b.get_string(-1000)
> ...
Well now that I look at `String#[]` and `Array#[]` they return `nil` when `offset < -size`:
```ruby
irb(main):001:0> s = 'abc'
=> "abc"
irb(...
noteflakes (Sharon Rosner)

07/03/2023

04:30 PM Feature #19755: Module#class_eval and Binding#eval use caller location by default
> Indeed, and `class_eval`/`eval` is broken if decorated e.g. for `a = 3; class_eval "a"`.
Oh yeah, good point, that one slipped my mind.
Dan0042 (Daniel DeLorme)
03:59 PM Feature #19755: Module#class_eval and Binding#eval use caller location by default
byroot (Jean Boussier) wrote in #note-3:
> Decorating `class_eval / eval` should be quite rare anyways.
Indeed, and `class_eval`/`eval` is broken if decorated e.g. for `a = 3; class_eval "a"`.
The direct caller of `Module#class_eval...
Eregon (Benoit Daloze)
01:43 PM Feature #19755: Module#class_eval and Binding#eval use caller location by default
> doesn't work if another module is in the call chain
I'm not sure we can / should handle this. Decorating `class_eval / eval` should be quite rare anyways.
byroot (Jean Boussier)
01:15 PM Feature #19755: Module#class_eval and Binding#eval use caller location by default
+1
Just be careful about the implementation, because that monkey patch doesn't work if another module is in the call chain
```ruby
module DebugEval
def class_eval(code, ...)
p debug: code
super # <= source_location wi...
Dan0042 (Daniel DeLorme)
12:01 PM Feature #19755: Module#class_eval and Binding#eval use caller location by default
`#<UnboundMethod: Foo#foo() (eval in /tmp/foo.rb):10>` sounds great to me, +1.
The `(eval` makes it clear it's an eval in that file and so the line of an exception inside might not be exact.
Eregon (Benoit Daloze)
11:19 AM Feature #19755 (Closed): Module#class_eval and Binding#eval use caller location by default
### Background
In Ruby we're very reliant on `Method#source_location` as well as `caller_locations` to locate source code.
However, code generated via `Binding#eval`, `Module#class_eval` etc defeat this if called without a location...
byroot (Jean Boussier)
01:48 PM Revision af9eeb19 (git): [ruby/irb] Stop treating history-saving logic as extension
(https://github.com/ruby/irb/pull/613)
Since `IRB.conf[:SAVE_HISTORY]` is assigned with 1000 by default, history-saving
is a feature enabled by default. So it should not be treated as an extension,
which adds unnecessary complexity to t...
st0012 (Stan Lo)
11:07 AM Bug #19753 (Assigned): IO::Buffer#get_string can't handle negative offset
noteflakes (Sharon Rosner) wrote:
> ```ruby
> ...
I think this should raise an `ArgumentError`.
> ```ruby
> ...
At least, it should not be `"ab"`.
nobu (Nobuyoshi Nakada)
07:35 AM Bug #19753: IO::Buffer#get_string can't handle negative offset
PR here: https://github.com/ruby/ruby/pull/8015 noteflakes (Sharon Rosner)
06:14 AM Bug #19753 (Closed): IO::Buffer#get_string can't handle negative offset
```ruby
irb(main):001:0> b = IO::Buffer.for('abc')
=>
#<IO::Buffer 0x00007f858f5450c0+3 EXTERNAL READONLY SLICE>
...
irb(main):002:0> b.get_string(-1)
=> "\x00abc"
irb(main):003:0> b.get_string(-1000, 3)
(irb):3:in `get_string':...
noteflakes (Sharon Rosner)
10:48 AM Bug #19754 (Closed): `IO::Buffer#get_string` raises unsuitable exception for too large offset
The message seems suitable when both of `offset` and `length` are given.
```ruby
IO::Buffer.for("test").get_string(5, 0) #=> Specified offset+length exceeds buffer size! (ArgumentError)
```
But without `length`, it doesn't seem to ...
nobu (Nobuyoshi Nakada)
09:57 AM Revision 4430b73c (git): [ruby/timeout] Require Ruby >= 2.6 for the timeout gem
* The test suite fails on 2.5.
* See https://github.com/ruby/timeout/pull/35
https://github.com/ruby/timeout/commit/03873a9237
Eregon (Benoit Daloze)
09:26 AM Revision 8281f8fd (git): [ruby/timeout] Test that work is done in the same thread/fiber as
the caller
(https://github.com/ruby/timeout/pull/34)
* see discussion in
https://github.com/ruby/timeout/pull/30#issuecomment-1616179651
John Bachir
05:47 AM Bug #18933 (Closed): Dir.tmpdir implemented in non-Ractor-safe manner
Applied in changeset commit:git|3e605a781970cef365002167634a1b5a176bffcb.
----------
[ruby/tmpdir] [Bug #18933] Make `Dir.mktmpdir` Ractor-safe
Fix https://bugs.ruby-lang.org/issues/18933
https://github.com/ruby/tmpdir/commit/446e636434
nobu (Nobuyoshi Nakada)
05:47 AM Revision 3e605a78 (git): [ruby/tmpdir] [Bug #18933] Make `Dir.mktmpdir` Ractor-safe
Fix https://bugs.ruby-lang.org/issues/18933
https://github.com/ruby/tmpdir/commit/446e636434
nobu (Nobuyoshi Nakada)
04:36 AM Revision 4bfa4433 (git): [Cirrus] Set up cargo environments just once at first
nobu (Nobuyoshi Nakada)
04:36 AM Revision d2ffd0ad (git): [Cirrus] Share configuration using YAML aliases
https://cirrus-ci.org/guide/tips-and-tricks/#sharing-configuration-between-tasks nobu (Nobuyoshi Nakada)
04:35 AM Revision 3a761dcc (git): [Cirrus] Show CPU and memory info
nobu (Nobuyoshi Nakada)
04:35 AM Revision bde3b98a (git): [Cirrus] Make gem download non-verbose
nobu (Nobuyoshi Nakada)
04:35 AM Revision 4a607641 (git): [Cirrus] Run also crons other than nightly
nobu (Nobuyoshi Nakada)

07/02/2023

10:51 PM Revision 7e333b7a (git): [ruby/timeout] require ruby version in gemspec
https://github.com/ruby/timeout/commit/949445f591 John Bachir
05:49 PM Feature #19752 (Assigned): Allow `--backtrace-limit` to appear in RUBYOPT
The proposed patch includes a change to treat it as unspecified with -1. I would like to get Matz's approval on this. mame (Yusuke Endoh)
04:42 PM Feature #19735: Add support for UUID version 7
I hadn't realized that `"random/formatter"` belonged to `securerandom`. I closed the `ruby` PR and created a new PR here: https://github.com/ruby/securerandom/pull/19. There was also another earlier PR which looks almost identical to m... nevans (Nicholas Evans)
02:31 PM Feature #19742: Introduce `Module#anonymous?`
> I think it would be great to reflect it in the Module#name if a Module is no longer reachable through that name.
> ...
If I understand this correctly, I believe it is not possible preserving today's rules.
Nowadays, if a module was ev...
fxn (Xavier Noria)
07:52 AM Revision 9682275b (git): [Travis] make `.bundle` directory writable
To create gem files from sources under `gems/src` for tests. nobu (Nobuyoshi Nakada)
04:49 AM Revision 12fc80ab (git): Update default gems list at 4bad2a9562aece90f6df9f3ef1c7ec [ci skip]
git[bot]
04:49 AM Revision 4bad2a95 (git): [ruby/irb] Bump version to 1.7.1
(https://github.com/ruby/irb/pull/621)
https://github.com/ruby/irb/commit/b9a9dd97df
st0012 (Stan Lo)
04:00 AM Revision fa6e14c4 (git): [DOC] Stop downloading Unicode data only for unicode_properties.rdoc
nobu (Nobuyoshi Nakada)
03:21 AM Feature #19521: Support for `Module#name=` and `Class#name=`.
@sawa there are also methods that start with `set_`, for example `set_trace_func` and `set_encoding`. I think one difference is that most `xyz_set` methods tend to also have a `xyz_get` counterpart. Which is not the case for `set_tempora... Dan0042 (Daniel DeLorme)

07/01/2023

03:30 PM Revision 765a19ab (git): [ruby/psych] Remove private methods unused since #487
https://github.com/ruby/psych/commit/902c292f26 nobu (Nobuyoshi Nakada)
03:02 PM Feature #17339: Semantic grouping with BigDecimal#to_s
I've sent pull request with solution as specified by author of issue: https://github.com/ruby/bigdecimal/pull/264 cryptogopher (crypto gopher)
02:55 PM Feature #19752 (Closed): Allow `--backtrace-limit` to appear in RUBYOPT
The `--backtrace-limit` option was added in #8661 but it is not currently supported in the `RUBYOPT` environment variable, which appears to be a mistake. Unlike other long options which are not allowed in `RUBYOPT` (e.g. `--copyright`, `... tomstuart (Tom Stuart)
02:22 PM Bug #19728 (Closed): Automate (checking of) Regexp character property documentation
Applied in changeset commit:git|08b3fb11524e6cde453476f24ac80fd60457dfef.
----------
[Bug #19728] Auto-generate unicode property docs
https://bugs.ruby-lang.org/issues/19728
janosch-x (Janosch Müller)
02:22 PM Revision 08b3fb11 (git): [Bug #19728] Auto-generate unicode property docs
https://bugs.ruby-lang.org/issues/19728 janosch-x (Janosch Müller)
02:17 PM Revision 3fd1968d (git): Introduce script_lines function for refactor script_lines_defined and script_lines_get functions
S_H_ (Shun Hiraoka)
02:16 PM Revision a70320b8 (git): Define `NO_SANITIZE` with reference to ext/bigdecimal/missing.c
jinroq (Jinroq SAITOH)
02:16 PM Revision 174dbe33 (git): Supress `warning: ‘unsigned-integer-overflow’ attribute directive ignored [-Wattributes]`
jinroq (Jinroq SAITOH)
06:59 AM Bug #19751: Ruby 3.2.2 Fails to Compile from Source
Could you share `version.i` generated with `make version.i`? nobu (Nobuyoshi Nakada)
05:59 AM Bug #19751 (Closed): Ruby 3.2.2 Fails to Compile from Source
Details are at the attached file, but the build-crash-log seems to be:
```
compiling addr2line.c
compiling dmyenc.c
linking miniruby
/bin/sh ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp
rbconfig.rb update...
martin_vahi (Martin Vahi)
06:14 AM Revision 1a6f3bec (git): Fallback `rb_iseq_complete`
For compilers that do not eliminate references to functions that are
never called, such as SunC.
nobu (Nobuyoshi Nakada)
05:19 AM Bug #19394: cvars in instance of cloned class point to source class's cvars even after class_variable_set on clone
Merged https://github.com/ruby/ruby/pull/7888 nagachika (Tomoyuki Chikanaga)
04:55 AM Bug #19394 (Closed): cvars in instance of cloned class point to source class's cvars even after class_variable_set on clone
This issue should be fixed at 40f090f4339820d19da8ecdf81a981489c22eb57 and 135a5eb716399443da58db342de6093c91b5ad62 in master branch.
Thank you for creating the PRs to backport them into stable branches.
I will handle it (the one for...
nagachika (Tomoyuki Chikanaga)
05:18 AM Revision 07d5709f (git): bump patchlevel
nagachika (Tomoyuki Chikanaga)
05:17 AM Revision 038913f1 (git): Add missing write barrier
We were missing the write barrier for class_value to cref. This should
fix the segv we were seeing in http://ci.rvm.jp/logfiles/brlog.trunk-gc-asserts.20230601-165052
Co-authored-by: Aaron Patterson <[email protected]>
eileencodes (Eileen Uchitelle)
05:17 AM Revision 8a3d5797 (git): Fix cvar caching when class is cloned
The class variable cache that was added in
https://github.com/ruby/ruby/pull/4544 changed the behavior of class
variables on cloned classes. As reported when a class is cloned AND a
class variable was set, and the class variable was read...
eileencodes (Eileen Uchitelle)
05:17 AM Revision 06dae460 (git): Copy cvar table on clone
When a class with a class variable is cloned we need to also copy the
cvar cache table from the original table to the clone. I found this bug
while working on fixing [Bug #19379]. While this does not fix that bug
directly it is still a r...
eileencodes (Eileen Uchitelle)
04:48 AM Revision 814271b2 (git): bump patchlevel
nagachika (Tomoyuki Chikanaga)
04:46 AM Revision bbf1eb40 (git): Merge URI-0.12.2 for Bundler
hsbt (Hiroshi SHIBATA)
04:46 AM Revision dd73fe07 (git): Merge URI-0.12.2
hsbt (Hiroshi SHIBATA)
03:22 AM Revision 2952dbad (git): [DOC] Move document for YARP
nobu (Nobuyoshi Nakada)
02:38 AM Bug #19750 (Closed): Ruby hangs when parsing Regexp with unterminated unicode "/\u{"
Applied in changeset commit:git|1bc8838d60ef3fc6812d3b64ed87caaf0ae943d9.
----------
Handle unterminated unicode escapes in regexps
This fixes an infinite loop possible after ec3542229b29ec93062e9d90e877ea29d3c19472.
For \u{} escapes i...
jeremyevans (Jeremy Evans)
02:37 AM Revision 1bc8838d (git): Handle unterminated unicode escapes in regexps
This fixes an infinite loop possible after ec3542229b29ec93062e9d90e877ea29d3c19472.
For \u{} escapes in regexps, skip validation in the parser, and rely on the regexp
code to handle validation. This is necessary so that invalid unicode ...
jeremyevans (Jeremy Evans)
02:23 AM Bug #19749: Confirm correct behaviour when attaching private method with `#define_method`
I submitted a pull request to fix this: https://github.com/ruby/ruby/pull/8009 jeremyevans0 (Jeremy Evans)
 

Also available in: Atom