Project

General

Profile

Activity

From 10/14/2017 to 10/20/2017

10/20/2017

11:13 PM Feature #13983: Rational and Complex should be frozen
nobu (Nobuyoshi Nakada) wrote:
> Applied in changeset trunk|r60214.
Thank you nobu for the patch!
I'll write s...
Eregon (Benoit Daloze)
11:02 PM Feature #8948: Frozen regex
> Regexp class has no built-in destructive methods so freezing them does almost nothing; just prohibits method redefi... Eregon (Benoit Daloze)
01:40 AM Feature #8948: Frozen regex
We had a discussion around this issue at yesterday's developer meeting.
Seems everyone there agreed that in long t...
shyouhei (Shyouhei Urabe)
10:47 PM Feature #14022: String#surround
knu (Akinori MUSHA) wrote:
> I thought `yield_self` was about solving problems like this:
>
> `[1, 2, 3].join(", ...
Eregon (Benoit Daloze)
09:50 AM Feature #14022: String#surround
I thought `yield_self` was about solving problems like this:
`[1, 2, 3].join(", ").yield_self { |s| "<#{s}>" }`
...
knu (Akinori MUSHA)
12:56 AM Feature #14022: String#surround
An alternate (short but cryptic) way:
```
str = "one\ntwo"
str.gsub(/^.*/m, '<\0>')
```
- gsub! can do it de...
avit (Andrew Vit)
09:40 PM Bug #14036 (Closed): Signature of rb_uint2big and rb_int2big
`rb_uint2big` and `rb_int2big` are declared as such:
```c
VALUE rb_uint2big(VALUE);
VALUE rb_int2big(SIGNED_VALU...
Eregon (Benoit Daloze)
04:22 PM Revision a9f5b840 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:22 PM Revision b4180737 (git): * 2017-10-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:22 PM Revision 6d4b5578 (git): Store token first column number on RNode
* node.c (A_NODE_HEADER): Print column number.
* node.h (nd_column, nd_set_column): Define getter/setter
macros for...
yui-knk (Kaneko Yuichiro)
02:19 PM Feature #14035 (Closed): URI module always serializes to the minimal form insted of the traditional one
### Reproduce
execute URI("file:///etc/hosts").to_s
### I expect
- URI("file:///etc/hosts").to_s == "fi...
ioggstream (Roberto Polli)
10:13 AM Feature #12589: VM performance improvement proposal
> In any case, if we are going to do some optimizations by ourself (and I see such necessity in the future) not only ... k0kubun (Takashi Kokubun)
09:03 AM Revision 43e320ba (git): Merge rubygems master(ddbf3203f3857649abe95c73edefc7de7e6ecff4).
It fixed: https://github.com/rubygems/rubygems/issues/2041
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60219 b...
hsbt (Hiroshi SHIBATA)
08:41 AM Feature #855: HTTP/1.1 fixes and other enhancements to webrick
[email protected] wrote:
> Could you handle this very old ticket about webrick?

Sure; it looks like a lot are a...
normalperson (Eric Wong)
08:24 AM Feature #1482: Kernel.exec doesn't respect COMSPEC environment variable on Windows
At least on Windows 10, doesn't `CreateProcess()` honor `COMSPEC` variable now?
1.rb
```ruby
p $$; exec("./1.bat...
nobu (Nobuyoshi Nakada)
01:22 AM Feature #1482: Kernel.exec doesn't respect COMSPEC environment variable on Windows
Nobu, are you still willing to reimprement the patch for this issue? mame (Yusuke Endoh)
07:03 AM Bug #13914 (Closed): FileUtis.cp_r with remove_destination cannot overwrite a symlink of directory
Applied in changeset trunk|r60218.
----------
Overwrite destination symlink file if `remove_destination` is set.
...
hsbt (Hiroshi SHIBATA)
07:03 AM Revision 0242f7cc (git): Overwrite destination symlink file if `remove_destination` is set.
[Bug #13914][ruby-core:82846] Patch by @mzp
https://github.com/ruby/fileutils/pull/9
git-svn-id: svn+ssh://ci.ruby...
hsbt (Hiroshi SHIBATA)
06:43 AM Feature #14033: Add String#append
phluid61 (Matthew Kerwin) wrote:
> 1 [...] I would expect that a new word-based name for the dangerous operation w...
sos4nt (Stefan Schüßler)
12:22 AM Feature #14033: Add String#append
I am opposed to this alias as proposed.
1. `<<` is known to be "dangerous", but other "safe" concatenation operati...
phluid61 (Matthew Kerwin)
02:37 AM Feature #13653: Bundled zlib helper
To. shyouhei
Thanks for your explanation.
I updated my pull request. It only download and add zlib source files...
hsbt (Hiroshi SHIBATA)
02:16 AM Feature #13653: Bundled zlib helper
We took a look at this issue at yesterday's developer meeting.
It surprised me that currently, zlib and several ot...
shyouhei (Shyouhei Urabe)
02:17 AM Feature #13300 (Rejected): Strip chroot path from $LOADED_FEATURES when calling Dir.chroot
shyouhei (Shyouhei Urabe) wrote:
> We discussesed this issue at the developer meeting yesterday.
>
> It seems pra...
jeremyevans0 (Jeremy Evans)
01:12 AM Feature #13300: Strip chroot path from $LOADED_FEATURES when calling Dir.chroot
We discussesed this issue at the developer meeting yesterday.
It seems practically not possible to provide a solut...
shyouhei (Shyouhei Urabe)
02:03 AM Misc #13840 (Rejected): Collection methods - stability
(Rejecting for now but please don't hesitate to open a new one for the Gem::Resolver issue if necessary.)
As Marti...
shyouhei (Shyouhei Urabe)
01:58 AM Feature #13869: Filter non directories from Dir.glob
We looked at this issue at yesterday's developer meeting.
`"FNM_NONDIR"` doesn't sound well (the negative form is ...
shyouhei (Shyouhei Urabe)
01:29 AM Feature #1586: Including a module already present in ancestors should not be ignored
When is proper time? Ruby 3.0? :-) mame (Yusuke Endoh)
01:27 AM Feature #1873 (Rejected): MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
The discussion has been stalled. It seems the feature itself looks good (note that matz has not said his opinion, th... mame (Yusuke Endoh)
01:24 AM Feature #1644: recv on inherited socket wrapped in TCPSocket does not read data, on Windows
Usa-san, do you still have a plan to imprement this? mame (Yusuke Endoh)
01:17 AM Feature #13867: Copy offloading in IO.copy_stream
We took a look at this issue at yesterday's developer meeting and agreed with Eric here; it can be automatically appl... shyouhei (Shyouhei Urabe)
01:13 AM Feature #13610 (Assigned): IPAddr doesn't provide helpful methods to get the subnet or IP address
shyouhei (Shyouhei Urabe)
01:03 AM Bug #14034 (Closed): Time.parse does not handle timezone offsets with seconds
Applied in changeset trunk|r60216.
----------
Make Time.parse respect timezone offset seconds
DateTime.parse handle...
nobu (Nobuyoshi Nakada)
01:03 AM Revision 41877131 (git): * 2017-10-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:03 AM Revision 90048176 (git): Make Time.parse respect timezone offset seconds
DateTime.parse handles them correctly, and DateTime.parse.to_time
results in the correct time. Time.parse doesn't ha...
nobu (Nobuyoshi Nakada)

10/19/2017

09:39 PM Feature #14033: Add String#append
I +1 agree with Stefan for symmetry. :)
However had, I may be biased since I discussed in favour of the
Array-met...
shevegen (Robert A. Heiler)
08:10 PM Feature #14033 (Open): Add String#append
Ruby 2.5 introduces `Array#append` as an alias for `<<` / `push`.
Likewise, there should be `String#append` as an ...
sos4nt (Stefan Schüßler)
09:36 PM Bug #14034 (Closed): Time.parse does not handle timezone offsets with seconds
`DateTime.parse` handles them correctly, and `DateTime.parse.to_time` results in the correct time. `Time.parse` does... jeremyevans0 (Jeremy Evans)
03:38 PM Feature #12589: VM performance improvement proposal
k0kubun (Takashi Kokubun) wrote:
> > An alternative approach can be useful but it might be a waste of your time at...
vmakarov (Vladimir Makarov)
08:23 AM Feature #12589: VM performance improvement proposal
> Saving stack insns is what we discussed with Koichi at RubyKaigi and after that. I promised to investigate another ... k0kubun (Takashi Kokubun)
04:19 AM Feature #12589: VM performance improvement proposal
k0kubun (Takashi Kokubun) wrote:
> Hi Vladimir. I was happy to talk with you about JIT at RubyKaigi.
>
Hi. I a...
vmakarov (Vladimir Makarov)
02:25 PM Bug #1388 (Rejected): cygwin-1.7, gcc4-4.3, and ruby-1.9. make btest #236 test_io.rb Segmentation fault
Sorry for leaving this ticket untouched, but Ruby 1.9 has been EOL status since a long time ago. If there is anyone ... mame (Yusuke Endoh)
01:03 PM Feature #908 (Rejected): Should be an easy way of reading N characters from am I/O stream
I'm rejecting this issue since it has been stalled for five years. If anyone really needs it, it would be good to re... mame (Yusuke Endoh)
12:51 PM Feature #855: HTTP/1.1 fixes and other enhancements to webrick
Eric Wong,
Could you handle this very old ticket about webrick?
mame (Yusuke Endoh)
11:24 AM Bug #13829 (Closed): NUL char in $0
Applied in changeset trunk|r60215.
----------
ruby.c: reject NUL in $0
* ruby.c (ruby_setproctitle): raise if the a...
nobu (Nobuyoshi Nakada)
11:24 AM Revision f16f0441 (git): ruby.c: reject NUL in $0
* ruby.c (ruby_setproctitle): raise if the argument contains NUL
char. process title is a NUL-terminated string.
...
nobu (Nobuyoshi Nakada)
11:10 AM Feature #8948: Frozen regex
matz (Yukihiro Matsumoto) wrote:
> I agree with frozen regexp literals. If you want to freeze all regexp objects, yo...
Eregon (Benoit Daloze)
08:58 AM Feature #8948: Frozen regex
This change will break compatibility.
If the change has clear benefit, such incompatibility is acceptable.
But this...
naruse (Yui NARUSE)
08:26 AM Feature #8948: Frozen regex
I agree with frozen regexp literals. If you want to freeze all regexp objects, you need more info to persuade me.
...
matz (Yukihiro Matsumoto)
11:10 AM Feature #13985 (Closed): Avoid exception for #dup/#clone on Rational and Complex
nobu (Nobuyoshi Nakada)
10:58 AM Feature #13983 (Closed): Rational and Complex should be frozen
Applied in changeset trunk|r60214.
----------
freeze Complex and Rational
* complex.c (nucomp_s_new_internal, nucom...
nobu (Nobuyoshi Nakada)
08:16 AM Feature #13983: Rational and Complex should be frozen
Agreed.
Matz.
matz (Yukihiro Matsumoto)
10:58 AM Revision 42c98194 (git): freeze Complex and Rational
* complex.c (nucomp_s_new_internal, nucomp_loader): Complex
instances are always frozen now. [Feature #13983]
* r...
nobu (Nobuyoshi Nakada)
10:51 AM Bug #13794: Infinite loop of sched_yield
I'd just like to confirm that after several weeks, I have not seen a recurrence of this issue while running the origi... catphish (Charlie Smurthwaite)
10:13 AM Feature #12753: Useful operator to check bit-flag is true or false
I think plural makes most sense:
~~~ruby
a.allbits? b #→ a & b == b
a.anybits? b #→ a & b != 0
a.nobits? b #→ ...
phluid61 (Matthew Kerwin)
07:11 AM Feature #12753: Useful operator to check bit-flag is true or false
Speaking of plurality, what about:
`a.bit?(b)` → `a & b != 0`
`a.bits?(b)` → `a & b == b`
knu (Akinori MUSHA)
06:58 AM Feature #12753: Useful operator to check bit-flag is true or false
`has_*` is not acceptable. It's not compatible with other method names.
I vote for `allbit?`, `anybit?` and `nobit?`...
matz (Yukihiro Matsumoto)
06:49 AM Feature #12753: Useful operator to check bit-flag is true or false
How about Integer#has_allbits?(n), Integer#has_somebits?(n) and Integer#has_nobits?(n) ?
```ruby
class Integer
...
akr (Akira Tanaka)
09:05 AM Feature #614 (Rejected): instance_method(ancestor)
Even if we provide the proposed feature, we cannot implement `Module#conflict?`, because ancestor order is not common... matz (Yukihiro Matsumoto)
08:56 AM Feature #13869: Filter non directories from Dir.glob
Just an idea: a flag to say directories should end with a slash so you can collect directories with `"...*/"` and non... knu (Akinori MUSHA)
08:30 AM Feature #13873: Optimize Dir.glob with FNM_EXTGLOB
Agreed.
Matz
matz (Yukihiro Matsumoto)
07:54 AM Feature #13712: String#start_with? with regexp
Agreed. Need to update `Regexp.last_math`.
Matz.
matz (Yukihiro Matsumoto)
07:48 AM Feature #8499 (Closed): Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
As `Hash#slice` has been accepted in #13563, I decided to close this issue.
I intend to open the different issue for...
mrkn (Kenta Murata)
07:28 AM Feature #8499: Importing Hash#slice, Hash#slice!, Hash#except, and Hash#except! from ActiveSupport
One concern is that Array#slice! returns deleted elements whereas this Hash#slice! would return pairs left after slic... knu (Akinori MUSHA)
07:28 AM Feature #13777 (Rejected): Array#delete_all
The name `delete_all` is not acceptable. This method works as a modifying version of `partition`. The name does not i... matz (Yukihiro Matsumoto)
06:50 AM Feature #14025: #initialize with ivars
Where did I define that only one argument could be passed?
I don't want to initialize ivar explicitly in #initiali...
frankpimenta (Frank Pimenta)
05:28 AM Feature #14025: #initialize with ivars
I don't quite understand your second example.
class Person
initialize name: 'person', age: 18
Did yo...
shevegen (Robert A. Heiler)
06:49 AM Feature #13969: Dir#each_child
```diff
diff --git a/dir.c b/dir.c
index 44d309195c..242afa131d 100644
--- a/dir.c
+++ b/dir.c
@@ -2743,6 +2743,...
nobu (Nobuyoshi Nakada)
06:32 AM Feature #13653 (Assigned): Bundled zlib helper
hsbt (Hiroshi SHIBATA)
06:31 AM Feature #13713 (Feedback): socketの便利メソッドのdatagramのUNIXSocket用対応
こんな感じでどうですかね。
```
Addrinfo.unix(ENV["NOTIFY_SOCKET"], :DGRAM).connect
```
akr (Akira Tanaka)
06:19 AM Feature #12882: Add caller/file/line information to internal Kernel#warn calls
```diff
diff --git a/error.c b/error.c
index 9bd8c31386..499212cdd8 100644
--- a/error.c
+++ b/error.c
@@ -321,1...
nobu (Nobuyoshi Nakada)
05:52 AM Feature #12882 (Feedback): Add caller/file/line information to internal Kernel#warn calls
I prefer option 1. The issue is the name (and semantics) of the keyword argument.
`caller:` seems ambiguous. How abo...
matz (Yukihiro Matsumoto)
06:10 AM Feature #9323: IO#writev
I vote for making `IO#write` take multiple arguments, probably using `writev(2)` inside.
Matz
matz (Yukihiro Matsumoto)
05:32 AM Bug #14031: WeakRef example misleading and wrong
Semi-off topic - a variable named "omg" is for the win ... ;) shevegen (Robert A. Heiler)
02:43 AM Bug #14031 (Closed): WeakRef example misleading and wrong
I just noticed that the second part of the doc of `WeakRef` is misleading and later plainly wrong.
I'm talking abo...
marcandre (Marc-Andre Lafortune)
05:31 AM Feature #14022: String#surround
> After joining the elements of an array into a string using Array#join,
> I frequently need to put substrings befor...
shevegen (Robert A. Heiler)
05:10 AM Bug #14032 (Closed): squiggly heredoc with an interpolation at the beginning is unindented wrongly
Applied in changeset trunk|r60213.
----------
parse.y: indent at '#'
* parse.y (parser_here_document): update inden...
nobu (Nobuyoshi Nakada)
05:02 AM Bug #14032 (Closed): squiggly heredoc with an interpolation at the beginning is unindented wrongly
This result should be prefixed with spaces, not unindented.
```ruby
p <<~E
a
#{1}
E
```
nobu (Nobuyoshi Nakada)
05:10 AM Revision 8b501f6d (git): parse.y: indent at '#'
* parse.y (parser_here_document): update indent at '#', which is
not a space. [ruby-core:83368] [Bug #14032]
git-...
nobu (Nobuyoshi Nakada)
04:25 AM Bug #14027 (Closed): Ripper parses squiggly heredoc incorrectly
Applied in changeset trunk|r60212.
----------
lexer.rb: no dedent strings in middle
* ext/ripper/lib/ripper/lexer.r...
nobu (Nobuyoshi Nakada)
01:39 AM Bug #14027: Ripper parses squiggly heredoc incorrectly
I'm very sorry nobu, I copy and pasted the wrong script.
This is what I meant to express:
~~~
diff -u <(ruby -v ...
mjago (Martyn Jago)
04:25 AM Revision 0e7936f8 (git): lexer.rb: no dedent strings in middle
* ext/ripper/lib/ripper/lexer.rb (on_heredoc_dedent): dedent only
strings at the beginning, not strings in middle.
...
nobu (Nobuyoshi Nakada)
01:46 AM Feature #13581: Syntax sugar for method reference
matz (Yukihiro Matsumoto) wrote:
> I am for adding syntax sugar for method reference. But I don't like proposed synt...
americodls (Americo Duarte)
01:02 AM Bug #14013: [PATCH] Webrick 60172 fix
[email protected] wrote:
> Thanks. I tested 60211. My local build passed, Travis passed, and Appveyor passed.
...
normalperson (Eric Wong)
12:05 AM Bug #14013: [PATCH] Webrick 60172 fix
Eric,
Thanks. I tested 60211. My local build passed, Travis passed, and Appveyor passed.
Now maybe I can fina...
MSP-Greg (Greg L)

10/18/2017

11:41 PM Bug #14013: [PATCH] Webrick 60172 fix
```
Eric Wong <[email protected]> wrote:
> Oops, try r60210; I moved the return outside of the timeout
> bloc...
normalperson (Eric Wong)
11:31 PM Bug #14013: [PATCH] Webrick 60172 fix
```
[email protected] wrote:
> Bad news. Appveyor just failed with:

Oops, try r60210; I moved the return out...
normalperson (Eric Wong)
10:59 PM Bug #14013: [PATCH] Webrick 60172 fix
Eric,
Bad news. Appveyor just failed with:
```
1) Failure:
TestNetHTTPS#test_certificate_verify_failure [C...
MSP-Greg (Greg L)
09:51 PM Bug #14013: [PATCH] Webrick 60172 fix
Eric Wong <[email protected]> wrote:
> [email protected] wrote:
> > Issue #14013 has been updated by MSP-Gre...
normalperson (Eric Wong)
09:02 PM Bug #14013: [PATCH] Webrick 60172 fix
[email protected] wrote:
> Issue #14013 has been updated by MSP-Greg (Greg L).
>
> File webrick_ssl.patch adde...
normalperson (Eric Wong)
08:51 PM Bug #14013: [PATCH] Webrick 60172 fix
[email protected] wrote:
> Eric wrote:
> > Also, does test/openssl/test_pair.rb work for you?

Oops, I mean h...
normalperson (Eric Wong)
07:29 PM Bug #14013: [PATCH] Webrick 60172 fix
I posted [GitHub PR #1718](https://github.com/ruby/ruby/pull/1718), which passed both Travis & Appveyor. It also pas... MSP-Greg (Greg L)
03:51 AM Bug #14013: [PATCH] Webrick 60172 fix
Eric,
I'm about to 'go offline', but the following fails when replacing the case statement group
```ruby
ret =...
MSP-Greg (Greg L)
03:09 AM Bug #14013: [PATCH] Webrick 60172 fix
normalperson (Eric Wong) wrote:
> Also, does test/openssl/test_pair.rb work for you?
Yes.
> Does it still w...
MSP-Greg (Greg L)
11:37 PM Bug #14005 (Closed): [PATCH] webrick: do not hang acceptor on slow TLS connections
normalperson (Eric Wong)
11:37 PM Bug #14005 (Open): [PATCH] webrick: do not hang acceptor on slow TLS connections
needs r60211, too :x
normalperson (Eric Wong)
11:34 PM Revision cda27e1a (git): webrick: fix up r60172 and r60210
Thanks to MSP-Greg (Greg L) for helping with this.
* lib/webrick/server.rb (start_thread): properly fix non-local re...
Eric Wong
11:23 PM Revision 834c252e (git): webrick: fix up r60172 and r60208
Thanks to MSP-Greg (Greg L) for helping with this.
* lib/webrick/server.rb (start_thread): fix non-local return
in...
Eric Wong
10:13 PM Bug #14027 (Feedback): Ripper parses squiggly heredoc incorrectly
I can see only difference at the first line.
```
$ diff -u <(./ruby -v -rripper -rpp -e 'pp Ripper.lex("%{<<-E\n\...
nobu (Nobuyoshi Nakada)
03:15 PM Bug #14027 (Closed): Ripper parses squiggly heredoc incorrectly
Where you have two or more embedded expressions on the same line within a squiggly heredoc
seperated by whitespace, ...
mjago (Martyn Jago)
09:45 PM Revision 60702188 (git): * 2017-10-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:45 PM Revision 3b1db7d3 (git): webrick: fix up r60172 and revert r60189
Thanks to MSP-Greg (Greg L) for helping with this.
* lib/webrick/server.rb (start_thread): ignore ECONNRESET, ECONNA...
Eric Wong
09:16 PM Bug #14015: Enumerable & Hash yielding arity
Would it be possible to issue a warning for cases of lambdas with arity 1 used in 2.5, so we can go forward in the ne... marcandre (Marc-Andre Lafortune)
07:44 PM Feature #14025: #initialize with ivars
~~~ ruby
module ObjectInitialization
def self.included base
base.class_eval do
extend ClassM...
frankpimenta (Frank Pimenta)
02:47 PM Feature #14025 (Open): #initialize with ivars
For:
class Person
def initialize name = 'person'
@name = name
end
end
I thought that the ...
frankpimenta (Frank Pimenta)
07:22 PM Bug #14028 (Closed): RubyVM logic backported into Ruby 2.3 tests
For https://bugs.ruby-lang.org/issues/12517 a test was added to test/coverage/test_coverage.rb that uses RubyVM.
T...
headius (Charles Nutter)
07:04 PM Feature #14022: String#surround
+1, I often do "<" + long_chain + ">" because "<#{long_chain}>" tends to be harder to read, and wished there was such... Eregon (Benoit Daloze)
12:41 PM Feature #14022: String#surround
+1
i thought i have seen something like that before, but i don't remember where
ah now i remember, it was for JQu...
Hanmac (Hans Mackowiak)
09:10 AM Feature #14022: String#surround
+1 for that (and exactly for the method chains).
Always define `String#surround` in my internal projects.
zverok (Victor Shepelev)
06:20 AM Feature #14022: String#surround
@mame In addition to conciseness, I often need to do this kind of string formatting after having done a long method c... sawa (Tsuyoshi Sawada)
06:07 AM Feature #14022: String#surround
IMO `"<#{ foo }>"` is more concise than `foo.surround("<", ">")`. mame (Yusuke Endoh)
04:43 AM Feature #14022: String#surround
I would like both destructive and non-destructive versions of the method. sawa (Tsuyoshi Sawada)
04:38 AM Feature #14022 (Rejected): String#surround
After joining the elements of an array into a string using `Array#join`, I frequently need to put substrings before a... sawa (Tsuyoshi Sawada)
06:45 PM Feature #12589: VM performance improvement proposal
Hi Vladimir. I was happy to talk with you about JIT at RubyKaigi.
To help introducing RTL and MJIT to upstream Rub...
k0kubun (Takashi Kokubun)
03:13 PM Bug #14024 (Closed): Segment fault on OpenSSL::Cipher#auth_data=
Since CFB isn't an authenticated encryption mode, OpenSSL::Cipher#auth_data= must not be called. It is definitely a b... rhenium (Kazuki Yamaguchi)
02:03 PM Bug #14024 (Closed): Segment fault on OpenSSL::Cipher#auth_data=
The doc of *auth_data=* says that "If no associated data shall be used, this method must still be called with a value... darfux (Lee YX)
02:53 PM Bug #14026: RUBY ERROR ON DIVISION with FDIV
Screen shot is better for the eye. frankpimenta (Frank Pimenta)
02:49 PM Bug #14026 (Closed): RUBY ERROR ON DIVISION with FDIV
~$ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
~$ rvm use 2.4.2
Using /Users/frankpim...
frankpimenta (Frank Pimenta)
01:08 PM Revision 4a375f3e (git): parse.y: serial comparisons
* parse.y (rel_expr): warn sequence of comparisons, which would be
probably unintentional. [EXPERIMENTAL]
git-svn...
nobu (Nobuyoshi Nakada)
01:08 PM Revision c1c3d073 (git): parse.y: relop
* parse.y (relop): extract to simplify comparisons.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60206 b2dd03c8...
nobu (Nobuyoshi Nakada)
08:10 AM Bug #14023 (Rejected): SyntaxError on array argument and block
~~~
$ RBENV_VERSION=2.4.2 ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16]
$ RBENV_VERSION=2...
k0kubun (Takashi Kokubun)
06:24 AM Bug #13959 (Rejected): IO.write(filename, Marshal.dump(obj), :encoding => 'binary') != File.open(filename, 'wb') { |fil| Marshal.dump(obj, fil) }
`:encoding => 'binary'` does not set binmode, but just makes the result encoding ASCII-8bit.
Use `IO.binread` and `I...
nobu (Nobuyoshi Nakada)
04:35 AM Revision 05fee6c1 (git): * 2017-10-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:35 AM Revision 20685cdc (git): Get rid of shadowing local variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:12 AM Feature #13996: [PATCH] file.c: apply2files releases GVL
In the same vein as https://bugs.ruby-lang.org/issues/13996

There's 4 more patches to dir.c around opendir, readd...
normalperson (Eric Wong)
12:22 AM Feature #13996: [PATCH] file.c: apply2files releases GVL
I wrote:
> > https://bugs.ruby-lang.org/issues/13996
>
> Updated patch with benchmark, now:
>
> https://8...
normalperson (Eric Wong)

10/17/2017

07:32 PM Bug #13887: test/ruby/test_io.rb may get stuck with FIBER_USE_NATIVE=0 on Linux
[email protected] wrote:
> Assignee set to ko1 (Koichi Sasada)
> https://bugs.ruby-lang.org/issues/13887#change-6...
normalperson (Eric Wong)
04:32 PM Bug #14013: [PATCH] Webrick 60172 fix
[email protected] wrote:
> diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
> index 2d678273e5..57ffe5...
normalperson (Eric Wong)
03:49 PM Bug #14013: [PATCH] Webrick 60172 fix
Eric, thanks.
I was working some read_nonblock code at the same time...
> There's also no need to call .to_io w...
MSP-Greg (Greg L)
12:40 PM Misc #14019 (Closed): Layout fixes in rdoc of lib/tempfile.rb
Applied in changeset trunk|r60203.
----------
tempfile.rb: [DOC] all arguments [ci skip]
* lib/tempfile.rb (Tempfil...
nobu (Nobuyoshi Nakada)
12:07 PM Misc #14019: Layout fixes in rdoc of lib/tempfile.rb
Why change from `*args` to `**options`?
I thinks `all arguments` do not mean `**options` only but basename, tmpdir, ...
znz (Kazuhiro NISHIYAMA)
05:44 AM Misc #14019: Layout fixes in rdoc of lib/tempfile.rb
The change has been merged, this report can be closed herwinw (Herwin Quarantainenet)
12:40 PM Revision 593d9786 (git): tempfile.rb: [DOC] all arguments [ci skip]
* lib/tempfile.rb (Tempfile.create): mention the other arguments
too. [ruby-core:83321] [Misc #14019]
git-svn-id:...
nobu (Nobuyoshi Nakada)
12:30 PM Revision ecf61fa5 (git): node.c: all node types
* node.c (dump_node): moved rb_bug for unknown node outside to let
unhandled node types be warned.
git-svn-id: svn...
nobu (Nobuyoshi Nakada)
12:30 PM Revision 4e01c507 (git): node.c: adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:05 PM Revision ee34bbbc (git): compile.c: compile_for
* compile.c (compile_for): extract from iseq_compile_each.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60200 b...
nobu (Nobuyoshi Nakada)
12:05 PM Revision e0ef514a (git): compile.c: compile_iter
* compile.c (compile_iter): extract from iseq_compile_each.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60199 ...
nobu (Nobuyoshi Nakada)
11:59 AM Bug #14020 (Closed): Not really a bug, more a warning - in net/ftp.rb line 331, unused variable sock
Applied in changeset trunk|r60198.
----------
Fix warning: assigned but unused variable
[Bug #14020][ruby-core:83313]
Anonymous
11:58 AM Revision 73d128ff (git): Fix warning: assigned but unused variable
[Bug #14020][ruby-core:83313]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60198 b2dd03c8-39d4-4d8f-98ff-823fe6...
znz (Kazuhiro NISHIYAMA)
11:38 AM Revision c5fd4cd7 (git): Improve some annotation names of output of parsetree-with-comment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
11:13 AM Revision 0c8292cb (git): node.c: Add NODE_OP_CDECL to dump node list.
* node.c (dump_node): Add NODE_OP_CDECL to dump node list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60196 b...
yui-knk (Kaneko Yuichiro)
09:30 AM Bug #13872: Duplicate assignment no longer silences "assigned but unused variable" warning
There could be:
1. add assignments in user code
2. enable duplicate assignment as a special case
3. add another ...
nobu (Nobuyoshi Nakada)
12:16 AM Bug #13872: Duplicate assignment no longer silences "assigned but unused variable" warning
Yes, in my understanding that is exactly the case we use this idiom for, usually when the contents of ERB is user-giv... matsuda (Akira Matsuda)
07:41 AM Revision 2075bc51 (git): Fix the leak in `TestRDocGeneratorDarkfish#test_generated_method_with_html_tag_yield`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
07:41 AM Revision 16b6fe17 (git): Suppress leak of file descriptors
`Bundler.ui=` in `Gem::TestCase#setup` creates `Bundler::UI::RGProxy`
which inherites `::Gem::SilentUI` whose `initia...
mame (Yusuke Endoh)

10/16/2017

11:11 PM Revision 6b4cd8a9 (git): Layout fixes in rdoc of lib/tempfile.rb [ci skip]
RDoc doesn't understand an asterisk inside the plus markers. Moving them
out of the markers looks better.
[Fix GH-171...
nobu (Nobuyoshi Nakada)
08:50 PM Bug #14021 (Rejected): Block parsing with arguments
Duplicate of #13547, #13691, #13898, #13939, and #13976 jeremyevans0 (Jeremy Evans)
08:27 PM Bug #14021 (Rejected): Block parsing with arguments
It appears that between 2.4.1 and 2.4.2, something changed with method argument parsing:
~~~
$ cat test.rb
#!/us...
kddnewton (Kevin Newton)
08:21 PM Bug #14013: [PATCH] Webrick 60172 fix
Odd, so using IO#wait_*able methods doesn't work for you, but
IO.select does? Can you try the following patch?

...
normalperson (Eric Wong)
03:23 PM Bug #14013: [PATCH] Webrick 60172 fix
Eric,
Thank you for looking at this, along with r60189. It seems that the Appveyor mswin builds are still failing...
MSP-Greg (Greg L)
04:41 AM Bug #14013: [PATCH] Webrick 60172 fix
[email protected] wrote:
> Issue #14013 has been updated by MSP-Greg (Greg L).
>
> File webrick_60172_fix.patc...
normalperson (Eric Wong)
04:34 AM Bug #14013 (Closed): [PATCH] Webrick 60172 fix
Applied in changeset trunk|r60189.
----------
webrick: fix up r60172
By making the socket non-blocking in r60172, T...
Anonymous
07:42 PM Revision dc8865e8 (git): * 2017-10-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:42 PM Revision 00308ec0 (git): spec/ruby/optional/capi/io_spec.rb: speling fics
* spec/ruby/optional/capi/io_spec.rb: speling: s/writeable/writable/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru...
Eric Wong
04:57 PM Feature #13610: IPAddr doesn't provide helpful methods to get the subnet or IP address
I think #11210 is the better solution here, since that has additional possibilities to get the formatting of the subn... herwin (Herwin W)
03:34 PM Bug #14020 (Closed): Not really a bug, more a warning - in net/ftp.rb line 331, unused variable sock
Hello ruby folks,
Just a tiny warning after I compiled the latest svn from source:
/Programs/Ruby/16.10.2017/...
shevegen (Robert A. Heiler)
11:25 AM Misc #14019 (Closed): Layout fixes in rdoc of lib/tempfile.rb
https://github.com/ruby/ruby/pull/1716 herwinw (Herwin Quarantainenet)
06:44 AM Bug #14009: macOS High Sierra and “fork” compatibility
myst (Boaz Segev) wrote:
> It would probably work exactly like the patch, except it will be user controlled instead ...
nobu (Nobuyoshi Nakada)
01:01 AM Bug #14009: macOS High Sierra and “fork” compatibility
I'm happy this was merged to the Ruby trunk.
> Just an idea, environment variable DYLD_INSERT_LIBRARIES=/System/Li...
myst (Boaz Segev)
06:16 AM Bug #14018: Sidekiq rejects output of Marshal.dump
Cross-submitted to Sidekiq at https://github.com/mperham/sidekiq/issues/3638 zheka (Eugene Mirkin)
06:13 AM Bug #14018 (Third Party's Issue): Sidekiq rejects output of Marshal.dump
I encountered this bug when using ActiveJob in Rails. Here is what happens...
`parcel = Marshal.dump(1508129809)` ...
zheka (Eugene Mirkin)
05:00 AM Revision 90ab739a (git): configure.ac: fix SOEXT on Windows
* configure.ac (SOEXT): shoud be "dll" on Windows.
[ruby-core:83208] [Bug #14002]
git-svn-id: svn+ssh://ci.ruby-la...
nobu (Nobuyoshi Nakada)
04:33 AM Revision 525ebb86 (git): webrick: fix up r60172
By making the socket non-blocking in r60172, TLS/SSL negotiation
via the SSL_accept function must handle non-blocking...
Eric Wong
04:19 AM Revision 885c16c1 (git): test_complex.rb: NaN Complex
* test/ruby/test_complex.rb (test_finite_p): assertions for NaN
Complex. NaN is not an infinite nor a finite numbe...
nobu (Nobuyoshi Nakada)
04:15 AM Revision ae0eea21 (git): fix missing variables in ruby.pc
* configure.ac (LIBRUBY_SO): get rid of referrence to
LIBRUBY_SONAME which is not present in ruby.pc.
* template/r...
nobu (Nobuyoshi Nakada)
04:08 AM Bug #13872: Duplicate assignment no longer silences "assigned but unused variable" warning
[email protected] wrote:
> Please upgrade your code to actually "use" all the assigned
> local variables, in this case...
normalperson (Eric Wong)
02:23 AM Bug #13872: Duplicate assignment no longer silences "assigned but unused variable" warning
This is not a bug. The warning you see is a result of an improvement of "unused variable" detection at r59585.
Now i...
matsuda (Akira Matsuda)
02:43 AM Feature #14007: open mode 'x' to raise error if file exists
Sorry, I didn't know that feature #11258 existed. I might have searched bugs.ruby-lang.org for "open mode" but not lo... kernigh (George Koehler)

10/15/2017

11:21 PM Feature #10085 (Closed): Add non-ASCII case conversion to String#upcase/downcase/swapcase/capitalize
Close way overdue, should have happened somewhere around r55281. duerst (Martin Dürst)
08:02 PM Feature #6647: Exceptions raised in threads should be logged
FWIW, I enabled Thread.report_on_exception = true by default in ruby/spec.
I had to change a few specs, but I think ...
Eregon (Benoit Daloze)
05:50 PM Bug #13163: Uncaught exceptions may not be reported when Thread#report_on_exception=true and Thread#abort_on_exception=true
I believe we only need a 2.4 backport, Thread#report_on_exception is only defined from Ruby 2.4+. Eregon (Benoit Daloze)
05:34 PM Bug #14017: Hash.sort_by inconsistent between 2.2.6 and upper versions
nobu (Nobuyoshi Nakada) wrote:
> Ruby's sort method is not stable sort.
>
> The documentation of `Array#sort_b...
duerst (Martin Dürst)
05:11 PM Bug #14017: Hash.sort_by inconsistent between 2.2.6 and upper versions
got it, forgot to check the doc. Thx for clearing that up! chucke (Tiago Cardoso)
04:57 PM Bug #14017: Hash.sort_by inconsistent between 2.2.6 and upper versions
chucke (Tiago Cardoso) wrote:
> The bug occurs when sorting by a numeric value and two different keys have similar v...
nobu (Nobuyoshi Nakada)
04:54 PM Bug #14017 (Rejected): Hash.sort_by inconsistent between 2.2.6 and upper versions
Ruby 2.2 is in the security maintenance phase, see https://bugs.ruby-lang.org/projects/ruby/wiki/ReleaseEngineering
...
jeremyevans0 (Jeremy Evans)
04:25 PM Bug #14017 (Rejected): Hash.sort_by inconsistent between 2.2.6 and upper versions
The bug occurs when sorting by a numeric value and two different keys have similar values: It is very easily demonstr... chucke (Tiago Cardoso)
04:05 PM Revision 653263d0 (git): * 2017-10-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:05 PM Revision 1ebb148a (git): error.c: [DOC] fix typo [ci skip]
* error.c (RuntimeError): example code uses Kernel#raise instance
method, not Kernel.raise singleton method.
git-s...
nobu (Nobuyoshi Nakada)
01:31 PM Bug #14015: Enumerable & Hash yielding arity
Perhaps ruby 3.x?
To be honest, while I agree with Marc here, if only for consistency, I
think it is probably not...
shevegen (Robert A. Heiler)
04:40 AM Bug #14015: Enumerable & Hash yielding arity
Reading more, I see that in some cases there were differences between a lambda with arity 2 and a method with arity 2... marcandre (Marc-Andre Lafortune)
01:21 AM Bug #14015: Enumerable & Hash yielding arity
We know, but can't fix for backward compatibilities, now. nobu (Nobuyoshi Nakada)
11:24 AM Bug #14014 (Closed): NaN.finite?
nobu (Nobuyoshi Nakada)
09:26 AM Bug #14014: NaN.finite?
Should this be marked as closed rather than rejected and a test be added for NaN for the backport to be performed then? Eregon (Benoit Daloze)
09:50 AM Bug #14009: macOS High Sierra and “fork” compatibility
Just an idea, environment variable `DYLD_INSERT_LIBRARIES=/System/Library/Frameworks/Foundation.framework/Versions/Cu... nobu (Nobuyoshi Nakada)
04:46 AM Bug #14016: URI IPv6 address can't be used to open socket
> if someone be so kind as to edit/replace the original description,
> I'd be very thankful.
I think there may be...
shevegen (Robert A. Heiler)
03:10 AM Feature #13224: Add FrozenError as a subclass of RuntimeError
Out of topic, `Kernel.raise` in examples should be `Kernel#raise`, I think. nobu (Nobuyoshi Nakada)
02:51 AM Feature #13224: Add FrozenError as a subclass of RuntimeError
Matz accepted this feature about 6 months ago, but it didn't make it into 2.5.0-preview1. Attached is an updated pat... jeremyevans0 (Jeremy Evans)
02:31 AM Revision b6251910 (git): configure.ac: fix SONAME
* configure.ac (RUBY_SO_NAME): revert $(RUBY_API_VERSION:.=) to
$(MAJOR)$(MINOR), as a string in middle is not repl...
nobu (Nobuyoshi Nakada)
02:20 AM Revision b1ef4d80 (git): envutil.rb: precommand in invoke_ruby [ci skip]
* test/lib/envutil.rb (invoke_ruby): add precommand option to
invoke ruby via some other commands, e.g., sudo.
git...
nobu (Nobuyoshi Nakada)

10/14/2017

11:28 PM Bug #14016: URI IPv6 address can't be used to open socket
And more inconsistencies when trying to patch Net::HTTP's usage:
```ruby
# forcing here "::1" so that I can open ...
chucke (Tiago Cardoso)
11:15 PM Bug #14016: URI IPv6 address can't be used to open socket
Another notable inconsistency (when compared with the second example above):
```ruby
uri.host = "::1" #=> URI::I...
chucke (Tiago Cardoso)
11:08 PM Bug #14016: URI IPv6 address can't be used to open socket
I got the last one wrong:
```ruby
TCPSocket.new("[::1]", 9292) #=> getaddrinfo: nodename nor servname provided, ...
chucke (Tiago Cardoso)
11:07 PM Bug #14016 (Rejected): URI IPv6 address can't be used to open socket
The example occurred when trying to use IPv6 to establish communication between HTTP client and server.
I first cr...
chucke (Tiago Cardoso)
08:26 PM Bug #14015: Enumerable & Hash yielding arity
I'm attaching a script I used to test this, in case it can be helpful marcandre (Marc-Andre Lafortune)
08:19 PM Bug #14015 (Closed): Enumerable & Hash yielding arity
The subtle difference between `yield 1, 2` and `yield [1, 2]` has always confused me.
Today I wanted to pass a met...
marcandre (Marc-Andre Lafortune)
04:28 PM Bug #14014: NaN.finite?
Thanks, sorry I should have tested trunk. marcandre (Marc-Andre Lafortune)
03:28 PM Bug #14014: NaN.finite?
Not yet, it's r60040. nobu (Nobuyoshi Nakada)
11:53 AM Bug #14014: NaN.finite?
Has this been backported to the 2.4 branch? I think it should.
What commit fixed it?
Eregon (Benoit Daloze)
01:44 AM Bug #14014 (Rejected): NaN.finite?
NaN is not a (either infinite or finite) number, definitely.
Also it is not positive nor negative, so its signedness...
nobu (Nobuyoshi Nakada)
03:55 PM Bug #14009 (Closed): macOS High Sierra and “fork” compatibility
Applied in changeset trunk|r60182.
----------
configure.ac: link Foundation framework
* configure.ac (XLDFLAGS): li...
nobu (Nobuyoshi Nakada)
01:54 AM Bug #14009: macOS High Sierra and “fork” compatibility
Thank you for the confirmation.
As for "useless" library link, `-u` linker option could force to link it.
You can s...
nobu (Nobuyoshi Nakada)
03:55 PM Revision 8b182a7f (git): configure.ac: link Foundation framework
* configure.ac (XLDFLAGS): link against Foundation framework and
let __NSPlaceholderDictionary initialize, to get r...
nobu (Nobuyoshi Nakada)
03:38 PM Bug #14002: libruby soname is changing in Ruby 2.4.x while it should always be libruby.so.2.4.0
And created a gem to update `RbConfig`.
https://github.com/nobu/rbconfig-update
nobu (Nobuyoshi Nakada)
03:35 PM Bug #14002 (Closed): libruby soname is changing in Ruby 2.4.x while it should always be libruby.so.2.4.0
Applied in changeset trunk|r60180.
----------
configure.ac: LIBRUBY_SONAME
* configure.ac (LIBRUBY_SONAME): add new...
nobu (Nobuyoshi Nakada)
03:35 PM Revision 52fcf03d (git): * 2017-10-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:35 PM Revision c739150c (git): configure.ac: LIBRUBY_SONAME
* configure.ac (LIBRUBY_SONAME): add new variable for the name of
the library name with compatibility version.
[r...
nobu (Nobuyoshi Nakada)
03:34 AM Bug #14013: [PATCH] Webrick 60172 fix
Original patch file did not allow for cert file values of nil. Corrected in attached version. Patch was used on mos... MSP-Greg (Greg L)
02:17 AM Revision 25aec0b8 (git): distinguish pass and fail by highlight [ci skip]
* tool/colorize.rb: remove highlight attribute from "pass" to make
distinguishable from "fail" by other than red-gr...
nobu (Nobuyoshi Nakada)
01:59 AM Revision fa302747 (git): * 2017-10-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:59 AM Revision 7402c35c (git): configure.ac: no _objc_msgSend trick
* configure.ac (XLDFLAGS): _objc_msgSend is no longer needed to
link CoreFoundation, that framework is always used ...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom