Project

General

Profile

Activity

From 12/21/2019 to 12/27/2019

12/27/2019

11:45 PM Revision bf04fe08 (git): Remove "All Rights Reserved." from Copyright statement.
Samuel Williams
11:41 PM Revision f96216df (git): Remove "All Rights Reserved." from Copyright statement.
Samuel Williams
11:01 PM Revision f05416c9 (git): Fix coroutine copy implementation on OpenBSD
OpenBSD is the only platform that uses this support by default,
and it did not work because while OpenBSD supports alloca, it does
not include alloca.h.
This should be backported to Ruby 2.7.
From George Koehler
jeremyevans (Jeremy Evans)
09:09 PM Feature #5481: Gemifying Ruby standard library
marcandre (Marc-Andre Lafortune) wrote:
> vo.x (Vit Ondruch) wrote:
> ...
You can compare the bundler.gemspec from Ruby and upstream:
https://github.com/ruby/ruby/blob/master/lib/bundler/bundler.gemspec
https://github.com/bundler/b...
vo.x (Vit Ondruch)
08:35 PM Feature #5481: Gemifying Ruby standard library
hsbt (Hiroshi SHIBATA) wrote (over 1 year ago):
> > @marcandre
> ...
There was an issue with `prime` library not beeing synced, I haven't checked others yet. It would be important to know if we can automatize this, and who's responsibi...
marcandre (Marc-Andre Lafortune)
08:33 PM Feature #5481: Gemifying Ruby standard library
@hsbt ah, thanks, I didn't know about `ruby tool/sync_default_gems.rb`. I doubled checked the code and the algorithm currently is in the subdirectory iff there is one, so what I did was correct and sufficient:
https://github.com/ruby/...
marcandre (Marc-Andre Lafortune)
08:51 PM Feature #16264: Real "callable instance method" object.
As a note for the future:
Since unary operations like `-@` and `~@` use the `@` sigil to represent the receiver, I think it would make sense for the callable instance method object to have a syntax like `@.hoge`
Dan0042 (Daniel DeLorme)
08:43 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
I think the positive counterparts of `take_while/drop_while` should be `take_until/drop_until`. And although `take_upto` and `drop_upto` are nicely intuitive and descriptive, I can't think of any good names for their negative counterpart... Dan0042 (Daniel DeLorme)
08:04 PM Bug #16457: Invisible keys on hash when defining hash with Hash.new({})
```ruby
my_hash = Hash.new({})
my_hash[:my_key].merge!(value: '')
id = my_hash.default.object_id
p ObjectSpace.each_object.find { |o| o.object_id == id }
#=> {:value=>""} -- it exists
my_hash = nil # allow myhash __and its de...
zverok (Victor Shepelev)
07:54 PM Bug #16457 (Rejected): Invisible keys on hash when defining hash with Hash.new({})
This is as per spec.
You typically never want a hash's default to be mutable. Try to name that default in your head (e.g. `X={}; my_hash= Hash.new(X)`, this might help understand it.
You may want to do instead: `Hash.new{ |h, k| h[...
marcandre (Marc-Andre Lafortune)
04:36 PM Bug #16457: Invisible keys on hash when defining hash with Hash.new({})
So does it mean when main hash lost his references, this new allocated hash will also be collected by GC? I haven't get a chance to test it (also don't know how to do proper test :) ) Farhad (Farhad Eyvazli)
11:44 AM Bug #16457: Invisible keys on hash when defining hash with Hash.new({})
The logic of this behavior is:
1. `my_hash[:my_key]` returns `my_hash.default` (not assigning it to any key)
2. `my_hash[:my_key].merge!(value: '')` updates this object
3. Now this object is available for ANY key in its updated form, ...
zverok (Victor Shepelev)
11:36 AM Bug #16457 (Rejected): Invisible keys on hash when defining hash with Hash.new({})
When using ``` Hash.new()``` to initialize a hash, we all know for undefined it will return specific value which sent as a parameter to the ```Hash.new``
But when doing something like that keys get invisible
```ruby
my_hash: Hash.ne...
Farhad (Farhad Eyvazli)
07:54 PM Feature #16378: Support leading arguments together with ...
In the [DevelopersMeeting20191017Japan log](https://docs.google.com/document/d/1-IC98nOPY_FZnne2PXILYAaxt6PqHfhphAI908K3vD8/edit) there was "Future work: lead argument handling is postponed", so clearly there was the intention of adding ... Dan0042 (Daniel DeLorme)
06:15 PM Feature #16378 (Open): Support leading arguments together with ...
@matz Could you reply to this?
Particularly:
> But the primary purpose of Ruby ... is method delegation.
Indeed, and I believe we also want to extract leading arguments in many delegation use cases.
`...` not supporting leading a...
Eregon (Benoit Daloze)
07:46 PM Bug #16458 (Rejected): Ruby 2.7 warning firing in the wrong situations
The method is defined in line *146*, i.e. it is `nil`'s `#try` method:
```
def try(_method_name = nil, *, **)
nil
end
```
https://github.com/rails/rails/blob/fe097fa629f0975316736f08c3ae00600055ef06/activesupport/lib/active_s...
marcandre (Marc-Andre Lafortune)
05:55 PM Bug #16458 (Rejected): Ruby 2.7 warning firing in the wrong situations
I'm trying to remove all warnings from my library and there is a warning related to keyword arguments that is firing when I believe it should not.
The warning is:
```
/Users/rafaelfranca/src/rails/globalid/lib/global_id/global_id....
rafaelfranca (Rafael França)
05:35 PM Feature #16456: Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
> Is there an advantage to have its own type of parameter?
I believe the advantages of doing this are:
- If Ruby ever introduces a new type of parameter, the result of `#parameters` won't need to change for existing code which us...
aaronc81 (Aaron Christiansen)
11:37 AM Feature #16456: Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
> I think it should be:
```ruby
[[:rest, :*], [:keyrest, :**], [:block, :&]]
```
(I have a deja vu we already discussed it :)))
Names are redundant, it should be just
```ruby
[[:rest], [:keyrest], [:block]]
```
Like this:
...
zverok (Victor Shepelev)
11:29 AM Feature #16456: Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
I think it should be:
```ruby
[[:rest, :*], [:keyrest, :**], [:block, :&]]
```
because that's what it will act like in Ruby 3.0+.
Is there an advantage to have its own type of parameter?
That would make usages of `#parameters` ...
Eregon (Benoit Daloze)
12:42 AM Feature #16456 (Closed): Ruby 2.7 argument delegation (...) should be its own kind of parameter in Method#parameters
A method defined with `...` as its parameter list is equivalent to one defined with `*args, &blk`, according to `Method#parameters`.
```ruby
def foo(...); end
p method(:foo).parameters
# => [[:rest, :*], [:block, :&]]
```
Even ...
aaronc81 (Aaron Christiansen)
04:36 PM Revision c74d30e7 (git): Update to ruby/spec@7241f39
Eregon (Benoit Daloze)
04:36 PM Revision 74fdc1e6 (git): Update to ruby/mspec@673fcab
Eregon (Benoit Daloze)
03:47 PM Revision fe3d9d28 (git): * 2019-12-28 [ci skip]
git[bot]
03:46 PM Revision a2fac1d7 (git): Update to ruby/spec@d419e74
Eregon (Benoit Daloze)
03:46 PM Revision 26a9f80c (git): Update to ruby/mspec@1034afc
Eregon (Benoit Daloze)
11:37 AM Feature #16150: Add a way to request a frozen string from to_s
zunda (zunda an) wrote:
> For now, this can be worked around with making sure to have the `readpartial` method return an unfrozen empty string:
Yes, that looks like a good fix to me.
I would indeed expect usages of `read` and `readp...
Eregon (Benoit Daloze)
12:13 AM Feature #16150: Add a way to request a frozen string from to_s
With help by mame-san, I found `nil.to_s` returning a frozen empty string (`""`) broke the http gem on ruby-2.7.0. I wonder how other gems maybe affected.
The code raises `FrozenError` when trying to `force_encoding` after `read`ing a...
zunda (zunda an)
08:55 AM Bug #16406 (Assigned): `(lambda_proc << normal_proc).lambda?` should return false
nobu (Nobuyoshi Nakada)
08:51 AM Revision bf77fc23 (git): Use the more popular word [ci skip]
[Bug #16437] nobu (Nobuyoshi Nakada)
07:07 AM Revision 4db89828 (git): Add test_completion_with_indent_and_completer_quote_characters
This is for 8a705245e55575d4d310a2e956b89a36a5931971. aycabta (aycabta .)
07:02 AM Revision 778634f7 (git): Drop an invalid char as UTF-8
aycabta (aycabta .)
04:19 AM Bug #16455: coroutine ucontext uses deprecated POSIX getcontext/swapcontext/makecontext, absent in musl and uclibc
luizluca (Luiz Angelo Daros de Luca) wrote:
> I tried to disable it with --without-coroutine, --with-out-coroutine and --with-coroutine=no, but it is innocuous or try to use a "no" implementation.
Does `—-with-coroutine=copy` work?
nobu (Nobuyoshi Nakada)
04:06 AM Revision 729b7ce2 (git): Add check_warning_flags to leakchecker
znz (Kazuhiro NISHIYAMA)
01:17 AM Revision 8c5430e2 (git): reroute macro conflicts on OpenBSD
OpenBSD's <sys/endian.h> has its own swap32() etc. We have to avoid
name conflicts.
See also https://rubyci.org/logs/rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20191226T210011Z.log.html.gz#miniruby
shyouhei (Shyouhei Urabe)
12:20 AM Revision 018769e2 (git): Try to fix error on Solaris
znz (Kazuhiro NISHIYAMA)

12/26/2019

11:13 PM Feature #16441: Enumerable#take_while_after
Dan0042 (Daniel DeLorme) wrote:
> `take_while_after` is rather unwieldy, so in terms of naming maybe I can suggest:
> ...
Such methods are the same as the cases 6 and 7 in my proposal #16446.
sawa (Tsuyoshi Sawada)
10:32 PM Feature #16441: Enumerable#take_while_after
`take_while_after` is rather unwieldy, so in terms of naming maybe I can suggest:
```ruby
str.each_line(chomp: true).take_from{ _1 == '<<' }.take_upto{ _1 == '>>' }
```
Dan0042 (Daniel DeLorme)
10:10 PM Feature #16435: Array#to_proc
In all honesty, the more time goes, the less I like the various proposals that replace a block by the convert-to-proc `&` operator.
It looks to me like all the examples could be just as succintly represented with numbered parameters, ...
Dan0042 (Daniel DeLorme)
10:00 PM Feature #5481: Gemifying Ruby standard library
marcandre (Marc-Andre Lafortune) wrote:
> I'm was actually wondering why they are in the main repository at all...
The problem of .gemspec files is that they are scattered all across the repository. The .gemspec should live either in...
vo.x (Vit Ondruch)
09:03 PM Feature #16451: Special ternary operator for methods ending in `?`
Also against.
I agree that the double question mark looks weird in `foo? ? 1 : 2`, but that's just a code formatting issue and doesn't warrant such an exceptional syntax. xBartu's suggestion is good, or you could customize your editor...
Dan0042 (Daniel DeLorme)
10:32 AM Feature #16451: Special ternary operator for methods ending in `?`
I am also against the proposal.
Having said that I love using one-liners but newcomers to Ruby (from another language) will presumably look for current syntax.
This might be a bit odd yet we can advocate the following:
``` rub...
xBartu (Bartu Demirkıran)
10:15 AM Feature #16451: Special ternary operator for methods ending in `?`
nobu (Nobuyoshi Nakada) wrote:
> A method ends with `?` also can take argument(s), so the proposed syntax introduces an ambiguity which doesn't seem solvable.
I won't claim to be an expert in how the interpreter works, so I'll take y...
myxoh (Nicolas Klein)
08:09 AM Feature #16451: Special ternary operator for methods ending in `?`
A method ends with `?` also can take argument(s), so the proposed syntax introduces an ambiguity which doesn't seem solvable. nobu (Nobuyoshi Nakada)
08:46 PM Feature #15973: Let Kernel#lambda always return a lambda
> one of the key points of Ruby's attractiveness is how far it goes to reduce boilerplate in a logical and humane way. There is a non-neglectible gap between "human" consistency and "computer" (formal) consistency.
+1, very much. I'm ...
Dan0042 (Daniel DeLorme)
07:53 AM Feature #15973: Let Kernel#lambda always return a lambda
Ok, make a new ticket about define_method. How about lambda?

