Project

General

Profile

Activity

From 12/30/2019 to 01/05/2020

01/05/2020

11:04 PM Bug #16459: <internal:trace_point>:346: [BUG] Segmentation fault at 0x0000000000000008
Yes, using 2.7.0:
```
> git clone https://github.com/ioquatix/covered
> ...
Covered::BriefSummary
can generate partial summary
Covered::Cache
will mark lines after flushing
Covered::Files
#mark
can mark lines
...
ioquatix (Samuel Williams)
10:51 PM Feature #8215: Support accessing Fiber-locals and backtraces for a Fiber
@matz I agree with adding all three APIs, `Fiber#[]`, `Fiber#[]=` and `Fiber#backtrace`. Can you let me know if you are happy with these additions? ioquatix (Samuel Williams)
10:39 PM Misc #16481 (Third Party's Issue): Version numbering in RDoc is not consistent
Can you report this to the administrator of https://ruby-doc.org/? It's NOT the official site.
hsbt (Hiroshi SHIBATA)
05:52 PM Feature #16482 (Closed): net/http should support TLS connection to proxies
Right now net/http forces the user to use a clear text connection to a proxy. This massively reduces security as the user is forced to sent proxy authentication data in the clear.
A proxy is specified in net/http like this:
```
pr...
xformer (Frank Schwab)
04:24 PM Revision 46845d03 (git): * 2020-01-06 [ci skip]
git[bot]
04:20 PM Revision 439e1ccd (git): Complete indented and quoted string correctly
def foo
''.upca[TAB]
This will be completed to be:
def foo
''.upcase
The indent was gone. This commit fixes the bug.
aycabta (aycabta .)
04:06 PM Feature #16166: Remove exceptional treatment of *foo when it is the sole block parameter
[The log for developers' meeting 20191128](https://docs.google.com/document/d/1AZ74HXEedKksJwhEUPIlnRxAUgchndZPZYAKjGPMsFI/edit#) says that Matz hoped this to be done in 2.7. However, Ruby 2.7 still returns this:
```ruby
instance_exe...
sawa (Tsuyoshi Sawada)
01:48 PM Revision da028a4f (git): Rescue EOFError
If C-d is pressed before IRB is ready, IRB crashes because EOFError occurs. aycabta (aycabta .)
05:35 AM Revision 54fd50c9 (git): Fix OpenStructDocumentation
In https://github.com/ruby/ruby/commit/9be3295d53b6fd9f8a3ad8157aa0655b1976d8ac,
OpenStruct's documentation stopped to be rendered by RDoc
(there should be no additional code between documentation
comment and documented class). Fixing this.
zverok (Victor Shepelev)
03:26 AM Revision c7af1e43 (git): Remove unused tmp_buffer in class.c
ref 44a164c26f5371519636585d8ba7aa59f489442e and beae6cbf0fd8b6619e5212552de98022d4c4d4d4 znz (Kazuhiro NISHIYAMA)
03:26 AM Revision 787c6d59 (git): Remove unused last_idx in class.c
ref c7f01d889becbeffc4254e1b0b7faecb80ea3f3e and beae6cbf0fd8b6619e5212552de98022d4c4d4d4 znz (Kazuhiro NISHIYAMA)
02:39 AM Revision 5b0c3754 (git): parse.y: fix a wrong sizeof argument for ruby_sized_xfree
mame (Yusuke Endoh)
02:39 AM Revision 44a164c2 (git): include/ruby/ruby.h: remove a variable tmp_buffer as it does not change
It is no longer used due to beae6cbf0fd8b6619e5212552de98022d4c4d4d4.
Coverity Scan found this.
mame (Yusuke Endoh)
02:39 AM Revision c7f01d88 (git): include/ruby/ruby.h: remove last_idx that is no longer variable
Due to beae6cbf0fd8b6619e5212552de98022d4c4d4d4, the variable last_idx
is no longer changed and always -1. This change simplifies the code by
removing the variable. Coverity Scan pointed out this.
mame (Yusuke Endoh)
02:28 AM Revision 9b928fa4 (git): [ruby/reline] Sort completion list
#### Legacy mode:
```console
$ irb --legacy
irb(main):001:0> l[TAB][TAB]
lambda load local_variables loop
```
#### Before this patch:
```console
$ irb
irb(main):001:0> l[TAB][TAB]
local_variabl...
shuujii (Shuji KOBAYASHI)
02:27 AM Bug #16477 (Closed): readline-ext repository is huge
Sorry, those tags ware mixed into the ruby/readline-ext repository when I cherry-pick-ed from ruby/ruby. I removed it. aycabta (aycabta .)
02:05 AM Feature #16468: Switch to Miller-Rabin for Prime.prime?
On second thought, I think Marc is right, we can't ruin someones day with a composite without a warning that theres a non-zero probability of it being incorrect so I will update...... steveb3210 (Stephen Blackstone)
01:41 AM Feature #16468: Switch to Miller-Rabin for Prime.prime?
It can fall back to APR-CL primality test when Miller-Rabin does not work. In my personal opinion, it would be best to keep prime.rb simple because it is a hobby library.
You may be interested in my gem: https://github.com/mame/faste...
mame (Yusuke Endoh)
01:23 AM Feature #16468: Switch to Miller-Rabin for Prime.prime?
marcandre (Marc-Andre Lafortune) wrote:
> Interesting. We might as well always return the correct result, i.e. apply the fast algorithm for integers < 318,665,857,834,031,151,167,461 and the slow algorithm for larger ones. Would you car...
steveb3210 (Stephen Blackstone)
12:58 AM Feature #16029: Expose fstring related APIs to C-extensions
@byroot, yeah.
`rb_funcall(str, rb_intern("-@"))` works and is backwards compatible, but I entirely agree that it makes sense to add an official API as well that does not depend on dynamic invocation.
sam.saffron (Sam Saffron)

01/04/2020

11:09 PM Feature #16468: Switch to Miller-Rabin for Prime.prime?
Interesting. We might as well always return the correct result, i.e. apply the fast algorithm for integers < 318,665,857,834,031,151,167,461 and the slow algorithm for larger ones. Would you care to modify your patch? marcandre (Marc-Andre Lafortune)
07:19 PM Feature #16468: Switch to Miller-Rabin for Prime.prime?
Attached is an implementation against master.... steveb3210 (Stephen Blackstone)
08:34 PM Feature #9587 (Closed): Integer#times with optional starting value
Eregon (Benoit Daloze)
05:28 PM Feature #9587: Integer#times with optional starting value
I now think that writing as below is good enough:
```ruby
6.times.with_index(1){|_, i| puts "Chapter#{i}"}
```
I withdraw this proposal. Please close it.
sawa (Tsuyoshi Sawada)
08:30 PM Feature #10240 (Rejected): `String#to_a`
Eregon (Benoit Daloze)
06:21 PM Feature #10240: `String#to_a`
I do not feel this proposal to be natural any more. Please close this issue. sawa (Tsuyoshi Sawada)
08:29 PM Feature #10797 (Closed): `inherit` parameter for `..._defined?` methods in Module
Eregon (Benoit Daloze)
06:48 PM Feature #10797: `inherit` parameter for `..._defined?` methods in Module
This proposal was adopted in Ruby 2.6 (and is mentioned in the context of #14944, which is actually a duplicate of the current issue). Please close this issue. sawa (Tsuyoshi Sawada)
08:28 PM Feature #11308 (Closed): Optional `include_super=true` parameter for `*method_defined?` methods
Eregon (Benoit Daloze)
06:57 PM Feature #11308: Optional `include_super=true` parameter for `*method_defined?` methods
This is another duplicate of #10797. Please close this issue. sawa (Tsuyoshi Sawada)
08:28 PM Feature #11879 (Closed): `Module#prepended_modules`
Eregon (Benoit Daloze)
07:05 PM Feature #11879: `Module#prepended_modules`
Indeed this issue is a duplicate. Please close this. sawa (Tsuyoshi Sawada)
08:26 PM Feature #9037 (Closed): Memoization of "anonymous constants"
Eregon (Benoit Daloze)
05:33 PM Feature #9037: Memoization of "anonymous constants"
This proposal is indeed a duplicate of #8804. Please close this. sawa (Tsuyoshi Sawada)
08:24 PM Feature #10880 (Rejected): Subclassing Array from Enumerator
Eregon (Benoit Daloze)
06:54 PM Feature #10880: Subclassing Array from Enumerator
I should use `each_with_index` and `each_with_object` as marcandre suggests. I withdraw this. Please close this issue. sawa (Tsuyoshi Sawada)
06:46 PM Feature #14944: Support optional inherit argument for Module#method_defined?
Actually, this proposal is a duplicate of #10797 sawa (Tsuyoshi Sawada)
06:41 PM Misc #16481 (Third Party's Issue): Version numbering in RDoc is not consistent
When you expand the "Core API" section in https://ruby-doc.org/, you can see that there is version 2.6 (instead of 2.6.0). It is inconsistent with other minor versions such as 2.7.0, 2.5.0, 2.4.0, 2.3.0 and so on. sawa (Tsuyoshi Sawada)
06:07 PM Bug #16480 (Closed): Ruby 2.7, C++, and rb_define_method compilation error
I maintain the Rice library which provides constructs for exposing C++ libraries into Ruby. With Ruby 2.7.0 I've got a hard compilation failure that I'm not sure how to fix.[1]
Diving into this, I've found that rb_define_method, when ...
jasonroelofs (Jason Roelofs)
03:53 PM Revision ded072c2 (git): * 2020-01-05 [ci skip]
git[bot]
03:52 PM Revision ce4d1677 (git): Fix output of example [ci skip]
znz (Kazuhiro NISHIYAMA)
07:21 AM Bug #9573: descendants of a module don't gain its future ancestors, but descendants of a class, do
From @jeremyevans0:
> Previously it wasn't possible because there wasn't a way to go from the module to all iclasses generated from it.
> ...
> Actually, looks like the subclasses entry may contain it (module_subclasses is used by ic...
ioquatix (Samuel Williams)
05:43 AM Bug #9573: descendants of a module don't gain its future ancestors, but descendants of a class, do
Is there a clean way to fix this issue? ioquatix (Samuel Williams)
06:27 AM Feature #5321: Introducing Numeric#exact? and Numeric#inexact?
I really think this is a very overblown issue that is being handled incorrectly.
First, we have what appears to be a singular issue on our hands
`Complex(1, BigDecimal("0.0")).to_r`
Whether or not that qualifies as a valid opera...
wishdev (John Higgins)
04:26 AM Misc #16454: DevelopersMeeting20200116Japan
* [Bug #16383] TracePoint does not report calls to attribute reader methods (jeremyevans0)
* Do we want to support this?
* [Feature #5321] Introducing Numeric#exact? and Numeric#inexact? (jeremyevans0)
* Can we add Numeric#exact? ...
jeremyevans0 (Jeremy Evans)
04:13 AM Revision b594005c (git): * 2020-01-04 [ci skip]
git[bot]
04:13 AM Bug #14266 (Closed): Set#clone(freeze: false) makes frozen internal hash
Applied in changeset commit:git|04eb7c7e462d1fcbab9efc7022c1b43636ab878a.
----------
Call initialize_clone with freeze: false if clone called with freeze: false
This makes it possible to initialize_clone to correctly not freeze
interna...
jeremyevans (Jeremy Evans)
04:13 AM Bug #4352 (Closed): [patch] Fix eval(s, b) backtrace; make eval(s, b) consistent with eval(s)
Applied in changeset commit:git|0eeed5bcc5530edb0af2af2ccff09d067c59e8f9.
----------
Make eval(code, binding) use (eval) as __FILE__ and 1 as __LINE__
This removes the warning that was added in
3802fb92ff8c83eed3e867db20f72c53932f542d,...
jeremyevans (Jeremy Evans)
04:13 AM Revision 04eb7c7e (git): Call initialize_clone with freeze: false if clone called with freeze: false
This makes it possible to initialize_clone to correctly not freeze
internal state if the freeze: false keyword is passed to clone.
If clone is called with freeze: true or no keyword, do not pass
a second argument to initialize_clone to ...
jeremyevans (Jeremy Evans)
04:13 AM Revision 0eeed5bc (git): Make eval(code, binding) use (eval) as __FILE__ and 1 as __LINE__
This removes the warning that was added in
3802fb92ff8c83eed3e867db20f72c53932f542d, and switches the behavior
so that the eval does not use the binding's __FILE__ and __LINE__
implicitly.
Fixes [Bug #4352]
jeremyevans (Jeremy Evans)
01:42 AM Feature #16478: Fold symbol tables for tracking basic operation method redefinition changes into a single ID table
Whoopsie, changing to the Feature tracker (from Bug) methodmissing (Lourens Naudé)
01:37 AM Feature #16478 (Open): Fold symbol tables for tracking basic operation method redefinition changes into a single ID table
References https://github.com/ruby/ruby/pull/2812
I stumbled onto these 2 tables (`vm_opt_method_table` and `vm_opt_mid_table`) while working on https://github.com/ruby/ruby/pull/2809 and experimented at first with converting `vm_opt_...
methodmissing (Lourens Naudé)
01:41 AM Feature #16479 (Open): Let execution context local storage be backed by an ID table
References https://github.com/ruby/ruby/pull/2814
Back fiber local variables with an ID table instead of `st_table`
```
lourens@CarbonX1:~/src/ruby/ruby$ make benchmark ITEM=fiber_locals COMPARE_RUBY="~/src/ruby/trunk/ruby" OPTS="...
methodmissing (Lourens Naudé)

01/03/2020

11:43 PM Bug #16477: readline-ext repository is huge
For the record, you mean this repository:
https://github.com/ruby/readline-ext
@aycabta @hsbt It sounds good to drop those tags to reduce repository size.
Eregon (Benoit Daloze)
07:04 PM Bug #16477 (Closed): readline-ext repository is huge
Today I've cloned (my fresh new fork) of readline-ext
```
+ $ git clone git@github.com:graywolf/readline-ext.git
Cloning into 'readline-ext'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
r...
graywolf (Gray Wolf)
10:29 PM Misc #16360: Enabling IBM PowerPC/Z cases in Travis CI
> Sure, I will take a look at the code, contact if it's needed and fix.
Hi, possibly I found the cause of this error for `apt-add-repository` command that happens for only Travis s390x environment, and how to avoid it.
```
$ tool/...
jaruga (Jun Aruga)
03:58 PM Bug #16337 (Open): kernel_gem.rb:68 - ThreadError
I'm still seeing this on 2.7.0p0, even though it looks like it should have been fixed based on comment #2. The workaround in comment #1 still helps.
```
$ /opt/google-fluentd/embedded/bin/ruby --version
ruby 2.7.0p0 (2019-12-25 revi...
jkohen (Javier Kohen)
01:49 PM Feature #16476 (Closed): Socket.getaddrinfo cannot be interrupted by Timeout.timeout
It seems like the blocking syscall done by `Socket.getaddrinfo` blocks Ruby VM in a way that Timeout.timeout has no effect.
See reproduction steps in getaddrinfo_interrupt.rb (https://gist.github.com/kirs/00c02ef92e0418578135fe0a6cbd3d7...
kirs (Kir Shatrov)
12:39 PM Bug #16475: [Installation process - compiling ruby 2.7.0 from source} "make install" step oddity for ruby 2.7.0 on linux mint (debian base)
I should add that even despite the openssl warning, "make install" appears to work perfectly
fine - ruby is at /usr/bin/ruby and it works fine. As I type this, I am compiling a new
base system through ruby, lateron the extensions too ...
shevegen (Robert A. Heiler)
12:38 PM Bug #16475 (Closed): [Installation process - compiling ruby 2.7.0 from source} "make install" step oddity for ruby 2.7.0 on linux mint (debian base)
Hello ruby core team (and everyone else),
I have a slight oddity; it seems to be not hugely important, as it seems minor, but
I will report it anyway just in case. Please disregard/close if this has already been
reported before.
...
shevegen (Robert A. Heiler)
05:53 AM Revision 170f4dbb (git): Fix unused warnings
http://ci.rvm.jp/results/trunk_gcc7@silicon-docker/2539622
```
/tmp/ruby/v2/src/trunk_gcc7/class.c: In function 'rb_scan_args_parse':
/tmp/ruby/v2/src/trunk_gcc7/class.c:1971:12: warning: unused variable 'tmp_buffer' [-Wunused-variable]
...
znz (Kazuhiro NISHIYAMA)
03:01 AM Feature #16463: Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1
> Representing the Hash flag as a subclass of Hash sounds nice for debugging.
> ...
I must admit I've been struggling with the conflation issue. I think even with the current design it would be nice if the double-splat created a KwHash....
Dan0042 (Daniel DeLorme)
02:40 AM Revision e014e6bf (git): Update specs for keyword argument separation
jeremyevans (Jeremy Evans)
02:40 AM Revision ff965656 (git): Update tests for full keyword argument separation
jeremyevans (Jeremy Evans)
02:40 AM Revision beae6cbf (git): Fully separate positional arguments and keyword arguments
This removes the warnings added in 2.7, and changes the behavior
so that a final positional hash is not treated as keywords or
vice-versa.
To handle the arg_setup_block splat case correctly with keyword
arguments, we need to check if we...
jeremyevans (Jeremy Evans)

01/02/2020

11:29 PM Bug #16473: New deprecated warning disallows keyword arguments bypassing
This is one clear case where #16463 would solve it intuitively. Eregon (Benoit Daloze)
11:08 PM Bug #16473: New deprecated warning disallows keyword arguments bypassing
In this particular case there would be a bug if `*args` had more than one element, so I think the cleaner fix would be
```ruby
def non_kw(a = {}, b = {})
puts "non kw #{a}"
kw **b
end
```
I really think the `ruby2_keyword...
Dan0042 (Daniel DeLorme)
06:10 PM Bug #16473: New deprecated warning disallows keyword arguments bypassing
puchuu (Andrew Aladjev) wrote:
> @jeremyevans0, what will be the right way to bypass keyword arguments?
As mentioned earlier, you should probably use `ruby2_keywords`. In this particular case, even if you don't want to support earlie...
jeremyevans0 (Jeremy Evans)
05:55 PM Bug #16473: New deprecated warning disallows keyword arguments bypassing
@jeremyevans0, what will be the right way to bypass keyword arguments?
```ruby
def non_kw(a = {}, **keyword_args)
puts "non kw #{a}"
kw **keyword_args
end
```
This variant is wrong with ruby 2, because it provides:
```
...
puchuu (Andrew Aladjev)
05:31 PM Bug #16473 (Rejected): New deprecated warning disallows keyword arguments bypassing
This behavior is expected. The positional hash argument is converted to keyword arguments when `kw` is called. That is not going to work in Ruby 3 (see #14183), hence the warning.
For delegating argument to a method that accepts key...
jeremyevans0 (Jeremy Evans)
05:10 PM Bug #16473 (Rejected): New deprecated warning disallows keyword arguments bypassing
Hello. I see that ruby 2.7.0 prints unnecessary deprecated warning during arguments bypassing.
```ruby
def kw(a: 1)
puts "kw #{a}"
end
def non_kw(a = {}, *args)
puts "non kw #{a}"
kw *args
end
non_kw({ :a => 2 }, :a ...
puchuu (Andrew Aladjev)
10:26 PM Revision 8ba261c7 (git): Bump benchmark-driver to v0.15.7 (#2811)
methodmissing (Lourens Naudé)
10:05 PM Bug #16472: OStruct documentation is lost
@marcandre, got it, thanks. https://github.com/ruby/ruby/pull/2810 zverok (Victor Shepelev)
07:06 PM Bug #16472: OStruct documentation is lost
You're welcome to provide a PR on the core repo.
I will update `ruby/ostruct`
marcandre (Marc-Andre Lafortune)
02:41 PM Bug #16472 (Closed): OStruct documentation is lost
After this commit: https://github.com/ruby/ruby/commit/9be3295d53b6fd9f8a3ad8157aa0655b1976d8ac -- RDoc loses documentation attahed to OpenStruct class, see https://docs.ruby-lang.org/en/master/OpenStruct.html, which currently looks this... zverok (Victor Shepelev)
07:46 PM Revision 9f460e01 (git): move internal/debug.h definitions to internal.h
Debug utilities should be accessible from any internal code. ko1 (Koichi Sasada)
07:39 PM Revision 6f5ee1f0 (git): modify MJIT_CC only on RUBY_DEBUG=ci
Modify MJIT_CC (27fae1d4ad) only on CI environment. ko1 (Koichi Sasada)
06:47 PM Bug #16474 (Closed): [ASYNC BUG]
My scripting system to run thousands of video render jobs uses threading to gain parallelism. it takes about 12 hours start-to-finish. This script ran fine befoer this run that failed. Here is the message I got:
[ASYNC BUG] consume_co...
gnormhurst (Norm Hurst)
05:23 PM Bug #16438: Check warning messages for Ruby 2.7
I see the only one way to fix this deprecation. Change `write(*objects)` signature to `print(*objects, field_separator: $OUTPUT_FIELD_SEPARATOR, record_separator: $OUTPUT_RECORD_SEPARATOR)` and test print by passing separators directly. ... puchuu (Andrew Aladjev)
03:30 PM Bug #16438: Check warning messages for Ruby 2.7
Hello. I can't understand why setting OFS to not nil value was deprecated. I want to simulate print method behaviour and I am using `$OUTPUT_FIELD_SEPARATOR` between objects. Than I want to test this method, so I am settings OFS to not n... puchuu (Andrew Aladjev)
05:15 PM Bug #16459: <internal:trace_point>:346: [BUG] Segmentation fault at 0x0000000000000008
can you make a reproducible code?
ko1 (Koichi Sasada)
05:07 PM Revision 27fae1d4 (git): disable ccache if $CC is in /usr/lib/ccache/$CC.
MJIT with ccache has a problem on docker environment, so
we need to use original CC (/usr/bin/gcc, for example).
Ubuntu system provides /usr/lib/ccache/gcc and so on to use
gcc with ccache. It is easy to setup ccache by adding
/usr/lib/c...
ko1 (Koichi Sasada)
04:27 PM Revision b884eb59 (git): Fix variable name and add more example [ci skip]
znz (Kazuhiro NISHIYAMA)
03:44 PM Feature #16471: Two feature requests for WeakRef: get original object, callback feature
I'd rather not pollute the target object's class with a finalizer. However, I'm working on a class, FinalCall, that can hold the target object. When the FinalCall object is garbage collected, it calls a callback. If anybody wants to cont... Snappingturtle (Mike O'Sullivan)
10:55 AM Feature #16471: Two feature requests for WeakRef: get original object, callback feature
> `WeakRef#__getobj__` isn't documented in Ruby 2.5.1
It kinda is, but I agree it's not very clear. The documentation says the parent class is `Delegator` and `__getobj__` is documented there: https://ruby-doc.org/stdlib-2.5.3/libdoc/...
byroot (Jean Boussier)
03:23 AM Feature #16471: Two feature requests for WeakRef: get original object, callback feature
`WeakRef#__getobj__` isn't documented in Ruby 2.5.1 (https://short.uno/wwb6bky) so I didn't know it existed. So I guess that's sort of a bug report right there.
I think I might be able to write a class that does the callback on garbage ...
Snappingturtle (Mike O'Sullivan)
01:01 AM Feature #16471: Two feature requests for WeakRef: get original object, callback feature
> First, add the ability to pull the original object out of the WeakRef object,
`WeakRef#__getobj__`.
> ...
This usage would be impossible even if the callback were provided.
The callback will be called **after** `wr` was collecte...
nobu (Nobuyoshi Nakada)
03:03 PM Revision db22b368 (git): * 2020-01-03 [ci skip]
git[bot]
03:02 PM Revision bba49161 (git): Fix example of node.type [ci skip]
```
% docker run -it --rm rubylang/all-ruby env ALL_RUBY_SINCE=ruby-2.6 ./all-ruby -e 'root = RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
p [root, root.type]
call = root.children[2]
p [call, call.type]
'
ruby-2.6.0 [#<RubyVM::...
znz (Kazuhiro NISHIYAMA)
12:44 PM Feature #16461: Proc#using
shugo (Shugo Maeda) wrote:
> It doesn't mutate the Proc, but the block, and if OtherRefinement is activated before the block invocation, both refinements are activated.
> ...
So what happens if I have this:
```ruby
using Proc::Refine...
Eregon (Benoit Daloze)
03:12 AM Revision 749915e9 (git): Fix a typo [ci skip]
znz (Kazuhiro NISHIYAMA)
02:11 AM Feature #16460: External names for keyword parameters in method definitions
harrisonb (Harrison Bachrach) wrote:
> > Though I don’t remember exactly, once I proposed a similar syntax.
> ...
The problem is described in [a_matsuda's slide](https://speakerdeck.com/a_matsuda/ruby-2-dot-0-on-rails-in-production?sli...
nobu (Nobuyoshi Nakada)
01:55 AM Revision 71ae2ace (git): * 2020-01-02 [ci skip]
git[bot]
01:41 AM Revision 34bc15c8 (git): Check Module#ruby2_keywords arity
It is considered a mistake, because calling this method with no
arguments has no effect.
nobu (Nobuyoshi Nakada)

01/01/2020

10:08 PM Feature #16470: Issue with nanoseconds in Time#inspect
I'd guess it's partly due to the Float itself losing precision.
But indeed it's quite unpretty. Maybe we should use #rationalize since that's closer to the Float#inspect output?
There is a usability problem here, it's basically impos...
Eregon (Benoit Daloze)
03:04 PM Feature #16470 (Closed): Issue with nanoseconds in Time#inspect
Ruby 2.7 added nanosecond representation to the return value of `Time#inspect` method.
Nanosecond is displayed as `Rational` as in the following example:
```ruby
t = Time.utc(2007, 11, 1, 15, 25, 0, 123456.789)
t.inspect # => "20...
andrykonchin (Andrew Konchin)
07:16 PM Feature #16471 (Open): Two feature requests for WeakRef: get original object, callback feature
I'd like to request two features for `WeakRef`. I'll explain what I want, then provide a real world use case.
First, add the ability to pull the original object out of the `WeakRef` object, something like this:
```ruby
myhash = {}...
Snappingturtle (Mike O'Sullivan)
04:56 PM Feature #16463: Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1
Dan0042 (Daniel DeLorme) wrote:
> Maybe just one more push and we can reach the point where the hidden keyword hash flag can be made explicit via a subclass of `Hash`, and then we'd have a nice clean object-oriented design [like I attem...
Eregon (Benoit Daloze)
04:40 PM Feature #16463: Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1
I think one of the main advantages of doing this is a much better migration path.
Imagine I have this code, which works fine in Ruby 2.6:
```ruby
def foo(*args)
bar(*args)
end
def bar(*args)
cdr(*args)
end
def cdr(*a...
Eregon (Benoit Daloze)
01:55 PM Revision 076f24c2 (git): bignum.c: extract bdigits_to_mpz and bdigits_from_mpz (#2805)
Kenta Murata
12:08 PM Bug #16469 (Closed): Wrong warning message at `URI.encode` and `URI.decode`
# Sample code
``` ruby
enc_uri = URI.encode("http://example.com/?a=\11\15")
URI.decode(enc_uri)
```
# Actual
```ruby
irb(main):005:0> enc_uri = URI.encode("http://example.com/?a=\11\15")
(irb):3: warning: URI.escape is obsolete...
sue445 (Go Sueyoshi)
11:05 AM Feature #16029: Expose fstring related APIs to C-extensions
@sam.saffron I agree that both would be nice.
> then new fstrings can be created using todays awkward API
You mean `rb_funcall(str, rb_intern("-@"))` ?
byroot (Jean Boussier)
06:06 AM Revision afd3f64f (git): Redmine /projects/ruby-trunk is now redirected
to /projects/ruby-master k0kubun (Takashi Kokubun)
06:03 AM Revision 8c9450e7 (git): Remove code to prevent double build on trunk
trunk branch was deleted. k0kubun (Takashi Kokubun)
05:47 AM Misc #15843: Make "trunk" a symbolic-ref of "master" on git.ruby-lang.org
Done
```
k0kubun@svn:/var/git/ruby.git/refs/heads$ cat /var/git/ruby.git/refs/heads/trunk
ref: refs/heads/master
k0kubun@svn:/var/git/ruby.git/refs/heads$ sudo rm /var/git/ruby.git/refs/heads/trunk
```
```
$ git push github :t...
k0kubun (Takashi Kokubun)
01:59 AM Misc #15843: Make "trunk" a symbolic-ref of "master" on git.ruby-lang.org
FYI: rvm ruby-head was fixed to use master branch in https://github.com/rvm/rvm/pull/4840 (thanks havenwood!) and therefore Travis ruby-head is also using master branch. I think we have no significant blocker for removing trunk branch an... k0kubun (Takashi Kokubun)
05:26 AM Revision eca964c2 (git): More consistent failure notifications
The format is the same as Travis / AppVeyor now. k0kubun (Takashi Kokubun)

12/31/2019

11:59 PM Revision ab9f56b6 (git): Do not notify AppVeyor on_build_status_changed
Similar to 4fb6643f31cdee33184043ce17c42001274c4392.
This is motivated by the lack of the same feature in GitHub Actions.
k0kubun (Takashi Kokubun)
11:29 PM Revision 47c84c74 (git): Make test run condition consistent with other jobs
When `make all` fails, we should not run tests and output of such run is
confusing.
k0kubun (Takashi Kokubun)
10:53 PM Revision 69731b24 (git): Fixup a6864f6d2f39bcd1ff04516591cc18d4027ab186
hsbt (Hiroshi SHIBATA)
10:47 PM Feature #15982 (Closed): Remove y2racc and racc2y
Applied in changeset commit:git|a6864f6d2f39bcd1ff04516591cc18d4027ab186.
----------
Removed the old executables of racc
[ruby-core:93516][Feature #15982]
https://github.com/ruby/racc/pull/123
hsbt (Hiroshi SHIBATA)
10:42 PM Revision a6864f6d (git): Removed the old executables of racc
[ruby-core:93516][Feature #15982]
https://github.com/ruby/racc/pull/123
hsbt (Hiroshi SHIBATA)
10:41 PM Revision e1c363f8 (git): [bundler/bundler] Add ruby2_keywords
https://github.com/bundler/bundler/commit/29d932d72d Sutou Kouhei
06:24 PM Revision 74cb4148 (git): Run tests in the consistent order
`make check` runs test -> test-all -> test-spec, and other CIs follow that too. k0kubun (Takashi Kokubun)
05:37 PM Revision 52c22860 (git): Fix an outdated comment
We're actually using it for PR :p k0kubun (Takashi Kokubun)
05:35 PM Revision 860753ea (git): Actions MinGW - fix test-all (#2803)
MSP-Greg (Greg L)
05:34 PM Revision 139f0d90 (git): Use actions/checkout for PR (#2804)
k0kubun (Takashi Kokubun)
05:30 PM Feature #16456: Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
I think that the `[[:rest, :"..."], [:keyrest, :"..."], [:block, :"..."]]` solution looks like a good option, as it keeps roughly the same behaviour while adding the differentiation between `*args, &blk` and `...`. aaronc81 (Aaron Christiansen)
05:04 PM Revision 049292e3 (git): Add load path and require for ruby/ruby
aycabta (aycabta .)
04:38 PM Revision 66e6055c (git): [ruby/irb] Fix lib name of OpenStruct
https://github.com/ruby/irb/commit/1f3a84ab6b aycabta (aycabta .)
03:02 PM Revision 287bfb69 (git): * 2020-01-01 [ci skip]
git[bot]
03:02 PM Revision 1a186223 (git): Update GitHub Actions Badges
- Generated by [npx github-actions-badge](https://github.com/azu/github-actions-badge)
- Add MJIT
znz (Kazuhiro NISHIYAMA)
02:32 PM Revision 9deb9427 (git): Add "require 'openstruct'" what is forgotten
aycabta (aycabta .)
02:32 PM Revision a118bb80 (git): [ruby/irb] Add tests for RubyLex
The set_auto_indent method calculates the correct number of spaces for
indenting a line. We think there might be a few bugs in this method so
we are testing the current functionality to make sure nothing breaks
when we address those bugs...
Ben
02:32 PM Revision 337ba56a (git): [ruby/reline] Degenerate the terminal size to [$LINES, $COLUMNS] if it is unknown
This is a workaround for https://github.com/ruby/irb/issues/50
https://github.com/ruby/reline/commit/5725677d1a
mame (Yusuke Endoh)
01:48 PM Revision e082f416 (git): Introduce BIGNUM_EMBED_P to check BIGNUM_EMBED_FLAG (#2802)
* bignum.h: Add BIGNUM_EMBED_P
* bignum.c: Use macros for handling BIGNUM_EMBED_FLAG
Kenta Murata
11:52 AM Revision 4ce28b58 (git): speed up set intersect
RGBD (Oleg Zubchenko)
10:43 AM Revision 0cf75e38 (git): Split test_nomethod_error.rb
nobu (Nobuyoshi Nakada)
10:43 AM Revision a580a375 (git): Split test_name_error.rb
nobu (Nobuyoshi Nakada)
10:43 AM Revision ee4ead80 (git): Split test_frozen_error.rb
nobu (Nobuyoshi Nakada)
10:43 AM Revision 8caeef7c (git): Fix the exception to be raised
`NoMethodError` has been raised instead of `FrozenError`. nobu (Nobuyoshi Nakada)
09:49 AM Revision 2e1fd4e2 (git): Official actions/checkout is useless
It died again https://github.com/ruby/ruby/runs/368837347 k0kubun (Takashi Kokubun)
09:31 AM Revision 918fe2ed (git): Fix Object#inspect documentation
Starting from ruby 2.7.0, there's no longer a connection between the hexadecimal
number that #inspect shows and the object's ID.
Joao Fernandes
09:18 AM Revision db58b4a4 (git): Update NEWS for Ruby 2.8.0 (tentative; to be 3.0.0)
znz (Kazuhiro NISHIYAMA)
09:16 AM Revision 3096baec (git): Copy NEWS to doc/NEWS-2.7.0
znz (Kazuhiro NISHIYAMA)
08:49 AM Revision 26ee0af4 (git): Test the bundled version minitest instead of master
Minitest has the released tags now. nobu (Nobuyoshi Nakada)
08:29 AM Revision d912393e (git): text/readline/test_readline.rb - fix skip on Reline (#2743)
TestRelineAsReadline#test_input_metachar passes on MinGW MSP-Greg (Greg L)
08:27 AM Revision 56a74659 (git): Copy-editing NEWS file on "is now warned" messages (#2783)
The phrase "[doing X] is now warned" is not grammatically correct in
English as it is lacking an object. We can make these sentences read
better by switching to "[doing X] will now display a warning" instead.
Prem Sichanugrist
07:46 AM Revision 38c35dd2 (git): Make Slack notifications consistent
k0kubun (Takashi Kokubun)
07:42 AM Revision 8136fec6 (git): There's no such target
k0kubun (Takashi Kokubun)
07:30 AM Revision f98650e9 (git): Make all Actions job names consistent
like "{platform} / make ({make target}, ...)" k0kubun (Takashi Kokubun)
07:23 AM Revision fe158e4c (git): Do not doubly build on trunk
k0kubun (Takashi Kokubun)
07:20 AM Revision b0041873 (git): Drop MinGW build from AppVeyor
in favor of #2791 k0kubun (Takashi Kokubun)
07:19 AM Revision eb2b4258 (git): MinGW on Actions (#2791)
* MinGW - skip spec in spec/ruby/optional/capi/thread_spec.rb
C-API Thread function rb_thread_call_without_gvl
-- runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO
stops/freezes spec test...
MSP-Greg (Greg L)
07:09 AM Revision 79c42026 (git): Revert "Remove TEST_BUNDLED_GEMS_ALLOW_FAILURES"
This reverts commit 75e8dd58f69c190c9698d0133942032903fb2f07.
We seem to randomly hit another issue these days:
https://github.com/ruby/ruby/runs/368756135
https://github.com/ruby/ruby/runs/368756191
k0kubun (Takashi Kokubun)
06:46 AM Feature #16029: Expose fstring related APIs to C-extensions
@byroot
I think it heavily depends on usage... MySQL gem / PG would benefit from "lookup" followed by "create fstring if missing" cause vast majority of string it is creating when querying tables.
My proposal is for the minimal bu...
sam.saffron (Sam Saffron)
06:43 AM Feature #16291: Introduce support for resize in rb_ary_freeze and prefer internal use of rb_ary_freeze and rb_str_freeze for String and Array types
related, see this for for the string api
https://bugs.ruby-lang.org/issues/16029#change-82018
sam.saffron (Sam Saffron)
03:06 AM Bug #16455: coroutine ucontext uses deprecated POSIX getcontext/swapcontext/makecontext, absent in musl and uclibc
There is also a missing include for copy to work with musl:
```
+--- a/coroutine/copy/Context.h
++++ b/coroutine/copy/Context.h
+@@ -13,6 +13,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <alloca.h>
++#include <sy...
luizluca (Luiz Angelo Daros de Luca)
01:09 AM Bug #16455: coroutine ucontext uses deprecated POSIX getcontext/swapcontext/makecontext, absent in musl and uclibc
nobu (Nobuyoshi Nakada) wrote:
> luizluca (Luiz Angelo Daros de Luca) wrote:
> ...
I created a patch to fix the build with musl/uclibc:
```
--- a/configure.ac
+++ b/configure.ac
@@ -2344,7 +2344,10 @@ AS_CASE([$rb_cv_coroutine], ...
luizluca (Luiz Angelo Daros de Luca)
02:14 AM Revision 179e402d (git): Updated dependencies on internal/warnings.h
Needed for `UNALIGNED_MEMBER_ACCESS` using `COMPILER_WARNING_`*
macros.
nobu (Nobuyoshi Nakada)
02:09 AM Feature #16461: Proc#using
Eregon (Benoit Daloze) wrote:
> This still has the problem that it mutates the Proc, what should happen if another Thread concurrently does `block.using(OtherRefinement)` ?
It doesn't mutate the Proc, but the block, and if OtherRefin...
shugo (Shugo Maeda)

12/30/2019

11:26 PM Bug #16406 (Closed): `(lambda_proc << normal_proc).lambda?` should return false
Applied in changeset commit:git|3264a00958f56e1ba75a95c93e59fc9cccf323e8.
----------
Fix Proc#<< spec
[Bug #16406]
alanwu (Alan Wu)
10:55 PM Bug #16406: `(lambda_proc << normal_proc).lambda?` should return false
Should be addressed by https://git.ruby-lang.org/ruby.git/commit/?id=99c7b0b7ea789643bef60085ab59e4b62011ef8b alanwu (Alan Wu)
11:13 PM Revision 3264a009 (git): Fix Proc#<< spec
[Bug #16406] alanwu (Alan Wu)
10:48 PM Revision f1ea5d22 (git): * 2019-12-31 [ci skip]
git[bot]
10:47 PM Revision 99c7b0b7 (git): Decide lambdaness of (f << g) using g (#2729)
* Deciding lambdaness of (f << g) using g
* Use version guards for spec changes
alanwu (Alan Wu)
10:22 PM Bug #16455: coroutine ucontext uses deprecated POSIX getcontext/swapcontext/makecontext, absent in musl and uclibc
nobu (Nobuyoshi Nakada) wrote:
> luizluca (Luiz Angelo Daros de Luca) wrote:
> ...
Yes. And it also affects uclibc.
autoconf should test for getcontext/swapcontext/makecontext at link time as musl do have them declared (but not impl...
luizluca (Luiz Angelo Daros de Luca)
07:27 PM Feature #16468 (Closed): Switch to Miller-Rabin for Prime.prime?
The miller-rabin algorithm is a non-deterministic primality test, however it is known that below 2**64, you can always get a deterministic answer by only checking a=[2,3,5,7,11,13,17,19,23, 29, 31, 37]
Given that Prime.prime? would ne...
steveb3210 (Stephen Blackstone)
06:23 PM Feature #16463: Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1
My apologies, it seems I overestimated the meaning of "I think Eregon is correct". And perhaps you missed the part where I emphasized "might", as I never meant to imply you were 100% behind the idea. So hard to convey nuances in writing ... Dan0042 (Daniel DeLorme)
04:34 PM Feature #16463: Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1
Dan0042 (Daniel DeLorme) wrote:
> Wow, we've finally reached the point where even Jeremy thinks `ruby2_keywords` by default *might* be the better choice.
That is not what I wrote. You either did not read or understand what I wrote ...
jeremyevans0 (Jeremy Evans)
04:20 PM Feature #16463: Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1
Wow, we've finally reached the point where even Jeremy thinks `ruby2_keywords` by default *might* be the better choice. I didn't think I'd see that. Maybe just one more push and we can reach the point where the hidden keyword hash flag c... Dan0042 (Daniel DeLorme)
03:57 PM Feature #16463: Fixing *args-delegation in Ruby 2.7: ruby2_keywords semantics by default in 2.7.1
jeremyevans0 (Jeremy Evans) wrote:
> Without this, we would probably also have to warn on all cases where a keyword flagged hash is treated as keywords.
Yes, I think that warning should be just as precise as an explicit `ruby2_keywor...
Eregon (Benoit Daloze)
05:33 PM Feature #16435: Array#to_proc
zverok (Victor Shepelev) wrote:
> What I believe about the first one that it has the most _interesting consequences_: it allows to write shorter and more DRY code by introducing _new concept_ (which leads to thinking "where it can lead ...
Dan0042 (Daniel DeLorme)
02:41 PM Feature #16435: Array#to_proc
@Dan0042
> If I understand correctly, you are saying that of these: ... you consider that the first one provides some kind of clarity of understanding that you don't find in the other three and that leads to better design?
That's a...
zverok (Victor Shepelev)
02:40 AM Feature #16435: Array#to_proc
If I understand correctly, you are saying that of these:
```ruby
list.select(&:condition?)
list.select{.condition?}
list.select{_1.condition?}
list.select{|x|x.condition?}
```
you consider that the first one provides some kind...
Dan0042 (Daniel DeLorme)
04:44 PM Feature #16460: External names for keyword parameters in method definitions
It's a nice idea, and I rather like the original syntax proposed for its high readability, even though it would require adjusting our expectations. It's very different from usual ruby but since it's in the very limited context of a param... Dan0042 (Daniel DeLorme)
12:07 PM Feature #16460: External names for keyword parameters in method definitions
@harrisonb I don't feel like I can add anything substantial to what I've already said. Just two clarifications:
1. If something in my comments has sounded angrily/mockingly/disrespectful, I am genuinely sorry. It was not my intention ...
zverok (Victor Shepelev)
09:05 AM Bug #16467 (Rejected): Fetching a class variable with instance_eval fails with NameError
Class variables need to be in the proper class context.
The following code raises a `NameError` too.
```ruby
class FooClass::BarClass
@@bar # NameError (uninitialized class variable @@bar in FooClass::BarClass)
end
```
You hav...
nobu (Nobuyoshi Nakada)
12:44 AM Bug #16467 (Rejected): Fetching a class variable with instance_eval fails with NameError
Trying to fetch a class variable using `instance_eval` fails with `uninitialized class variable @variable_name in Object (NameError)`.
Reproduction program:
``` ruby
class FooClass
def initialize
@foo = "foo"
@@bar = "b...
barrettkingram (Barrett Ingram)
08:38 AM Revision 3e2418e2 (git): [ruby/io-console] bump up to 0.5.4
nobu (Nobuyoshi Nakada)
07:54 AM Misc #16464: Which core objects should support deconstruct/deconstruct_keys?
These probably should be filed as separate feature requests. I'm already using PM in production and the idea about deconstructing `Time` instances also came into my mind. `Object#deconstruct` is a lot more subtle, I wouldn't say it's _th... decuplet (Nikita Shilnikov)
01:31 AM Misc #16464: Which core objects should support deconstruct/deconstruct_keys?
> 1 in Integer(..0)
> ...
Same here. It looks like trying to convert a beginless range to an Integer. I understand how `Object#deconstruct` would work with the array pattern to allow this, but it feels a bit hacky. An object with `d...
Dan0042 (Daniel DeLorme)
03:04 AM Feature #14912: Introduce pattern matching syntax
mame (Yusuke Endoh) wrote:
> `Point[x: 1, y: 2, z: 3]` corresponds elegantly to `Point[x: a, y: b, z: c]`. We cannot write `Point{x: 1, y: 2, z: 3}`.
I understand the idea but for me this backfired. Because it looks **exactly** like...
Dan0042 (Daniel DeLorme)
12:59 AM Revision aed5afda (git): * 2019-12-30 [ci skip]
git[bot]
12:59 AM Revision e8821876 (git): syntax.rdoc: remove "experimental" from refinements (#2796)
palkan (Vladimir Dementyev)
 

Also available in: Atom