Project

General

Profile

Activity

From 03/05/2020 to 03/11/2020

03/11/2020

11:47 PM Feature #16688: Allow #to_path object as argument to system()
+1, this would be useful and the lack of it caused a few bugs when moving some code to using `Pathname`. Eregon (Benoit Daloze)
08:29 PM Feature #16688: Allow #to_path object as argument to system()
I do not have a strong opinion either way; I myself sort of just use `Dir[]`
rather than `Pathname` (I just love `Dir...
shevegen (Robert A. Heiler)
05:38 PM Feature #16688: Allow #to_path object as argument to system()
I don't know the downsides, just that `Pathname#to_str` was specifically _removed_ 10 years ago: #1970
So I imagine ...
Dan0042 (Daniel DeLorme)
05:01 PM Feature #16688: Allow #to_path object as argument to system()
I always wondered, why `Pathname` doesn't define `to_str`?.. It seems to be a perfectly suitable option: implicit con... zverok (Victor Shepelev)
03:23 PM Feature #16688 (Open): Allow #to_path object as argument to system()
I often work with Pathname objects, but when passing them to a system command I find it a bit tedious that they have ... Dan0042 (Daniel DeLorme)
10:02 PM Bug #16690: [BUG] Set of sets: containing set no longer believes member set is a member after mutating its member set
That's explained in the documentation of the class: https://ruby-doc.org/stdlib-2.7.0/libdoc/set/rdoc/Set.html
> S...
byroot (Jean Boussier)
08:10 PM Bug #16690 (Rejected): [BUG] Set of sets: containing set no longer believes member set is a member after mutating its member set
Please correct me if I'm wrong but I expected that when mutating a member set of a containing set, that that mutated ... keithyjohnson (Keith Johnson)
04:27 PM Bug #16682 (Closed): Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
jeremyevans0 (Jeremy Evans)
04:16 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
I now think the TracePoint issue is a red herring, I figured a way to reproduce what I think is the underlying root c... byroot (Jean Boussier)
10:36 AM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
So I just tried your patch, it does indeed fix my reproduction script, however It doesn't fix the other crashes I rep... byroot (Jean Boussier)
01:05 AM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
It looks like [0c2d81da](https://github.com/ruby/ruby/commit/0c2d81dada88b5a3946c3162187df4223bfe6b4f) introduced thi... alanwu (Alan Wu)
04:05 PM Bug #16689 (Closed): [BUG] try to mark T_NONE object
This kinds of superseeds https://bugs.ruby-lang.org/issues/16682. I'm now able to trigger what I believe to be the tr... byroot (Jean Boussier)
01:27 PM Bug #16687 (Closed): Ripper.slice FrozenError in ruby 2.5
Trying the example from the Ripper.slice documentation:
```ruby
require 'ripper'
p Ripper.slice('def m(a) nil en...
Dan0042 (Daniel DeLorme)
10:47 AM Feature #16684: Use the word "to" instead of "from" in backtrace
I'm negative, I think `to` doesn't read well in this context.
They are still stack entries, coming *from* some file,...
Eregon (Benoit Daloze)
01:01 AM Feature #16684: Use the word "to" instead of "from" in backtrace
I do not necessarily have a strong preference between "to" and "from". I am not a
native english speaker either; may...
shevegen (Robert A. Heiler)
09:13 AM Revision f020d340 (git): parse.y: hoisted out new_nil_at
new_nil_at: create NEW_NIL node with zero-width location. nobu (Nobuyoshi Nakada)
09:13 AM Revision 276859e0 (git): parse.y: unified kwrest and no-kwrest
nobu (Nobuyoshi Nakada)
07:59 AM Revision da4b97a0 (git): Pin and inline cme in JIT-ed method calls
```
$ benchmark-driver benchmark.yml -v --rbenv 'before --jit;after --jit' --repeat-count=12 --output=all
before --ji...
k0kubun (Takashi Kokubun)
07:43 AM Revision e89ebdcb (git): Fix typos (#2958)
* Fix a typo
* Fix typos in st.[ch]
k_takata (Ken Takata)
06:29 AM Revision 9511b4c8 (git): Optimize away call data refs in JIT-ed method calls
According to ko1, `cd->cc != cc` was for GC.compact guard.
As we pin cc by rb_gc_mark(), we don't need the check.
``...
k0kubun (Takashi Kokubun)
05:36 AM Revision da694875 (git): Fix an example committed to a wrong place [ci skip]
k0kubun (Takashi Kokubun)
05:29 AM Revision de4999ef (git): Try to correct grammer of the NEWS entry [ci skip]
k0kubun (Takashi Kokubun)
05:26 AM Feature #16686 (Closed): Let Net::HTTP.get take request headers
Applied in changeset commit:git|e0512b29aa47d4b79a27b0c0356bf47ec9b4e072.
----------
Let Net::HTTP.get take request ...
k0kubun (Takashi Kokubun)
04:57 AM Feature #16686 (Closed): Let Net::HTTP.get take request headers
When we need to write a script requesting an HTTP API with GET method which requires authentication by a request head... k0kubun (Takashi Kokubun)
05:26 AM Revision e0512b29 (git): Let Net::HTTP.get take request headers (#2957)
* Let Net::HTTP.get take request headers
* Add more test cases for no header usages
* Add examples with request hea...
k0kubun (Takashi Kokubun)
02:09 AM Feature #3647: Array#sample(n, replace=false)
https://github.com/ruby/ruby/pull/2956 nobu (Nobuyoshi Nakada)

03/10/2020

09:41 PM Bug #16685 (Closed): IRB auto indent does not work for single-line method definitions
IRB auto indent does not work correctly for single line method definitions within a class. It ends up like this:
`...
sawa (Tsuyoshi Sawada)
08:20 PM Bug #16683: Regression in ruby 2.7 File.realpath return ASCII-8BIT for string literal with invalid characters instead of UTF-8
Yeah, it looks like we've just got some very sloppy code as I dig into it more. lamont (Lamont Granquist)
08:20 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
So I've built a new ruby with that dumb patch:
```
diff --git a/vm_trace.c b/vm_trace.c
index 9a604814c6..dd5a44...
byroot (Jean Boussier)
04:41 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
> A cleaner workaround (and yes I agree this doesn't fix the segfault) would be to define a finalizer on the tracepoi... byroot (Jean Boussier)
04:32 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
byroot (Jean Boussier) wrote in #note-6:
> ko1 (Koichi Sasada) wrote in #note-5:
> > how about to disable this TP?
...
methodmissing (Lourens Naudé)
04:14 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
ko1 (Koichi Sasada) wrote in #note-5:
> how about to disable this TP?
`at_exit { tracepoint.disable }` indeed pre...
byroot (Jean Boussier)
03:29 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
how about to disable this TP? ko1 (Koichi Sasada)
05:55 PM Bug #16669 (Closed): Rails Action Text unit tests fail since b9007b6c548f91e88fd3f2ffa23de740431fa969
Applied in changeset commit:git|2943ff9d4441485a18773aa745bab7f47767dde2.
----------
fix bug on method cache invalid...
ko1 (Koichi Sasada)
05:55 PM Revision 12009fb3 (git): * 2020-03-11 [ci skip]
git[bot]
05:55 PM Revision d05455d0 (git): fix type cast
ko1 (Koichi Sasada)
05:50 PM Revision 2943ff9d (git): fix bug on method cache invalidation.
To invalidate cached method entry, existing method entry (ment)
is marked as invalidated and replace with copied ment...
ko1 (Koichi Sasada)
05:50 PM Revision ec78b8b6 (git): show method entry with iseq details
ko1 (Koichi Sasada)
05:50 PM Revision d9135743 (git): add debug method RubyVM::mtbl2 (disabled)
ko1 (Koichi Sasada)
04:00 PM Feature #16684 (Open): Use the word "to" instead of "from" in backtrace
The most-recent-call-last order of backtrace introduced by #8661:
```ruby
def a; raise end
def b; a end
def c; ...
sawa (Tsuyoshi Sawada)
03:53 PM Feature #16597: missing poll()
Additional patches:
- Do no throw exception form poll() because it can tell the user which exact descriptor is bad ...
michals (Michal Suchánek)
01:20 PM Revision bf9abc47 (git): Use URL instead of relative path
znz (Kazuhiro NISHIYAMA)
01:18 PM Revision 21039d9c (git): Add link to ../benchmark/README.md from make_cheatsheet [ci skip]
znz (Kazuhiro NISHIYAMA)
12:47 PM Revision 2fd779fc (git): Added version guard for OpenSSL::Config
nobu (Nobuyoshi Nakada)
11:41 AM Revision 617e7ee0 (git): r66845 introduced mixed declarations and code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_6@67843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
10:18 AM Feature #3647: Array#sample(n, replace=false)
`Array#repeated_combination`, `Array#repeated_permutation` が既にあり、本件はこれと類似した内容なので、一貫性の観点から `Array#repeated_sample` という... sawa (Tsuyoshi Sawada)
04:58 AM Feature #3647: Array#sample(n, replace=false)
https://github.com/ruby/ruby/pull/2955
The option name is `replace` for now.
nobu (Nobuyoshi Nakada)
08:41 AM Revision e4a26cd4 (git): openssl: sync with upstream repository
Import current master (2c43241dc0ed) of ruby/openssl.git.
Below are the commits that were made since the last batch ...
rhenium (Kazuki Yamaguchi)
08:41 AM Revision 61cfd6da (git): tool/sync_default_gems.rb: update paths for openssl
Now ruby/openssl has a different directory structure. The test suite is
moved from /test/test_* to /test/openssl/test_*.
rhenium (Kazuki Yamaguchi)
08:41 AM Revision 28f3e038 (git): digest: do not depend on ext/openssl/deprecation.rb
ext/openssl/deprecation.rb has been removed in ext/openssl upstream[1].
It was originally introduced to detect and p...
rhenium (Kazuki Yamaguchi)
08:33 AM Revision aa3a7d6d (git): Remove an unnecessary TODO comment
Fixing https://github.com/ruby/ruby/blob/4bcd5981e80d3e1852c8723741a0069779464128/mjit.c#L338
should be the right sol...
k0kubun (Takashi Kokubun)
07:53 AM Revision 4bcd5981 (git): Capture inlined iseq's cc entries in root iseq's
jit_unit to avoid marking wrong cc entries when inlined iseq is compiled
multiple times, resolving the TODO added by ...
k0kubun (Takashi Kokubun)
05:39 AM Revision 4015f27a (git): Drop direct Slack notification from CIs
All Slack alerts have been migrated to a bot made by mame-san k0kubun (Takashi Kokubun)
03:57 AM Revision bba2b709 (git): RDoc markdown parser needs explicit code block or more indents [ci skip]
nobu (Nobuyoshi Nakada)
03:43 AM Revision 384feb6c (git): Added link to the ticket [ci skip]
nobu (Nobuyoshi Nakada)
02:43 AM Bug #13962 (Closed): Change http://unicode.org to https
Resolved at https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/544ebc669b6b15c730d21053cc1b2f61... hsbt (Hiroshi SHIBATA)

03/09/2020

11:47 PM Bug #16683 (Closed): Regression in ruby 2.7 File.realpath return ASCII-8BIT for string literal with invalid characters instead of UTF-8
lamont (Lamont Granquist) wrote in #note-2:
> on ruby 2.6.5 this is the behavior of File.realpath when fed a string ...
jeremyevans0 (Jeremy Evans)
11:39 PM Bug #16683: Regression in ruby 2.7 File.realpath return ASCII-8BIT for string literal with invalid characters instead of UTF-8
Hmm, I was trying to update the body of the bug report with that.
Turns out that File.open was a large wild goose ...
lamont (Lamont Granquist)
11:37 PM Bug #16683: Regression in ruby 2.7 File.realpath return ASCII-8BIT for string literal with invalid characters instead of UTF-8
on ruby 2.6.5 this is the behavior of File.realpath when fed a string with invalid bytes:
```
[2] pry(main)> File...
lamont (Lamont Granquist)
08:21 PM Bug #16683: Regression in ruby 2.7 File.realpath return ASCII-8BIT for string literal with invalid characters instead of UTF-8
I can't recreate this failure on OpenBSD with 2.7.0 or the master branch, with or without a UTF-8 locale:
```
$ r...
jeremyevans0 (Jeremy Evans)
07:49 PM Bug #16683 (Closed): Regression in ruby 2.7 File.realpath return ASCII-8BIT for string literal with invalid characters instead of UTF-8

Real simple repro case:
```
[1] pry(main)> fp = File.open("/tmp/chef-test-\xFDmlaut", "w+")
Errno::EILSEQ: Ill...
lamont (Lamont Granquist)
06:34 PM Misc #16661: DevelopersMeeting20200316Japan
* [Bug #16677] Negative integer powered (**) to a float number results in a complex (alanwu)
* Currently `-2 ** 2` ...
alanwu (Alan Wu)
04:06 PM Misc #16661: DevelopersMeeting20200316Japan
* [Bug #16175] Object#clone(freeze: true) is inconsistent with Object#clone(freeze: false) (jeremyevans0)
* Do we ...
jeremyevans0 (Jeremy Evans)
04:49 PM Bug #4436: FileUtils verbose mode prints output to stderr
I've submitted a pull request upstream for this: https://github.com/ruby/fileutils/pull/49 jeremyevans0 (Jeremy Evans)
03:53 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
So apparently the TracePoint instance type is set to `T_NONE`. So I presume it means it was collected? byroot (Jean Boussier)
12:58 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
> fails the type check, exception is raised, which allocs a String for the message.
Yep, the `allocation during ga...
byroot (Jean Boussier)
12:50 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
The tracepoint instance appears to not be of type TypedData anymore, fails the type check, exception is raised, which... methodmissing (Lourens Naudé)
12:29 PM Bug #16682: Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
I patched my ruby to print the exception message before it tries to allocate, and ran it a few times:
```
.wrong ...
byroot (Jean Boussier)
11:27 AM Bug #16682 (Closed): Ruby 2.7.0p0 crash on exit if there is an active RUBY_INTERNAL_EVENT_GC_EXIT tracepoint
```
[BUG] object allocation during garbage collection phase
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-d...
byroot (Jean Boussier)
03:13 PM Revision 62d82b6d (git): * 2020-03-10 [ci skip]
git[bot]
03:11 PM Revision 9034cbd3 (git): Update NEWS for autosplatting change [ci skip]
jeremyevans (Jeremy Evans)
02:57 PM Bug #15608 (Closed): What should be the correct output for Method#inspect with singleton methods?
jeremyevans0 (Jeremy Evans)
02:57 PM Revision e02bd0e7 (git): Don't display singleton class in Method#inspect unless method defined there
Previously, if an object has a singleton class, and you call
Object#method on the object, the resulting string would ...
jeremyevans (Jeremy Evans)
02:39 PM Feature #16615: Group style access scope for macros
Maybe a more concrete example would be helpful:
```ruby
def defc
define_method(:c){ }
end
class Foo
priva...
Dan0042 (Daniel DeLorme)
02:16 PM Bug #16044 (Closed): Float::ROUNDS (FLT_ROUNDS) should not be a constant.
jeremyevans0 (Jeremy Evans)
02:06 PM Misc #16678: Array#values_at has unintuitive behavior when supplied a range starting with negative index
Negative indices have always meant "offset from the end" in ruby. So if you take a negative index and add the size of... Dan0042 (Daniel DeLorme)
01:39 PM Revision ecef163c (git): Remove Float::ROUNDS
Fixes [Bug #16044] jeremyevans (Jeremy Evans)
01:31 PM Feature #16665: Add an Array#except_index method
That implementation would return an empty array for `[true,nil,nil].except_index(0)`
Probably something a bit more l...
Dan0042 (Daniel DeLorme)
01:28 PM Revision d019cac0 (git): Clarify Time::at documentation for in: argument
zverok (Victor Shepelev)
05:34 AM Revision d8fcc676 (git): Skip test_06_timeout for --jit-wait CI
This test has been too unstable on trunk-mjit-wait
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2782206
k0kubun (Takashi Kokubun)
04:39 AM Revision 544ebc66 (git): Use https for downloading Unicode data.
Retry with 90de118a75921a08497b41de2950971073b3c924
[Bug #13962][ruby-core:83074]
hsbt (Hiroshi SHIBATA)
03:50 AM Feature #16166 (Closed): Remove exceptional treatment of *foo when it is the sole block parameter
jeremyevans0 (Jeremy Evans)
12:55 AM Feature #16166: Remove exceptional treatment of *foo when it is the sole block parameter
I've rebased the pull request (https://github.com/ruby/ruby/pull/2502) on current master. Assuming it passes CI, I p... jeremyevans0 (Jeremy Evans)
03:49 AM Revision f4394bbc (git): Do not autosplat when calling procs that accept rest and keywords
When providing a single array to a block that takes a splat, pass the
array as one argument of the splat instead of a...
jeremyevans (Jeremy Evans)
12:47 AM Revision 040cfc89 (git): Do not set USE_FFI_CLOSURE_ALLOC=1 in fiddle on OpenBSD
On OpenBSD, USE_FFI_CLOSURE_ALLOC was always set to 0 previously. In
633a1f15d8228236094ddee12e4e169d655ec49e, the co...
jeremyevans (Jeremy Evans)

03/08/2020

05:57 PM Revision fe3514ae (git): * 2020-03-09 [ci skip]
git[bot]
05:53 PM Revision dff69bb4 (git): Cast properly for shift operand
`(int) << RHASH_LEV_SHIFT` can be negative integer. ko1 (Koichi Sasada)
12:20 PM Bug #16677: Negative integer powered (**) to a float number results in a complex
It seems rather unexpected that `-2 ** 2.2` is parsed as `-(2 ** 2.2)`, I would expect `(-2) ** 2.2` as well. Eregon (Benoit Daloze)
08:39 AM Revision daa04c55 (git): Word array instead of splitting
nobu (Nobuyoshi Nakada)
08:38 AM Revision 2b7409a2 (git): Specify explicit separator not to be affected by $;
nobu (Nobuyoshi Nakada)
01:48 AM Bug #16681: Backport commit related libffi url
ruby_2_6 r67842 merged revision(s) 86022167461dc90b70164e2bb23316959bbfd6ba,47a1872cd8b901b8aab6dedce7fa3807c97d290d. nagachika (Tomoyuki Chikanaga)
01:48 AM Revision 981e83d2 (git): merge revision(s) 86022167461dc90b70164e2bb23316959bbfd6ba,47a1872cd8b901b8aab6dedce7fa3807c97d290d: [Backport #16681]
Switch to download libffi source package to github releases from
sourceware.org
Use osuosl instead...
nagachika (Tomoyuki Chikanaga)
01:19 AM Revision 53efe632 (git): * 2020-03-08 [ci skip]
git[bot]
01:18 AM Revision 2b6ec768 (git): Fix rbinstall bugs (#2930)
* Fix incorrect calls to `Gem.ensure_gem_subdirectories`
This method doesn't take keyword args.
* Remove stuff no l...
deivid (David Rodríguez)

03/07/2020

11:40 PM Bug #16677: Negative integer powered (**) to a float number results in a complex
Ah thanks for catching that.
Interesting, `-2 ** 2.2` is parsed as `-(2 ** 2.2)` whereas `-2.to_i ** 2.2` is parsed ...
alanwu (Alan Wu)
06:12 PM Bug #16677: Negative integer powered (**) to a float number results in a complex
> Negative integers are atomic tokens
If that was the case then `-2 ** 2.2` would be parsed as `(-2) ** 2.2`, which ...
Dan0042 (Daniel DeLorme)
05:05 PM Bug #16677: Negative integer powered (**) to a float number results in a complex
> So it looks like there's something special about how negative integers are parsed?
Negative integers are atomic to...
alanwu (Alan Wu)
04:56 PM Bug #16677 (Open): Negative integer powered (**) to a float number results in a complex
sawa (Tsuyoshi Sawada)
04:25 PM Bug #16677: Negative integer powered (**) to a float number results in a complex
It's actually a bit more complicated than that.
```ruby
-2.to_i ** 2.2 #=> (3.717265962412589+2.7007518095995264i...
Dan0042 (Daniel DeLorme)
02:25 PM Bug #16677 (Closed): Negative integer powered (**) to a float number results in a complex
This is just operator precedence, ** has higher precedence than unary minus. Eregon (Benoit Daloze)
01:22 PM Bug #16677: Negative integer powered (**) to a float number results in a complex
Oh sorry, I just notice that this is an expected behaviour in the documentation (example) given in Integer.
I gues...
CamilleDrapier (Camille Drapier)
05:15 AM Bug #16677 (Closed): Negative integer powered (**) to a float number results in a complex
Not sure if this is an unexpected behavior.
This works as I expect:
```
-2 ** 2.2 # => -4.59479341998814
```
...
CamilleDrapier (Camille Drapier)
11:06 PM Bug #16681 (Closed): Backport commit related libffi url
Please backport the following commits for fixing download error of libffi.
https://rubyci.org/logs/rubyci.s3.amazo...
hsbt (Hiroshi SHIBATA)
11:01 PM Bug #16462 (Closed): Ruby 2.7 autoload not working with $RUBYLIB (maybe circular dependency error)
hsbt (Hiroshi SHIBATA)
05:59 PM Bug #16462: Ruby 2.7 autoload not working with $RUBYLIB (maybe circular dependency error)
Sorry for confusing, i find the really reason caused this issue, i will create a new issue #16680 for make reproduce... zw963 (Wei Zheng)
06:31 PM Bug #16680 (Closed): Symlink folder in $LOAD_PATH does not work with autoload
The following is a full reproducible process. I will use a gem named 'looksee' to reproduce this.
1. Do `gem insta...
zw963 (Wei Zheng)
02:29 PM Bug #16679 (Closed): Test of Ruby fails under multiple OS user userland installations
I do user land installations where each of multiple installations of a complex system under it's own OS user installs... humptydumpty (Jens With)
02:23 PM Misc #16678: Array#values_at has unintuitive behavior when supplied a range starting with negative index
You can easily achieve wrap-around behavior with:
```ruby
> (1..5).to_a.values_at(*(-1..3))
=> [5, 1, 2, 3, 4]
``...
Eregon (Benoit Daloze)
10:42 AM Misc #16678: Array#values_at has unintuitive behavior when supplied a range starting with negative index
Actually .values_at() confused me when I tried to use my go-to method for
obtaining a slice from an Array:
a...
shevegen (Robert A. Heiler)
06:21 AM Misc #16678 (Open): Array#values_at has unintuitive behavior when supplied a range starting with negative index
Consider the following:
``` ruby
# frozen_string_literal: true
a = (1..5).to_a
p a.values_at(3..5) # => [4,...
prajjwal (Prajjwal Singh)
11:45 AM Revision 47a1872c (git): Use osuosl instead of GitHub releases
Because the package provided by GitHub releases is different from sourceware. hsbt (Hiroshi SHIBATA)
10:57 AM Revision 86022167 (git): Switch to download libffi source package to github releases from sourceware.org
hsbt (Hiroshi SHIBATA)
10:06 AM Revision ada2f71c (git): rb_check_safe_obj no longer exists
Commit e91c39f1c0f7d5e670266d9593d533fd444957f6 deleted definition of it.
Though I'm not sure if we can delete public...
shyouhei (Shyouhei Urabe)
10:03 AM Bug #16138: Backport Struct.new empty option hash fix to 2.5 and 2.6
ruby_2_6 r67841 merged revision(s) 77596fb7a91cc119b25ac9e19b3c8682709765b4. nagachika (Tomoyuki Chikanaga)
10:03 AM Revision 7c9bd12a (git): merge revision(s) 77596fb7a91cc119b25ac9e19b3c8682709765b4: [Backport #16138]
Do not turn on keyword_init for Struct subclass if keyword hash is
empty
This was accidentally turn...
nagachika (Tomoyuki Chikanaga)
09:57 AM Bug #16641: Backport request: MJIT crashes on a certain flow of branches
ruby_2_6 r67840 merged revision(s) c4794ed73ad348a61a7cfbe3da0a7eb49ba46eb9. nagachika (Tomoyuki Chikanaga)
09:57 AM Revision 4ccfb9d1 (git): merge revision(s) c4794ed73ad348a61a7cfbe3da0a7eb49ba46eb9: [Backport #16641]
Avoid jumping to a wrong destination
when the next insn is already compiled by former branches.
git-svn-id:...
nagachika (Tomoyuki Chikanaga)
09:44 AM Bug #16619: Error message of "x = return 1" is doubled
ruby_2_6 r67839 merged revision(s) 6e6844320de989cb88a154e2ac75066ccea1bba2. nagachika (Tomoyuki Chikanaga)
09:44 AM Revision 773b45bc (git): merge revision(s) 6e6844320de989cb88a154e2ac75066ccea1bba2: [Backport #16619]
Fixed duplicated warning
As `command_rhs` is always a "value expression", `command_asgn`
does not ne...
nagachika (Tomoyuki Chikanaga)
09:38 AM Bug #16508: Segmentation fault with Regexp in ruby 2.7.0preview2
ruby_2_6 r67838 merged revision(s) 4f19666e8b144600e959e4673f79d63f98bd637d. nagachika (Tomoyuki Chikanaga)
09:38 AM Bug #16508: Segmentation fault with Regexp in ruby 2.7.0preview2
backported into ruby_2_7 was done at db4d136889afbf59e69efcfd495fd91cd401f378. nagachika (Tomoyuki Chikanaga)
09:38 AM Revision ca74f62a (git): merge revision(s) 4f19666e8b144600e959e4673f79d63f98bd637d: [Backport #16508]
`Regexp` in `MatchData` can be `nil`
`String#sub` with a string pattern defers creating a `Regexp`
u...
nagachika (Tomoyuki Chikanaga)
09:22 AM Bug #16034: Backport 5d33f787169bcc3594d2264726695d58c4a06899 to Ruby 2.6
Backport was done at r67745. https://bugs.ruby-lang.org/issues/14834#note-13 nagachika (Tomoyuki Chikanaga)
09:11 AM Bug #16675: Regression on Ripper in Ruby 2.7 when parsing new line
For example,
```ruby
<<FOO.chomp
foo
FOO
```
Here-doc beginning token is just followed by its content and t...
nobu (Nobuyoshi Nakada)
08:34 AM Revision f9f3510e (git): Hook an experimental alert from Actions
k0kubun (Takashi Kokubun)
08:21 AM Revision b9d45d3a (git): Hook an experimental alert from Travis
k0kubun (Takashi Kokubun)
08:04 AM Revision 108f7536 (git): Removed unnecessary `chomp`
As `String#split` with the default argument drops trailing newline
as a separator, preceding `String#chomp` is futile.
nobu (Nobuyoshi Nakada)
07:46 AM Revision 65aa68b0 (git): Hook an experimental alert from AppVeyor
k0kubun (Takashi Kokubun)
06:39 AM Feature #16665: Add an Array#except_index method
There needs to be more discussion on the behavior of this method.
Logically, `except_indices` should be the compleme...
prajjwal (Prajjwal Singh)
12:58 AM Feature #16665: Add an Array#except_index method
In my opinion `omit_indices` is the best name in the thread so far, but I'm not a huge fan of making my methods verbs... prajjwal (Prajjwal Singh)
04:49 AM Revision fcd60502 (git): Fix a typo
znz (Kazuhiro NISHIYAMA)
04:19 AM Revision 9745e901 (git): Propagate JIT skip to all tests
k0kubun (Takashi Kokubun)
01:03 AM Feature #16673: total_timeout for Net::HTTP
`+1`. This is something I'd love to see implemented because this is actually the most common use case for me.
Coul...
prajjwal (Prajjwal Singh)

03/06/2020

09:48 PM Bug #15608: What should be the correct output for Method#inspect with singleton methods?
I rebased my patch against the current master branch and added a pull request for it: https://github.com/ruby/ruby/pu... jeremyevans0 (Jeremy Evans)
09:39 PM Bug #14119 (Closed): IPAddr#include? does not seem to support the subnet mask
jeremyevans0 (Jeremy Evans)
09:36 PM Bug #15244 (Closed): Method #extname return empty string if filename is dot ('.')
jeremyevans0 (Jeremy Evans)
09:31 PM Bug #9242 (Closed): Rdoc detection of aliases
jeremyevans0 (Jeremy Evans)
09:16 PM Bug #11304 (Closed): [PATCH] Kernel.global_variables should observe $~.
jeremyevans0 (Jeremy Evans)
09:15 PM Bug #16675: Regression on Ripper in Ruby 2.7 when parsing new line
> Ripper doesn't fire the events in the order of the source, typically around here-documents.
Can you explain issue ...
lsegal (Loren Segal)
02:25 PM Bug #16675: Regression on Ripper in Ruby 2.7 when parsing new line
lsegal (Loren Segal) wrote in #note-2:
> 4) Finally, comments have always been allowed to separate expressions, but ...
nobu (Nobuyoshi Nakada)
02:23 PM Bug #16675 (Closed): Regression on Ripper in Ruby 2.7 when parsing new line
Feel free to comment on this issue. But do not change the status of tracker's issue without the maintainer's decision. hsbt (Hiroshi SHIBATA)
09:42 AM Bug #16675 (Open): Regression on Ripper in Ruby 2.7 when parsing new line
I'm not sure why this was closed so quickly. There is a real bug here affecting many users who indirectly rely on thi... lsegal (Loren Segal)
04:43 AM Bug #16675 (Closed): Regression on Ripper in Ruby 2.7 when parsing new line
This is because comment lines can be placed between fluent dot.
That means it is undecidable if a newline before a c...
nobu (Nobuyoshi Nakada)
12:03 AM Bug #16675 (Closed): Regression on Ripper in Ruby 2.7 when parsing new line
Hello
While using migrating RSpec documentation to last Yard. I noticed an issue in code parsing and Ripper. The r...
Benoit_Tigeot (Benoit Tigeot)
09:06 PM Revision f991340e (git): Document defined? and global_variables handling of regexp global variables [ci skip]
Fixes [Bug #11304] jeremyevans (Jeremy Evans)
08:17 PM Misc #15893: open-uri: URI.open status
Thank you. So I gather
`URI.open(url, **options)`
becomes
`URI(url).open(**options)`
(Re the deprecation...
cabo (Carsten Bormann)
06:00 AM Misc #15893: open-uri: URI.open status
cabo (Carsten Bormann) wrote in #note-3:
> So what is code that needs to be portable to older Rubies supposed to cal...
akr (Akira Tanaka)
05:37 AM Misc #15893: open-uri: URI.open status
So what is code that needs to be portable to older Rubies supposed to call now? `URI.open` only works since 2.5. We... cabo (Carsten Bormann)
07:08 PM Bug #16676 (Closed): `#hash` can change Hash object from ar_table to st_table
4c019f5a626523e99e2827ed917802e3097c380d
c3584dfacce4d0f2058d8403de6fdce4fd4d686b
ko1 (Koichi Sasada)
06:31 PM Bug #16676 (Closed): `#hash` can change Hash object from ar_table to st_table
# Points
* Hash representation `ar_table` has a problem from Ruby 2.6 (need to backport)
# Problem
From Ruby...
ko1 (Koichi Sasada)
06:55 PM Revision c3584dfa (git): check ar_table first.
RHASH_AR_TABLE_SIZE() has assertion that it is a ar_talbe.
The last commit breaks this assumption so check ar_table f...
ko1 (Koichi Sasada)
06:34 PM Revision 4c019f5a (git): check ar_table after `#hash` call
ar_table can be converted to st_table just after `ar_do_hash()`
function which calls `#hash` method. We need to check...
ko1 (Koichi Sasada)
05:39 PM Revision 44462d32 (git): * 2020-03-07 [ci skip]
git[bot]
05:38 PM Revision 87ad5ea7 (git): Skip jit_test on some new RubyCI envs for now
k0kubun (Takashi Kokubun)
03:38 PM Bug #10167 (Closed): Prime#include?(mod) hangs up
jeremyevans0 (Jeremy Evans)
12:41 PM Revision 0256e4f0 (git): thread_pthread.c: allocate sigaltstack before pthread_create
A new (not-initialized-yet) pthread attempts to allocate sigaltstack by
using xmalloc. It may cause GC, but because ...
mame (Yusuke Endoh)
11:55 AM Revision baaf6815 (git): Improve docs for Prime.{prime_division,int_from_prime_division} (#8)
Move explanation for the decomposition array from the Example section
to the method description. Mention the term "mu...
stomar (Marcus Stollsteimer)
11:54 AM Revision e92fbaf6 (git): [ruby/prime] Fix typo
https://github.com/ruby/prime/commit/549c1b86f1 stomar (Marcus Stollsteimer)
11:54 AM Revision f236f608 (git): [ruby/prime] Improve docs for Prime.include? (#7)
https://github.com/ruby/prime/commit/230a5af325 stomar (Marcus Stollsteimer)
11:54 AM Revision e79fc05a (git): [ruby/prime] Fix Prime.include?
Previously, it would be an infinite loop if passed a non-prime
integer.
Also, Prime.include? should also provide sim...
jeremyevans (Jeremy Evans)
06:50 AM Feature #16615: Group style access scope for macros
shevegen (Robert A. Heiler) wrote in #note-1:
> Two comments from me in regards to the proposal:
>
> 1) Is there ...
ted (Ted Johansson)
06:32 AM Bug #16674 (Assigned): Build issue of FreeBSD 12
See https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20200306T043002Z.fail.html.gz hsbt (Hiroshi SHIBATA)
12:09 AM Bug #16383: TracePoint does not report calls to attribute reader methods
> On microbenchmark, it is 30% slower, so we need to invent a hack to support it.
In JRuby, that hack is called th...
headius (Charles Nutter)

03/05/2020

10:49 PM Revision 2630757f (git): * 2020-03-06 [ci skip]
git[bot]
10:49 PM Revision e57dd8c2 (git): Mask RubyVM-specific test
headius (Charles Nutter)
09:51 PM Bug #16383: TracePoint does not report calls to attribute reader methods
Are there plans to implement this in master, any timeline?
Andy Maleh wants to add specs for this in https://githu...
Eregon (Benoit Daloze)
01:59 PM Bug #16672: net/http leaves original content-length header intact after inflating response
jeremyevans0 (Jeremy Evans) wrote in #note-8:
> `total_out` doesn't give you the full size of the output until after...
jmreid (Justin Reid)
05:54 AM Bug #16672: net/http leaves original content-length header intact after inflating response
jmreid (Justin Reid) wrote in #note-7:
> > Modifying the Content-Length header is tricky because you do not know the...
jeremyevans0 (Jeremy Evans)
04:42 AM Bug #16672: net/http leaves original content-length header intact after inflating response
jeremyevans0 (Jeremy Evans) wrote in #note-6:
> I don't think net/http should be modifying the response headers. I th...
jmreid (Justin Reid)
04:04 AM Bug #16672: net/http leaves original content-length header intact after inflating response
jmreid (Justin Reid) wrote in #note-5:
> > So the method appears to be operating exactly as documented.
>
> I'm n...
jeremyevans0 (Jeremy Evans)
02:56 AM Bug #16672: net/http leaves original content-length header intact after inflating response
> So the method appears to be operating exactly as documented.
I'm not saying that method isn't working as intended....
jmreid (Justin Reid)
02:19 AM Bug #16672: net/http leaves original content-length header intact after inflating response
jmreid (Justin Reid) wrote in #note-3:
> The issue here is that this ` "content-length"=>["2733"]` value is 2733. Th...
jeremyevans0 (Jeremy Evans)
01:40 AM Bug #16672: net/http leaves original content-length header intact after inflating response
ioquatix (Samuel Williams) wrote in #note-2:
> Are you using `res.content_length`? Why can't you just use `res.body....
jmreid (Justin Reid)
09:25 AM Revision 17d5efa4 (git): spec/ruby/core/process/exec_spec.rb: remove a guard for openbsd
openbsd current seems to behave the same as other OSs.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/openbsd-curre...
mame (Yusuke Endoh)
08:19 AM Revision 7d05f98a (git): Renamed `lex_flags` as `lex_context`
nobu (Nobuyoshi Nakada)
06:45 AM Bug #16674 (Closed): Build issue of FreeBSD 12
The current master branch and 2.7, 2.6 and 2.5 couldn't build with FreeBSD 12
see https://github.com/rbenv/ruby-bu...
hsbt (Hiroshi SHIBATA)
04:31 AM Revision e4a9e926 (git): Fixed a typo
nobu (Nobuyoshi Nakada)
03:03 AM Revision 43a3c881 (git): [win32] get rid of redefinition of reserved macro
```
warning C4117: macro name '_INTEGRAL_MAX_BITS' is reserved, '#define' ignored
```
nobu (Nobuyoshi Nakada)
02:31 AM Revision 74051183 (git): * 2020-03-05 [ci skip]
git[bot]
02:31 AM Revision 261569d4 (git): [ruby/fiddle] always use ffi_closure_alloc on Windows
nobu (Nobuyoshi Nakada)
01:11 AM Misc #16671: BASERUBY version policy
I'm not against this issue but for record: commit 8a72c77c7920d129818b7b83bb4fa669cd7e3f7d says "as requested by devs... shyouhei (Shyouhei Urabe)
12:16 AM Feature #16673 (Open): total_timeout for Net::HTTP
`Net::HTTP` allows setting `open_timeout` and `read_timeout`, but sometimes I just want to make sure an API call will... mohamedhafez (Mohamed Hafez)
 

Also available in: Atom