Koichi

> 2019/12/26 4:34、zverok.offline@gmail.comのメール:
>
> Issue #15973 has been updated by zverok (Victor Shepelev).
>
>
> Ugh, let me be a bit philosophical h...
ko1 (Koichi Sasada)
08:03 PM Bug #16455 (Closed): coroutine ucontext uses deprecated POSIX getcontext/swapcontext/makecontext, absent in musl and uclibc
Hello,
While building ruby 2.7.0 for mips with musl, it fails:
```
linking miniruby /home/luizluca/prog-local/openwrt/trunk/staging_dir/toolchain-...
luizluca (Luiz Angelo Daros de Luca)
03:47 PM Revision 30dbd9e4 (git): * 2019-12-27 [ci skip]
git[bot]
03:46 PM Revision baf37a5f (git): Get rid of LIST_HEAD conflict with a system header on macOS
nobu (Nobuyoshi Nakada)
12:20 PM Revision 7bf44e92 (git): `#include "internal/debug"` seems to be needed in assert mode
http://ci.rvm.jp/results/trunk-theap-asserts@silicon-docker/2525210 mame (Yusuke Endoh)
11:45 AM Revision 0c2d731e (git): update dependencies
shyouhei (Shyouhei Urabe)
11:45 AM Revision 8184adab (git): internal/stdbool.h rework
Noticed that internal/stdbool.h and addr2line.c are the only two place
where missing/stdbool.h is included. Why not delete the file so that
we can merge internal/stdbool.h and missing/stdbool.h into one.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 5e22f873 (git): decouple internal.h headers
Saves comitters' daily life by avoid #include-ing everything from
internal.h to make each file do so instead. This would significantly
speed up incremental builds.
We take the following inclusion order in this changeset:
1. "ruby/con...
shyouhei (Shyouhei Urabe)
11:45 AM Revision 33e96019 (git): TIMESPEC_SEC_MAX might be bigger than 53 bits.
The same as 41bc766763dba63ae2529f2f9070b8e26399745c. Read that commit
for what is happening.
shyouhei (Shyouhei Urabe)
11:45 AM Revision bf53d6c7 (git): other minior internal header tweaks
These headers need no rewrite. Just add some minor tweaks, like
addition of #include lines. Mainly cosmetic.
TIMET_MAX_PLUS_ONE was deleted because the macro was used from only
one place (directly write expression there).
shyouhei (Shyouhei Urabe)
11:45 AM Revision 3ae09b30 (git): internal/vm.h rework
Rearranged contents, then added MJIT_FUNC_EXPORTED function
declarations.
shyouhei (Shyouhei Urabe)
11:45 AM Revision e0b1be01 (git): internal/thread.h rework
Rather trivial, added missed MJIT_FUNC_EXPORTED function declaration. shyouhei (Shyouhei Urabe)
11:45 AM Revision ce2c97d7 (git): internal/symbol.h rework
Some declatations are moved from internal/parse.h, to reflect the fact
that they are defined in symbol.c.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 1a80d7bc (git): internal/string.h rework
Reduced the number of macros defined in the file. Also made it explicit
for MJIT_FUNC_EXPORTTED functions to be so.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 797c4691 (git): internal/range.h rework
Eliminate macros for better readability. shyouhei (Shyouhei Urabe)
11:45 AM Revision 719efe72 (git): internal/process.h rework
Eliminated the macro to convert into an inline function. shyouhei (Shyouhei Urabe)
11:45 AM Revision c524df07 (git): internal/proc.h rework
Annotated MJIT_FUNC_EXPORTED functions as such. Declaration of
rb_sym_to_proc is moved into this file because the function is defined
in proc.c rather than string.c.
shyouhei (Shyouhei Urabe)
11:45 AM Revision d0e0c884 (git): internal/object.h rework
Eliminated macros. As a side effect struct RBasicRaw is no longer
required because we can now define anonymous structs inside of inline
functions.
shyouhei (Shyouhei Urabe)
11:45 AM Revision c27bcd70 (git): internal/gc.h rework
Improved readability by reducing the use of macros. Also moved some
part of internal/compilers.h into this file, because it seems to be the
right place for them.
shyouhei (Shyouhei Urabe)
11:45 AM Revision adc49f0f (git): internal/sanitizers.h rework
Rearrange macro orders for better readability. shyouhei (Shyouhei Urabe)
11:45 AM Revision ec6f6b53 (git): internal/error.h rework
Reduce macros for readability. Also transplanted some part of
internal/file.h into here because the delcared functions are in fact
defined in error.c.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 23c2a27b (git): internal/compile.h rework
This file containes other materials than in compile.c. I could perhaps
split them into files, but felt overkill. Just add comments that
describe the situations.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 0723db6c (git): internal/array.h rework
Rearrange contents for better readability, reduce macros for the same
reason, and mark MJIT_FUNC_EXPORTED functions as such.
shyouhei (Shyouhei Urabe)
11:45 AM Revision f3a229fe (git): internal/variable.h rework
Eliminated macros. Also marked MJIT_FUNC_EXPORTED functions as such.
Some of them are declared in constant.h so edited that file also.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 989068cf (git): internal/imemo.h rework
Arrange contents and eliminate macros, to make them readable.
Macro IFUNC_NEW was deleted because there was only one usage.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 63c9f620 (git): internal/class.h rework
This file has almost nothing to do. Added some #ifdef lines and
rearranged file contents.
Those macros are unable to translate into inline functions, because they
are used as lvalues of assignments.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 7d71d916 (git): internal/struct.h rework
Replace macros with inline functions of equivalent contents, for much
improved readability.
shyouhei (Shyouhei Urabe)
11:45 AM Revision e72b8592 (git): internal/hash.h rework
Reduce macros to make them inline functions, as well as mark
MJIT_FUNC_EXPORTED functions explicitly as such.
Definition of ar_hint_t is simplified. This has been the only possible
definition so far.
shyouhei (Shyouhei Urabe)
11:45 AM Revision f0c02a09 (git): internal/numeric.h rework
Marked MJIT_FUNC_EXPORTED functions as such. Other changes are rather
cosmetic.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 099778a6 (git): internal/bingnum.h rework
Turn macros into inline functions for better readability. Also add
rb_int128t2big delcaration, which was missing.
shyouhei (Shyouhei Urabe)
11:45 AM Revision f6dc053f (git): internal/fixnum.h rework
Add #include lines, move FIXNUM_POSITIVE_P etc. from numeric.h. shyouhei (Shyouhei Urabe)
11:45 AM Revision 68c0dc8d (git): internal/static_assert.h rework
ISO/IEC 9899:2011 section 7.2 states that <assert.h> must define
static_assert. Use it when available.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 6581db21 (git): internal/warnings.h rework
Not a big rewrite. Just to make those macros readable. shyouhei (Shyouhei Urabe)
11:45 AM Revision 64ec438b (git): internal/bits.h rework
Improving readability by converting some macros into inline functions.
Also improved support for recent x86_64 processors, which have better
instructions for the purposes.
shyouhei (Shyouhei Urabe)
11:45 AM Revision 0958e19f (git): add several __has_something macro
With these macros implemented we can write codes just like we can assume
the compiler being clang. MSC_VERSION_SINCE is defined to implement
those macros, but turned out to be handy for other places. The -fdeclspec
compiler flag is nec...
shyouhei (Shyouhei Urabe)
11:45 AM Revision 863dbb21 (git): assume C99
Now that we no longer support old compilers, we can safely delete
several obsolete #ifdef gurads. Also because (as of writing) it is
impossible to compile the program using C++ compilers, lets just
entirely prohibit __cplusplus to reduc...
shyouhei (Shyouhei Urabe)
11:45 AM Revision 1dd149d3 (git): re-add io.h and encoding.h into internal.h
This is tentative. For the sake of simplicity we partially revert
commits e9cb552ec96, ee85a6e72b and 51edb300425. Will decouple them
once again when we are ready.
shyouhei (Shyouhei Urabe)
11:45 AM Revision b739a63e (git): split internal.h into files
One day, I could not resist the way it was written. I finally started
to make the code clean. This changeset is the beginning of a series of
housekeeping commits. It is a simple refactoring; split internal.h into
files, so that we can...
shyouhei (Shyouhei Urabe)
11:45 AM Revision ba78bf97 (git): debug_counter.h must be self-contained
Include what is necessary. shyouhei (Shyouhei Urabe)
10:33 AM Misc #16454: DevelopersMeeting20200116Japan
duerst (Martin Dürst) wrote:
> mame (Yusuke Endoh) wrote:
> ...
Yes, I meant 2020/01/09. Thanks :-)
mame (Yusuke Endoh)
09:23 AM Misc #16454: DevelopersMeeting20200116Japan
(I honestly promised to stop doing this...)
* [Feature #16441] Enumerable#take_while_after (zverok)
* Just like `take_while`, but also returns the matched element; practical examples are shown
* [Feature #16435] Array#to_proc (zve...
zverok (Victor Shepelev)
08:23 AM Misc #16454: DevelopersMeeting20200116Japan
mame (Yusuke Endoh) wrote:
> Please add a ticket number by one week ago about the meeting date.
Do you mean "by one week before the meeting date"? In English, "ago" can only be used for the past, not for the future.
duerst (Martin Dürst)
07:52 AM Misc #16454: DevelopersMeeting20200116Japan
Carry-over:
* [Bug #8841] Module#included_modules and prepended modules (mame)
* Module#include? and Module#included_modules regard prepended modules as included (not well documented); Module#included is not called when the module ...
mame (Yusuke Endoh)
07:50 AM Misc #16454: DevelopersMeeting20200116Japan
I'd like to set the comment deadline for the agenda. Please add a ticket number by one week ago about the meeting date. (I'll go through the tickets before the meeting.) mame (Yusuke Endoh)
07:45 AM Misc #16454 (Closed): DevelopersMeeting20200116Japan
# The next dev meeting
**Date: 2020/01/16 13:00-17:00**
Place/Sign-up/Agenda/Log: https://docs.google.com/document/d/1NxNMc7tlt-olPRyRQDhAjZWw30Atr6a-rfQxQ9BRXfY
- Dev meeting *IS NOT* a decision-making place. All decisions should...
mame (Yusuke Endoh)
09:06 AM Feature #16290 (Closed): Add Ruby C API to acquire aligned memory
watson1978 (Shizuo Fujita)
07:15 AM Misc #16393 (Closed): DevelopersMeeting20191220Japan
mame (Yusuke Endoh)
06:50 AM Revision b25e2727 (git): Transform hash keys by a hash [Feature #16274]
nobu (Nobuyoshi Nakada)
05:39 AM Bug #16450 (Closed): Range#min with a beginless range should raise an explicit exception
81e377023c490998a3fec245ca2fb2b3c710c2c6 mame (Yusuke Endoh)
05:13 AM Bug #16453 (Closed): irb crashes when using array literal and heredoc
I wanted to type like this:
``` ruby
[<<FOO]
hello
FOO
```
But IRB crashed after input "hello" (and return):
```
irb(main):001:-" [<<FOO]
irb(main):002:-" helloTraceback (most recent call last):
32: from /Users/jnito/...
jnchito (Junichi Ito)
03:54 AM Feature #16375: Right size regular expression compile buffers for literal regexes and on Regexp#freeze
methodmissing (Lourens Naudé) wrote:
> Thanks for the consideration and discussing the proposal. Do you mean file a refactored version of this ticket which has drifted in scope on the Feature tracker with the memory improvements?
Sor...
mame (Yusuke Endoh)
03:08 AM Feature #16375: Right size regular expression compile buffers for literal regexes and on Regexp#freeze
mame (Yusuke Endoh) wrote:
> @nobu will review the patch.
> ...
Thanks for the consideration and discussing the proposal. Do you mean file a refactored version of this ticket which has drifted in scope on the Feature tracker with the m...
methodmissing (Lourens Naudé)
02:32 AM Feature #16375: Right size regular expression compile buffers for literal regexes and on Regexp#freeze
@nobu will review the patch.
@methodmissing Could you file a ticket about performance improvement and/so refactoring into the Feature tracker?
mame (Yusuke Endoh)
02:43 AM Feature #16377: Regexp literals should be frozen
At the previous dev meeting, matz said that let's give it a try :-)
For the record: `Regexp.new` should continue to return unfrozen Regexp instance.
I'll review the pull request.
mame (Yusuke Endoh)
02:39 AM Feature #14240: warn four special variables: $; $, $/ $\
At the previous dev meeting, matz said that it should display a warning dynamically, i.e., not at the parsing time but when the variables are assigned. Variable aliases should be also warned. @jeremyevans0, could you please progress? mame (Yusuke Endoh)
02:35 AM Feature #16260: Symbol#to_proc behaves like lambda, but doesn't aknowledge it
At the previous meeting, matz said it should return true. Will do. mame (Yusuke Endoh)
02:24 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
This ticket was discussed at the previous dev meeting, and @nobu will review the patch and merge it if okay. mame (Yusuke Endoh)
01:58 AM Revision dced0e57 (git): * 2019-12-26 [ci skip]
git[bot]
01:55 AM Revision 537a1cd5 (git): 2.8.0 (tentative; to be 3.0.0) development has started.
matz (Yukihiro Matsumoto)

12/25/2019

10:36 PM Feature #16451: Special ternary operator for methods ending in `?`
shevegen (Robert A. Heiler) wrote:
> I am slightly against this proposal.
> ...
While I'm not going to argue that `if else end` statements read nicer than the ternary statement. Reality is that the ternary terms to be the preferred opt...
myxoh (Nicolas Klein)
10:26 PM Feature #16451: Special ternary operator for methods ending in `?`
sawa (Tsuyoshi Sawada) wrote:
> The current ternary operator does not work that way. It works like this:
> ...
You are right, I've corrected the example
myxoh (Nicolas Klein)
05:18 PM Feature #16451: Special ternary operator for methods ending in `?`
The current ternary operator does not work that way. It works like this:
```ruby
question_method? ? 'was true' : 'was false' # => 'was false'
```
sawa (Tsuyoshi Sawada)
04:37 PM Feature #16451: Special ternary operator for methods ending in `?`
I am slightly against this proposal.
To me personally it does not make a lot of sense to differ between the
trailing character of a method in regards to the ternary operator. IMO
the ternary operator should not discriminate against ...
shevegen (Robert A. Heiler)
03:46 PM Feature #16451 (Open): Special ternary operator for methods ending in `?`
When a method ends in `?`, we should be able to skip the `?` in the ternary operator. For example, we should be able to do:
```ruby
question_method? true_statement : false_statement
```
This shouldn't interfere with implementatio...
myxoh (Nicolas Klein)
08:54 PM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
Just for completeness
https://fossies.org/linux/misc/ruby-2.7.0.tar.gz/codespell.html
Great!
jschleus (Jens Schleusener)
07:34 PM Feature #15973: Let Kernel#lambda always return a lambda
Ugh, let me be a bit philosophical here (how many times I promised myself to not engage in discussions about Ruby's "spirit"? I've lost count.)
I understand the point you are speaking from (language implementer's background, who const...
zverok (Victor Shepelev)
11:51 AM Feature #15973: Let Kernel#lambda always return a lambda
zverok (Victor Shepelev) wrote:
> Seem it will have an awful impact on any DSLs?..
Which is IMHO a perfect example of how dangerous that is.
What if it's `skip_if { |user| return 42 }`?
Do you expect that to return from the surroun...
Eregon (Benoit Daloze)
11:20 AM Feature #15973: Let Kernel#lambda always return a lambda
> On a related note I think we should also prohibit `define_method(&non_lambda)` because that confusingly treats the same block body differently (e.g., the same return in the code means something different).
Seem it will have an awful...
zverok (Victor Shepelev)
11:15 AM Feature #15973: Let Kernel#lambda always return a lambda
On a related note I think we should also prohibit `define_method(&non_lambda)` because that confusingly treats the same block body differently (e.g., the same `return` in the code means something different). Eregon (Benoit Daloze)
11:13 AM Feature #15973: Let Kernel#lambda always return a lambda
ko1 (Koichi Sasada) wrote:
> more aggressive proposal is obsolete `lambda` call, and use `->` (maybe it is too aggressive).
Sounds even better to me, but I guess that might be disruptive for everyone to adopt `-> {}` style.
It would...
Eregon (Benoit Daloze)
11:04 AM Feature #15973: Let Kernel#lambda always return a lambda
ko1 (Koichi Sasada) wrote:
> This is one idea: how about to prohibit `lambda(&...)` method call? (block literal is always prohibited)
I think you mean non-literal block (`&`) becomes prohibited.
> ...
And whether it's `lambda(&......
Eregon (Benoit Daloze)
06:44 PM Misc #16452 (Closed): Document pattern matching
I noticed 2.7 was released without any official pattern matching documentation, other than the link to the (outdated) presentation.
I don't know, maybe this work is already in progress internally, or maybe it consciously left this way...
zverok (Victor Shepelev)
06:12 PM Bug #14918: Use Reline for fallback of ext/readline
aycabta (aycabta .) wrote:
> Ruby loses readline standard library when the system doesn't have libreadline during Ruby installation, At https://bugs.ruby-lang.org/issues/11084, @hsbt proposed pure Ruby implementation. But I think that r...
josh.cheek (Josh Cheek)
11:26 AM Feature #14912: Introduce pattern matching syntax
Actually, `in User(id: id, name: "Bob")` should work.
@docx what do you think of that form?
I would argue that's more similar to both `Integer()`-like constructors and `User.new(id: 1, name: "Bob")` constructors.
`Point[x: 1, y: 2...
Eregon (Benoit Daloze)
09:50 AM Revision 647ee6f0 (git): [ruby/reline] Version 0.1.2
https://github.com/ruby/reline/commit/b41024e317 aycabta (aycabta .)
09:50 AM Revision 1341a279 (git): Save last breaking point to complete
aycabta (aycabta .)
09:50 AM Revision a52e364e (git): fix version regexp
naruse (Yui NARUSE)
09:50 AM Revision ecbf7fe2 (git): fix typo
naruse (Yui NARUSE)
09:47 AM Revision e1e1d922 (git): [ruby/reline] Version 0.1.2
https://github.com/ruby/reline/commit/b41024e317 aycabta (aycabta .)
09:45 AM Revision 8a705245 (git): Save last breaking point to complete
aycabta (aycabta .)
09:02 AM Revision 1002de58 (git): fix version regexp
naruse (Yui NARUSE)
08:01 AM Revision a1018b2c (git): fix typo
naruse (Yui NARUSE)
06:48 AM Revision a65e8644 (git): v2.7.0p0
naruse (Yui NARUSE)
06:38 AM Revision 75dca097 (git): [bundler/bundler] Do `require "rubygems"` only when needed
This require causes circular require.
```
$ touch empty_file
$ RUBYGEMS_GEMDEPS=empty_file ./local/bin/ruby -w -e ''
/home/mame/work/ruby/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92: warning: /home/mame/work/ruby/local/...
mame (Yusuke Endoh)
06:21 AM Revision 27453b04 (git): Update the version of bigdecimal to 2.0.0 (#2784)
Kenta Murata
05:49 AM Revision 56e00298 (git): Show the error line only when same as the current
nobu (Nobuyoshi Nakada)
05:37 AM Revision 9808e010 (git): export a function for MJIT.
rb_iseq_complete() can be used by MJIT. ko1 (Koichi Sasada)
05:12 AM Revision d9bf9c57 (git): take care of USE_LAZY_LOAD=1.
On USE_LAZY_LOAD=1, the iseq should be loaded. So rb_iseq_check()
is needed. Furthermore, now lazy loading with builtin_function_table
is not supported, so it should cancel lazy loading.
ko1 (Koichi Sasada)
04:36 AM Revision 81e37702 (git): range.c: Range#min with a beginless one now raise an explicit exception
[Bug #16450] mame (Yusuke Endoh)
04:33 AM Bug #16450 (Closed): Range#min with a beginless range should raise an explicit exception
Range#max with an endless range raises an explicit exception, so Range#min with a beginless range do the same.
```
$ ruby -e '(0..).max'
Traceback (most recent call last):
1: from -e:1:in `<main>'
-e:1:in `max': cannot get the ma...
mame (Yusuke Endoh)
03:55 AM Revision cd6c013b (git): Add readline and readline-ext to default gems list in NEWS
aycabta (aycabta .)
03:06 AM Revision 227c3d64 (git): add ref to NEWS entry
ko1 (Koichi Sasada)
02:37 AM Revision 3345eab9 (git): NEWS: add a ticket reference
mame (Yusuke Endoh)
02:31 AM Revision b9e35d27 (git): NEWS: add a ticket reference
mame (Yusuke Endoh)
02:27 AM Revision e0929c44 (git): NEWS: add ticket references
mame (Yusuke Endoh)
02:20 AM Revision eb3f19b9 (git): update-bundled_gems: drop branch name on github [ci skip]
nobu (Nobuyoshi Nakada)
01:57 AM Revision 00710d10 (git): [ruby/readline] Version 0.0.2
https://github.com/ruby/readline/commit/42b71f3fc0 aycabta (aycabta .)
01:57 AM Revision e51a3451 (git): [ruby/readline] Use a box to make easier to see the message
https://github.com/ruby/readline/commit/e49e942053 aycabta (aycabta .)
01:57 AM Revision 57c74841 (git): [ruby/readline] Fix any wrong in messages
https://github.com/ruby/readline/commit/a2cf437c8f aycabta (aycabta .)
01:56 AM Revision de0f4f2f (git): [ruby/readline] Version 0.0.1
https://github.com/ruby/readline/commit/d2363cad33 aycabta (aycabta .)
01:55 AM Revision 5d208657 (git): [ruby/readline] Add post_install_message
https://github.com/ruby/readline/commit/03126372b5 aycabta (aycabta .)
01:53 AM Revision 999a2819 (git): [ruby/readline-ext] Version 0.1.0
https://github.com/ruby/readline-ext/commit/f5abaf5be1 aycabta (aycabta .)
01:08 AM Revision 24624270 (git): [ruby/reline] Version 0.1.1
https://github.com/ruby/reline/commit/923f97d068 aycabta (aycabta .)
12:52 AM Revision ed5b4bae (git): The behavior of vi_end_of_transmission should be the same of vi_list_or_eof
aycabta (aycabta .)
12:38 AM Bug #16449 (Closed): Bundler is 2.1.1 in master, not 2.1.2 ?
Applied in changeset commit:git|1857b4427817755bb0879ca67e1b2f3276f95d4c.
----------
Merge Bundler 2.1.2 from bundler/bundler.
[Misc #16449][ruby-core:96458]
hsbt (Hiroshi SHIBATA)
12:38 AM Revision 03c504ac (git): Commented-out btest on cygwin environment of GitHub Actions
hsbt (Hiroshi SHIBATA)
12:34 AM Revision 622e47a1 (git): ^D on non-empty line in vi mode behaves like Enter
aycabta (aycabta .)

12/24/2019

11:41 PM Revision 8e6d51e0 (git): Sync did_you_mean
yuki24 (Yuki Nishijima)
11:24 PM Revision 2b2be71c (git): Add did_you_mean's promotion to the NEWS
yuki24 (Yuki Nishijima)
10:28 PM Bug #16449 (Assigned): Bundler is 2.1.1 in master, not 2.1.2 ?
hsbt (Hiroshi SHIBATA)
05:04 PM Bug #16449 (Closed): Bundler is 2.1.1 in master, not 2.1.2 ?
NEWS mentions that Bundler has been updated to 2.1.2, but lib/bundler/version.rb
https://github.com/ruby/ruby/blob/5220145ea289d9eb955b373f31773fab2d4f0271/lib/bundler/version.rb
is showing 2.1.1. Normally I think I've seen NEWS d...
MSP-Greg (Greg L)
10:28 PM Revision 1857b442 (git): Merge Bundler 2.1.2 from bundler/bundler.
[Misc #16449][ruby-core:96458] hsbt (Hiroshi SHIBATA)
09:13 PM Revision da0a0bae (git): NEWS: add meaning of "CoW" ("copy-on-write")
stomar (Marcus Stollsteimer)
08:50 PM Revision ceba5b70 (git): [DOC] Fix typo in Time#inspect
stomar (Marcus Stollsteimer)
07:54 PM Revision f3067deb (git): Revert "Add NEWS entry about Module#name performance (#2779)" (#2781)
This reverts commit 3e9221d94a12b54c1285923b642364acdbc31c7e. alanwu (Alan Wu)
07:02 PM Revision 3e9221d9 (git): Add NEWS entry about Module#name performance (#2779)
alanwu (Alan Wu)
05:37 PM Feature #15973: Let Kernel#lambda always return a lambda
more aggressive proposal is obsolete `lambda` call, and use `->` (maybe it is too aggressive).
ko1 (Koichi Sasada)
05:35 PM Feature #15973: Let Kernel#lambda always return a lambda
This is one idea: how about to prohibit `lambda(&...)` method call? (block literal is always prohibited)
3.0: deprecation warning and show 3.1 will raise exception for `lambda(&...)`
3.1: raise exception for `lambda(&...)`
same as...
ko1 (Koichi Sasada)
04:51 PM Feature #14912: Introduce pattern matching syntax
Thanks @mame for explanation and response.
That kinda make sense with the `Point[]`. Is this universal for any class?
I was playing with it and could not make it, for example when I have implemented my own class with `deconstruct_...
docx (Lukas Dolezal)
04:34 PM Revision 5220145e (git): add debug_counter access functions.
These functions are enabled only on USE_DEBUG_COUNTER=1. ko1 (Koichi Sasada)
04:00 PM Revision 9b617ffa (git): * 2019-12-25 [ci skip]
git[bot]
03:57 PM Revision 3679023d (git): [DOC] Fix typo and language
stomar (Marcus Stollsteimer)
01:31 PM Revision 8c017824 (git): Added entry for json-2.3.0
hsbt (Hiroshi SHIBATA)
12:39 PM Revision 1cd2ebed (git): Update the news entries for RubyGems and Bundler
hsbt (Hiroshi SHIBATA)
12:22 PM Revision 05b0410f (git): [ruby/irb] Fix typo
https://github.com/ruby/irb/commit/4bb1340687 stomar (Marcus Stollsteimer)
12:01 PM Revision 54083fd4 (git): [DOC] Fix grammar in Process module docs
stomar (Marcus Stollsteimer)
12:01 PM Revision 66e518f7 (git): [DOC] Fix typo
stomar (Marcus Stollsteimer)
09:53 AM Revision 4ba93475 (git): `Object#=~` warning also obeys `Warning[:deprecated]`
nobu (Nobuyoshi Nakada)
09:53 AM Revision a3c5dbf2 (git): Scale sleeping times to wait for the OS operations
nobu (Nobuyoshi Nakada)
09:39 AM Revision 7758849c (git): Remove unused variable
aycabta (aycabta .)
09:34 AM Revision 42e2a322 (git): The delete-char-or-list shows completed list when called at end of line
It doesn't behave the same as the delete-char. aycabta (aycabta .)
09:02 AM Revision b03aea62 (git): NEWS: fix method references for Range#{cover?,include?}
stomar (Marcus Stollsteimer)
08:49 AM Revision 44a1f516 (git): NEWS: improve sections for warning option / Warning
stomar (Marcus Stollsteimer)
08:03 AM Revision 27b4f477 (git): [DOC] Improve docs for Enumerator.produce, Enumerator.new
stomar (Marcus Stollsteimer)
07:34 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
I've updated my pull request to update [the article of Ruby 3's keyword argument separation](https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/).
https://github.com/ruby/www.ruby-l...
mame (Yusuke Endoh)
07:23 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
@naruse also approved. Thank you for quick replies. mame (Yusuke Endoh)
07:10 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
Approved.
Matz.
matz (Yukihiro Matsumoto)
07:06 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
@marcandre
You have to wait for matz and naruse's approvals! I'll ask them.
mame (Yusuke Endoh)
07:19 AM Bug #11878: Comparison of prepended modules
> I think no user expects that the "subclass relation" is different than the order of ancestors, isn't it?
Regardless whether users know or not, they are actually different. Consider:
```ruby
module M; end
class C; prepend M; en...
mame (Yusuke Endoh)
06:56 AM Feature #15605: json library needs more frequent releases
>s it that releases of the json gem will be done from the ruby/ruby repository?
No. We can merge commits from ruby/ruby to flori/json and release it.
hsbt (Hiroshi SHIBATA)
06:48 AM Revision 81504e83 (git): Synchronize with a Queue instead of sleeping
nobu (Nobuyoshi Nakada)
06:38 AM Revision 47ad57f2 (git): Revert "Scale sleeping times"
This reverts commit e57d6194218efc73c30f3fed9dd321d2e357030b.
Test fails:
http://ci.rvm.jp/results/trunk-gc-asserts@ruby-sky1/2518563
http://ci.rvm.jp/results/trunk-gc_compact@silicon-docker/2518533
ko1 (Koichi Sasada)
05:57 AM Revision c4710669 (git): NEWS: added references to warning option [ci skip]
nobu (Nobuyoshi Nakada)
05:56 AM Revision e57d6194 (git): Scale sleeping times
nobu (Nobuyoshi Nakada)
05:04 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
nobu (Nobuyoshi Nakada) wrote:
> * I see the word "unuseful" in some online dictionaries.
Yes, but that doesn't mean it's best. As an example, "unuseful" shows up on Google about 363,000 times, but "useless" shows up on Google abou...
duerst (Martin Dürst)
01:47 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
And as I added fixing typos in ChangeLog file taking from git-notes, the file in the next package will be fixed. nobu (Nobuyoshi Nakada)
01:31 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
Thank you, yes, "exapmle" in test/openssl/test_x509name.rb is intentional to test malformed RDN by a typo.
And for others:
* Fixed the typos in debug_counter.h and error.c.
* I see the word "unuseful" in some online dictionaries.
* `...
nobu (Nobuyoshi Nakada)
04:24 AM Revision adf498b8 (git): Moved warning option section and added a reference [ci skip]
nobu (Nobuyoshi Nakada)
04:12 AM Revision 302e8968 (git): Added warning.rb to .document
nobu (Nobuyoshi Nakada)
03:11 AM Revision 3739ddc3 (git): Added `-W:experimental` to `--help` [Feature #16420]
nobu (Nobuyoshi Nakada)
02:54 AM Bug #16398: Active Support unit test error since caac5f777ae288b5982708b8690e712e1cae0cf6
This issue has been addressed by https://github.com/rails/rails/pull/38069 . yahonda (Yasuo Honda)
02:50 AM Feature #12655: Accessing the method visibility
Sorry, I've forgotten completely.
Updated the [patch](https://github.com/ruby/ruby/pull/2778), but it is sorry to be too late for 2.7.
nobu (Nobuyoshi Nakada)
02:28 AM Revision d0f1eb3e (git): Separated command line option in NEWS [ci skip]
nobu (Nobuyoshi Nakada)
02:14 AM Revision 5a62fb12 (git): Mentioned `-W:` command option in NEWS [ci skip]
nobu (Nobuyoshi Nakada)
02:00 AM Revision f2e1e6cb (git): Enhance explanations for beginless range and #clamp, and add missing feature
zverok (Victor Shepelev)
01:39 AM Feature #15373: Proposal: Enable refinements to `#method` and `#instance_method`
https://docs.google.com/document/u/1/d/1W_wrFsFxxU1MepA6HBpfl-9h-nLD8EBsgMsS7yTDvHE/pub nobu (Nobuyoshi Nakada)
01:33 AM Revision e954be14 (git): Get rid of false positive misspellings
[Bug #16437] nobu (Nobuyoshi Nakada)
01:33 AM Revision 992aa2cd (git): enc/x_emoji.h: fixed dead-links [ci skip]
English version pages seem no longer provided. nobu (Nobuyoshi Nakada)
01:30 AM Revision f09a4ff2 (git): Added NEWS for Feature 15373
osyo (manga osyo)
01:25 AM Revision 360f153f (git): remove "experimental" from numbered parameter.
Numbered parameter is not an experimental feature,
confirmed by Matz.
https://twitter.com/yukihiro_matz/status/1209271452798607361
ko1 (Koichi Sasada)
01:17 AM Misc #16444 (Closed): What is the reason for the warning of IRB?
The IRB maintainer @aycabta has determined to remove the message. https://github.com/ruby/ruby/commit/0e528ae9cb5c1078e4d07287e403cb548e97f0a3 mame (Yusuke Endoh)
12:56 AM Revision 5e17834f (git): [ruby/reline] Version 0.1.0
https://github.com/ruby/reline/commit/55d4dfec1e aycabta (aycabta .)
12:56 AM Revision 8316b330 (git): [ruby/irb] Version 1.2.1
https://github.com/ruby/irb/commit/8da0c74640 aycabta (aycabta .)
12:56 AM Revision 0e528ae9 (git): [ruby/irb] Remove warning message to bundle on Ruby 2.7.0
https://github.com/ruby/irb/commit/d9a7844f50 aycabta (aycabta .)

12/23/2019

11:13 PM Revision 02316619 (git): [DOC] Fix wording in Math::E documentation
stomar (Marcus Stollsteimer)
11:04 PM Revision 30c5e8c4 (git): [ruby/rdoc] Version 6.2.1
https://github.com/ruby/rdoc/commit/c65e14d112 aycabta (aycabta .)
10:58 PM Revision 2bf0743e (git): Update parsers of RDoc that are generated by Racc
aycabta (aycabta .)
10:58 PM Revision adc9b3ca (git): [ruby/rdoc] Support newline in the middle of constant definition
https://github.com/ruby/rdoc/commit/74d3984324 aycabta (aycabta .)
10:58 PM Revision e50e5526 (git): [ruby/rdoc] Treat Proc#call syntax sugar for constant correctly
https://github.com/ruby/rdoc/commit/957d041ae0 aycabta (aycabta .)
10:12 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
sawa (Tsuyoshi Sawada) wrote:
> wishdev (John Higgins) wrote:
> ...
Nothing wrong with that at all - but I think adding a :reverse options to the methods would accomplish a right to left search feature.
As I said - declaring what y...
wishdev (John Higgins)
09:52 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
wishdev (John Higgins) wrote:
>I prefer simpler examples
> ...
My intention of including two `0`s in the example was to show that there remains an asymmmetry; the search is done from the left, not from the right. In principle, we can s...
sawa (Tsuyoshi Sawada)
08:29 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
The answer here is simplicity (declarative) as opposed to wordsmithing.
We need to add an drop_until and take_until to handle 5-8 and drop_while and take_while handle 1-4
All 4 methods get a new parameter "bucket" which determines wher...
wishdev (John Higgins)
03:14 PM Feature #16446: Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
I have not thought about the proposal here quite much so far, sorry (and admittedly I may need
to do so on a fresh morning as I am a bit tired).
Just two brief comments:
- Some of the examples remind me a bit of .select/.reject/....
shevegen (Robert A. Heiler)
08:26 AM Feature #16446 (Rejected): Enumerable#take_*, Enumerable#drop_* counterparts with positive conditions
#16441 led me to think about the issue more generally. When we want to split a series of iterations by the first element that satisfies (or dissatisfies) a condition, we have three factors to consider.
(1) Whether we want the conditio...
sawa (Tsuyoshi Sawada)
09:49 PM Feature #16289 (Closed): Reduce duplicated warnings for the change of Ruby 3 keyword arguments
Great, thanks.
Pushed.
marcandre (Marc-Andre Lafortune)
05:47 PM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
I'm fine with @marcandre's changes. jeremyevans0 (Jeremy Evans)
12:51 PM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
Sounds clearer to me with @marcandre's changes. Eregon (Benoit Daloze)
11:49 AM Feature #16289 (Assigned): Reduce duplicated warnings for the change of Ruby 3 keyword arguments
@marcandre , thank you for creating a pull request.
Your proposal:
old: The last argument is used as keyword parameters; maybe ** should be added to the call
new Using the last argument as keyword parameters is deprecated; maybe *...
mame (Yusuke Endoh)
07:37 AM Feature #16289: Reduce duplicated warnings for the change of Ruby 3 keyword arguments
I'm glad this was merged in, but disappointed the error message still doesn't mention that this is a deprecation warning.
Wouldn't it be cleared with https://github.com/ruby/ruby/pull/2776 ?
marcandre (Marc-Andre Lafortune)
09:47 PM Revision 819b6040 (git): Reword keyword arguments warning messages to convey these are deprecation warnings
Marc-Andre Lafortune
09:41 PM Revision df6f5c44 (git): [DOC] Fix invalid code to make it syntax highlighted
stomar (Marcus Stollsteimer)
09:07 PM Revision a7b50184 (git): [DOC] Use capitalized "Ruby"
stomar (Marcus Stollsteimer)
09:04 PM Revision ba9ccef8 (git): [DOC] Various fixes in bug triaging guide
stomar (Marcus Stollsteimer)
07:17 PM Revision aa01441f (git): * 2019-12-24 [ci skip]
git[bot]
07:16 PM Revision f2017000 (git): move a NEWS entry about inline method cache
ko1 (Koichi Sasada)
04:41 PM Bug #11878: Comparison of prepended modules
Re `obj.is_a?(mod)` we can consider it as `obj.singleton_class.ancestors.include?(mod)` or even `obj.class.ancestors.include?(mod)` in this case.
That's consistent with `ancestors`.
Eregon (Benoit Daloze)
04:38 PM Bug #11878 (Open): Comparison of prepended modules
At the very least it's inconsistent with the order of Module#ancestors:
```ruby
module M; end
class C; prepend M; end
> C.ancestors
=> [M, C, Object, JSON::Ext::Generator::GeneratorMethods::Object, PP::ObjectMixin, Kernel, BasicOb...
Eregon (Benoit Daloze)
03:57 PM Bug #11878 (Rejected): Comparison of prepended modules
The current behavior is consistent. The rdoc of `Module#<` says:
```
call-seq:
mod < other -> true, false, or nil
Returns true if <i>mod</i> is a subclass of <i>other</i>.
```
Note that subclass is not directly related ...
mame (Yusuke Endoh)
02:29 PM Feature #12655: Accessing the method visibility
mri/2.x.0/internal.h:1363:11: error: conflicting types for ‘rb_st_copy’
1363 | st_table *rb_st_copy(VALUE obj, struct st_table *orig_tbl);
looks like this has changed in ruby 2.7
we would have appreciated the public methods from ...
mathieujobin (Mathieu Jobin)
02:02 PM Revision 16fddfe3 (git): [DOC] Improve readability of requirements for <=>
stomar (Marcus Stollsteimer)
02:01 PM Bug #16448: regex global variables are working differently depending on scope
It is very unexpected.(
Thank you.
tdrive (Stanislav Boldaev)
01:47 PM Bug #16448: regex global variables are working differently depending on scope
`$~` is not a global variable, but a kind of local variable. `String#gsub` assigns the match data to `$~` of its caller. `data.gsub(/test/, &f1)` assigns `$~` of the scope of `check`. The lambda `f1` reads `$~` of the toplevel scope, ... mame (Yusuke Endoh)
01:31 PM Bug #16448 (Closed): regex global variables are working differently depending on scope
Hi, everyone.
I am trying to write a code similar to this
``` ruby
#!/usr/bin/env ruby
def check(f1)
f2 = ->(match) { p match; p $~ }

data = "hello test test test"

data.gsub(/test/, &f1)
data.gsub(/test/, &f...
tdrive (Stanislav Boldaev)
01:46 PM Revision 9a42e0c7 (git): NEWS: add reference for [Feature #14405]
stomar (Marcus Stollsteimer)
01:46 PM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
Yes, your mentioned types of false positives are often found and I had tried to eliminate them before. Some nevertheless overseen ones are now also excluded. Additionally the mentioned sub-directories of external gems are now also exclud... jschleus (Jens Schleusener)
01:45 PM Revision de1a4624 (git): NEWS: revise grammar, language, markup, etc.
stomar (Marcus Stollsteimer)
12:56 PM Feature #15605: json library needs more frequent releases
hsbt (Hiroshi SHIBATA) wrote:
> We will handle the new feature of JSON with ruby/ruby repo in the future.
I'm not sure what you mean, could you clarify?
Is it that releases of the json gem will be done from the ruby/ruby repository?
Eregon (Benoit Daloze)
11:15 AM Feature #15605 (Closed): json library needs more frequent releases
naruse did release json-2.3.0 from the current master branch of ruby/ruby.
We will handle the new feature of JSON with ruby/ruby repo in the future.
hsbt (Hiroshi SHIBATA)
12:00 PM Feature #5481: Gemifying Ruby standard library
@marcandre
You can pick the commits from ruby/* repository like this.
```
# git clone from the upstream repository and copy from the upstream repository with cp -rf. It's lost the git commits.
ruby tool/sync_default_gems.rb rubyg...
hsbt (Hiroshi SHIBATA)
12:33 AM Feature #5481: Gemifying Ruby standard library
@hsbt is your tool to do this published somewhere?
In particular I noticed that some `gemspec` files are not in the same spot (e.g. `lib/matrix/matrix.gemspec` vs `lib/ostruct.gemspec`).
I'm moving one in the main repo, but it's no...
marcandre (Marc-Andre Lafortune)
11:14 AM Misc #16447 (Assigned): Merge JSON doc updates?
Thank you for contributing.
I and naruse got the approval for releasing the new version of JSON from flori.
So, I can merge and release them. But It's too late for releasing Ruby 2.7. I'm going to handle it in 2020.
hsbt (Hiroshi SHIBATA)
09:54 AM Misc #16447 (Closed): Merge JSON doc updates?
Sorry for bothering the core tracker.
I understand (though, only partially) that JSON standard library is in a weird state "it is kinda maintained but we can't contact maintaner" (is there no way to just move the project's main repo und...
zverok (Victor Shepelev)
08:57 AM Feature #16274: Transform hash keys by a hash
knu (Akinori MUSHA) wrote:
> Which does `hash1.transform_keys(hash2)` iterate over, hash1's keys or hash2's keys?
My intention of including the key `:author` in `hash` was to show that the iteration is done over the receiver (your `...
sawa (Tsuyoshi Sawada)
08:54 AM Feature #16274: Transform hash keys by a hash
As for the behavior when both a hash argument and a block are given, I suggested in the issue to have the block applied after the hash has applied:
**Original proposal**
```ruby
hash.transform_keys({created: :created_at, updated: :u...
sawa (Tsuyoshi Sawada)
04:53 AM Feature #16274: Transform hash keys by a hash
matz (Yukihiro Matsumoto) wrote:
> FYI, we do not accept a similar change to `transform_values`.
Matz - Do you mean "we reject a similar change to `transform_values`", or do you mean "we have not yet accepted a similar change to `t...
duerst (Martin Dürst)
08:46 AM Revision bbde77cd (git): NEWS: fix some typos, grammar, and language
stomar (Marcus Stollsteimer)
08:04 AM Revision 100fc275 (git): fix wmap_finalize.
wmap_finalize expects id2ref() returns a corresponding object
even if the object is dead. Make id2ref_obj_tbl() for this
purpose.
ko1 (Koichi Sasada)
07:31 AM Revision 9eeaae43 (git): add more debug counters to count numeric objects.
ko1 (Koichi Sasada)
07:15 AM Bug #16445 (Closed): Time#inspect shows a fractional number
This is intentional. There was no way to distinguish Time objects that differ in a fraction of a second.
The behavior of Time#to_s kept unchanged for compatibility.
Matz.
matz (Yukihiro Matsumoto)
02:18 AM Bug #16445 (Closed): Time#inspect shows a fractional number
`Time#inspect` shows a fractional number.
```
irb(main):001:0> Time.at(0.5)
=> 1970-01-01 09:00:00.5 +0900
irb(main):002:0> Time.at(0.1)
=> 1970-01-01 09:00:00 3602879701896397/36028797018963968 +0900
```
Is this intentional?
znz (Kazuhiro NISHIYAMA)
06:59 AM Revision 7779ade4 (git): NEWS: Fix issue reference [#15807] [DOC]
Marc-Andre Lafortune
06:55 AM Revision dadf1255 (git): README: Add Range#minmax to the list of potential incompatibilities [#15929] [DOC]
Marc-Andre Lafortune
06:48 AM Revision 3e1adf57 (git): README: Improve wording [DOC]
Marc-Andre Lafortune
06:40 AM Revision 7df2503b (git): NEWS: Hint at potential incompatibility with Range#minmax [#15807]
Marc-Andre Lafortune
06:04 AM Revision a96f8cec (git): ObjectSpace._id2ref should check liveness.
objspace->id_to_obj_tbl can contain died objects because of lazy
sweep, so that it should check liveness.
ko1 (Koichi Sasada)
05:47 AM Revision 672a61b9 (git): Port https://github.com/ruby/did_you_mean/commit/dd1dd86e6c3188c36224d5dd4389676e6653a727
yuki24 (Yuki Nishijima)
04:23 AM Revision 92d09582 (git): FrozenError.new accepts :receiver instead of 2nd argument [ci skip]
[ruby-core:96227] [Feature #16419] znz (Kazuhiro NISHIYAMA)
03:07 AM Revision 3142a6be (git): Revert "Changed behavior on windows platforms too [ci skip]"
This reverts commit 1bf8d5e9797f6304b2e27cb7f42d467f84de0ff4.
Because 204dc3f39f12b4e2640555306bd1dd4530344277 reverts 61aff0cd189e67fa6f2565639ad0128fa33b88fc
znz (Kazuhiro NISHIYAMA)
02:54 AM Revision 204dc3f3 (git): Revert "Should return "." for File.extname("file.") also on Windows"
We want to introduce consistency and better compatibility with unixen,
but the Windows APIs doues not have consistency fundamentally and
we can not found any logical way...
This reverts commit 61aff0cd189e67fa6f2565639ad0128fa33b88fc.
U.Nakamura
02:48 AM Revision 048f797b (git): [ruby/prime] Bump version
Marc-Andre Lafortune
02:48 AM Revision 446c243d (git): [ruby/ostruct] Bump version
Marc-Andre Lafortune
02:48 AM Revision 9be3295d (git): [ruby/ostruct] Create OpenStruct::VERSION
Marc-Andre Lafortune
02:48 AM Revision 49d94248 (git): [ruby/ostruct] Move gemspec
Marc-Andre Lafortune
02:48 AM Revision 48d1acdf (git): [ruby/matrix] Bump version
Marc-Andre Lafortune
02:08 AM Revision 1ed87dd3 (git): Add NEWS about Warning.[] [Feature #16345] [ci skip]
nobu (Nobuyoshi Nakada)
01:37 AM Revision 5de284ec (git): Fixed a typo in an exception class name
nobu (Nobuyoshi Nakada)
01:10 AM Revision 5f18635a (git): make-snapshot: fixed mode
"X" must be used in conjunction with "+". nobu (Nobuyoshi Nakada)
12:52 AM Misc #15843: Make "trunk" a symbolic-ref of "master" on git.ruby-lang.org
Reminder to everyone:
> 2020 1/1: trunk branch cannot be git fetched and git pushed anymore.
The ruby.git's "trunk" branch will be deleted within 10 days.
k0kubun (Takashi Kokubun)
12:29 AM Revision 80d5d220 (git): Fix typo in commit logs by log-fix notes
nobu (Nobuyoshi Nakada)
12:21 AM Feature #14912: Introduce pattern matching syntax
docx (Lukas Dolezal) wrote:
> I wonder what do you think about only allowing curly brackets for hash pattern, and only square brackets for array pattern?
The rationale of the current design I've heard from @ktsj is to fit the pattern...
mame (Yusuke Endoh)
12:07 AM Revision 4de2297d (git): Re-apply f85e8d2a8b keeping characters < 80
k0kubun (Takashi Kokubun)
12:02 AM Revision f156f70b (git): Revert "Fixed misspellings"
This reverts commit f85e8d2a8b2a37740334db4fd92ef820f05ddbc5.
It violated the limit of width (> 80) and caused the test failure
mame (Yusuke Endoh)

12/22/2019

11:41 PM Revision f85e8d2a (git): Fixed misspellings
Fixed misspellings reported at [Bug #16437] nobu (Nobuyoshi Nakada)
11:36 PM Revision a4b99f97 (git): Fix typos of previous docs PR
In #2612 I made two typos (extra ,, and copy-pasted
same line of code instead of showing two different
ones), fixing them.
zverok (Victor Shepelev)
11:30 PM Revision c1bd1bf2 (git): Document Module#const_source_location
zverok (Victor Shepelev)
11:21 PM Revision ade6543f (git): Adjust sentence in doc [ci skip]
alanwu (Alan Wu)
10:33 PM Feature #14912: Introduce pattern matching syntax
Hi, I was playing with the type/hash patterns (2.7.0-preview3), and I find this confusing and non-intuitive:
while generic hash pattern uses curly brackets e.g.
```in {id: id, name: "Bob"}```
when added type to it, it has to b...
docx (Lukas Dolezal)
09:36 PM Revision bb05cdcd (git): [DOC] Improve documentation for Enumerable#tally
stomar (Marcus Stollsteimer)
06:46 PM Revision 7c37f2cb (git): Some fixes in Enumerator::Lazy docs
* fix list in #flat_map
* fix wrong indentation in #filter_map and #with_index
* other small fixes
stomar (Marcus Stollsteimer)
05:11 PM Revision 679bc4f9 (git): [ruby/reline] Use IO#raw to read one byte
https://github.com/ruby/reline/commit/be17740e82 nobu (Nobuyoshi Nakada)
04:10 PM Misc #16444: What is the reason for the warning of IRB?
A patch to suppress the warning when started as `console`.
```diff
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index 2af872fd03..464b33ae03 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -31,6 +31,8 @@
@TRACER_INI...
nobu (Nobuyoshi Nakada)
02:03 PM Misc #16444: What is the reason for the warning of IRB?
I guess we may provide an API to hide or alter the message for rails console and other tools. Pull request is welcome to ruby/irb. mame (Yusuke Endoh)
11:02 AM Misc #16444: What is the reason for the warning of IRB?
Thanks for your feedback. OK. I understood that too late to discuss and a message is as expected.
I think it would be good if the message could be configurable, but I will also consider expanding the options on the library side. Th...
y-yagi (Yuji Yaginuma)
08:07 AM Misc #16444: What is the reason for the warning of IRB?
I believe that it is too late to discuss "opt-in or opt-out?".
IMO, the quality of the new IRB is not so low. But it highly depends upon environments (OS, terminal, how to use, etc.), so we want people to use the new version, give fe...
mame (Yusuke Endoh)
06:12 AM Misc #16444: What is the reason for the warning of IRB?
Agreed for compatibility - may be better to retain the old behaviour as-is.
I believe it was not a deliberate change but an oversight since the author
of reline here on the issue tracker also mentioned compatibility being
an importa...
shevegen (Robert A. Heiler)
05:39 AM Misc #16444 (Closed): What is the reason for the warning of IRB?
Ruby 2.7 always shows a warning when starting IRB. Why is this necessary?
Of course, ways to suppress the warning have been suggested.
However, libraries that extend IRB, such as `rails console` and `aruba`, may not receive argumen...
y-yagi (Yuji Yaginuma)
03:17 PM Revision 3a18e43c (git): * 2019-12-23 [ci skip]
git[bot]
03:16 PM Revision 1bf8d5e9 (git): Changed behavior on windows platforms too [ci skip]
at 61aff0cd189e67fa6f2565639ad0128fa33b88fc [Bug #15267] znz (Kazuhiro NISHIYAMA)
02:17 PM Revision d339de9d (git): Enhance docs for Module#deprecate_constant
zverok (Victor Shepelev)
02:17 PM Revision 5a0102cb (git): Enhance Range docs
* Change === docs to mention it uses cover?
* Add different example to === docs to showcase
behavior better
* Change include? docs to mention cover?
and clarify the difference
zverok (Victor Shepelev)
02:17 PM Revision 49888431 (git): Actualize Time#inspect docs
zverok (Victor Shepelev)
02:17 PM Revision 5fa9c2ee (git): Actualize Method#inspect docs
zverok (Victor Shepelev)
02:17 PM Revision d78fcfb7 (git): Fix FrozenError#receiver and #initialize docs
zverok (Victor Shepelev)
02:17 PM Revision e568bb56 (git): Update private visibility explanation
zverok (Victor Shepelev)
02:15 PM Revision 03b983d5 (git): Document numbered block parameters
zverok (Victor Shepelev)
02:12 PM Revision 890c834e (git): Enhancements for ENV doc
burdettelamar (Burdette Lamar)
02:01 PM Revision 54be15f3 (git): [Doc] Fix sample in Encoding#names
QuestionDriven
02:01 PM Revision 9654241d (git): [Doc] Fix wrong example in Encoding.aliases
QuestionDriven
01:53 PM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
jschleus (Jens Schleusener) wrote:
> There was now also a check done for Ruby master but since the according tarball isn't embedded into the Fossies standard services a test folder was used:
> ...
Some are not misspells (a part of path...
nobu (Nobuyoshi Nakada)
10:37 AM Bug #16437: Codespell report for Ruby 2.6.5 (and 2.7.0-rc1)
There was now also a check done for Ruby master but since the according tarball isn't embedded into the Fossies standard services a test folder was used:
https://fossies.org/linux/test/ruby-master.tar.gz/codespell.html
(https://foss...
jschleus (Jens Schleusener)
01:49 PM Revision cc87037f (git): Fixed misspellings
Fixed misspellings reported at [Bug #16437], missed and a new
typo.
nobu (Nobuyoshi Nakada)
12:38 PM Bug #16331: fails to build with BSD make when any -j option is given (including -j 1)
Does this log mean the following libraries are stopped by `make` due to the first failure in `cxxanyargs` or in yet another branch?
> ```
> ...
> ```
nobu (Nobuyoshi Nakada)
10:02 AM Bug #16331: fails to build with BSD make when any -j option is given (including -j 1)
I executed following shell script on my FreeBSD test environment and got attached log file.
``` shell
#!/bin/sh
LANG=C
(
echo System Information:
echo --------------------------------------------------------------------...
yasuhirokimura (Yasuhiro KIMURA)
10:39 AM Revision 7c33ee5d (git): Move version guard outside to make it clear the method was added in Ruby 2.5
Eregon (Benoit Daloze)
06:18 AM Revision d76c8cfe (git): RDoc of Warning.[] and .[]= [Feature #16345] [ci skip]
nobu (Nobuyoshi Nakada)
05:45 AM Revision d2ac6d4d (git): Manage deprecation warning by the flag
nobu (Nobuyoshi Nakada)
04:55 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
At least as of Ruby 2.6.5, I get a different output from above for at least one of the examples:
```ruby
N = 0
module A
module B
def self.f; N; end
end
N = 1
end
N = 0
A::B.f # => 1
```
sawa (Tsuyoshi Sawada)
04:52 AM Revision 58527a79 (git): [ruby/io-console] bump up to 0.5.3
nobu (Nobuyoshi Nakada)
02:55 AM Revision ced4c5da (git): add NEWS about cache improvement [ci skip]
shyouhei (Shyouhei Urabe)
02:46 AM Revision efd4a11a (git): Support multibyte input
nobu (Nobuyoshi Nakada)

12/21/2019

09:29 PM Revision cf59e147 (git): fix a thread test.
* Use Queue for synchronization.
* Don't use `sleep 0.2` and use `th.join` because created thread
can raise an exception after 0.2 seconds.
ko1 (Koichi Sasada)
09:09 PM Feature #15973: Let Kernel#lambda always return a lambda
@matz Is it OK to warn for this in the next Ruby version?
I think it's going to highlight wrong usages (good) and I would expect there are very few usages of `lambda(&existing_proc)`.
The warnings were implemented in https://github...
Eregon (Benoit Daloze)
08:35 PM Revision fa1bf8ab (git): [ruby/reline] Support Ctrl+right as em_next_word, and Ctrl+left as ed_prev_word
https://github.com/ruby/reline/commit/e98ad3b486 mame (Yusuke Endoh)
08:20 PM Revision 644336ee (git): add a NEWS entry for [Feature #16163]
ko1 (Koichi Sasada)
06:35 PM Bug #16442 (Closed): Segmentation fault when calling a method with array splat and empty kwargs splat
Applied in changeset commit:git|75acbd5f0076970d48bc423c2b058adbdb5da9e8.
----------
compile.c: avoid newarraykwsplat for arguments
`foo(*rest, post, **empty_kw)` is compiled like
`foo(*rest + [post, **empty_kw])`, and `**empty_kw` is ...
mame (Yusuke Endoh)
06:09 PM Bug #16442: Segmentation fault when calling a method with array splat and empty kwargs splat
same as: `p(*nil, nil, **{})`
```
(gdb) bt
#0 0x00005555557d6de0 in CALLER_REMOVE_EMPTY_KW_SPLAT (cfp=0x7ffff6bc4fa0, calling=<optimized out>, calling=<optimized out>, ci=0x555555c4e6e0)
at /home/ko1/src/ruby/trunk/vm_insnhelp...
ko1 (Koichi Sasada)
04:38 PM Bug #16442 (Closed): Segmentation fault when calling a method with array splat and empty kwargs splat
`a=[1];b(*a, 2, **{})`
~~~
$ ruby -e "a=[1];b(*a, 2, **{})"
-e:1: [BUG] Segmentation fault at 0x0000000000000005
ruby 2.7.0preview3 (2019-11-23 master b563439274) [x86_64-darwin19]
~~~
~~~
$ ./miniruby -e "a=[1];b(*a, 2, **{}...
tompng (tomoya ishida)
06:35 PM Revision 75acbd5f (git): compile.c: avoid newarraykwsplat for arguments
`foo(*rest, post, **empty_kw)` is compiled like
`foo(*rest + [post, **empty_kw])`, and `**empty_kw` is removed by
"newarraykwsplat" instruction.
However, the method call still has a flag of KW_SPLAT, so "post" is
considered as a keyword ...
mame (Yusuke Endoh)
06:27 PM Misc #16443 (Closed): GC.compact is not documented
See https://docs.ruby-lang.org/en/master/GC.html#method-c-compact
Typically, I'd just submit a documentation PR, but I am not sure I can properly explain what it does and when it should be used.
zverok (Victor Shepelev)
05:51 PM Revision 3a29f05b (git): Move stats under a dict
naruse (Yui NARUSE)
05:42 PM Revision 61aff0cd (git): Should return "." for File.extname("file.") also on Windows
But not changes another cases, such as "file.rb."
[Bug #15267]
U.Nakamura
04:58 PM Revision 29ea228e (git): * 2019-12-22 [ci skip]
git[bot]
04:57 PM Revision 0835a971 (git): Remove TODO comment
aycabta (aycabta .)
04:57 PM Revision 616f1357 (git): [ruby/irb] Make nesting level up for `1.times do`
Follow up of the previous commit
https://github.com/ruby/irb/commit/ab207353d3
mame (Yusuke Endoh)
04:57 PM Revision a3cc2a2f (git): [ruby/irb] Fix auto-indent for `1.times do`
Fixes #47
https://github.com/ruby/irb/commit/6b8eca4635
mame (Yusuke Endoh)
04:57 PM Revision ec1de789 (git): [ruby/reline] Preserve the input buffer across cursor_pos
The old version of cursor_pos discards the input buffer, which made IRB
ignore the input immediately after IRB is invoked.
This change keeps the input before cursor_pos by using ungetc.
https://github.com/ruby/reline/commit/4a8cca331f
mame (Yusuke Endoh)
04:57 PM Revision 7fd6077d (git): [ruby/reline] Consider Reline::ANSI.input at prep
https://github.com/ruby/reline/commit/b111cde3c3 nobu (Nobuyoshi Nakada)
04:52 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
I just inadvertently made a dup of this issue (#16430) and would like to throw my hat in the ring as supporting this change.
Honestly, this literally the first time since I started ruby that I encountered something in the language th...
MikeVastola (Mike Vastola)
04:12 PM Feature #16441: Enumerable#take_while_after
This is of course only my personal opinion, but I believe that long
names can be somewhat problematic. Now I myself use really very
long method names, but for ruby as a "basic building block" (that
is the core parts), I think the shor...
shevegen (Robert A. Heiler)
02:01 PM Feature #16441: Enumerable#take_while_after
Flip-flop is the winner!!! nobu (Nobuyoshi Nakada)
01:22 PM Feature #16441 (Rejected): Enumerable#take_while_after
The method is just like `#take_while`, but also includes the item where condition became true.
Examples of usefulness:
```ruby
str = <<DOC
prologue
<<
1
2
3
>>
epilogue
DOC
```
Imagine we want to take everything starti...
zverok (Victor Shepelev)
03:25 PM Bug #16440: Date range inclusion behaviors are inconsistent
> Does a Date range represent a series of individual days between May 1st and May 31th, like `[2019-05-01 00:00:00, 2019-05-02 00:00:00..... 2019-05-31 00:00:00]` ? Or it represents a continuous time range that starts from May 1st's 00:0... zverok (Victor Shepelev)
03:05 PM Bug #16440: Date range inclusion behaviors are inconsistent
To: wishdev (John Higgins)
> (and in fact on my system - the to_time option returns false instead of true).
Sorry that I accidentally tested my code in a Rails console instead of pure irb. The result for that case should be `false`...
st0012 (Stan Lo)
03:51 AM Bug #16440: Date range inclusion behaviors are inconsistent
I have no strong opinion either way but I can understand the
assumption by st0012 to some extent. For example, I personally
always seem to think more about .include? than .cover?, largely
because I simply use .include? a lot more. I ...
shevegen (Robert A. Heiler)
02:09 PM Feature #16420: Warning[:experimental]=false
Changing the flag at runtime causes problems, mainly editors' syntax highlighting, `ruby -c` etc.
How about a new "magic comment" pragma?
```ruby
# -*- experimental-syntax: true -*-
```
or, more strictly
```ruby
# -*- experiment...
nobu (Nobuyoshi Nakada)
02:09 PM Bug #15620 (Closed): Block argument usage affects lambda semantic
Applied in changeset commit:git|85a337f986fe6da99c7f8358f790f17b122b3903.
----------
Kernel#lambda: return forwarded block as non-lambda proc
Before this commit, Kernel#lambda can't tell the difference between a
directly passed literal...
alanwu (Alan Wu)
02:08 PM Revision 85a337f9 (git): Kernel#lambda: return forwarded block as non-lambda proc
Before this commit, Kernel#lambda can't tell the difference between a
directly passed literal block and one passed with an ampersand.
A block passed with an ampersand is semantically speaking already a
non-lambda proc. When Kernel#lambd...
alanwu (Alan Wu)
02:08 PM Revision ddb6023d (git): Add spec for capturing Kernel#lambda with Kernel#method
alanwu (Alan Wu)
02:08 PM Revision e0b336c8 (git): Add specs for calling into Kernel#lambda with super
alanwu (Alan Wu)
01:45 PM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
mame (Yusuke Endoh) wrote:
> If you want to request a feature, please research the old tickets. I've found #6810.
Ok, thanks. I tried searching before submitting this, but I apparently didn't use the right terms.
MikeVastola (Mike Vastola)
03:52 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
If you want to request a feature, please research the old tickets. I've found #6810. mame (Yusuke Endoh)
02:27 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
Fixed small bug in initial description. MikeVastola (Mike Vastola)
02:25 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
sawa (Tsuyoshi Sawada) wrote:
> What is the purpose of writing the code in three different files? It only looks to me that it is making things more complicated.
I was trying to offer a minimal (non)-working example. The benefit arise...
MikeVastola (Mike Vastola)
02:23 AM Feature #16430: Resultion of constants in enclosing class/module affected by how nested classes/modules are declared
mame (Yusuke Endoh) wrote:
> It is by design. See "Scope" section of https://github.com/ruby/ruby/blob/master/doc/syntax/modules_and_classes.rdoc
Ok, I see that, but is this a good design? I would argue not and am therefore changing...
MikeVastola (Mike Vastola)
01:06 AM Revision ea405ee8 (git): test/ruby/test_pattern_matching.rb: suppress "unused variable" warning
mame (Yusuke Endoh)
 

Also available in: Atom