Project

General

Profile

Activity

From 11/11/2015 to 11/17/2015

11/17/2015

11:54 PM Bug #10984: Hash#contain? to check whether hash contains other hash
Ilya Vorontsov wrote:
> So why one can sort this array and which result does one expect?:
> ...
This is the actual result with 2.3.0-preview1:
```ruby
RUBY_VERSION
=> "2.3.0"
[{}, {a:1,b:2}, {c:3}, {a:1}, {b:2}].sort
ArgumentEr...
olivierlacan (Olivier Lacan)
11:13 PM Bug #10984: Hash#contain? to check whether hash contains other hash
Hello everyone.
I urge to remove Hash comparison methods and to stick to methods like `#contain`. Or at least to return `nil` instead of `false` for comparison of non-comparable hashes. Underlying reasons are strictly mathematical but h...
prijutme4ty (Ilya Vorontsov)
11:50 PM Bug #11702: errors in tests of logger on Windows
Naotoshi Seo wrote:
> I created a patch > https://github.com/sonots/ruby/commit/e438ac0b59bf70946947ee80a0f3aa82ef10cf9c. Cloud you check this?
Seems OK.
Commit it, please.
> ...
Current trunk does NOT support VS2015.
Naruse-s...
usa (Usaku NAKAMURA)
07:27 PM Bug #11702: errors in tests of logger on Windows
@Usaku Nakamura
I created a patch > https://github.com/sonots/ruby/commit/e438ac0b59bf70946947ee80a0f3aa82ef10cf9c. Cloud you check this?
I tried to create a build environment for Windows, but unfortunately it failed as https://gis...
sonots (Naotoshi Seo)
03:34 PM Bug #11702: errors in tests of logger on Windows
Oh, god. Thank you for pointing out. I will fix soon. sonots (Naotoshi Seo)
02:23 PM Bug #11702: errors in tests of logger on Windows
One more request.
Date and time of the entry of ChangeLog is not a date and time that you have made the changes,
but the timing of commit to the repository of ruby.
usa (Usaku NAKAMURA)
02:19 PM Bug #11702 (Assigned): errors in tests of logger on Windows
usa (Usaku NAKAMURA)
02:18 PM Bug #11702 (Closed): errors in tests of logger on Windows
Hi, sonots, welcome to ruby committers!
Your memorial first commit r52620 introduces two test errors on Windows.
Line 134 and 157 of test/logger/test_logdevice.rb is:
```
File.unlink(@filename) if File.exist?(@filename) # rem...
usa (Usaku NAKAMURA)
11:28 PM Bug #11705 (Rejected): Namespace resolution in nested modules with short syntax
Given the following definition:
~~~
module Foo
class Qux
def self.hello
'Hello, world!'
end
end
end
~~~
Namespace resolution at a later time works differently when you have nested modules, e.g.
~~~
mod...
mwpastore (Mike Pastore)
11:27 PM Bug #11657: Abort Trap 6 when running a test suite
Nobuyoshi Nakada wrote:
> We love to see your "isolated test case". Thank you.
OK, unsure if I will be able to replicate it isolated since it seems to need the entire currently-closed-source component to be present. I'll work on it.
adh1003 (Andrew Hodgkinson)
03:16 AM Bug #11657: Abort Trap 6 when running a test suite
Sorry for delay.
We love to see your "isolated test case".
Thank you.
nobu (Nobuyoshi Nakada)
02:51 AM Bug #11657: Abort Trap 6 when running a test suite
Andrew Hodgkinson wrote:
> I've tried this on both OS X (10.11.1) and a Debian build in a Virtualbox VM [...]
The test suite also crashes under Travis if an attempt is made to use Ruby 2.2.3.
adh1003 (Andrew Hodgkinson)
11:15 PM Bug #11704: Refinements only get "used" once in loop
Change the
~~~ruby
[500].each do |qty|
~~~
to
~~~ruby
[200, 210, 220, 230].each do |qty|
~~~
For the same benchmark test.
danielpclark (Daniel P. Clark)
11:08 PM Bug #11704 (Rejected): Refinements only get "used" once in loop
Same results on Ruby 2.2.2 through Ruby 2.3.0dev (2015-11-18 trunk 52625) [x86_64-linux]
I wrote a benchmark for testing different ways of implementing a `uniq` method and I chose to do it using refinements. I looped over the results...
danielpclark (Daniel P. Clark)
10:00 PM Bug #11701 (Closed): recvmsg for UDP without argument
Applied in changeset r52625.
----------
socket: fix recvmsg without argument
* ext/socket/ancdata.c (bsock_recvmsg_internal): grow buffer
on unspecified maxdatlen
[ruby-core:71517] [Bug #11701]
* ext/socket/lib/socket.rb (Socket#re...
Anonymous
09:08 PM Bug #11701: recvmsg for UDP without argument
akr@fsij.org wrote:
> Bug #11701: recvmsg for UDP without argument
> https://bugs.ruby-lang.org/issues/11701

Oops, will take a look...
normalperson (Eric Wong)
08:19 AM Bug #11701 (Closed): recvmsg for UDP without argument
It seems recvmsg without argument doesn't work well for UDP now.
Following example sends a packet which size is 10000 bytes but
receives a packet which size is 4096 bytes.
```
% ./ruby -rsocket -ve 's1 = Addrinfo.udp("127.0.0.1",...
akr (Akira Tanaka)
10:00 PM Revision 508b5fdd (git): socket: fix recvmsg without argument
* ext/socket/ancdata.c (bsock_recvmsg_internal): grow buffer
on unspecified maxdatlen
[ruby-core:71517] [Bug #11701]
* ext/socket/lib/socket.rb (Socket#recvmsg): nil default for dlen
(Socket#recvmsg_nonblock): ditto
* test/socket/t...
Eric Wong
07:52 PM Bug #11692: [PATCH] Re-enable GC if stack overflow was caught from signal handler
I'm having similar issue when running tests with capybara that starts additional server in a new thread.
If I have some problems in my rails app that raises SystemStackError in the server thread then I am left without a GC and memory ju...
ebeigarts (Edgars Beigarts)
03:44 PM Feature #11695 (Closed): Support symbol and string for Logger#level=
sonots (Naotoshi Seo)
03:40 PM Feature #11695: Support symbol and string for Logger#level=
Committed as r52621 sonots (Naotoshi Seo)
03:43 PM Feature #11696 (Closed): Logger#reopen
Committed as r52620 sonots (Naotoshi Seo)
03:42 PM Feature #11696 (Assigned): Logger#reopen
sonots (Naotoshi Seo)
03:25 PM Revision dd2949a7 (git): * 2015-11-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:25 PM Revision 37509b4e (git): Logger is Stdlib instead of Core classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:16 PM Revision f8d4793c (git): * doc/maintainers.rdoc: Change lib/logger.rb maintainer from nahi to sonots
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sonots (Naotoshi Seo)
02:15 PM Revision 398abe4c (git): * lib/logger.rb: support symbol and string log level setting
[fix GH-1101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sonots (Naotoshi Seo)
01:58 PM Revision f952570b (git): lib/logger.rb: Add Logger#reopen
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sonots (Naotoshi Seo)
01:27 PM Bug #11699: Windows環境の日本語入力で不正な文字が混入する
私の手元では、rubyinstallerのものでも、自前でビルドしたものでも、現象を再現できていません。 usa (Usaku NAKAMURA)
07:22 AM Bug #11699: Windows環境の日本語入力で不正な文字が混入する
再現条件は特定できませんでしたが、他のバージョンでも試してみました。
http://rubyinstaller.org/downloads/ からDLした7zのバイナリです。
~~~
C:\ruby>ruby-1.9.3-p551-i386-mingw32\bin\ruby.exe -e "p gets"

"あ\n"
C:\ruby>ruby-2.0.0-p647-i386-mingw32\bin\ruby.exe -e "p gets"

...
h1kb (Taro YAMADA)
04:34 AM Bug #11699: Windows環境の日本語入力で不正な文字が混入する
私の手元では再現しないので、何かruby外の要因があるような気がします。
どなたか再現条件がわかる人はいませんか。
usa (Usaku NAKAMURA)
02:09 AM Bug #11699 (Third Party's Issue): Windows環境の日本語入力で不正な文字が混入する
getsで受け取った文字列をpで出力するだけのワンライナーをcmd.exeから実行します。
~~~
C:\>ver
Microsoft Windows [Version 6.1.7601]
C:\>ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-mingw32]
C:\>ruby -e "p gets"

"あ-e:1:in `p': Invalid argument...
h1kb (Taro YAMADA)
01:18 PM Revision 6a533a3e (git): revert r52614, r52615, r52617 because they cause serious errors
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
11:41 AM Feature #11690: Update Hash during multiple assignment
You're right! I misspelled it. If I had added a space "in jest" it would be "a joke". `ingest` is what I had meant to say. I wrote how it is pronounced rather than how it is spelled. danielpclark (Daniel P. Clark)
03:06 AM Feature #11690: Update Hash during multiple assignment
Daniel P. Clark wrote:
> Maybe we could replace `to_be_assigned_with` to `slurp`, `consume`, `devour`, or `injest` ;-)
My dictionary doesn't have the last word, maybe a compound word from `inject` and `ingest`?
nobu (Nobuyoshi Nakada)
02:10 AM Feature #11690: Update Hash during multiple assignment
Nobuyoshi Nakada wrote:
> Just an idea.
> ...
I absolutely love the extensibility of this! In that it can be used on any object to allow multiple assignment with any method. Brilliant Nobuyoshi! Now if only the method name wasn't so...
danielpclark (Daniel P. Clark)
01:29 AM Feature #11690: Update Hash during multiple assignment
Just an idea.
~~~ruby
class ToBeAssigned
def initialize(obj)
@target = obj
end
def method_missing(m, *args)
@target.__send__(m.to_s.chomp('='), *args)
end
def respond_to_missing?(m)
@target.respond_to?(m...
nobu (Nobuyoshi Nakada)
10:50 AM Revision 508addd7 (git): * win32/win32.c (fstat): declare for mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
10:39 AM Revision 551ae37b (git): * method.h (METHOD_ENTRY_COMPLEMENTED(_SET)): introduced to recognize
complemented method entries or not. There are some cases that callabe
method entries do not have defined_class.
* vm_method.c (rb_method_entry_complement_defined_class):
use METHOD_ENTRY_COMPLEMENTED_SET().
git-svn-id: svn+ssh:/...
ko1 (Koichi Sasada)
10:05 AM Revision c88764f3 (git): * configure.in (BASERUBY): use Kernel#print instead of Kernel#p because
the baseruby may output CRLF as end of line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:54 AM Revision a2f72abb (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
09:42 AM Revision fa4e516d (git): * method.h: introduce rb_method_definition_t::complemented_count.
* vm_method.c (method_definition_addref_complement): introduced.
def->alias_count is used to decide warn or do not warn at method
redefinition. Complented methods should not prevent redefiniton
warnings.
* vm_method.c (rb_method_...
ko1 (Koichi Sasada)
09:06 AM Misc #11681 (Assigned): Refinements documentation is based on older implementation
hsbt (Hiroshi SHIBATA)
06:38 AM Feature #11561 (Closed): Update Unicode data to Unicode Version 8.0
Martin Dürst wrote:
> [This is a summary issue, I'll create sub-issues for particular tasks.]
The subissues have been completed, so this issue can be closed.
duerst (Martin Dürst)
06:34 AM Revision ec217619 (git): NEWS: Added update from Unicode 7.0.0 to 8.0.0 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
06:31 AM Feature #11563 (Closed): Update Onigmo regular expression engine to Unicode Version 8.0.0
Applied in changeset r52612.
----------
enc/unicode/casefold.h, name2ctype.h: Change Unicode Version for
regular expressions from 7.0.0 to 8.0.0
(with help from Kimihito Matsui) [Feature #11563]
duerst (Martin Dürst)
06:30 AM Revision 5d3cdd65 (git): enc/unicode/casefold.h, name2ctype.h: Change Unicode Version for
regular expressions from 7.0.0 to 8.0.0
(with help from Kimihito Matsui) [Feature #11563]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
05:36 AM Feature #11688 (Closed): Struct and OpenStruct will be able to chain the Hash#dig Array#dig
Applied in changeset r52611.
----------
OpenStruct#dig
* lib/ostruct.rb (dig): Implement OpenStruct#dig
[Feature #11688]
nobu (Nobuyoshi Nakada)
03:02 AM Feature #11688: Struct and OpenStruct will be able to chain the Hash#dig Array#dig
Matz has approved both, last afternoon (JST). nobu (Nobuyoshi Nakada)
05:36 AM Revision 48253068 (git): OpenStruct#dig
* lib/ostruct.rb (dig): Implement OpenStruct#dig
[Feature #11688]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:06 AM Revision 66e2139b (git): * ext/socket/lib/socket.rb (Socket#recvmsg{,_nonblock}): default values
of clen must be nil.
* ext/socket/ancdata.c (bsock_sendmsg_internal): handle nil of clen.
fixes test errors introduced at r52602.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:55 AM Revision 4b9cd6ed (git): * ext/socket/lib/socket.rb: UNIXSocket is not always exists. fixes
install error on Windows, introduced at r52601.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:48 AM Feature #11700: positive flags for reverse lookup to socket
nobu@ruby-lang.org wrote:
> Now `BasicSocket` has `do_not_reverse_lookup` global and per-socket attributes.
> Negative flag makes less readability.
> So I propose the inverse and positive attributes,
>
> * `BasicSocket.reverse_loo...
normalperson (Eric Wong)
02:36 AM Feature #11700 (Open): positive flags for reverse lookup to socket
Now `BasicSocket` has `do_not_reverse_lookup` global and per-socket attributes.
Negative flag makes less readability.
So I propose the inverse and positive attributes,
* `BasicSocket.reverse_lookup`
* `BasicSocket.reverse_lookup=`
...
nobu (Nobuyoshi Nakada)
02:29 AM Revision 55a692bb (git): socket: update doc for recvfrom_nonblock [ci skip]
* ext/socket/lib/socket.rb (Socket#recvfrom_nonblock):
UDPSocket#recvfrom_nonblock):
update doc for `exception: false` and destination buffer
[ruby-core:69542] [Feature #11229]
[ruby-core:69543] [Feature #11242]
git-svn-id: svn+...
Eric Wong
02:25 AM Revision 0701e5ff (git): update rdoc of dig methods [ci skip]
* array.c (rb_ary_dig), hash.c (rb_hash_dig): [DOC] Update
comments describing dig methods. [Fix GH-1103]
* struct.c (rb_struct_dig): [DOC] add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52607 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)
02:22 AM Revision 8e465f9c (git): NEWS: Small grammatical fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
02:15 AM Revision afe14299 (git): init.c: is_socket
* ext/socket/init.c (is_socket): extract predicate to see if the
given fd is a socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:16 AM Revision 8478b302 (git): socket: avoid exceptions in wrapper code
* ext/socket/lib/socket.rb (Socket.accept_loop): avoid exceptions
(Socket.udp_server_recv): ditto
Exceptions for common "errors" make debug output noisy and
allocations+backtrace generation hurt performance.
[ruby-core:66385] [ruby-co...
Eric Wong
01:05 AM Revision eda2441b (git): socket: avoid arg parsing in bsock_sendmsg_internal
* ext/socket/ancdata.c (bsock_sendmsg_internal): avoid arg parsing
[ruby-core:71439] [Feature #11339]
(rsock_bsock_sendmsg): make private, adjust for above
(rsock_bsock_sendmsg_nonblock): ditto
* ext/socket/rubysocket.h: adjust pro...
Eric Wong
12:58 AM Revision 416c50f5 (git): socket (bsock_recvmsg_internal): avoid arg parsing
* ext/socket/ancdata.c (bsock_recvmsg_internal): avoid arg parsing
(rsock_bsock_recvmsg): adjust for above change
(rsock_bsock_recvmsg_nonblock): ditto
[ruby-core:71439] [Feature #11339]
* ext/socket/rubysocket.h: adjust prototypes...
Eric Wong

11/16/2015

11:40 PM Revision bee5b49a (git): socket: avoid arg parsing in rsock_s_accept_nonblock
* ext/socket/init.c (rsock_s_accept_nonblock): avoid parsing args
[ruby-core:71439] [Feature #11339]
* ext/socket/rubysocket.h: adjust prototype
* ext/socket/socket.c (sock_accept_nonblock): make private
* ext/socket/tcpserver.c (tcp_a...
Eric Wong
11:34 PM Revision bb6dfab2 (git): socket: Socket#connect_nonblock avoids arg parsing with C API
* ext/socket/socket.c (sock_connect_nonblock):
avoid argument parsing in C.
[ruby-core:71439] [Feature #11339]
* ext/socket/lib/socket.rb (Socket#connect_nonblock):
new wrapper for private method, move RDoc
target 0: a (ruby 2.3.0...
Eric Wong
11:25 PM Revision b272f94f (git): * 2015-11-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:25 PM Revision 528ff1b9 (git): socket: avoid arg parsing in rsock_s_recvfrom_nonblock
* ext/socket/init.c (rsock_s_recvfrom_nonblock):
avoid arg parsing with C API
[ruby-core:71439] [Feature #11339]
* ext/socket/basicsocket.c (bsock_recv_nonblock):
adjust for above change, make private
* ext/socket/socket.c (sock_re...
Eric Wong
09:38 PM Feature #11690: Update Hash during multiple assignment
On 17/11/2015 12:18 AM, <6ftdan@gmail.com> wrote:
>
> Issue #11690 has been updated by Daniel P. Clark.
>
>
> I'm not sure the `opts[*]` is a good idea. You have have current splat
behavior with multiple assignment.
>
>...
phluid61 (Matthew Kerwin)
02:17 PM Feature #11690: Update Hash during multiple assignment
I'm not sure the `opts[*]` is a good idea. You have have current splat behavior with multiple assignment.
~~~ruby
a, *, c = [1,2,3,4,5]
a
# => 1
c
# => 5
~~~
And the `opts[*]` is unclear about what it is and what it expects....
danielpclark (Daniel P. Clark)
01:47 PM Bug #11698 (Closed): Fix a bad double-negative comment
negative*negative=positive pmq20 (P.S.V.R Pan)
01:46 PM Bug #11692: [PATCH] Re-enable GC if stack overflow was caught from signal handler
This issue is related: https://bugs.ruby-lang.org/issues/11593 gazay (Alex Gaziev)
12:38 PM Bug #11697 (Closed): test/dtrace failure on Solaris 10
Applied in changeset r52597.
----------
* test/dtrace/helper.rb (Dtrace::TestCase#trap_probe): dtrace buffer size is set as 8m on Solaris (default 4m). [Bug #11697]
ngoto (Naohisa Goto)
12:16 PM Bug #11697 (Closed): test/dtrace failure on Solaris 10
test/dtrace fails on Solaris 10 as follows.
Ruby (64-bit) compiled by using Oracle Solaris Studio 12.3 cc with "-xO3" optimization:
~~~
$ SUDO=sudo ruby test/runner.rb test/dtrace
Run options:
# Running tests:
[26/26] DTrac...
ngoto (Naohisa Goto)
12:38 PM Revision 7506498f (git): * test/dtrace/helper.rb (Dtrace::TestCase#trap_probe): dtrace buffer size is set as 8m on Solaris (default 4m). [Bug #11697]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ngoto (Naohisa Goto)
11:21 AM Feature #11695: Support symbol and string for Logger#level=
Updated `doc/maintainers.rdoc` via https://github.com/sonots/ruby/commit/4c6bd17c8be6917fe3e10dad5d24e5c9a3ef8e2a
sonots (Naotoshi Seo)
09:38 AM Feature #11695: Support symbol and string for Logger#level=
Sorry, I didn't read the tweets.
Please update `doc/maintainers.rdoc` too.
nobu (Nobuyoshi Nakada)
09:33 AM Feature #11695 (Assigned): Support symbol and string for Logger#level=
nobu (Nobuyoshi Nakada)
07:23 AM Feature #11695: Support symbol and string for Logger#level=
LGTM.
Matz.
matz (Yukihiro Matsumoto)
06:53 AM Feature #11695 (Closed): Support symbol and string for Logger#level=
Added Logger#level=:symbol and Logger#level=string as we talked at https://twitter.com/frsyuki/status/664862229490089984.
This is useful especially when we configure log_level with yaml (typically, on rails application) like
settin...
sonots (Naotoshi Seo)
11:14 AM Feature #11696 (Closed): Logger#reopen
Added `Logger#reopen`as we talked at https://twitter.com/frsyuki/status/664862229490089984.
This enables to reopen another log file (or same log file) without creating a new Logger instance. This is useful when an application is pass...
sonots (Naotoshi Seo)
09:45 AM Feature #11688 (Open): Struct and OpenStruct will be able to chain the Hash#dig Array#dig
I benchmarked with the attached script.
| user | system | total | real
-------------------------|---------:|---------:|---------:|---------:
Hash only(C) | 0.030000 | 0.000000 | 0.0...
nobu (Nobuyoshi Nakada)
09:22 AM Feature #11688 (Closed): Struct and OpenStruct will be able to chain the Hash#dig Array#dig
Applied in changeset r52596.
----------
struct.c: dig
* object.c (rb_obj_dig): dig in nested structs too.
* struct.c (rb_struct_dig): new method Struct#dig.
[Feature #11688]
nobu (Nobuyoshi Nakada)
07:40 AM Feature #11688 (Feedback): Struct and OpenStruct will be able to chain the Hash#dig Array#dig
As those two classes were not parts of [Feature #11643], they are not rejected nor discussed.
`Struct#dig` should be at least, IMHO.
> [patch](https://github.com/ruby/ruby/pull/1097)
I feel that an argument of `OpenStruct#dig` sho...
nobu (Nobuyoshi Nakada)
09:21 AM Revision 20690026 (git): struct.c: dig
* object.c (rb_obj_dig): dig in nested structs too.
* struct.c (rb_struct_dig): new method Struct#dig.
[Feature #11688]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:21 AM Feature #11563: Update Onigmo regular expression engine to Unicode Version 8.0.0
I should have a patch ready in a couple of days, maybe earlier. duerst (Martin Dürst)
08:41 AM Revision 1ff30ea2 (git): compile.c: tailcall on aref and aset
* compile.c (iseq_peephole_optimize): optimize tail calls on aref
and aset specialized instructions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:40 AM Revision 6339ac02 (git): compile.c: optimize leave
* compile.c (iseq_peephole_optimize): optimize replaced leave
instruction copied to jump instruction too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Revision 5cf43106 (git): * lib/set.rb: Enable frozen_string_literal.
* lib/set.rb: Move << out of the begin block that ensures pop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
07:41 AM Revision dcfcef1c (git): Explain the reason for calling do_with_enum without a block [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
07:29 AM Revision 4f018492 (git): * lib/set.rb (Hash#flatten!, #add?, #delete?, #collect!, #reject!,
#select!, #^, #classify): Micro-optimize some methods for
performance and readability.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
07:18 AM Revision 468cf270 (git): * ChangeLog: fixed accidentally commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
07:16 AM Revision ce9b056c (git): * mkconfig.rb: Add some high-level documentation.
[ci skip][fix GH-1081]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:00 AM Revision f6ea3cc6 (git): * proc.c: Add call-seq of `Method#super_method`
[ci skip][fix GH-1094]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:58 AM Revision c9baf1fa (git): * struct.c: Standardize a method signature of Struct#[]=.
[ci skip][fix GH-1095]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:43 AM Revision d736eded (git): * lib/set.rb (#>=, #>, #<=, #<): Make use of Hash#>=, #>, #<, and
#<= when comparing against an instance of the same kind.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
06:33 AM Bug #11685 (Closed): rbinstall does not set Gem specification permission correctly
Applied in changeset r52585.
----------
* tool/rbinstall.rb: fix wrong permission for gem specification without
zlib runtime. [Bug #11685][ruby-dev:49343]
hsbt (Hiroshi SHIBATA)
06:33 AM Bug #11691 (Closed): Permission denied @ rb_sysopen did_you_mean-1.0.0.beta3.gemspec
Applied in changeset r52585.
----------
* tool/rbinstall.rb: fix wrong permission for gem specification without
zlib runtime. [Bug #11685][ruby-dev:49343]
hsbt (Hiroshi SHIBATA)
06:33 AM Revision 8fef6aa2 (git): * tool/rbinstall.rb: fix wrong permission for gem specification without
zlib runtime. [Bug #11685][ruby-dev:49343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:46 AM Revision 9044b126 (git): struct.c: fix index in message
* struct.c (rb_struct_aref, rb_struct_aset): show the given index,
not offset index, in the error messages when the offset is out
of the range.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52584 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nobu (Nobuyoshi Nakada)
04:23 AM Bug #11683: multi-threaded autoload and defined? sometimes fails
If I add `sleep 0.01` in threads, the test more likely to fail on my Ubuntu 15.10 machine.
```ruby
require 'tempfile'
Tempfile.create(%w(autoload .rb)) do |file|
file.puts "class AutoloadTest; module B; end; end"
file.flush
...
h.shirosaki (Hiroshi Shirosaki)
03:34 AM Revision f4fbc7d2 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:11 AM Revision aef5de5f (git): * 2015-11-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:11 AM Revision ab233984 (git): * lib/webrick/httpauth/basicauth.rb: fix a typo.
[ci skip][fix GH-1099] Patch by @jwworth
* lib/webrick/httpauth/digestauth.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:56 AM Feature #11694 (Open): Numeric#nonpositive?, nonnegative?
数値が正であるという条件式のほか,非負であるという条件式もしばしば使います。
Numeric#positive?, negative? があるのなら Numeric#nonpositive?, nonnegative? もあってほしい。
5.5 (5 5)

11/15/2015

09:08 PM Feature #11690: Update Hash during multiple assignment
On 16/11/2015 2:32 AM, <6ftdan@gmail.com> wrote:
>
> This would be most useful in scenarios where a method or proc return
multiple values. When the method returns the values we don't normally know
the key outside where the hash...
phluid61 (Matthew Kerwin)
04:30 PM Feature #11690 (Open): Update Hash during multiple assignment
Given that we can assign multiple variables at once
~~~ruby
a,b,c = 1,2,3
~~~
It would be nice to be able to update a Hash during multiple assignment rather than replacing it. Currently
~~~ruby
x = {a: 1, b: 2}
x, y ,z = {c...
danielpclark (Daniel P. Clark)
07:51 PM Bug #11657: Abort Trap 6 when running a test suite
Andrew Hodgkinson wrote:
> Added by Andrew Hodgkinson 11 days ago.
This - https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport - says:
> ...
It doesn't say _how_ to send a reminder, but hopefully just commenting on the bug ...
adh1003 (Andrew Hodgkinson)
06:41 PM Bug #11693: Backport r50985. (don't close others for rubyspec)
Backported into `ruby_2_2` branch at r52580. nagachika (Tomoyuki Chikanaga)
06:31 PM Bug #11693 (Closed): Backport r50985. (don't close others for rubyspec)
Backport 管理用のチケットのため Closed で作成します。
RubySpec の エラー修正のため r50985 が必要でした。
nagachika (Tomoyuki Chikanaga)
06:40 PM Revision 3e895a04 (git): merge revision(s) 50985: [Backport #11693]
runruby.rb: don't close other fds
* tool/runruby.rb: rubyspec now requires other FDs not to be
closed since 7b6ce1fee.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:24 PM Bug #11692 (Closed): [PATCH] Re-enable GC if stack overflow was caught from signal handler
We got ruby application running on our production server and noticed that it regularly crashes with out of memory errors.
After months of investigation, I narrowed the case to the examples (1/2).
After digging ruby sources and running...
gazay (Alex Gaziev)
04:47 PM Bug #11691 (Closed): Permission denied @ rb_sysopen did_you_mean-1.0.0.beta3.gemspec
When I ruby Ruby, I get this error:
~~~
/usr/local/lib/ruby/2.3.0/rubygems/stub_specification.rb:80:in `initialize': Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.3.0/specifications/did_you_mean-1.0.0.beta3.gemspec (Err...
sawa (Tsuyoshi Sawada)
11:17 AM Feature #11477 (Closed): NameError#qualified_name
Since #11252 is completely done and `NameError#receiver` now returns the receiving module in a "uninitialized constant" NameError, I'll close this issue. yuki24 (Yuki Nishijima)
10:08 AM Feature #11689: Add methods allow us to get visibility from Method and UnboundMethod object.
Sorry.
These methods are useful for inspecting Method object (e.g. debugging or documenting).
Currently if we need information about visibility, we should check `owner.public_instance_methods`, `owner.protected_instance_methods`, and...
yui-knk (Kaneko Yuichiro)
06:51 AM Feature #11689: Add methods allow us to get visibility from Method and UnboundMethod object.
What's use-case for these methods?
At least, You should describe use-case with feature request.
hsbt (Hiroshi SHIBATA)
04:53 AM Feature #11689 (Open): Add methods allow us to get visibility from Method and UnboundMethod object.
Add `Method#visibility` and `UnboundMethod#visibility` for getting visibility from Method and UnboundMethod object.
In GitHub https://github.com/ruby/ruby/pull/1098.
yui-knk (Kaneko Yuichiro)
09:29 AM Bug #11687 (Closed): Method visibility changers works on frozen modules
Applied in changeset r52579.
----------
vm_method.c: check if frozen [Fix GH-1096]
* vm_method.c (set_method_visibility): should fail if the receiver
is frozen. [ruby-core:71489] [Bug #11687]
nobu (Nobuyoshi Nakada)
03:19 AM Bug #11687 (Closed): Method visibility changers works on frozen modules
Method visibility changers are working after `freeze`.
Is this an intended behavior?
[patch](https://github.com/ruby/ruby/pull/1096)
~~~
module Foo
CONSTANT = nil
def func; end
freeze
end
Foo.private_constant :CONS...
kachick (Kenichi Kamiya)
09:28 AM Revision 4ea616b3 (git): vm_method.c: check if frozen [Fix GH-1096]
* vm_method.c (set_method_visibility): should fail if the receiver
is frozen. [ruby-core:71489] [Bug #11687]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:27 AM Feature #11666: IPAddr#private?
I think private? is better than private_addr? because private_addr? seems to be redundant in following code:
```ruby
IPAddr.new("192.168.1.1").private_addr?
```
Glass_saga (Masaki Matsushita)
03:30 AM Feature #11688 (Closed): Struct and OpenStruct will be able to chain the Hash#dig Array#dig
Struct and OpenStruct are rejected with #dig? I couldn't get from [Feature #11643]
[patch](https://github.com/ruby/ruby/pull/1097)
kachick (Kenichi Kamiya)
02:05 AM Revision 9fec02ad (git): * 2015-11-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:04 AM Revision c87bee1f (git): ruby.1: --dump [ci skip]
* man/ruby.1: describe --dump option arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:17 AM Feature #11665: Support nested functions for better code organization
I completely forgot about the notation of defining instance methods within other instance method.
My first reaction to rediscovering this was that it would be useful for me, since it would visually communicate the relationship between...
keithrbennett (Keith Bennett)

11/14/2015

11:24 PM Bug #11686 (Closed): Segmentation fault/memory corruption with --enable-frozen-string-literal-debug --enable-frozen-string-literal
This issue manifests when using the `ruby_parser` gem version 3.7.2.
To reproduce:
* `gem install ruby_parser -v 3.7.2`
* `ruby --enable-frozen-string-literal-debug --enable-frozen-string-literal -e "require 'ruby_parser'"`
Sam...
jsc (Justin Collins)
06:05 PM Bug #11685 (Closed): rbinstall does not set Gem specification permission correctly
rbinstall.rb does not set Gem specification permission while installing rubygems.
It seems line751 - 756 and 763 - are conflicting and it skips lines after 762.
arton (Akio Tajima)
01:15 PM Revision 373e87a7 (git): * ext/socket/lib/socket.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:45 PM Revision fb2a6ecf (git): * lib/time.rb: Use "<<" to reduce string allocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:43 AM Revision af4c1ac8 (git): test/test_tsort.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:03 AM Revision 22876f4d (git): compile.c: fix variable
* compile.c (iseq_peephole_optimize): use proper variable, without
cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:46 AM Revision 4c0158ac (git): * lib/tsort.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:25 AM Revision 2f7ac37b (git): * lib/resolv-replace.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:13 AM Revision 59a3fe58 (git): hash.c: compare methods [ci skip]
* hash.c (rb_hash_{le,lt,ge,gt}): [DOC] for [Feature #10984]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:00 AM Revision fb7ccd69 (git): * lib/time.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:43 AM Revision 1ec54469 (git): * lib/open3.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
06:26 AM Revision 8aa3ac13 (git): compile.c: remove unused labels
* compile.c (iseq_label_data): manage reference count.
* compile.c (iseq_peephole_optimize): remove unreferred labels
which may disturb optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52567 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)

11/13/2015

08:16 PM Bug #11101 (Feedback): Forking is killing my memory when running GC
ko1 (Koichi Sasada)
08:05 PM Revision db138790 (git): additional fix of comment line
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:04 PM Revision f1028f5c (git): * node.h: remove old comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:02 PM Revision 32a96472 (git): * refactoring CREF related code.
* eval_intern.h: remove unused setter functions.
CREF_CLASS_SET()
CREF_NEXT_SET()
CREF_SCOPE_VISI_COPY()
* eval_intern.h: rename flags:
* NODE_FL_CREF_PUSHED_BY_EVAL_ -> CREF_FL_PUSHED_BY_EVAL
* NODE_FL_CREF_OMOD_SHARED_ -> CR...
ko1 (Koichi Sasada)
06:01 PM Revision b73e900f (git): * vm.c (vm_define_method): refactoring.
* get CREF in this function.
* cbase is no longer needed (CREF_CLASS(cref) is enough).
* compile.c: RubyVM::FrozenCore.define_method only accept 2 args.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52563 b2dd03c8-39d4-4d8f-98...
ko1 (Koichi Sasada)
05:38 PM Bug #11571 (Closed): シングルトンメソッドの中で def を使用した時の可視性が変わっている
Applied in changeset r52562.
----------
* vm.c (vm_define_method): do not use current CREF immediately,
but check CREF in environment or methods. Methods defined in methods
should be public.
[Bug #11571]
* vm_method.c (rb_scope_m...
ko1 (Koichi Sasada)
05:38 PM Revision 25f5dd67 (git): * vm.c (vm_define_method): do not use current CREF immediately,
but check CREF in environment or methods. Methods defined in methods
should be public.
[Bug #11571]
* vm_method.c (rb_scope_module_func_check): check CREF in env or me.
if CREF is contained by `me', then return FALSE.
* test/ruby...
ko1 (Koichi Sasada)
05:20 PM Revision dd4cec36 (git): * method.h: constify rb_cref_t::scope_visi;
* eval_intern.h (CREF_SCOPE_VISI_COPY): catch up this fix.
* vm_method.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:07 PM Revision 6687b348 (git): * 2015-11-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:07 PM Bug #11684 (Closed): Pack#unpack test failure on Solaris 10 with Oracle Solaris Studio 12.4
Applied in changeset r52559.
----------
* pack.c (pack_unpack, AVOID_CC_BUG): Very ugly workaround for
optimization bug of Oracle Solaris Studio 12.4 on Solaris
with -xO4 optimization option. [Bug #11684]
ngoto (Naohisa Goto)
04:48 PM Bug #11684 (Closed): Pack#unpack test failure on Solaris 10 with Oracle Solaris Studio 12.4
On Solaris 10, when compiling ruby with Oracle Solaris Studio 12.4 with -xO4 optimization option, the following test failure is observed during make test-all. (tested with r52550)
~~~
1) Failure:
TestPack#test_pack_unpack_atmark [...
ngoto (Naohisa Goto)
05:06 PM Revision 238c6c5b (git): * pack.c (pack_unpack, AVOID_CC_BUG): Very ugly workaround for
optimization bug of Oracle Solaris Studio 12.4 on Solaris
with -xO4 optimization option. [Bug #11684]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
02:11 PM Bug #11680 (Closed): LD_PRELOAD setting causes child process crash on mingw
Applied in changeset r52558.
----------
Unset LD_PRELOAD on mingw
* configure.in: unset LD_PRELOAD on mingw. msys2 child processes
crash at make test-all with LD_PRELOAD.
[ruby-core:71461] [Bug #11680]
Anonymous
02:11 PM Revision f2b760e3 (git): Unset LD_PRELOAD on mingw
* configure.in: unset LD_PRELOAD on mingw. msys2 child processes
crash at make test-all with LD_PRELOAD.
[ruby-core:71461] [Bug #11680]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
10:46 AM Feature #11537: Introduce "Safe navigation operator"
Yukihiro Matsumoto wrote:
> I think about this for a while, and thinking of introducing `&.` instead of `.?`, because:
> ...
I must say I am very happy with this change. "&." is much easier to read than ".?" .
uwe@kubosch.no (Uwe Kubosch)
07:12 AM Feature #11473: Immutable String literal in Ruby 3
Mike Pastore wrote:
> Has anyone suggested introducing new quote-like operators to define mutable strings in Ruby 2.3 (with immutable string pragma) and 3.0? I was thinking something like:
> ...
This was mentioned as part of the gene...
duerst (Martin Dürst)
02:26 AM Feature #11473: Immutable String literal in Ruby 3
Has anyone suggested introducing new quote-like operators to define mutable strings in Ruby 2.3 (with immutable string pragma) and 3.0? I was thinking something like:
~~~
# immutable without interpolation
'foo'
%q{foo}
# immutab...
mwpastore (Mike Pastore)
07:08 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
SASADA Koichi <ko1@atdot.net> wrote:
> On 2015/11/13 13:18, Eric Wong wrote:
> > benchmark/bm_accept_nonblock.rb | 17 ++
> > benchmark/bm_connect_nonblock.rb | 18 ++
> > benchmark/bm_recvmsg_nonblock.rb | 16 ++
> > benchmar...
normalperson (Eric Wong)
05:48 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
On 2015/11/13 13:18, Eric Wong wrote:
> benchmark/bm_accept_nonblock.rb | 17 ++
> benchmark/bm_connect_nonblock.rb | 18 ++
> benchmark/bm_recvmsg_nonblock.rb | 16 ++
> benchmark/bm_sendmsg_nonblock.rb | 16 ++

could you c...
ko1 (Koichi Sasada)
04:18 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
Entire series for sockets
http://80x24.org/spew/20151113041012.27235-1-e%4080x24.org/t.mbox.gz

ref: [ruby-core:71439] [Feature #11339]

benchmark/bm_accept_nonblock.rb | 17 ++
benchmark/bm_connect_nonblock.rb | 18 ++
benchmar...
normalperson (Eric Wong)
05:39 AM Bug #11675 (Feedback): String hash key may cause Segfault
2.2.0 is outdated.
Could you try with 2.2.3, or stable snapshot?
nobu (Nobuyoshi Nakada)
05:37 AM Bug #11683: multi-threaded autoload and defined? sometimes fails
I could reproduce it by iterating 10 times from `add_autoload` through `ensure` block. nobu (Nobuyoshi Nakada)
01:51 AM Bug #11683 (Closed): multi-threaded autoload and defined? sometimes fails
I get the following failure. This is a multi-threaded autoload and defined? method test.
If I add wait queue code introduced at r52332 to `rb_const_defined_0` function, the test is not failed.
I attached the patch.
```diff
diff -...
h.shirosaki (Hiroshi Shirosaki)
05:18 AM Feature #11607: [PATCH] fiddle: release GVL for ffi_call
So, should I commit the patch as-is, or perhaps add a new
option/method for releasing the GVL?

Naming new options/methods hard for me :<
normalperson (Eric Wong)
05:14 AM Bug #11682 (Rejected): cant create my first controller after initial rails install
You load an extension library for older version of ruby.
2.2.1 is outdated and 2.2.3 will show more descriptive message.
~~~
$ ruby2.2 -v -r /usr/lib/ruby/2.0.0/universal-darwin15/etc.bundle -ep
ruby 2.2.3p173 (2015-08-18 revision ...
nobu (Nobuyoshi Nakada)
12:54 AM Bug #11682 (Rejected): cant create my first controller after initial rails install
hi there, i'm having difficulty in creating my first rails controller - i have just installed rails following the installrails.com instructions.
when typing 'rails generate controller welcome index" into my terminal I am presented with ...
jchauhan (Jasel Chauhan)
05:03 AM Revision 293aa871 (git): Commit miss from r52556
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:01 AM Bug #10735 (Closed): Memory leak in openssl ossl_pkey_sign
Applied in changeset r52556.
----------
* ext/openssl/ossl_pkey.c: Merge ruby/openssl@b9ea8ef [Bug #10735]
zzak (zzak _)
05:01 AM Revision 85dd19cf (git): * ext/openssl/ossl_pkey.c: Merge ruby/openssl@b9ea8ef [Bug #10735]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:10 AM Revision 47135def (git): * ext/openssl/ossl_ssl.c: Merge ruby/openssl@81e1a30
* test/openssl/test_ssl.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:05 AM Revision 2069c9e0 (git): prelude.rb: deprecate Thread.exclusive
* prelude.rb (Thread.exclusive): warn as deprecated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:36 AM Revision aa4ab181 (git): parse.y: optimize condition for unless
* parse.y (new_unless): optimize constant condition for `unless`
as well as `if`. [Fix GH-1092]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:09 AM Revision 7765e2e6 (git): * 2015-11-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:08 AM Revision f1f790db (git): * ext/psych/psych.gemspec: bump version to 2.0.15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

11/12/2015

08:15 PM Misc #11681 (Closed): Refinements documentation is based on older implementation
It seems that the refinements documentation hasn't been updated to reflect more recent changes to how refinements work. For example, [[https://github.com/ruby/ruby/blob/trunk/doc/syntax/refinements.rdoc#scope]] says "You may only activat... lazyatom (James Adam)
04:45 PM Bug #11662: Hash#delete causes segmentation fault at 0x00000000001ec8
Yes, we are using threads. @tmp_handlers is only called from one other location in line #129.
~~~
@tmp_handlers[id.to_s] = handler
~~~
Should it be safe to add a key to a hash while another thread is deleting a key from the same ...
mstate (Mike State)
11:47 AM Bug #11632: Resolv::DNS::Message.encode fails to encode messages larger than 16383 byte
Cool, thank you! hannes.georg (Hannes Georg)
09:58 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
Eric Wong <normalperson@yhbt.net> wrote:
> matz@ruby-lang.org wrote:
> > I am OK with the change. I don't really like something like
> > __read_nonblock, but acceptable.
>
> OK, committed as r52541 for now. I don't have a better...
normalperson (Eric Wong)
02:08 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
matz@ruby-lang.org wrote:
> I am OK with the change. I don't really like something like
> __read_nonblock, but acceptable.

OK, committed as r52541 for now. I don't have a better idea
for hiding other than private + "__" prefix.....
normalperson (Eric Wong)
02:01 AM Feature #11339 (Closed): [PATCH] io.c: avoid kwarg parsing in C API
Applied in changeset r52541.
----------
io.c: avoid kwarg parsing in C API
* benchmark/bm_io_nonblock_noex2.rb: new benchmark based
on bm_io_nonblock_noex.rb
* io.c (io_read_nonblock): move documentation to prelude.rb
(io_write_non...
Anonymous
09:44 AM Bug #11679 (Closed): Partial name of coding is allowed at magic comment
Applied in changeset r52550.
----------
parse.y: exact magic comment name
* parse.y (parser_magic_comment): should match exactly.
[ruby-core:71460] [Bug #11679]
nobu (Nobuyoshi Nakada)
08:43 AM Bug #11679 (Closed): Partial name of coding is allowed at magic comment
Encoding of magic comment is allowed by just `c: ...`.
Is this expected result or not?
```
$ cat test.rb
# -*- c: foo -*-
$ ./miniruby -v test.rb
ruby 2.3.0dev (2015-11-12 trunk 52549) [x86_64-linux]
test.rb:1: unknown encod...
h.shirosaki (Hiroshi Shirosaki)
09:44 AM Revision d674e6df (git): parse.y: exact magic comment name
* parse.y (parser_magic_comment): should match exactly.
[ruby-core:71460] [Bug #11679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:09 AM Bug #11680 (Closed): LD_PRELOAD setting causes child process crash on mingw
I see make test-all failures on mingw with msys2.
```
TestMiniTestUnitTestCase#test_assert_equal_different_long = 0 [main] diff 8736 C:\Users\h.shirosaki\work\rubyinsta
ller\sandbox\devkit\usr\bin\diff.exe: *** fatal error - e...
h.shirosaki (Hiroshi Shirosaki)
07:16 AM Revision 2c42aac9 (git): prelude.c.tmpl: optimize
* template/prelude.c.tmpl: enable tail call optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:17 AM Revision 68e16ddd (git): parse.y: ANDDOT fluent interface
* parse.y (parser_yylex): ANDDOT at the head of the line denote
line continuation from previous one to support fluent interface,
as well as single dot.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52548 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
05:16 AM Revision 88edab89 (git): parse.y: simplify
* parse.y (parser_yylex): reduce RIPPER ifdefs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:50 AM Revision a2ba489e (git): * lib/rubygems: Update to RubyGems 2.5.0+ HEAD(db78980).
this version includes #1367 , #1373 , #1375
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:50 AM Revision 8b129406 (git): Module#<=> is not suitable for Comparable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:50 AM Revision 66ef9b93 (git): add a test.
https://bugs.ruby-lang.org/issues/10984#note-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:40 AM Feature #11558 (Closed): Time related C APIs
naruse (Yui NARUSE)
02:01 AM Revision fd36c752 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:01 AM Revision 868c9063 (git): * 2015-11-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:00 AM Revision cee7f691 (git): io.c: avoid kwarg parsing in C API
* benchmark/bm_io_nonblock_noex2.rb: new benchmark based
on bm_io_nonblock_noex.rb
* io.c (io_read_nonblock): move documentation to prelude.rb
(io_write_nonblock): ditto
(Init_io): private, internal methods for prelude.rb use only
...
Eric Wong
01:52 AM Bug #11657: Abort Trap 6 when running a test suite
Changing assignee after 7 days with no response, because I notice from other issues in the list that "ruby-core" never seems to be used. adh1003 (Andrew Hodgkinson)
01:16 AM Feature #8191 (Closed): Short-hand syntax for duck-typing
this feature is supported at #11537 hsbt (Hiroshi SHIBATA)
01:16 AM Feature #8237 (Closed): Logical method chaining via inferred receiver
this feature is supported at #11537 hsbt (Hiroshi SHIBATA)

11/11/2015

09:58 PM Bug #11674: `local_variables` returns buffer-overflow garbage with methods with > 10 keyword arguments
Thanks, that was quick! I don't really understand what the above patch is doing, but it looks like you're just filtering out internal local vars as part of the `local_variable` method implementation. Why is exactly one of these internal ... kjtsanaktsidis (KJ Tsanaktsidis)
08:38 AM Bug #11674 (Closed): `local_variables` returns buffer-overflow garbage with methods with > 10 keyword arguments
Applied in changeset r52536.
----------
vm_eval.c: skip internal names
* vm_eval.c (local_var_list_add): skip internal local variable
name by its type but not if it has a name. internal local
variable names are just unique per fra...
nobu (Nobuyoshi Nakada)
06:57 AM Bug #11674: `local_variables` returns buffer-overflow garbage with methods with > 10 keyword arguments
i wanted to see what symbols does appear:
~~~ruby
p 200.times.map { |n|
vars = n.times.map { |i| :"v#{i}" }
eval "def foo #{vars.map { |v| "#{v}: 1" } * ?,}
local_variables
end"
...
Hanmac (Hans Mackowiak)
06:20 AM Bug #11674: `local_variables` returns buffer-overflow garbage with methods with > 10 keyword arguments
Well, this is very strange indeed. The problem does start at 11 keyword arguments and continues to present all the way up to 25, but then 26 to 35 keyword arguments are all kosher, then 36 to 42 have the problem, and then it doesn't happ... 0x0dea (D.E. Akers)
03:45 AM Bug #11674 (Closed): `local_variables` returns buffer-overflow garbage with methods with > 10 keyword arguments
The following program appears to demonstrate a buffer overflow in `rb_f_local_variables`
~~~ruby
def with_kwargs_10(v1:, v2:, v3:, v4:, v5:, v6:, v7:, v8:, v9:, v10:)
p local_variables
end
def with_kwargs_11(v1:, v2:, v3:, v...
kjtsanaktsidis (KJ Tsanaktsidis)
07:27 PM Feature #11678 (Closed): ability to comment out methods in a multi-line method chain without needing a new line escape
```ruby
a = b
.meth1
#.meth2
.meth3
```
bughit (bug hit)
01:28 PM Revision 4a595240 (git): add ticket numbers
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:21 PM Feature #11665: Support nested functions for better code organization
Oddly there are some people who've found the dynamic defining of methods this way useful as a state machine. This recent blog post demonstrates it http://weblog.jamisbuck.org/2015/10/17/dynamic-def.html
I am inclined to agree with you...
danielpclark (Daniel P. Clark)
09:45 AM Bug #11677: 52530の変更により、sprintfの引数のhashにkeyが存在していてもvalueがnilのときにKeyErrorがでるようになってしまった。
ありがとうございます。 yui-knk (Kaneko Yuichiro)
09:30 AM Bug #11677 (Closed): 52530の変更により、sprintfの引数のhashにkeyが存在していてもvalueがnilのときにKeyErrorがでるようになってしまった。
Applied in changeset r52537.
----------
sprintf.c: nil value is valid
* sprintf.c (rb_str_format): look up the key, then get default
value and raise KeyError if the returned value is nil.
[ruby-dev:49338] [Ruby trunk - Bug #11677]
nobu (Nobuyoshi Nakada)
08:14 AM Bug #11677 (Closed): 52530の変更により、sprintfの引数のhashにkeyが存在していてもvalueがnilのときにKeyErrorがでるようになってしまった。
```ruby
def test_named_with_nil
h = { key: nil, key2: "key2_val" }
assert_equal("key is , key2 is key2_val", "key is %{key}, key2 is %{key2}" % h)
end
```
のようなテストが2.2.3では通るのですが、trunkでは
```ruby
KeyError: key{key} n...
yui-knk (Kaneko Yuichiro)
09:38 AM Revision 66688cde (git): compile.c: comments for r52517 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:30 AM Revision 56e3b493 (git): sprintf.c: nil value is valid
* sprintf.c (rb_str_format): look up the key, then get default
value and raise KeyError if the returned value is nil.
[ruby-dev:49338] [Ruby trunk - Bug #11677]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52537 b2dd03c8-39d4-4...
nobu (Nobuyoshi Nakada)
08:38 AM Revision 9cf11364 (git): vm_eval.c: skip internal names
* vm_eval.c (local_var_list_add): skip internal local variable
name by its type but not if it has a name. internal local
variable names are just unique per frame, not globally.
[ruby-core:71437] [Bug #11674]
git-svn-id: svn+ssh:/...
nobu (Nobuyoshi Nakada)
07:46 AM Bug #11676 (Closed): Missing inspect for T_IMEMO during make with -DCPDEBUG=2
When I pass -DCPDEBUG=2 (or higher) to the CFLAGS the compilation process fails when miniruby is invoked:
CC = clang
LD = ld
LDSHARED = clang -dynamic -bundle
CFLAGS = -O0 -fno-fast-math -ggdb3 -Wall...
norc (Victor Nawothnig)
07:26 AM Bug #11673 (Assigned): Inconsistent timezone behaviour (Time.parse and DateTime.parse)
nobu (Nobuyoshi Nakada)
06:11 AM Revision 66a138c2 (git): Add the ticket number to ChangeLog.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
06:09 AM Feature #11612 (Closed): The default mode of Net::FTP should be passive
The default mode was changed in r52532. shugo (Shugo Maeda)
05:33 AM Bug #10984: Hash#contain? to check whether hash contains other hash
Akira Tanaka wrote:
> ```
> ...
For the record, this sample implementation was wrong.
It should consider that two hashs may have different values for same key.
```
% ruby -e '
class Hash
def <=(other)
self.merge(other...
akr (Akira Tanaka)
05:20 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
I am OK with the change. I don't really like something like __read_nonblock, but acceptable.
Matz.
matz (Yukihiro Matsumoto)
05:14 AM Revision ccf647f7 (git): * transcode.c: fix a typo
[ci skip][fix GH-1091] Patch by @jwworth
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
04:22 AM Bug #11675 (Closed): String hash key may cause Segfault
Using the [Google API Ruby Client](https://github.com/google/google-api-ruby-client), at least one method call will segfault when called with a hash with String keys (it throws an app-relevant exception when those same keys are symbols).... feifan (Feifan Zhou)
03:48 AM Revision b32a3034 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:48 AM Revision 58af10ec (git): * lib/net/ftp.rb (initialize): Connections are in passive mode per
default now. The default mode can be changed by
Net::FTP.default_passive=.
* lib/net/ftp.rb (default_passive=, default_passive): new methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:07 AM Revision f8cd2190 (git): time/test_new.rb: fix tests
* test/-ext-/time/test_new.rb (test_timespec_new): fix for r52519.
swap utc and localtime.
* test/-ext-/time/test_new.rb (test_timespec_now): fix method name
typo which has overwritten test_timespec_new.
git-svn-id: svn+ssh://ci.ru...
nobu (Nobuyoshi Nakada)
12:03 AM Bug #11661 (Closed): sprintf causes a KeyError instead of using a default value for hash substitution
Applied in changeset r52530.
----------
sprintf.c: hash default value
* sprintf.c (rb_str_format): respect default value of a hash. no
longer raises KeyError unless the default value of the hash is
nil. [ruby-core:71354] [Bug #11...
nobu (Nobuyoshi Nakada)
12:03 AM Revision def4370a (git): sprintf.c: hash default value
* sprintf.c (rb_str_format): respect default value of a hash. no
longer raises KeyError unless the default value of the hash is
nil. [ruby-core:71354] [Bug #11661]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52530 b2dd03c8-3...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom