Activity
From 04/06/2022 to 04/12/2022
04/12/2022
- 10:27 PM Revision af855538 (git): * 2022-04-13 [ci skip]
-
10:27 PM Revision b21026cb (git): Enhanced RDoc for Symbol (#5795)
- Treats:
#==
#inspect
#name
#to_s
#to_sym
#to_proc
#succ
#<=>
#casecmp
#casecmp?
#=~
#match
#match? -
04:44 PM Misc #18691 (Feedback): An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
- In a Fedora Ruby RPM packaging, I have a challenge for the current `make rbconfig.rb`. Currently when we build Ruby from source to create the Ruby RPM package, we set compiler flag `CFLAGS` including `--specs=/usr/lib/rpm/redhat/redhat-h...
-
01:54 PM Revision 381475f0 (git): Use an empty string when building File.expand_path
- Allocating a string of length MAXPATHLEN and then shrinking the string
is inefficient when the resulting path is short. Preallocating a large
string is also a problem for Variable Width Allocation since we can't
easily downsize the capac... -
12:56 PM Feature #2567 (Closed): Net::HTTP does not handle encoding correctly
- Applied in changeset commit:git|ebb4378237e572ce2e888136a613c7c051439f95.
----------
[ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding
This allows for the ability to opt-in to a method to set the
encodi... -
12:56 PM Feature #15517 (Closed): Net::HTTP not recognizing valid UTF-8
- Applied in changeset commit:git|ebb4378237e572ce2e888136a613c7c051439f95.
----------
[ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding
This allows for the ability to opt-in to a method to set the
encodi... -
12:30 PM Revision d0a822ee (git): Fix dtoa buffer overrun
- https://hackerone.com/reports/1248108
- 11:49 AM Revision 69f9992e (git): Fix dtoa buffer overrun
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:48 AM Revision 3fa771dd (git): Fix dtoa buffer overrun
-
11:48 AM Revision 052ec6d2 (git): Just free compiled pattern if no space is used
- 11:25 AM Revision c9c2245c (git): Fix dtoa buffer overrun
-
11:24 AM Revision cf2bbcff (git): Just free compiled pattern if no space is used
- https://hackerone.com/reports/1220911
-
11:11 AM Revision 4491bb74 (git): teenyup
- 11:03 AM Revision fa7f75dd (git): Backport date-2.0.3 for Reiwa Support [Backport #18514]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:54 AM Revision 8d142ecf (git): Fix dtoa buffer overrun
-
10:53 AM Revision 73f45e5e (git): Just free compiled pattern if no space is used
- 10:52 AM Revision 560a4cdf (git): fix for #16798 to Ruby 2.6 introduced C99 syntax [Backport #18387]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:14 AM Revision 48ffa280 (git): Fix a typo [ci skip]
-
09:52 AM Feature #18690: Allow `Kernel#then` to take arguments
- The last example is just:
```ruby
p.call(honyarara, fugafugafuga, hogehogehoge)
```
isn't it? And that's a lot more readable IMHO.
I'm against this proposal, IMHO having multiple local variables for the same thing only increases c... -
09:20 AM Feature #18690 (Open): Allow `Kernel#then` to take arguments
- `Kernel#then` passes the receiver to the block as its first positional block parameter.
```ruby
1.5.then{|x| Math.atan(x)}
```
I would like to propose to let `then` take arguments, which would be passed to the block as the other ... -
06:34 AM Bug #18155: (nil..nil).cover?(x) is true for all x since beginless ranges were introduced
- I do not understand the logic behind option 2. I would rather expect this logic:
> a beginless-and-endless range has no type, so it imposes no restriction on the type
which would lead us to option 1. Its coverage should return `tru... - 05:07 AM Revision 47c3f31f (git): * 2022-04-12 [ci skip]
-
05:07 AM Revision a6d99089 (git): Fix spec to not touch the network
- And not depend on the state of rack's master branch, in particular, on
their Ruby support range. -
05:07 AM Revision 5758c648 (git): Expect to receive a non-keywords hash
- `RSpec::Mocks::ArgumentListMatcher#args_match?` fails when a
non-keywords hash is passed while a keyword hash is expected.
This is a change in `rspec-mocks` 3.10.3, so we need to adapt to it. -
05:07 AM Revision cdec8a29 (git): Merge Bundler-2.2.33
-
05:07 AM Revision 48be8051 (git): Merge RubyGems-3.2.33
04/11/2022
-
10:14 PM Misc #18689 (Closed): Windows mswin builds, Actions, OpenSSL 3
- Sorry for the long post and the md formatting...
With the release of the Actions windows-2022 image, MSYS2 build tools are no longer pre-installed on the image. Given that updating MSYS's msys and mingw64/ucrt64 tools can take quite ... -
08:23 PM Revision de5aa98f (git): Correct whitespace in array.c (#5791)
-
06:49 PM Revision 7d709ceb (git): Specify which core classes are convertible (#5790)
-
05:28 PM Revision 5f1f8c24 (git): Fix fake.rb RUBY_DESCRIPTION faking for JITs
- Previously, `make test-spec` was not printing the description with +YJIT
even when YJIT was indeed enabled. It was confusing on CI. `fake.rb` was
changing the `RUBY_DESCRIPTION` constant incorrectly.
I suppose `make test-spec` mostly ne... -
05:01 PM Misc #18652: DevMeeting-2022-04-21
- * [Bug #18628] Link contributing is broken (jeremyevans0)
* Also affects #18665. Problem is that ruby uses the --page-dir rdoc option.
* Any documentation generation that does not use the --page-dir rdoc option has broken links.
... - 03:17 PM Revision 492349ab (git): * 2022-04-12 [ci skip]
-
03:17 PM Revision ebb43782 (git): [ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding
- This allows for the ability to opt-in to a method to set the
encoding of response bodies. By setting the accessor to a String
or Encoding instance, it will use the specified encoding.
Setting the value of true will try to detect the enc... -
02:15 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
- Thanks for the ping. I've had some vacation recently. Looks like I missed the first preview release. I'll be able to start looking at this shortly.
-
05:25 AM Bug #18658: Need openssl 3 support for Ubuntu 22.04 (Ruby 2.7.x and 3.0.x)
- FYI: https://bugs.launchpad.net/ubuntu/+source/ruby2.7/+bug/1946190
Ubuntu backported openssl-3.0.0 for their ruby3.0 package.
-
05:20 AM Bug #18658: Need openssl 3 support for Ubuntu 22.04 (Ruby 2.7.x and 3.0.x)
- @schneems How about manually downloading and installing openssl-3.0.0.gem?
```
wget https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.gz
tar xf ruby-3.0.3.tar.gz
cd ruby-3.0.3
./configure --prefix=/path/to ...
make
make install
wg... -
05:21 AM Misc #18687 (Closed): [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- I will mark this to closed because the basic feature works now.
- 02:31 AM Revision 4bd38e81 (git): * 2022-04-11 [ci skip]
-
01:05 AM Revision 44a911a2 (git): test/ruby/test_keyword.rb: Prevent warning: assigned but unused variable
04/10/2022
- 01:34 PM Revision abe2bb1d (git): * 2022-04-10 [ci skip]
-
01:33 PM Revision c789bdd3 (git): [DOC] Enhanced RDoc for Array intro (#5781)
- This covers the first few sections of the class doc for Array.
-
06:26 AM Feature #17849: Fix Timeout.timeout so that it can be used in threaded Web servers
- The handling of timeouts is [documented][1], but that only shows it with a `handle_interrupt` block set up around everything, not under `ensure`. In the examples shown here, can `ensure;begin` or `ensure;Thread.handle_interrupt` be consi...
-
05:10 AM Bug #18688 (Rejected): when array's default value is empty hash adding a hash key value changes all array elements
- This is expected behavior and not a bug. As you mentioned, you want to use the block form if you want a new object for each default value.
-
04:38 AM Bug #18688 (Rejected): when array's default value is empty hash adding a hash key value changes all array elements
- ```ruby
ah = Array.new(3, {})
ah[1][:foo] = 'bar'
p ah # [{:foo=>"bar"}, {:foo=>"bar"}, {:foo=>"bar"}]
```
This is not expected result. The expected result is `[{}, {:foo=>"bar"}, {}]`.
Alternatively, below code works as expecte...
04/09/2022
-
08:43 AM Revision 5b467400 (git): [DOC]Some link prefix replace
-
08:22 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- I fixed the issue of mailing-list integration.
-
06:39 AM Misc #18687: [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- I found the mailing-list integration is broken now.
-
06:06 AM Misc #18687 (Closed): [ANN] Upgraded bugs.ruby-lang.org to Redmine 5.0
- Today, I migrated this tracker Redmine 4.2 to 5.0.
It has the following major changes.
* Based on Rails 6.1.
* Allowed username mention like `@hsbt` with autocomplete.
* Support CommonMaker for Markdown formatting.
Release not...
04/08/2022
- 07:25 PM Revision 83aeec8a (git): * 2022-04-09 [ci skip]
-
07:25 PM Revision 70415071 (git): Fix some RDoc links (#5778)
-
06:52 PM Bug #18686 (Closed): Regexp supporting unexpected age properties in Ruby < 3.2
- I've encountered this on GitHub Actions running Ubuntu 20. I cannot reproduce it locally on Darwin/arm64.
It is a weird bug and far from critical, but it might indicate some underlying problem.
I've found that ...
- all Ruby ver... -
12:30 PM Revision c77a31df (git): call `const_added` after `autoload`
- When calling `const_added` while process in `autoload`, it can
cause synchronization issue because of a thread swithcing.
http://ci.rvm.jp/logfiles/brlog.trunk.20220407-152213#L489
```
1)
Module#autoload (concurrently) raises a LoadErr... -
10:52 AM Feature #18685: Enumerator.product: Cartesian product of enumerables
- Isn't it significantly slower than doing it manually due to all these extra block and method calls etc in between?
-
07:20 AM Feature #18685 (Closed): Enumerator.product: Cartesian product of enumerables
- I'd like to add a new Enumerator class method for generating the Cartesian product of given enumerators.
A product here does not mean an accumulated array of arrays, but an enumerator to enumerate all combinations.
```ruby
product =... -
04:31 AM Revision 798e2163 (git): sync `vm->constant_cache`
- On multi-ractors, `vm->constant_cache` (and so on) can be accessed
in parallel so we need to synchronize the accesses to them.
http://rubyci.s3.amazonaws.com/centos7/ruby-master/log/20220407T213003Z.log.html.gz#btest
04/07/2022
-
07:29 PM Revision 9ca3d537 (git): All-in-one RDoc for class String (#5777)
- 04:49 PM Revision a7d7ee90 (git): * 2022-04-08 [ci skip]
-
04:49 PM Revision 16e08d53 (git): Fix strict aliasing issue
- `rb_id_table_lookup()` writes to a `VALUE`, which is definitely a distinct
type from `st_table *`. With LTO, the compiler is allowed by N1256
§6.5p7 to remove the output parameter write via type-based alias
analysis.
See also: a0a8f2abf53 -
04:12 PM Bug #18684: Support for out of source build
- Please precisely write what you did. The following process works well for me.
```
$ tar xf ruby-3.1.1.tar.gz
$ mkdir ruby-build
$ cd ruby-build
$ ../ruby-3.1.1/configure --prefix=$PWD/local
$ make
```
I guess you first did "i... -
11:47 AM Bug #18684 (Closed): Support for out of source build
- Trying out of source build, it fails:
~~~
... snip ...
compiling ../ruby-3.1.1/vm_sync.c
compiling ../ruby-3.1.1/vm_trace.c
compiling ../ruby-3.1.1/yjit.c
assembling ../ruby-3.1.1/coroutine/amd64/Context.S
Assembler messages:
... -
03:49 PM Bug #18680: The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
- Yea. The #atime method has "-> time" ... whatever is decided, the four methods: #atime, #ctime, #mtime, and #birthtime should all have the same doc.
-
07:55 AM Bug #18680: The documentation for File::Stat#ctime (for example) says: stat.ctime -> aTime
- I guess that "aTime" means "a Time" or "an instance of Time". There is no strict rule for writing rdoc AFAIK, but I don't think it is very common to write a class constant name to represent a return instance type. I wonder if `-> time` i...
- 01:52 PM Revision 389723d8 (git): * 2022-04-07 [ci skip]
-
01:38 PM Revision 697eed63 (git): [ruby/psych] Update autoconf files bundled with yaml-2.5
- https://github.com/ruby/psych/commit/e28f17ac18
-
11:03 AM Bug #18681: crashes when built with AddressSanitizer (clang build)
- mame (Yusuke Endoh) wrote in #note-2:
> I couldn't reproduce the issue. Can you build it with a simple configuration, i.e., without ASAN and without `-j45`?
Yes, no problem with clear build.
Fixed with params:
``` shell
export ASAN_OPTI... -
08:20 AM Bug #18681: crashes when built with AddressSanitizer (clang build)
- I couldn't reproduce the issue. Can you build it with a simple configuration, i.e., without ASAN and without `-j45`?
-
10:19 AM Revision 7b1ece9b (git): Get rid of type-punning pointer casts
-
10:07 AM Revision 9e58c3c5 (git): Get rid of type aliasing
-
09:01 AM Revision 23090cf6 (git): Suppress an unused function
-
07:47 AM Revision f2377e4c (git): Fix a typo [ci skip]
-
07:21 AM Bug #18679 (Rejected): Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- It seems clear that this isn't a Ruby bug. So I'm closing this issue. But please feel free to continue discussing the solution here if that helps.
-
07:10 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- @taf2, in that case it's indeed a `$LANG` problem.
-
06:03 AM Revision 21f006f5 (git): Retrieve previously configured macros also other than `extensions`
-
03:19 AM Revision 5af507f5 (git): Update `heap_pages_deferred_final` atomically
-
02:15 AM Bug #18487 (Closed): Kernel#binding behaves differently depending on implementation language of items on the stack
- Applied in changeset commit:git|0b091fdac6ceb33b7379ceddc9a49a79d0e158b2.
----------
Raise RuntimeError if Kernel#binding is called from a non-Ruby frame
Check whether the current or previous frame is a Ruby frame in
call_trace_func an... -
02:14 AM Revision 0b091fda (git): Raise RuntimeError if Kernel#binding is called from a non-Ruby frame
- Check whether the current or previous frame is a Ruby frame in
call_trace_func and rb_tracearg_binding before attempting to
create a binding for the frame.
Fixes [Bug #18487]
Co-authored-by: Alan Wu <[email protected]> -
01:37 AM Revision bff12e1a (git): [DOC] Fix comment links
-
12:47 AM Revision 5c1b76a3 (git): Install built gem extension binaries
-
12:47 AM Revision bb0a22a8 (git): Obey spec file locations to rubygems
-
12:47 AM Revision d7afaf21 (git): Move the target directory of bundled gems like as rubygems
-
12:47 AM Revision 17ce0b9b (git): Retrieve configured gems info
-
12:47 AM Revision db3d111c (git): Bundled gems are expanded under `.bundle/gems` now
-
12:46 AM Revision 3607657e (git): [DOC] Fix linux kernel commit links
04/06/2022
-
10:39 PM Revision 21c8b9eb (git): Copyedit parallel test harness crash message
- Mea culpa.
Co-authored-by: Kaíque Kandy Koga <[email protected]> -
10:22 PM Revision 16e6d7d1 (git): [rubygems/rubygems] Set `@tempdir` as early as possible
- We have seen some errors during test `setup` before `@tempdir` is
actually set, in particular, when instantiating `Gem::MockUI` which in
turn requires `stringio`. In this case, the `teardown` method will also
produce an error because it ... -
10:11 PM Revision 399ef463 (git): Copyedit parallel test harness crash message
- 08:47 PM Revision 86411f69 (git): * 2022-04-07 [ci skip]
-
08:47 PM Revision 717b20ee (git): [DOC] Enhanced RDoc for string slices (#5769)
- Creates file doc/string/slices.rdoc that the string slicing methods can link to.
-
07:07 PM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- @byroot thank you! that was it on intel: Encoding.default_internal
=> #<Encoding:UTF-8>
On arm:
Encoding.default_internal
=> nil -
11:54 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- My bet would be the locale is not set properly on the arm machine.
`locale` probably shows `C` or `POSIX` and many things don't work with that.
You probably need `export LANG=en_US.UTF-8` or so.
I think CRuby should warn in that cas... -
07:25 AM Bug #18679: Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
- You might want to look at wether `Encoding.default_internal` and `Encoding.default_external` matches on your two platforms.
-
05:45 PM Feature #18683: Allow to create hashes with a specific capacity.
- That's a good point.
I suppose it could be worked around with either:
- A positional argument: `Hash.new(nil, capacity).
- An alternative constructor (e.g. `Hash.new_with_capcity`).
- And instance setter `h = {}; h.capacity... -
04:47 PM Feature #18683: Allow to create hashes with a specific capacity.
- This would break backwards compatibility:
```ruby
Hash.new(capacity: 1000)[nil]
# => {:capacity=>1000}
``` -
10:55 AM Feature #18683 (Closed): Allow to create hashes with a specific capacity.
- Various protocol parsers such as Redis `RESP3` or `msgpack`, have to create hashes, and they know the size in advance.
For efficiency, it would be preferable if they could directly allocate a Hash of the necessary size, so that large ha... - 02:57 PM Revision 1f3448f5 (git): Update bundled gems list at 8197ae35f90aa1c260b5782c08827d [ci skip]
-
02:57 PM Revision 8197ae35 (git): Bundle RBS 2.3.2 (#5762)
-
09:22 AM Bug #18682 (Closed): doc: raise also accepts instances
- I think it is the case of "another object that returns an Exception object hen sent an exception message".
In other words, `raise RuntimeError.new("foo")` raises `RuntimeError.new("foo").exception`, which is `#<RuntimeError: foo>`.
`... -
09:03 AM Bug #18682 (Closed): doc: raise also accepts instances
- https://ruby-doc.org/core-3.1.1/Kernel.html#method-i-raise says
```
Otherwise, the first parameter should be an Exception class (or another object that returns an Exception object when sent an exception message).
```
Well, it can... -
08:41 AM Bug #18681 (Closed): crashes when built with AddressSanitizer (clang build)
- Have the error-message in log then build ruby interpreter:
``` shell
building .ext/include/x86_64-linux/rb_mjit_min_header-2.7.5.h
./miniruby -I./lib -I. -I.ext/common ./tool/transform_mjit_header.rb "/usr/bin/clang -fsanitize=addre... -
02:59 AM Revision 8da0b68a (git): Fix a typo [ci skip]