Project

General

Profile

Activity

From 05/16/2017 to 05/22/2017

05/22/2017

11:41 PM Revision 40a99224 (git): * 2017-05-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:41 PM Revision 2ab82704 (git): variable.c (autoload_sleep_done): avoid needless list_node init
We do not need list_del_init in ensure callbacks, only list_del,
since it can only ever be called after list_del_init...
Eric Wong
09:09 PM Bug #13589: unmatched opening backtick / closing quote in NoMethodError: undefined method `name' for {}:Hash
Thought about it when trying to explain Struct vs OpenStruct on Stack Overflow :) https://stackoverflow.com/a/4412181... domaio (Dorian M)
09:06 PM Bug #13589 (Rejected): unmatched opening backtick / closing quote in NoMethodError: undefined method `name' for {}:Hash
From [`error.c`](https://github.com/ruby/ruby/blob/trunk/error.c#L1953-L1964):
~~~ c
/*
* Document-class: NoMe...
domaio (Dorian M)
06:35 PM Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash
I'm actually fine with whatever name you prefer. result_with_locals and render_with_locals are both fine to me. Thank... rosenfeld (Rodrigo Rosenfeld Rosas)
03:50 AM Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash
> Or maybe ERB.new(str, locals: {a: b}).result?
For this case, it would have the same problem as ERB.new(str).resu...
k0kubun (Takashi Kokubun)
04:15 PM Bug #13582 (Closed): IMAPTest#test_append_fail always errors on Windows
shugo (Shugo Maeda) wrote:
> r58840 で対策してみましたがどうでしょうか?
手元で何度か試行してみた感じでは、大丈夫っぽく見えます。
rubyciでも問題が出なくなっているようです。
とい...
usa (Usaku NAKAMURA)
06:14 AM Bug #13582: IMAPTest#test_append_fail always errors on Windows
usa (Usaku NAKAMURA) wrote:
> r58792で追加されたテストですが、Windowsでは毎回Errorになります。
> assertion自体は通過してるっぽいですが、テストメソッドから抜ける際に
>...
shugo (Shugo Maeda)
02:25 PM Revision 35695788 (git): source directory may not be writable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:11 PM Feature #13588: Add Encoding#min_char_size, #max_char_size, #minmax_char_size
Seems sensible to me. Guess someone from the ruby core team or matz should chime in and perhaps comment - or someone ... shevegen (Robert A. Heiler)
12:10 PM Feature #13588 (Feedback): Add Encoding#min_char_size, #max_char_size, #minmax_char_size
When implementing an IO-like object, I'd like to handle encoding correctly. To do so, I need to know the minimum and ... haines (Andrew Haines)
11:36 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
nobu (Nobuyoshi Nakada) wrote:
> Once #13576 is introduced, this issue becomes stale.
> It doesn't make sense to ch...
shyouhei (Shyouhei Urabe)
11:25 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
Once #13576 is introduced, this issue becomes stale.
It doesn't make sense to change `File#path`.
nobu (Nobuyoshi Nakada)
08:26 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
nobu (Nobuyoshi Nakada) wrote:
> ```sh
> $ ./x86_64-linux/bin/ruby -e 'f = open(File.expand_path("/tmp"), File::RDW...
shyouhei (Shyouhei Urabe)
08:17 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
```sh
$ ./x86_64-linux/bin/ruby -e 'f = open(File.expand_path("/tmp"), File::RDWR|File::TMPFILE); p open(f).read'
T...
nobu (Nobuyoshi Nakada)
07:49 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
shyouhei (Shyouhei Urabe) wrote:
> nobu (Nobuyoshi Nakada) wrote:
> > A correction; The method which `open` calls i...
nobu (Nobuyoshi Nakada)
05:01 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
nobu (Nobuyoshi Nakada) wrote:
> shyouhei (Shyouhei Urabe) wrote:
> > At the meeting we discussed the use case of `...
shyouhei (Shyouhei Urabe)
11:24 AM Bug #13524 (Third Party's Issue): miniruby: [BUG] Segmentation fault at 0x0055e487e00230 ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-li
Took me time for several reasons:
1. Had temporarily ran out of my docker hosts and had to prepare new one. This ...
shyouhei (Shyouhei Urabe)
11:23 AM Feature #13576: File#to_path shall be deleted
Agree, it has no meanings. nobu (Nobuyoshi Nakada)
07:36 AM Revision cbedbaf9 (git): lib/net/protocol.rb: account read_bytes before caller sees it
Users may modify the chunk yielded to them in Net::HTTPResponse#read_body.
This will allow users to reduce memory usa...
Eric Wong
07:13 AM Revision 5565fed8 (git): hash.c: [DOC] fix docs for Hash#transform_values!
Hash#transform_values! returns the receiver rather than a new Hash
object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
rhenium (Kazuki Yamaguchi)
06:13 AM Revision 27fb27ff (git): net/imap: separate @continuation_request_exception from @exception
Otherwise literal data will be sent even if NO response is returned
because @exception is set to nil in receive_respo...
shugo (Shugo Maeda)
06:04 AM Bug #12670: Segmentation fault on `Magick::Image#get_pixels` on ruby since ruby-2.2
It reproduced "incorrect checksum for freed object", with a fix.
```diff
- Data_Wrap_Struct(rb_cData, NULL, du...
nobu (Nobuyoshi Nakada)
05:05 AM Bug #12670: Segmentation fault on `Magick::Image#get_pixels` on ruby since ruby-2.2
nobu (Nobuyoshi Nakada) wrote:
> > ```c
> Data_Wrap_Struct(rb_cData, NULL, dummy_free, &i);
> ```
>
> Wrapp...
wanabe (_ wanabe)
04:36 AM Bug #12670: Segmentation fault on `Magick::Image#get_pixels` on ruby since ruby-2.2
> ```c
Data_Wrap_Struct(rb_cData, NULL, dummy_free, &i);
```
Wrapping the pointer to a local variable?
Obvi...
nobu (Nobuyoshi Nakada)
12:29 AM Bug #12670: Segmentation fault on `Magick::Image#get_pixels` on ruby since ruby-2.2
I reduced repro codes, segv.c and segv.rb.
They cause assertion failure with RGENGC_CHECK_MODE=1.
```
ruby 2.5.0...
wanabe (_ wanabe)
04:10 AM Revision c45a52af (git): downloader.rb: true symlink on cygwin
* tool/downloader.rb (Downloader.link_cache): on Cygwin, make true
symlink only, which is provided by the OS. as m...
nobu (Nobuyoshi Nakada)
03:56 AM Bug #12074 (Closed): [PERF] bm_app_erb.rb slower
Applied in changeset trunk|r58842.
----------
erb.rb: Skip creating regexp
if stags and etags are not changed from ...
k0kubun (Takashi Kokubun)
03:56 AM Revision 72fb1e16 (git): erb.rb: Skip creating regexp
if stags and etags are not changed from default.
:putobject insn (of regexp) will be used instead of :toregexp insn....
k0kubun (Takashi Kokubun)
03:18 AM Revision 7a14ffbf (git): fix r58833
* tool/downloader.rb (Downloader.download): just link to the cache
when downloaded to the cache but not the target ...
nobu (Nobuyoshi Nakada)

05/21/2017

11:52 PM Revision 8623ba86 (git): lib/net/protocol: clear short-lived read buffer
Using a parallel Net::HTTP downloader, this reduced memory usage
from around 120MB to 50MB on my 32-bit x86 system.
...
Eric Wong
08:05 PM Bug #13312: String#casecmp raises TypeError instead of returning nil
I did not include the type check in `str_casecmp`, which seems superfluous to me. I also adjusted the tests, docs, an... stomar (Marcus Stollsteimer)
07:28 PM Bug #13312 (Closed): String#casecmp raises TypeError instead of returning nil
Applied in changeset trunk|r58837.
----------
string.c: fix String#{casecmp,casecmp?} for non-string arguments
* st...
stomar (Marcus Stollsteimer)
07:31 PM Revision 7406d7cf (git): String#casecmp no longer raises TypeError
* See https://bugs.ruby-lang.org/issues/13312
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58839 b2dd03c8-39d4-...
stomar (Marcus Stollsteimer)
07:29 PM Revision 102ec7f4 (git): NEWS: String#{casecmp,casecmp?} [Bug #13312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
07:28 PM Revision 40bc846b (git): string.c: fix String#{casecmp,casecmp?} for non-string arguments
* string.c: make String#{casecmp,casecmp?} return nil for
non-string arguments instead of raising a TypeError.
* t...
stomar (Marcus Stollsteimer)
07:27 PM Revision 913afdf9 (git): test_string.rb,test_symbol.rb: add some tests
* test/ruby/test_string.rb: add more test cases for String#casecmp.
* test/ruby/test_symbol.rb: ditto for Symbol#{cas...
stomar (Marcus Stollsteimer)
07:25 PM Revision 47f2bd93 (git): Use should_receive expectation instead of singleton method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e stomar (Marcus Stollsteimer)
05:33 PM Feature #13551: Add a method to alias class methods
Martin showed this example:
> class Array
> class << self
> alias :my_new :new
> end
Ruby allows thi...
shevegen (Robert A. Heiler)
05:29 PM Feature #13551: Add a method to alias class methods
> Given that it's very easy (as shown by Matthew) to create such a method, do you think it's necessary that this
> b...
shevegen (Robert A. Heiler)
04:51 PM Feature #13587 (Closed): Improve performance of string interpolation
This patch will add pre-allocation in string interpolation.
By this, unnecessary capacity resizing is avoided.
Fo...
south37 (Nao Minami)
04:45 PM Revision 4a9a0eaa (git): * 2017-05-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:45 PM Revision 48070cef (git): downloader cache
* tool/downloader.rb (Downloader.download): manage download cache.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
nobu (Nobuyoshi Nakada)
02:29 PM Revision 2ee57d5f (git): remove verify option
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:30 AM Revision 70b99576 (git): downloader.rb: utilize dir argument
* tool/downloader.rb (Downloader::RubyGems.download): utilize
`dir` argument of Downloader.download.
git-svn-id: s...
nobu (Nobuyoshi Nakada)
07:17 AM Bug #13191 (Open): sample/pty/shl.rb がうまく動かない
znz (Kazuhiro NISHIYAMA)
07:13 AM Revision b4c20088 (git): Add missing word in transform_values methods description
Explicitly says that the methods return a new hash rather than just
stating it return a new something we don't know.
...
znz (Kazuhiro NISHIYAMA)
03:36 AM Bug #13357 (Closed): Improve Time#+ & Time#- performance
Applied in changeset trunk|r58829.
----------
Improve Time#+ & Time#- performance
* time.c (wadd): use internal add...
watson1978 (Shizuo Fujita)
03:36 AM Bug #13354 (Closed): Improve Time#<=> performance
Applied in changeset trunk|r58828.
----------
Improve Time#<=> performance
* time.c (wcmp): use internal cmp() func...
watson1978 (Shizuo Fujita)
03:36 AM Revision c208d15f (git): Improve Time#+ & Time#- performance
* time.c (wadd): use internal addv() function to calculate internal value in
Time object. On 64-bit machine, Time...
watson1978 (Shizuo Fujita)
03:36 AM Revision 92ea637c (git): Improve Time#<=> performance
* time.c (wcmp): use internal cmp() function for comparing internal Fixnum value
in Time objects. On 64-bit machi...
watson1978 (Shizuo Fujita)
01:01 AM Revision 3f8248f1 (git): Remove redundant square brackets
Use character class directly instead of
character class in character class.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
znz (Kazuhiro NISHIYAMA)

05/20/2017

11:32 PM Feature #13396: Net::HTTP has no write timeout
[email protected] wrote:
> Only supports Linux:

...And only with sockets where O_NONBLOCK is not set, because
t...
normalperson (Eric Wong)
10:01 PM Feature #13396: Net::HTTP has no write timeout
Only supports Linux:
```diff
@@ -10372,11 +10383,23 @@ static int
nogvl_wait_for_single_fd(int fd, short events...
naruse (Yui NARUSE)
06:48 PM Feature #13396 (Assigned): Net::HTTP has no write timeout
The concept Net::HTTP#write_timeout sounds fine.
> However adding a Timeout.timeout call around req.exec did work....
naruse (Yui NARUSE)
08:42 PM Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash
I would already suggest a new name when I read about the problems with overriding the current method, so I would agre... rosenfeld (Rodrigo Rosenfeld Rosas)
05:41 PM Feature #8631 (Feedback): Add a new method to ERB to allow assigning the local variables from a hash
k0kubun (Takashi Kokubun)
08:01 PM Feature #13583: Adding `Hash#transform_keys` method
I think the names are good, both #transform_keys and #transform_values.
Seem quite clear to me from the names.
...
shevegen (Robert A. Heiler)
08:56 AM Feature #13583: Adding `Hash#transform_keys` method
I don't think you missed anything, except I would just point out to also add `Hash#transform_keys!`. I don't know if ... graywolf (Gray Wolf)
01:49 AM Feature #13583: Adding `Hash#transform_keys` method
Thank you for issuing this. I see there is an obvious needs for this transformation (stringify_keys) so I'm :+1: to ... shyouhei (Shyouhei Urabe)
06:55 PM Bug #13566 (Assigned): A process freezes at the beginning of C level backtrace when a certain SEGV is occurred
This issue is not only for NULL but also the other address such as 0x00000000000001.
```
$ ruby -r fiddle -e 'Fid...
mrkn (Kenta Murata)
06:50 PM Feature #13577: Digest.file accidentally receives File object but uses file path
Hanmac (Hans Mackowiak) wrote:
> as Sorah did there: https://github.com/aws/aws-sdk-ruby/pull/1516
> i would sugges...
naruse (Yui NARUSE)
05:36 PM Revision 64c91470 (git): erb.rb: Allow trimming CR in all trim_modes
to unify a behavior with r58823 and r58825.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58826 b2dd03c8-39d4-4d...
k0kubun (Takashi Kokubun)
05:17 PM Bug #5339 (Closed): ERB generates extra newlines on Windows
Applied in changeset trunk|r58825.
----------
erb.rb: Allow explicit trimming carriage return
when trim_mode is "-"...
k0kubun (Takashi Kokubun)
05:17 PM Revision b82ed2ce (git): erb.rb: Allow explicit trimming carriage return
when trim_mode is "-", for Windows environments.
[ruby-core:39625] [Bug #5339]
git-svn-id: svn+ssh://ci.ruby-lang.o...
k0kubun (Takashi Kokubun)
05:03 PM Revision 37bc70e6 (git): doc/maintainers.rdoc: Add me to ERB maintainers
The current maintainer suggested this in ruby-dev:50113.
Please ping me if an issue happens in ERB.
git-svn-id: svn+...
k0kubun (Takashi Kokubun)
04:50 PM Bug #11464 (Closed): ERB trimming doesn't trim carriage returns
Applied in changeset trunk|r58823.
----------
erb.rb: Allow trimming carriage return
when trim_mode is "<>", for Wi...
k0kubun (Takashi Kokubun)
04:50 PM Revision 040f2756 (git): erb.rb: Allow trimming carriage return
when trim_mode is "<>", for Windows environments.
[Bug #11464]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58...
k0kubun (Takashi Kokubun)
04:36 PM Bug #13586 (Closed): Ruby hangs when accessing array which is modified in instance_eval after Coverage.start
The following code will hang ruby:
~~~
# main.rb
require "coverage"
Coverage.start
require_relative "./f...
mtsmfm (Fumiaki Matsushima)
04:20 PM Revision a6986f10 (git): erb.rb: Prevent potential unexpected rescue
of LoadError in some method calls, not from `require "strscan"`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
k0kubun (Takashi Kokubun)
03:58 PM Revision 9aa33d5d (git): * 2017-05-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:58 PM Revision a1b924f0 (git): Clean proxy
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:55 PM Revision ca34d707 (git): erb.rb: Drop unused scanner implementation
Original `SimpleScanner` was used only in tests.
Since `SimpleScanner` and `SimpleScanner2` work in the same way, I w...
k0kubun (Takashi Kokubun)
02:07 PM Bug #13312: String#casecmp raises TypeError instead of returning nil
> Can you handle this?
Ok.
stomar (Marcus Stollsteimer)
01:00 PM Revision f1e10bd2 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:00 PM Revision 33710d45 (git): Add coverage measurement mode by using gcov
This experimental feature is only for Ruby-core team, not for casual users.
Usage: `./configure --enable-gcov && mak...
mame (Yusuke Endoh)
12:51 PM Feature #13568: File#path for O_TMPFILE fds has no meaning
shyouhei (Shyouhei Urabe) wrote:
> At the meeting we discussed the use case of `File#path` and we thought there are ...
nobu (Nobuyoshi Nakada)
07:20 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
like i said, open with write mode is the problem.
because it didn't fail with the nonexistent path
an way for it ...
Hanmac (Hans Mackowiak)
02:49 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
At the meeting we discussed the use case of `File#path` and we thought there are 2 kinds:
- Pass it to `open()`
-...
shyouhei (Shyouhei Urabe)
12:23 PM Revision 41e800f6 (git): ripper.c should have `#line "ripper.c"`, not `#line "parse.c"`
The order of sed commands in Makefile of ripper was wrong: it tries to
replace `y.tab.c` with `ripper.c`, but before ...
mame (Yusuke Endoh)
11:40 AM Revision 52de8260 (git): compile.c: optimize branches
* compile.c (compile_branch_condition, iseq_compile_each0):
eliminate unreachable branches in NODE_IF.
git-svn-id:...
nobu (Nobuyoshi Nakada)
10:27 AM Revision 4b39eaf4 (git): compile.c: binary logop check
* compile.c (compile_branch_condition): turn recursion at binary
logical operator into loop by goto, and check the ...
nobu (Nobuyoshi Nakada)
10:21 AM Revision 82092f4b (git): prime.rb: remove alias after timeout test
* test/test_prime.rb: remove alias after timeout test.
* lib/prime.rb: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang...
stomar (Marcus Stollsteimer)
09:48 AM Feature #13575 (Closed): [PATCH] speed up IO#close with many threads
r58812
normalperson (Eric Wong)
09:47 AM Feature #9632 (Closed): [PATCH 0/2] speedup IO#close with linked-list from ccan
Applied in changeset trunk|r58812.
----------
speed up IO#close with many threads
Today, it increases IO#close perf...
Anonymous
09:47 AM Revision 508091d9 (git): speed up IO#close with many threads
Today, it increases IO#close performance with many threads:
Execution time (sec)
name trunk after
...
Eric Wong
09:38 AM Bug #13492: Integer#prime? and Prime.each might produce false positives
@marcandre
I actually was working on the essentially same fix for the test case and about to commit; only I did wa...
stomar (Marcus Stollsteimer)
12:39 AM Bug #13492 (Closed): Integer#prime? and Prime.each might produce false positives
Good catch.
I tweaked the timeout test by patching `Integer.sqrt`.
marcandre (Marc-Andre Lafortune)
09:23 AM Bug #13343 (Closed): Improve Hash#merge performance
Applied in changeset trunk|r58811.
----------
Improve Hash#merge performance
* hash.c (rb_hash_merge): use rb_hash_...
watson1978 (Shizuo Fujita)
09:23 AM Revision 9cd66d70 (git): Improve Hash#merge performance
* hash.c (rb_hash_merge): use rb_hash_dup() instead of rb_obj_dup() to duplicate
Hash object. rb_hash_dup() is fa...
watson1978 (Shizuo Fujita)
08:34 AM Bug #13191: sample/pty/shl.rb がうまく動かない
ruby 2.4.2p131 (2017-05-10 revision 58637) [x86_64-linux] で試してみたところ、 r57530 も backport しないと C-z がきかないようです。
exit した...
znz (Kazuhiro NISHIYAMA)
05:14 AM Bug #13578: Another iseq_set_sequence: adjust bug
Thank you. While your test code does NOT repro under 2.4.1p111, it does under trunk. I've verified that this and my o... zenspider (Ryan Davis)
03:37 AM Bug #13578 (Closed): Another iseq_set_sequence: adjust bug
nobu (Nobuyoshi Nakada)
05:03 AM Feature #13585 (Rejected): select! and reject! do not returns the same array in specific situations
This can be surprising, but it's in line with many other destructive methods. It can be very useful when writing a lo... duerst (Martin Dürst)
02:14 AM Feature #8661: Add option to print backtrace in reverse order (stack frames first and error last)
FYI it is intentional for this feature being automatically enabled right now, instead of some configuration like the ... shyouhei (Shyouhei Urabe)
02:11 AM Revision 35c54a11 (git): compile.c: fix catch-table labels optimization
* compile.c (remove_unreachable_chunk): do not eliminate chunks
followed by labels in catch-table entries.
git-svn...
nobu (Nobuyoshi Nakada)
12:36 AM Revision 68354c35 (git): lib/prime: Fix primality of some large integers [#13492].
* lib/prime.rb: Use accurate sqrt to insure all factors are tested.
Patch by Marcus Stollsteimer.
* test/test_prim...
Marc-Andre Lafortune
12:27 AM Feature #13581: Syntax sugar for method reference
Why the version with symbol (`Math->:sqrt`) needs to be supported?
americodls (Americo Duarte)

05/19/2017

11:39 PM Revision 825a1e93 (git): Merge gemspec from ruby/fileutils.
* Replaced homepage option to source code location as github.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5880...
hsbt (Hiroshi SHIBATA)
10:32 PM Feature #13585: select! and reject! do not returns the same array in specific situations
It's pretty clearly documented:
"If changes were made, it will return `self`, otherwise it returns `nil`."
phluid61 (Matthew Kerwin)
09:48 PM Feature #13585 (Rejected): select! and reject! do not returns the same array in specific situations
When all elements are returned on select!, the method returns nil.
~~~
(main) normal> [1,2,3].select! { |x| x == ...
sobrinho (Gabriel Sobrinho)
09:34 PM Revision c018d464 (git): fix off-by-one in r58806
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
09:33 PM Revision b9f8fc51 (git): test/ruby/test_io.rb: new test for IO.select exception set
Ensure this rarely-used feature of IO.select continues
to work properly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
Eric Wong
07:58 PM Feature #13368: Improve performance of Array#sum with float elements
watson1978 (Shizuo Fujita) wrote:
> naruse (Yui NARUSE) wrote:
> > Hmm, the result shows clang is not efficient as ...
naruse (Yui NARUSE)
07:53 PM Bug #13584 (Third Party's Issue): Crash in logging (os_log) on MBP
.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/httpclient-2.7.1/lib/httpclient/session.rb:597: [BUG] Segmentation fau... ainalem (Mikael Ainalem)
07:04 PM Bug #13542: MinGW trunk Builds - Summary of Issues
Built `ruby 2.5.0dev (2017-05-20 trunk 58803) [x64-mingw32]` and removed all encoding related settings, and also any ... MSP-Greg (Greg L)
06:53 PM Feature #13552 (Closed): [PATCH 0/2] reimplement ConditionVariable, Queue, SizedQueue using ccan/list
Applied in changeset trunk|r58805.
----------
thread_sync.c: rewrite the rest using using ccan/list
The performance...
Anonymous
08:11 AM Feature #13552: [PATCH 0/2] reimplement ConditionVariable, Queue, SizedQueue using ccan/list
[email protected] wrote:
> > https://80x24.org/spew/20170519034419.GA29820@whir/raw
>
> Thank you. Adding `const` he...
normalperson (Eric Wong)
06:39 AM Feature #13552: [PATCH 0/2] reimplement ConditionVariable, Queue, SizedQueue using ccan/list

> https://80x24.org/spew/20170519034419.GA29820@whir/raw
Thank you. Adding `const` helps us to recognize.
```...
ko1 (Koichi Sasada)
03:51 AM Feature #13552: [PATCH 0/2] reimplement ConditionVariable, Queue, SizedQueue using ccan/list
[email protected] wrote:
> Sorry for late response.

No problem.

> Only one comment (maybe you passes all of tests...
normalperson (Eric Wong)
02:24 AM Feature #13552 (Assigned): [PATCH 0/2] reimplement ConditionVariable, Queue, SizedQueue using ccan/list
Sorry for late response.
Only one comment (maybe you passes all of tests, right?)
New data type should be RUBY_...
ko1 (Koichi Sasada)
06:53 PM Revision ea1ce47f (git): thread_sync.c: rewrite the rest using using ccan/list
The performance improvement increases as the number of waiters
increases, due to avoiding the O(n) behavior of rb_ary...
Eric Wong
06:44 PM Bug #13390: MinGW build test-all SEGV, issue in test framework or error recovery?
As mentioned in [13542](https://bugs.ruby-lang.org/issues/13542), I have not had a failure with this for a while, eve... MSP-Greg (Greg L)
06:50 AM Bug #13390 (Assigned): MinGW build test-all SEGV, issue in test framework or error recovery?
naruse (Yui NARUSE)
06:34 PM Revision 44e48eca (git): thread_sync.c: rename mutex_waiter struct to sync_waiter
We will reuse this struct for ConditionVariable, Queue, and SizedQueue,
so it is no longer Mutex-specific.
git-svn-i...
Eric Wong
06:11 PM Feature #13583 (Closed): Adding `Hash#transform_keys` method
In 2.4, new useful method `Hash#transform_values` was added. I would like to propose also adding matching method `Has... graywolf (Gray Wolf)
04:19 PM Revision 79d99551 (git): Define classes for r58800
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:16 PM Bug #13336: Default Parameters don't work
This is intended. If a method accepts keyword arguments and if its last argument is a hash object, it is considered ... mame (Yusuke Endoh)
06:47 AM Bug #13336: Default Parameters don't work
mame-san: what do you think about it?
ko1 (Koichi Sasada)
04:09 PM Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash
Umm, I noticed that actually the length of "ERB.new(*).result(locals: {a: b})" is the same as "ERB.new("aaa").result_... k0kubun (Takashi Kokubun)
03:56 PM Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash
I found that my suggestion is a little hard to implement to avoid argument modification. It got a little ugly https:/... k0kubun (Takashi Kokubun)
04:06 PM Misc #12935 (Closed): Webrick: Update HTTP Status codes, share them
Applied in changeset trunk|r58801.
----------
Net::HTTP::STATUS_CODES is added as HTTP Status Code Repository [Misc ...
naruse (Yui NARUSE)
04:06 PM Revision 83af1c6a (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:06 PM Revision bd73d374 (git): Net::HTTP::STATUS_CODES is added as HTTP Status Code Repository [Misc #12935]
Note that 418 I'm a teapot doesn't exist because RFC 2324 and
RFC 7168 are not registered in IANA repository.
https:/...
naruse (Yui NARUSE)
04:06 PM Revision cca77ee9 (git): Add more HTTP status classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:16 PM Bug #13582 (Closed): IMAPTest#test_append_fail always errors on Windows
r58792で追加されたテストですが、Windowsでは毎回Errorになります。
assertion自体は通過してるっぽいですが、テストメソッドから抜ける際に
@receiver_thread の中でErrno::ECONNRE...
usa (Usaku NAKAMURA)
03:13 PM Bug #13351 (Closed): net/http: Net::HTTP.start sets wrong default arg value
Applied in changeset trunk|r58798.
----------
Net::HTTP#start now pass :ENV to p_addr by default [Bug #13351]
To av...
naruse (Yui NARUSE)
03:13 PM Revision 61bbe32c (git): * 2017-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:13 PM Revision 67723c1e (git): Net::HTTP#start now pass :ENV to p_addr by default [Bug #13351]
To avoid this, pass nil explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58798 b2dd03c8-39d4-4d8f-98ff-...
naruse (Yui NARUSE)
02:58 PM Revision 0183613b (git): compile.c: dump_disasm_list_with_cursor
* compile.c (dump_disasm_list_with_cursor): improve disassemble
list. show whole elemetns and mark the current ele...
nobu (Nobuyoshi Nakada)
02:43 PM Feature #13581: Syntax sugar for method reference
my current thinking is if that short form should do symbol support.
if `Math->sym` should be supported, than the n...
Hanmac (Hans Mackowiak)
02:16 PM Feature #13581: Syntax sugar for method reference
The **`->`** was just a suggestion... Could be another symbol or combination of symbols like **`Math->>sqrt`**, **`Ma... americodls (Americo Duarte)
01:37 PM Feature #13581: Syntax sugar for method reference
that might collide with `-> {}` a lambda syntax
so i think the chances are low that ruby gets something like that.
...
Hanmac (Hans Mackowiak)
12:44 PM Feature #13581 (Closed): Syntax sugar for method reference
Some another programming languages (even Java, in version 8) has a cool way to refer a method as a reference.
I wr...
americodls (Americo Duarte)
02:15 PM Bug #13545 (Closed): Ruby built by clang 4.0.0 parses Float literal wrongly
Applied in changeset trunk|r58796.
----------
Merge latest dtoa.c [Bug #13545]
Apply some part of http://www.netlib...
naruse (Yui NARUSE)
02:14 PM Revision 7be47caa (git): Merge latest dtoa.c [Bug #13545]
Apply some part of http://www.netlib.org/fp/dtoa.c with my eyes...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
naruse (Yui NARUSE)
02:02 PM Misc #13525 (Closed): Expand HTTPS to lists.ruby-lang.org
Thank you for your confirming.
I enforced https on all of lists.ruby-lang.org.
If you faced some issue, Please re...
hsbt (Hiroshi SHIBATA)
12:44 PM Revision a4d51619 (git): Of course, opened file is not able to unlink on Windows
* test/test_tempfile.rb (test_create_with_block): close the tempfile before
unlink. fixed a failure on Windows int...
U.Nakamura
11:21 AM Feature #13577: Digest.file accidentally receives File object but uses file path
as Sorah did there: https://github.com/aws/aws-sdk-ruby/pull/1516
i would suggest that Digest should try to read fil...
Hanmac (Hans Mackowiak)
09:03 AM Feature #13577 (Assigned): Digest.file accidentally receives File object but uses file path
Digest::SHA256.file()'s first argument is file path name but it accidentally accepts file object.
But for file objec...
naruse (Yui NARUSE)
11:15 AM Feature #13568: File#path for O_TMPFILE fds has no meaning
i think returing an unexisting path whould be way problematic if it isnt checked if it exist.
other functions might ...
Hanmac (Hans Mackowiak)
09:17 AM Feature #13568 (Assigned): File#path for O_TMPFILE fds has no meaning
We discussed about this today in [DevelopersMeeting20170519Japan](https://bugs.ruby-lang.org/projects/ruby/wiki/Deve... sorah (Sorah Fukumori)
10:49 AM Bug #13580: bug
on second run
~~~
~/projects/ngrx-todolist   with_jsonapi_suite  clear; rspec spec/api/comments/create_spec....
bjorn2 (Sergey Homa)
10:48 AM Bug #13580 (Closed): bug
https://pastebin.com/raw/NJ6QCggq
repository state when bug occurred https://github.com/BjornMelgaard/ngrx-todolis...
bjorn2 (Sergey Homa)
09:36 AM Revision a6df192d (git): tempfile.rb: do not call File.identical? on closed stream
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:35 AM Bug #13492: Integer#prime? and Prime.each might produce false positives
The patch seems good. akr (Akira Tanaka)
09:34 AM Bug #13578: Another iseq_set_sequence: adjust bug
Further reduced via IRC:
~~~ ruby
def process_defn
if false
case 42
when s {} then
when 42 then...
zenspider (Ryan Davis)
09:06 AM Bug #13578 (Closed): Another iseq_set_sequence: adjust bug
This seems to be related to #12613
~~~ ruby
#!/usr/bin/env ruby -w
def process_defn
if true then
# not...
zenspider (Ryan Davis)
09:29 AM Bug #13315: Single "%" at the end of `printf` format string appears in the result
When I wrote the original code, it was intentional, but without any specific reason.
It's OK for me to raise an erro...
matz (Yukihiro Matsumoto)
09:29 AM Feature #13562 (Closed): Use a sized enumerator with #yield_self
shyouhei (Shyouhei Urabe)
09:25 AM Revision 940f32eb (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:25 AM Revision 84c15963 (git): net/imap: Net::IMAP#append should not block when NO response is received
[ruby-dev:50129] [Bug#13579]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58792 b2dd03c8-39d4-4d8f-98ff-823fe69...
shugo (Shugo Maeda)
09:22 AM Bug #13579 (Closed): Net::IMAP#append blocks when a NO response is received
Net::IMAP#append blocks when a NO response is received.
For example, if the destination mailbox doesn't exist, Net::...
shugo (Shugo Maeda)
09:20 AM Revision 3c5344bf (git): tempfile.rb: remove in Tempfile.create
* lib/tempfile.rb (Tempfile.create): should not fail even if the
temporary file has been removed in the block, just...
nobu (Nobuyoshi Nakada)
09:17 AM Feature #13056: base option to Dir.glob
Looks good to me.
Matz.
matz (Yukihiro Matsumoto)
09:08 AM Feature #11302: Dir.entries and Dir.foreach without [".", ".."]
Sounds good.
Matz.
matz (Yukihiro Matsumoto)
09:06 AM Feature #11302: Dir.entries and Dir.foreach without [".", ".."]
+1 for Dir.children shyouhei (Shyouhei Urabe)
09:01 AM Feature #11302: Dir.entries and Dir.foreach without [".", ".."]
There is `Pathname#children` and `Pathname#each_child`.
How about `Dir.children` and `Dir.each_child` ?
akr (Akira Tanaka)
09:01 AM Feature #13333: block to yield
I think it would make generator happy. nobu (Nobuyoshi Nakada)
09:00 AM Feature #13309 (Rejected): Locale paramter for Integer(), Float(), Rational()
It should be done by gem.
This will depends Unicode CLDR, and it's beyond Ruby itself's scope.
naruse (Yui NARUSE)
08:57 AM Feature #13576 (Open): File#to_path shall be deleted
[Feature #13568] sheds light on situations where a File might not have its corresponding path. I understand that thi... shyouhei (Shyouhei Urabe)
08:53 AM Feature #13260 (Rejected): Kernel#Boolean
I reject the proposal.
It may be useful for some application, I admit, but it is not the language matter.
Matz.
matz (Yukihiro Matsumoto)
08:19 AM Revision 94ddec6f (git): add specs for Unicode-wide case conversions introduced in Ruby 2.4
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
08:14 AM Feature #13518 (Feedback): Indented multiline comments
How about that matching indentation of `=begin` and `=end`?
```ruby
=begin
in a comment
=end
sti...
nobu (Nobuyoshi Nakada)
08:08 AM Bug #13548 (Feedback): miniruby SEGV while building with non-default CFLAGS (caused by __builtin_setjmp)
vp (Vladimir Pavlov) wrote:
> Particularly, you assign the result of setjmp() call to a variable.
It is not assig...
nobu (Nobuyoshi Nakada)
08:08 AM Feature #13575 (Closed): [PATCH] speed up IO#close with many threads
Today, it increases IO#close performance with many threads:
Execution time (sec)
name trunk afte...
normalperson (Eric Wong)
08:05 AM Revision 0cbe2cfd (git): improve examples, fix one improbably should_not value
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
07:54 AM Revision 37da9485 (git): specify unsigned (fix r58784).
* method.h (rb_method_definition_t#type): specify unsigned explicitly.
Some compilers (includes VC) returns negative...
ko1 (Koichi Sasada)
07:42 AM Bug #13429: Net::SMTP has no read timeout when connexion over TLS
keysen (Jérémy Carlier) wrote:
> When connecting using TLS to an unresponsive SMTP server, Net::SMTP can hang until ...
shugo (Shugo Maeda)
07:34 AM Bug #13249: Access modifiers don't have an effect inside class methods in Ruby >= 2.3
I will insert warning.
I will not change the current behavior.
ko1 (Koichi Sasada)
07:34 AM Revision 6c9027e0 (git): fix syntax error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:31 AM Feature #13483: TracePoint#enable with block for thread-local trace
Matz approved it. ko1 (Koichi Sasada)
07:26 AM Bug #13413 (Assigned): --with-static-linked-ext doesn't install extension files on `make install`
ko1 (Koichi Sasada)
07:25 AM Bug #13101 (Feedback): Date#rfc2822 and Time#rfc2822 don't return the same format
I think there is no problem with time.rb.
I don't want to change the day format in time.rb
because the current be...
akr (Akira Tanaka)
07:24 AM Bug #13312 (Assigned): String#casecmp raises TypeError instead of returning nil
@stomar
It should return nil same as other comparison methods. Can you handle this?
hsbt (Hiroshi SHIBATA)
07:12 AM Feature #8661 (Closed): Add option to print backtrace in reverse order (stack frames first and error last)
Applied in changeset ruby-trunk:trunk|r58786.
----------
eval_error.c: enrich backtrace
* eval_error.c (print_backt...
nobu (Nobuyoshi Nakada)
06:15 AM Feature #8661 (Assigned): Add option to print backtrace in reverse order (stack frames first and error last)
naruse (Yui NARUSE)
06:14 AM Feature #8661 (Closed): Add option to print backtrace in reverse order (stack frames first and error last)
Applied in changeset ruby-trunk:trunk|r58785.
----------
Add NEWS about [Feature #8661]
naruse (Yui NARUSE)
06:09 AM Feature #8661: Add option to print backtrace in reverse order (stack frames first and error last)
We expect some people may object this.
Therefore we're gathering feedback now (so thank you for your feedback).
T...
naruse (Yui NARUSE)
07:12 AM Revision 87023a1d (git): eval_error.c: enrich backtrace
* eval_error.c (print_backtrace): add frame number when printing
in reverse order. [Feature #8661]
git-svn-id: sv...
nobu (Nobuyoshi Nakada)
07:12 AM Bug #13373 (Feedback): FileUtils methods for copy, move and remove directories is not providing a decent error trace for letting know if it was success or fail
Could you tell us more details? Your sample code and acquired errors (or output).
ko1 (Koichi Sasada)
06:54 AM Bug #13324 (Closed): IRB Segmentation Fault from eval infinite loop
Fundamentally, we can't control machine stack overflow.
We will improve the situation (but can't solve completely).
ko1 (Koichi Sasada)
06:52 AM Bug #13337: Eval and Later Defined Local Variables
This is specification.
(1) parse `example` method and define `foo`.
(2) In `eval` method, compile given string (`...
ko1 (Koichi Sasada)
06:42 AM Bug #13330 (Assigned): Array.include? is slow for symbols
Thank you. I'll commit it. ko1 (Koichi Sasada)
06:26 AM Bug #13320 (Feedback): rescue blocks get an entry in backtrace locations
```
def foo
puts caller(0) # (1)
end
def bar
p 0
begin # (3)
p 1
raise
p 2
rescue
...
ko1 (Koichi Sasada)
06:14 AM Revision 5b58d8e6 (git): Add NEWS about [Feature #8661]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:07 AM Bug #13196: Improve keyword argument errors when non-keyword arguments given
Agreed with better message description.
Matz.
matz (Yukihiro Matsumoto)
06:00 AM Feature #13494 (Closed): [PATCH] pack rb_method_definition_t struct
Applied in changeset trunk|r58784.
----------
method.h: pack rb_method_definition_t struct
We only have 12 method t...
Anonymous
02:33 AM Feature #13494: [PATCH] pack rb_method_definition_t struct
Sorry for late response.
No problem.
Thanks,
Koichi
ko1 (Koichi Sasada)
06:00 AM Revision f82a9304 (git): method.h: pack rb_method_definition_t struct
We only have 12 method types, so 4 bits is enough for
rb_method_type_t.
Size reductions:
- x86-64 48 => 40 byte...
Eric Wong
03:12 AM Feature #12463 (Rejected): ruby lacks plus-plus
I reject this ticket with the reason #5. ko1 (Koichi Sasada)
03:08 AM Bug #12670: Segmentation fault on `Magick::Image#get_pixels` on ruby since ruby-2.2
Sorry for late response.
Unfortunately I have no enough disk to run docker. Try later when I get new machine.
ko1 (Koichi Sasada)
03:06 AM Feature #13133 (Rejected): TracePoint: Add event type for constant access
ko1 (Koichi Sasada)
03:05 AM Bug #13188 (Closed): Reinitialize Ruby VM.
I close this ticket because we need long-time effort.
> Also, can we introducing it in 2.5?
> (keeping compatibil...
ko1 (Koichi Sasada)
02:47 AM Feature #13265 (Rejected): TracePoint for basic operation redefinition
Sorry for late response.
Basically, TracePoint should be implementation independent.
(so that `:c_call, :c_return...
ko1 (Koichi Sasada)
02:42 AM Bug #13438: Fix heap overflow due to configure.in not being updated for HEAP_* -> HEAP_PAGE_* variable renaming
Sorry for late response.
> we may want to drop OpenBSD <5.2 support
On https://bugs.ruby-lang.org/projects/ruby...
ko1 (Koichi Sasada)
01:28 AM Bug #13573 (Closed): Compilation on Mac OS X 10.5.8 fails because of missing _fgetattrlist
Backport r57248. nobu (Nobuyoshi Nakada)
12:40 AM Bug #13573: Compilation on Mac OS X 10.5.8 fails because of missing _fgetattrlist
I think Ruby 2.4.x on Mac 10.5.x is not a supported combination. The proposed patch _seems_ fine though. I no longe... shyouhei (Shyouhei Urabe)
12:41 AM Feature #9970: Add `Hash#map_keys` and `Hash#map_values`
graywolf (Gray Wolf) wrote:
> You said
>
> > you need to start discussing about transform_keys if you want that
...
shyouhei (Shyouhei Urabe)
12:25 AM Feature #13574: Method redefinition warning
As there's no other way to silence the redefinition warning (apart from removing the method first, which isn't atomic... matthewd (Matthew Draper)
12:07 AM Feature #13574 (Open): Method redefinition warning
Hi,
If I redefine a method like this, I get a warning:
~~~ruby
class Foo
def bar
end
end
class Foo
...
tenderlovemaking (Aaron Patterson)

05/18/2017

08:56 PM Feature #9970: Add `Hash#map_keys` and `Hash#map_values`
I think emulating the behaviour of
```ruby
[2] pry(main)> Hash[{ a: 1, b: 2 }.map { |key, value| [:s, value] }]
...
graywolf (Gray Wolf)
02:08 AM Feature #9970: Add `Hash#map_keys` and `Hash#map_values`
This issue has no move so far. I think you need to start discussing about transform_keys if you want that. It has o... shyouhei (Shyouhei Urabe)
07:25 PM Bug #13573 (Closed): Compilation on Mac OS X 10.5.8 fails because of missing _fgetattrlist
When compiling Ruby 2.3.x and 2.4.x on Mac OS X 10.5.8, compilation fails with:
~~~
linking miniruby
Undefined s...
takashiyoshi (Takashi Yoshi)
05:21 PM Feature #13552: [PATCH 0/2] reimplement ConditionVariable, Queue, SizedQueue using ccan/list
[email protected] wrote:
> thread_sync.c: rename mutex_waiter struct to sync_waiter
> thread_sync....
normalperson (Eric Wong)
04:08 PM Feature #11575 (Rejected): Blocks in ERB don't work as intended?
> Whitespace isn't the issue here
That's wrong. Definitely whitespace matters. If you change to use a following t...
k0kubun (Takashi Kokubun)
03:13 PM Revision c26a9a73 (git): Fix strange indentation
which I introduced at r58773.
Hard tabs and spaces are mixed...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58...
k0kubun (Takashi Kokubun)
03:06 PM Revision 0ea0f07f (git): * 2017-05-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 7cb0b315 (git): common.mk: path in parse.c
* common.mk (parse.c): replace source file name in #line pragmas
with the path in the source directory, so that bin...
nobu (Nobuyoshi Nakada)
02:04 PM Feature #8631: Add a new method to ERB to allow assigning the local variables from a hash
There's a problem that a receiver is unclear and not configurable if argument is only a Hash object. To address the p... k0kubun (Takashi Kokubun)
01:55 PM Bug #13040: syslog/logger uses "require 'logger'" which is interpreted as circular dependency
Am I the only person having this problem? This is in different code sources we are maintaining. Here is the latest. I... lemsx1 (Luis Mondesi)
12:31 PM Feature #13559: Change implementation of Feature #6721
Yet another proposal: https://twitter.com/yancya/status/865070681213386756
```ruby
just do it.! end
```
nobu (Nobuyoshi Nakada)
11:29 AM Revision 92690b62 (git): potential memory leak
* dir.c (rb_dir_getwd): get rid of potential memory leak.
* util.c (ruby_getcwd): ditto.
git-svn-id: svn+ssh://ci.r...
nobu (Nobuyoshi Nakada)
06:55 AM Bug #13572 (Closed): Please backport r53400 to 2.3
marked usa (Usaku NAKAMURA)
05:29 AM Revision 97e82413 (git): Fix a wrong repository name of simplecov.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:42 AM Revision 83b7e0bd (git): * 2017-05-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:42 AM Revision 37abc2fb (git): Improve CSV parsing performance.
Patch by @joshpencheon (Josh Pencheon)
[fix GH-1607]
#### benchmark-ips results
```
trunk:
Warming up ----...
hsbt (Hiroshi SHIBATA)

05/17/2017

10:37 PM Feature #9970: Add `Hash#map_keys` and `Hash#map_values`
What's the status on this? In #12512, only Hash#transform_values was added, should I bother making patch adding Hash#... graywolf (Gray Wolf)
09:46 PM Bug #13572 (Closed): Please backport r53400 to 2.3
r53400 fixes a bug in which `includedir`, instead of `oldincludedir`, is inappropriately prefixed with `SDKROOT`. Thi... mistydemeo (Misty De Meo)
09:10 PM Bug #13571 (Closed): Script arguments, encoding, windows / MinGW
The following is windows/MinGW specific.
I have been patching around a failure in [TestRubyOptions#test_command_li...
MSP-Greg (Greg L)
02:43 PM Revision 8ffc4094 (git): modify r58771.
* spec/rubyspec/command_line/dash_upper_s_spec.rb: enable tests on vboxsf
(VirtualBox shared directory) and change ...
ko1 (Koichi Sasada)
02:14 PM Feature #12996: Optimize Range#===
I updated the patch (range_eqq2.patch).
It optimize only special cases.
---
# Range with Fixnum
~~~
i = ...
ksss (Yuki Kurihara)
02:11 PM Revision d06a7cfe (git): spec/rubyspec: Add `ruby_version_is` guard
for future backport to ruby/spec repository.
See r58772 r58773 r58774.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
k0kubun (Takashi Kokubun)
01:21 PM Revision 29a26009 (git): spec/rubyspec: Fix rubyspec for tilde unescape
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e k0kubun (Takashi Kokubun)
12:34 PM Revision e1b43275 (git): cgi/util.rb: Don't escape tilde in #escape
to make it compatible with ERB::Util.url_encode.
ext/cgi/escape/escape.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang...
k0kubun (Takashi Kokubun)
11:58 AM Bug #6696 (Closed): [PATCH] ERB::Util.url_encode should not escape unreserved characters
Applied in changeset trunk|r58772.
----------
erb.rb: Don't encode tilde in #url_encode
Based on patch by madeofcod...
k0kubun (Takashi Kokubun)
05:08 AM Bug #6696: [PATCH] ERB::Util.url_encode should not escape unreserved characters
It's now close to 19 years since RFC 2396, so please fix this issue, thanks! duerst (Martin Dürst)
11:58 AM Revision 53127c24 (git): erb.rb: Don't encode tilde in #url_encode
Based on patch by madeofcode (Mark Dodwell).
[ruby-core:46168] [Bug #6696] [Fix GH-54]
`~` is a unreserved character...
k0kubun (Takashi Kokubun)
10:45 AM Feature #13396: Net::HTTP has no write timeout
> I would also like to add native timeout support to IO.copy_stream
That would be the best indeed.
byroot (Jean Boussier)
09:31 AM Revision 95d3671e (git): skip some tests on vboxsf.
* spec/rubyspec/command_line/dash_upper_s_spec.rb:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58771 b2dd03c8...
ko1 (Koichi Sasada)
07:56 AM Bug #12373 (Closed): Optimize CSV#shift
Applied in changeset trunk|r58770.
----------
Optimize CSV#shift.
[Bug #12373][ruby-core:75462]
Patch by Yuki K...
hsbt (Hiroshi SHIBATA)
07:32 AM Bug #12373: Optimize CSV#shift
@hsbt
Good, Thank you for confirming and managing.
ksss (Yuki Kurihara)
04:18 AM Bug #12373: Optimize CSV#shift
Ah,
>Should we use @double_quote_char instead of @quote_char ?
`@quote_char` is wrong. I intended to write `@q...
hsbt (Hiroshi SHIBATA)
04:05 AM Bug #12373: Optimize CSV#shift
@hsbt
Thank you for responding.
csv-shift-hsbt.patch looks good to me.
> Should we use @double_quote_char inst...
ksss (Yuki Kurihara)
07:56 AM Revision 15cb9817 (git): Optimize CSV#shift.
[Bug #12373][ruby-core:75462]
Patch by Yuki Kurihara.
Benchmark:
```
Warming up ----------------------------...
hsbt (Hiroshi SHIBATA)
07:13 AM Bug #13566 (Closed): A process freezes at the beginning of C level backtrace when a certain SEGV is occurred
Applied in changeset trunk|r58769.
----------
Treat NULL reference case [Bug #13566]
naruse (Yui NARUSE)
03:16 AM Bug #13566: A process freezes at the beginning of C level backtrace when a certain SEGV is occurred
It can be reproducible on Ruby 2.2.7, too.
```
$ RBENV_VERSION=2.2.7 ruby -rfiddle -e 'Fiddle::Function.new(Fiddl...
mrkn (Kenta Murata)
02:42 AM Bug #13566: A process freezes at the beginning of C level backtrace when a certain SEGV is occurred
I confirmed that it is reproducible on Ruby 2.3.3.
```
$ RBENV_VERSION=2.3.3 ruby -r fiddle -e 'Fiddle::Function....
mrkn (Kenta Murata)
02:32 AM Bug #13566: A process freezes at the beginning of C level backtrace when a certain SEGV is occurred
A small code to reproduce this issue is here:
```ruby
require 'fiddle'
Fiddle::Function.new(Fiddle::NULL, [], Fi...
mrkn (Kenta Murata)
12:27 AM Bug #13566: A process freezes at the beginning of C level backtrace when a certain SEGV is occurred
mrkn (Kenta Murata) wrote:
> r15: 0x00007fff577eb7d0 rip: 0x0000000000000000 rfl: 0x0000000000010246
rb_dump_mac...
wanabe (_ wanabe)
07:13 AM Revision 0c0f75b7 (git): Treat NULL reference case [Bug #13566]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:38 AM Revision 9cf79858 (git): Merge Onigmo 6.1.2
https://github.com/k-takata/Onigmo/commit/1364ae3488cac0acbf2d61ef3ce2b62fe0c0f528
git-svn-id: svn+ssh://ci.ruby-lan...
naruse (Yui NARUSE)
04:47 AM Revision d9b9423b (git): ruby.c: encode script name
* ruby.c (process_options): encode script name to locale encoding
instead of associate, if UTF-8 path.
git-svn-id:...
nobu (Nobuyoshi Nakada)
04:44 AM Revision bd4a419d (git): .gdbinit: fix nd_tree
* .gdbinit (nd_tree): use rb_str_tmp_new to get rid of
`__extension__'.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nobu (Nobuyoshi Nakada)
04:14 AM Feature #13559: Change implementation of Feature #6721
Name proposal - cede
```ruby
url.cede { |u| open(u).read } # return "itself -> fetch from the network"
```
MSP-Greg (Greg L)
01:41 AM Feature #13559: Change implementation of Feature #6721
Well, I know everyone don't like the name yield_self but, it seems that's a separate issue than this one. Can we foc... shyouhei (Shyouhei Urabe)
12:28 AM Revision a0b6e366 (git): test_dir_m17n.rb: read in filesystem encoding
* test/ruby/test_dir_m17n.rb (test_entries_compose): read in
filesystem encoding instead of default external encodi...
nobu (Nobuyoshi Nakada)

05/16/2017

11:59 PM Revision 8dbf0f2a (git): Revert "test/test_extilibs.rb: do not check the existence of fiddle"
This reverts r58761 since fiddle is considered critical.
[ruby-core:81201] [ruby-core:81203]
git-svn-id: svn+ssh://c...
Eric Wong
11:15 PM Revision 6e7dfec8 (git): ENV["HOME"] is prior as home on Windows
* spec/rubyspec/core/dir/home_spec.rb: ENV["HOME"] is prior as home on Windows.
reported by ko1.
git-svn-id: svn+...
U.Nakamura
11:09 PM Revision a540cec9 (git): gmake.mk: test dependency
* defs/gmake.mk (TEST_DEPENDS): check and more tests targets need
all to be built.
git-svn-id: svn+ssh://ci.ruby-l...
nobu (Nobuyoshi Nakada)
10:05 PM Revision c836e8dd (git): test/test_extilibs.rb: do not check the existence of fiddle
libffi is not installed on all systems, and is not needed
for most of the tests.
Tested on a fresh FreeBSD 11.0 VM
...
Eric Wong
09:11 PM Feature #13570: Using mkmf for ruby/spec C API specs
> Does mkmf works well on Windows?
I'm not a c type. With MinGW builds, I've got 89 mkmf.log files in the build d...
MSP-Greg (Greg L)
12:47 PM Feature #13570 (Closed): Using mkmf for ruby/spec C API specs
Hello all,
I am thinking to use mkmf to compile the C API specs.
https://github.com/ruby/ruby/blob/trunk/spec/r...
Eregon (Benoit Daloze)
04:16 PM Revision b1d57ac6 (git): Should require at spec file, not fixture file
Fixed ERRORs at non-Windows platforms.
* spec/rubyspec/library/win32ole/fixtures/classes.rb (require): removed.
* s...
U.Nakamura
03:47 PM Revision 00f76201 (git): run tests without exts
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:45 PM Revision 10f713e4 (git): Should require WIN32OLE
* spec/rubyspec/library/win32ole/fixtures/classes.rb: should require WIN32OLE
here because this file causes NameErr...
U.Nakamura
03:17 PM Revision ec5e5c09 (git): * 2017-05-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:17 PM Revision fab2a5ed (git): test/unit.rb: fix returning job tokens
* test/lib/test/unit.rb (_run_parallel): flush job tokens after
quitting workers when normally finished too.
git-s...
nobu (Nobuyoshi Nakada)
02:53 PM Revision ec5184af (git): test_process.rb: compare in UTF-8
* test/ruby/test_process.rb (test_execopts_open_chdir_m17n_path):
compare directory name in UTF-8. encoding of `Di...
nobu (Nobuyoshi Nakada)
01:57 PM Revision ff88c2a9 (git): Use raise_error block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:51 PM Revision 9bb63a50 (git): Mac OS raises EADDRNOTAVAIL but not ECONNREFUSED
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:51 PM Revision 4cfbc59d (git): Multiple exception classes at raise_error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:50 PM Revision 8dd82a3e (git): * common.mk (help): get rid of make error with nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
01:22 PM Revision 975d1cb3 (git): restore yes-test-rubyspec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:15 PM Revision f2b00e2f (git): follow test-spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:29 PM Revision e838fa81 (git): Avoid using a class variable in socket specs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
12:29 PM Revision 50349fd5 (git): Use a reserved port to test for a non-existing TCP server
* Avoids a race between finding an available port and another process starting a server on it.
git-svn-id: svn+ssh:/...
Eregon (Benoit Daloze)
12:15 PM Revision 35da88e6 (git): Rename rubyspec to spec
* common.mk (*-rubyspec): rename to *-spec because rubyspec is historical name.
of course, *-rubyspec are still ava...
U.Nakamura
11:19 AM Feature #13383: [PATCH] Module#source_location
sorah (Sorah Fukumori) wrote:
> it would be happier if we can get all of source locations where a class opened?
I...
wanabe (_ wanabe)
10:25 AM Revision 000482a1 (git): rb_w32_ugetcwd: UTF-8 version getcwd
* dir.c (rb_dir_getwd): convert from UTF-8.
* win32/win32.c (w32_getcwd): codepage aware getcwd using
GetCurrentDi...
nobu (Nobuyoshi Nakada)
09:32 AM Revision 87acdae4 (git): Strip punctuation from CSV headers in symbol converter.
Patch by @cllns. [Fix GH-957]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58744 b2dd03c8-39d4-4d8f-98ff-823fe6...
hsbt (Hiroshi SHIBATA)
09:17 AM Feature #11865 (Closed): CSV: keep original line when parsing
Applied in changeset trunk|r58743.
----------
Added accessor of original line when parsing.
[Feature #11865][ruby...
hsbt (Hiroshi SHIBATA)
09:17 AM Revision 3b77cb2a (git): Added accessor of original line when parsing.
[Feature #11865][ruby-core:72452][fix GH-1170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58743 b2dd03c8-39d4...
hsbt (Hiroshi SHIBATA)
08:27 AM Bug #12373: Optimize CSV#shift
@ksss
I confirmed your patch and benchmark results.
```
Warming up --------------------------------------
...
hsbt (Hiroshi SHIBATA)
08:03 AM Revision 59faac61 (git): Search SSL libraries by testing various filename patterns
* ext/openssl/extconf.rb (find_openssl_library): should search by more flexible
method, especially for LibreSSL on ...
U.Nakamura
07:03 AM Bug #13566: A process freezes at the beginning of C level backtrace when a certain SEGV is occurred
I've confirmed that this issue isn't reproduced on x86_64-linux. mrkn (Kenta Murata)
06:51 AM Feature #13562: Use a sized enumerator with #yield_self
Hanmac (Hans Mackowiak) wrote:
> shyouhei (Shyouhei Urabe) wrote:
> > The patch seems okay to me, but honestly I do...
shyouhei (Shyouhei Urabe)
06:46 AM Feature #13562: Use a sized enumerator with #yield_self
shyouhei (Shyouhei Urabe) wrote:
> The patch seems okay to me, but honestly I don't see any practical use case of it...
Hanmac (Hans Mackowiak)
04:31 AM Feature #13562: Use a sized enumerator with #yield_self
The patch seems okay to me, but honestly I don't see any practical use case of it. Do you nedd this? shyouhei (Shyouhei Urabe)
05:47 AM Revision 66b54b1a (git): fix tempfile leaks on Windows
* lib/rubygems/ext/ext_conf_builder.rb (build): needs to close
before unlink on Windows.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
05:02 AM Revision 0e7c81a7 (git): fix words
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:23 AM Bug #8547: FileUtils.chmod("a+r", "foobar", verbose: true) crashes
I guess it was fixed at r41853 before v2_1_0_preview1 and backported to ruby2_0_0 at r41946 [Backport #8633]. wanabe (_ wanabe)
01:08 AM Bug #8547 (Third Party's Issue): FileUtils.chmod("a+r", "foobar", verbose: true) crashes
It seems that original issue is resolved https://github.com/gurgeous/teleport/issues/22. k0kubun (Takashi Kokubun)
04:23 AM Revision a9b001a4 (git): skip openssl related tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
03:59 AM Feature #13563: Implement Hash#choice method.
At first, I overlook Hash#slice method. Sorry...
And, I reconsider about it.
I feel that Hash#slice is wrong na...
babanba-n (matzbara masanao)
02:02 AM Bug #13564: Exception message management
On 2017/05/15 20:31, [email protected] wrote:
> I think using Exception#cause for this would be a better way to ad...
ko1 (Koichi Sasada)
12:54 AM Bug #1868 (Rejected): ERB single line comment does not work
Supporting this kind of behavior doesn't make sense to me. Suppose following erb template:
~~~ erb
foo <% # comme...
k0kubun (Takashi Kokubun)
12:16 AM Bug #13567 (Closed): error when compiling localeinit.c on cygwin
Applied in changeset trunk|r58737.
----------
enable ruby_w32_codepage on cygwin
* debug.c, localeinit.c: enable ru...
nobu (Nobuyoshi Nakada)
12:15 AM Revision 1fc689d9 (git): * 2017-05-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:15 AM Revision 6ec37b8f (git): enable ruby_w32_codepage on cygwin
* debug.c, localeinit.c: enable ruby_w32_codepage on cygwin too.
[ruby-core:81163] [Bug #13567]
git-svn-id: svn+ss...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom