Project

General

Profile

Activity

From 11/15/2015 to 11/21/2015

11/21/2015

10:22 PM Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
Ruben Ambarcumyanc wrote:
> Some additional information. Version 2.2.3 didn't compiled with the same error message. But Ruby from the stable snapshot (https://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz) compiled successfully:
> ...
robbkidd (Robb Kidd)
04:37 PM Revision 0a205155 (git): * configure.in: Add -D_XOPEN_SOURCE=500 (or 600 or 700) on Solaris
if available, mainly for enabling some features in sockets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
04:19 PM Bug #11728 (Closed): TestSocket#test_timestamp failure on Solaris 10 with -D_XOPEN_SOURCE=500
Applied in changeset r52701.
----------
* test/socket/test_socket.rb (test/socket/test_socket.rb): skip the test when Socket::SO_TIMESTAMP is not defined.
Fix error on Solaris 10. [Bug #11728] [ruby-dev:49377]
ngoto (Naohisa Goto)
02:49 PM Bug #11728 (Closed): TestSocket#test_timestamp failure on Solaris 10 with -D_XOPEN_SOURCE=500
Solaris 10 にて、CFLAGSに -D_XOPEN_SOURCE=500 を追加して、SUSv2準拠にてコンパイルした場合、make test-all にて以下のエラーが発生します。
~~~
Finished tests in 1518.357144s, 10.4659 tests/s, 1475.1002 assertions/s.
1) Error:
TestSocket#test_timestamp:
SocketError: un...
ngoto (Naohisa Goto)
04:19 PM Revision c3bc3b16 (git): * 2015-11-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:19 PM Revision 0917a3de (git): * test/socket/test_socket.rb (test/socket/test_socket.rb): skip the test when Socket::SO_TIMESTAMP is not defined.
Fix error on Solaris 10. [Bug #11728] [ruby-dev:49377]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
12:18 PM Revision 83cb0004 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:17 PM Revision ab8a8b68 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:00 PM Feature #11599: Dump entries of hash in ObjectSpace
**Can I get a fair explanation of why this issue abandoned?** yosiat (Yosi Attias)
10:56 AM Feature #11727 (Closed): [PATCH] io.c (rb_gc_for_fd): wrapper for retrying FD creation
io.c (rb_gc_for_fd): wrapper for retrying FD creation
This simplifies callers and makes error handling more consistent
between our pipe, open, fdopen, and dup wrappers.
This adds missing ENOMEM handling as documented in the open(2...
normalperson (Eric Wong)
09:57 AM Revision 82bd486e (git): ruby.c: --debug=frozen-string-literal option
* ruby.c (need_argument): move frozen-string-literal-debug option
from --enable to --debug. [Feature #11725]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:41 AM Revision c033efdd (git): ruby.c: fix pointer overrun
* ruby.c (proc_options): fix pointer overrun. do not advance argv
until it is valid.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:36 AM Revision 8fdebec0 (git): fix r52690
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:06 AM Misc #11726 (Closed): [PATCH] Add a test case for `Coverage.peek_result`
Assert `Coverage.peek_result` raises Error if `Coverage.start` was not called before. yui-knk (Kaneko Yuichiro)
05:01 AM Revision bbc63197 (git): * ext/digest/sha1/extconf.rb: OpenSSL's struct name for SHA1 is
SHA_CTX. http://openssl.org/docs/man0.9.8/crypto/SHA1.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:37 AM Bug #3231 (Closed): Digest Does Not Build
naruse (Yui NARUSE)
04:35 AM Revision 9a7c25ab (git): * ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid
includeing ext/digest/extconf.h. [Bug #3231]
https://msdn.microsoft.com/library/36k2cdd4.aspx
* ext/digest/*/extconf.rb: remove ext/digest from include search path
to avoid confusion of cl.exe.
* ext/digest/*/*.[ch]: explicitly spe...
naruse (Yui NARUSE)
04:06 AM Revision c964c738 (git): * ext/openssl/ossl.h: LibreSSL doesn't have and need e_os2.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:46 AM Revision 628d9057 (git): add to NEWS about Queue#close
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
12:32 AM Feature #10600 (Closed): [PATCH] Queue#close
Applied in changeset r52691.
----------
* thread_sync.c: reduce the specification of Queue#close.
* Queue#close accepts no arguments.
* deq'ing on closed queue returns nil, always.
[Feature #10600]
* test/thread/test_queue.rb: ca...
ko1 (Koichi Sasada)
12:29 AM Feature #10600: [PATCH] Queue#close
I decide to reduce specification of `Queue#close`. For closed queues, `deq` returns `nil`.
No exception is raised for `deq`.
Other tokens are also not supported.
We can introduce them as new feature.
For Ruby 2.3 (or just now),...
ko1 (Koichi Sasada)
12:32 AM Revision e2609033 (git): * thread_sync.c: reduce the specification of Queue#close.
* Queue#close accepts no arguments.
* deq'ing on closed queue returns nil, always.
[Feature #10600]
* test/thread/test_queue.rb: catch up this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52691 b2dd03c8-39d4-4d8f-98ff-...
ko1 (Koichi Sasada)
12:20 AM Revision a77fb26d (git): Visual C++ 14 (2015) uses ucrtbase.dll as c runtime
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:18 AM Feature #11664: [PATCH] introduce rb_autoload_value to replace rb_autoload
nobu@ruby-lang.org wrote:
> The new function looks fine to me, but why deprecating `rb_autoload`?

In general, I prefer to make the C API smaller so it is easier to
support and improve Ruby internals. The rb_autoload API is also
t...
normalperson (Eric Wong)

11/20/2015

11:56 PM Feature #11725: debugging support for frozen string literal
You run `static_test3` twice, not `static_test4`. nobu (Nobuyoshi Nakada)
11:49 PM Feature #11725 (Closed): debugging support for frozen string literal
Applied in changeset r52688.
----------
* compile.c (iseq_compile_each): add debug information to NODE_STR
strings as default.
[Feature #11725]
* insns.def (freezestring): add new instruction to support adding
debug information f...
ko1 (Koichi Sasada)
11:40 PM Feature #11725 (Closed): debugging support for frozen string literal
# Background
Debug frozen string literal is difficult because frozen string can be modified at far from created locations. For example, library X creates one string and modify this string is common situation. Also library X can pass t...
ko1 (Koichi Sasada)
11:51 PM Revision 9ddeb957 (git): read may return nil
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:49 PM Revision ba772af0 (git): * compile.c (iseq_compile_each): add debug information to NODE_STR
strings as default.
[Feature #11725]
* insns.def (freezestring): add new instruction to support adding
debug information for dynamically constracted strings.
* compile.c (iseq_compile_each): support adding debug information
for N...
ko1 (Koichi Sasada)
11:44 PM Feature #11664: [PATCH] introduce rb_autoload_value to replace rb_autoload
The new function looks fine to me, but why deprecating `rb_autoload`?
We used to append `_str` in many cases, IIRC.
nobu (Nobuyoshi Nakada)
10:38 PM Feature #11664: [PATCH] introduce rb_autoload_value to replace rb_autoload
normalperson@yhbt.net wrote:
> https://bugs.ruby-lang.org/issues/11664

Comments? It's low-risk, but does deprecate a (probably unused)
public C-API.

Thanks.
normalperson (Eric Wong)
09:42 PM Feature #10674: Net::HTTP retries idempotent requests once after a timeout, but its not configurable
I can confirm this exact behavior on 2.1.7 shulmang (Garett Shulman)
09:32 PM Bug #11724 (Closed): SNIでsessionが無効だったときにhostnameがサーバに送られない
これも https://github.com/ruby/ruby/pull/964 を見る限り相当手痛いバグなので要backportと思います。
が、確かにこの修正でnet/httpのSNIできねー問題は直るんでしょうけど、そもそもこれはおかしいのはext/opensslの方だと思いますので、むしろそっちを直すべきだと強く感じます。
あとテストがない。
なので、Closedにはしておきますが、backportする前にどないかしたい(またはしてほしい)ですね。
usa (Usaku NAKAMURA)
07:34 PM Bug #11721 (Closed): String used as IO object buffer unexpectedly frozen if #to_sym called on it
Applied in changeset r52686.
----------
symbol.c: not freeze the receiver
* symbol.c (rb_str_intern): should not freeze the receiver itself
unexpectedly. [ruby-core:71611] [Bug #11721]
nobu (Nobuyoshi Nakada)
05:33 PM Bug #11721 (Closed): String used as IO object buffer unexpectedly frozen if #to_sym called on it
A string with forced encoding used a buffer for reading from a File becomes frozen unexpectedly if #to_sym is called on it
file = File.open('some_file')
str = ""
str.force_encoding(Encoding::US_ASCII)
str.frozen? # => false
file....
twalpole@gmail.com (Thomas Walpole)
07:34 PM Revision 89435216 (git): * 2015-11-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:34 PM Revision c815f7e7 (git): symbol.c: not freeze the receiver
* symbol.c (rb_str_intern): should not freeze the receiver itself
unexpectedly. [ruby-core:71611] [Bug #11721]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:06 PM Feature #11723 (Open): CGI library should give access to raw request body
Hi everyone,
I was trying to write a little CGI script that simply stencils out e-mail autoconfig as defined by Microsoft’s [autodiscover protocol](https://technet.microsoft.com/en-us/library/cc511507%28v=office.14%29.aspx), however, ...
Quintus (Marvin Gülker)
06:11 PM Bug #11722 (Closed): Backport r52683 (Net::HTTP fix bug with "Expect: 100-continue" header)
バックポート管理用チケットです。
r52683 の net/http の修正部分は差分のところだけみると 2.0.0 から同様のようなのでバックポートが必要かもしれません。
nagachika (Tomoyuki Chikanaga)
04:18 PM Feature #11717: Object#trap -- pass object to block and return result
> "trap" already means "trap a signal", it comes from long-standing Unix terminology
Ooops. Completely forgot about this one :(
> ...
Yeah, can see it now.
Thinking further, I wonder if just `Object#yield` could be parsed correc...
zverok (Victor Shepelev)
03:34 PM Bug #10984: Hash#contain? to check whether hash contains other hash
I second Ilya's opinion regarding partially ordered sets. But propose to implement the comparision similiar to classes - `Hash` and `Class` both satisfy reflexive, antisymmetric, and transitive relations. So like the `Class`, `Hash` can ... cvss (Kirill Vechera)
02:27 PM Feature #10974: [PATCH] Remove methods which has suffix `!`(sin!, cos!…) from CMath
The infinite loop observed during RubySpec test in r52469
(http://rubyci.s3.amazonaws.com/ubuntu1510/ruby-trunk/log/20151106T153002Z.fail.html.gz )
is caused by the following code in mathn.rb.
~~~
unless defined?(Math.exp!)
Obje...
ngoto (Naohisa Goto)
02:16 PM Revision 8594cab1 (git): * lib/logger.rb: expose logger mutex
[fix GH-541] Patch by @arthurnn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sonots (Naotoshi Seo)
12:07 PM Misc #11580 (Closed): Add documentation for #thread_list_all in lib/debug.rb
Fixed by r52451.
Thank you for your patch!
zzak (zzak _)
09:45 AM Bug #11718: Constant access on `nil`
yeah that should raise an error. A little test shows that this exist a while way back:
```ruby
p nil::String
```
for 1.9.3:
```ruby
String
```
for 1.8.7:
```ruby
# is not a class/module (TypeError)
```
Hanmac (Hans Mackowiak)
09:18 AM Bug #11718: Constant access on `nil`
I think this should really raise an error like:
$ ruby -e 'p nil::String'
-e:1:in `<main>': nil is not a class/module (TypeError)
Eregon (Benoit Daloze)
06:25 AM Bug #11718: Constant access on `nil`
hm it might be that ```nil::Foo``` is parsed as ```::Foo``` which is doing the top-level access.
but i am not deep enough in the parser to fix that.
Hanmac (Hans Mackowiak)
02:38 AM Bug #11718 (Closed): Constant access on `nil`
It is possible to access top-level constants by doing `nil::CONSTANT`, which looks like a bug [according to Matz](https://github.com/opal/opal/issues/1197#issuecomment-158078778). Here are a couple of examples:
```
$ ruby -ve "Foo = ...
vais (Vais Salikhov)
07:37 AM Misc #11681 (Closed): Refinements documentation is based on older implementation
Merged by r52629 shugo (Shugo Maeda)
06:55 AM Bug #11692: [PATCH] Re-enable GC if stack overflow was caught from signal handler
Koichi, do you plan to do backport to 2.2 version of this patch? gazay (Alex Gaziev)
06:39 AM Feature #11715: Tempfile.create unlinked file silently fails
余談ですが、
そういう用途だったらopenに最近O_TMPFILEってフラグが追加されているので、最初は名前無しファイルで作って、
終わったらlinkat(2)で永続化するっていうのを提供してもよいかもしれませんねぇ。
http://linuxjm.osdn.jp/html/LDP_man-pages/man2/open.2.html
naruse (Yui NARUSE)
01:37 AM Feature #11715: Tempfile.create unlinked file silently fails
納得しました。ありがとうございました。 ksss (Yuki Kurihara)
06:37 AM Feature #11720: XMLRPC::DateTime.to_time does not support times prior to 1970.
that might not be a bug itself but because from the XMLRPC doesnt support dates earlier than 1970 ...
otherwise i do wonder why such a extra class is needed and why it doesn't use ::DateTime itself
Hanmac (Hans Mackowiak)
06:24 AM Feature #11720 (Rejected): XMLRPC::DateTime.to_time does not support times prior to 1970.
While Time (as of at least version 1.9.2) now supports at least 1823-11-12, XMLRPC::DateTime.to_time still does not allow for dates earlier than 1970. greaterheightstech (Victor Elkins)
06:30 AM Bug #11593: Is it possible that ObjectSpace.dump_all catch dead objects?
Ok, I understood. This issue can be closed now, thank you gazay (Alex Gaziev)
06:05 AM Revision a90c99ee (git): * Added missing reference of GitHub
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:01 AM Bug #11719 (Closed): Backport request r52683
Net::HTTP::PUT の挙動が regression している問題の修正である r52683 のバックポートをお願いします。
https://github.com/ruby/ruby/pull/949
hsbt (Hiroshi SHIBATA)
05:57 AM Revision f0002bd5 (git): * lib/net/http.rb: Fixed regression for Net::HTTP::PUT with "Expect-100"
header.
* test/net/http/test_http.rb: added test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:40 AM Bug #11401 (Closed): Net::HTTP SSL session resumption does not send SNI
Applied in changeset r52682.
----------
* lib/net/http.rb: set hostname before call ossl_ssl_set_session.
[Bug #11401][ruby-core:70152][fix GH-964] Patch by @mkarnebeek
hsbt (Hiroshi SHIBATA)
05:40 AM Revision 2c97d690 (git): * lib/net/http.rb: set hostname before call ossl_ssl_set_session.
[Bug #11401][ruby-core:70152][fix GH-964] Patch by @mkarnebeek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
04:03 AM Revision 2fac41a6 (git): enc-unicode.rb: --header
* tool/enc-unicode.rb: add --header option to emit name2ctype.h
directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:53 AM Revision 65c744fb (git): * array.c: clarify docs for take_while/drop_while samples.
[ci skip][fix GH-1028] Patch by @leriksen
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:48 AM Revision 35c3f042 (git): * ext/socket/socket.c: remove mention of :UNIX in getaddrinfo().
It's typically not a support option.
[ci skip][fix GH-990] Patch by @eam
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:44 AM Revision 49bb4a1f (git): * lib/rss/syndication.rb: Add nodoc marker for #validate_sy_updatePeriod.
[ci skip][fix GH-1105] Patch by @davydovanton
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:18 AM Bug #11247 (Closed): Should position of `using` affect the behavior?
Applied in changeset r52677.
----------
* vm.c (rb_vm_cref_replace_with_duplicated_cref): added.
CREFs should not be shared by methods between `using'.
[Bug #11247]
* vm_insnhelper.c (vm_cref_replace_with_duplicated_cref): ditto.
...
ko1 (Koichi Sasada)
12:17 AM Revision c267d24e (git): * vm.c (rb_vm_cref_replace_with_duplicated_cref): added.
CREFs should not be shared by methods between `using'.
[Bug #11247]
* vm_insnhelper.c (vm_cref_replace_with_duplicated_cref): ditto.
* vm.c (vm_cref_dup): should copy refinements correctly.
* eval.c: use rb_vm_cref_replace_with_dupl...
ko1 (Koichi Sasada)

11/19/2015

11:41 PM Feature #11717: Object#trap -- pass object to block and return result
Victor Shepelev wrote:
> Even if `#trap` will be implemented as a simple alias of `#instance_eval`...
If you did in fact know that you were essentially requesting an alias for `#instance_eval`, this was a remarkably roundabout way to...
0x0dea (D.E. Akers)
11:12 PM Feature #11717: Object#trap -- pass object to block and return result
Victor Shepelev wrote:
>
> ...
"trap" already means "trap a signal", it comes from long-standing Unix terminology; see [Signal#trap](http://ruby-doc.org/core-2.2.0/Signal.html#method-c-trap)
phluid61 (Matthew Kerwin)
11:08 PM Feature #11717: Object#trap -- pass object to block and return result
Some related issues and historical readings:
* #10095 `Object#as`
* from #6373 `Object#self`
* #6721 `Object#yield_seld`
* #6684 `Object#do`
* #7388 `Object#embed`
Clearly this is something the Ruby community wants. Just...
phluid61 (Matthew Kerwin)
11:02 PM Feature #11717: Object#trap -- pass object to block and return result
Nope.
I'm aware of `#instance_eval` last 10 years or so (I even can recall times when `#instance_exec` were external library method, not part of the core).
Primary goal/usage of `#instance_eval` is to "dig inside". Primary goal/us...
zverok (Victor Shepelev)
10:49 PM Feature #11717: Object#trap -- pass object to block and return result
You're looking for `#instance_eval`:
```ruby
'foo'.instance_eval { |obj| obj.size } # => 3
```
0x0dea (D.E. Akers)
08:50 PM Feature #11717 (Closed): Object#trap -- pass object to block and return result
`Object#trap` can be thought as useful counterpart for `Object#tap`: like tap, it passes object to the block; **unlike** tap, it returns results of the block, not object itself.
**Rationale**
`#trap` could allow to gracefully chain...
zverok (Victor Shepelev)
10:55 PM Bug #11716 (Rejected): Truncation error in Time xmlschema with fraction_digits.
It's because 1447961542.26 is actually 1447961542.2599999904632568359375.
```
% ruby -e 'p "%.1000g" % 1447961542.26'
"1447961542.2599999904632568359375"
```
If 1447961542.26 is exactly given as rational, xmlschema(2) generates ...
akr (Akira Tanaka)
08:02 PM Bug #11716 (Rejected): Truncation error in Time xmlschema with fraction_digits.
It looks like xmlschema with the fraction_digits parameter truncates the fractional second part.
Sometimes it truncates too much.
ex : 1447961542.26 with 2 fraction digits gives 1447961542.25 instead of 1447961542.26
Could be due to f...
niroyb (Nick R)
10:10 PM Revision 895b44dc (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:10 PM Revision c1a461e5 (git): * 2015-11-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:10 PM Feature #11713 (Closed): [PATCH] add .gitattributes
Applied in changeset r52674.
----------
add .gitattributes
This improves method detection for Ruby source files;
making output of "git diff" and "git log -p -W" more
readable for git users looking at our Ruby code.
git will automatica...
Anonymous
08:32 AM Feature #11713 (Closed): [PATCH] add .gitattributes
This improves method detection for Ruby source files;
making output of "git diff" and "git log -p -W" more
readable for git users looking at our Ruby code.
git will automatically notice this file and start using
it when generating ...
normalperson (Eric Wong)
10:09 PM Revision c2088414 (git): add .gitattributes
This improves method detection for Ruby source files;
making output of "git diff" and "git log -p -W" more
readable for git users looking at our Ruby code.
git will automatically notice this file and start using
it when generating diff ...
Eric Wong
04:38 PM Feature #11715 (Rejected): Tempfile.create unlinked file silently fails
/tmp のような複数のユーザが共有するディレクトリでは不確実な操作
(たとえば存在しないかもしれないファイルの削除) はしないほうがいいと思います。
ライブラリ側でファイルを消すのがエラーになって困るというのであれば、
ブロックを使わない形で Tempfile.create を呼び出してください。
そうすればファイルは消されないので、rename するなり消すなり、アプリケーション側で自由に行えます。
akr (Akira Tanaka)
02:21 PM Feature #11715 (Rejected): Tempfile.create unlinked file silently fails
ファイルを作成してデータを書き込んでから読み込んで利用するプログラムにおいて、
全て書き込み終わるまでは他のプロセスからアクセスされたくないので、
ファイルをアトミックに作成する方法として、Tempfileに一旦書き込んでからrenameする方法が使われています。
https://github.com/rails/rails/blob/7e62a65e18d1e97debfa1c6215b7541157489115/activesupport/lib/acti...
ksss (Yuki Kurihara)
01:49 PM Revision 33b83297 (git): * ext/socket/ancdata.c: Check buffer full and ignore MSG_TRUNC flag.
buffer fullness is more robust to detect the message is too big for
the buffer.
AIX 7.1 recvmsg doesn't set MSG_TRUNC for rflags when MSG_PEEK is
given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52673 b2dd03c8-39d4-4d8f-...
akr (Akira Tanaka)
01:47 PM Bug #11692: [PATCH] Re-enable GC if stack overflow was caught from signal handler
Unfortunately, it is known problem (2nd time machine stack overflow we can not capture correctly).
* 1st machine stack overflow
* SEGV
* check machine stack overflow
* raise an error from signal handler (*1) by longjmp.
* 2n...
ko1 (Koichi Sasada)
08:55 AM Bug #11692: [PATCH] Re-enable GC if stack overflow was caught from signal handler
Tried with ruby head, this solves the GC problems now, but it doesn't solve the other problem that is visible if you run my example -
https://gist.github.com/ebeigarts/44648eb7b2773e102335
~~In ruby 2.2 it looks like if a stack overf...
ebeigarts (Edgars Beigarts)
06:55 AM Bug #11692: [PATCH] Re-enable GC if stack overflow was caught from signal handler
Thank you for your great survey!
ko1 (Koichi Sasada)
06:54 AM Bug #11692 (Closed): [PATCH] Re-enable GC if stack overflow was caught from signal handler
Applied in changeset r52668.
----------
* signal.c: should also clear ruby_disable_gc.
[Bug #11692]
ko1 (Koichi Sasada)
01:39 PM Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
This is **always** reproducible on centos 5.x latest, running XEN kernel domU. No issues on regular centos 5.x (KVM or not).
Exact same stack trace.
Anybody care to fix this?
yuri (Y A)
01:32 PM Bug #11593 (Feedback): Is it possible that ObjectSpace.dump_all catch dead objects?
Sorry, last comment was my mistake.
ObjectSpace.dump_all() can output garbage (but not collected yet) objects.
This is current implementation.
```C
/* dump all objects */
rb_objspace_each_objects(heap_i, &dc);
```
T...
ko1 (Koichi Sasada)
08:16 AM Bug #11593: Is it possible that ObjectSpace.dump_all catch dead objects?
After running this example (dead_thread.rb) you can grep by printed address of thread and find out that it doesn't have parent gazay (Alex Gaziev)
06:40 AM Bug #11593: Is it possible that ObjectSpace.dump_all catch dead objects?
It can be a bug of object traversing API. It is not well tested.
Do you have any script I can try?
@tmm1 do you have any idea?
Thanks,
Koichi
ko1 (Koichi Sasada)
01:00 PM Bug #10817 (Feedback): [PERF] vm3_gc slower
Sorry for late response.
I try this on my environment, but not so big difference.
Please reopen if you find it is still slow.
ko1 (Koichi Sasada)
12:57 PM Revision 121b6e06 (git): * gc.c (gc_start): force to invoke GC by GC.start
even if it is GC.disable'd.
* test/ruby/test_gc.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:04 PM Bug #11714 (Rejected): `include Module` affects scope of code loaded by require statements on Ruby 2.2+
This seems to be a regression with Ruby 2.2 and beyond, I can still reproduce this in Ruby trunk from today. Ruby 2.1 works just fine.
~~~
$ cat /tmp/test.rb
module MyThing
class Date < String
end
end
include MyThing
req...
terceiro (Antonio Terceiro)
11:13 AM Revision d5d997fa (git): * gc.c: trivial performance improvements.
name modified
vm1_gc_short_lived* 1.015
vm1_gc_short_with_complex_long* 1.014
vm1_gc_short_with_long* 1.000
vm1_gc_short_with_symbol* 1.016
vm1_gc_wb_ary* 1...
ko1 (Koichi Sasada)
10:45 AM Bug #11711 (Closed): Documentation for ARGV behavior is incorrect
Applied in changeset r52670.
----------
ruby.c: fix ARGV doc [ci skip]
* ruby.c (ruby_prog_init): [DOC] ARGV does not contain the name of
the executable. [ruby-core:71561] [Bug #11711]
nobu (Nobuyoshi Nakada)
10:45 AM Revision d32a48ed (git): ruby.c: fix ARGV doc [ci skip]
* ruby.c (ruby_prog_init): [DOC] ARGV does not contain the name of
the executable. [ruby-core:71561] [Bug #11711]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:16 AM Feature #11563 (Closed): Update Onigmo regular expression engine to Unicode Version 8.0.0
mistake. nobu (Nobuyoshi Nakada)
09:00 AM Feature #11563 (Assigned): Update Onigmo regular expression engine to Unicode Version 8.0.0
Please update other `enc/unicode/name2ctype.*` files too. nobu (Nobuyoshi Nakada)
08:57 AM Bug #10984: Hash#contain? to check whether hash contains other hash
It's an easy code to show the concept.
Both return `false`.
nobu (Nobuyoshi Nakada)
01:38 AM Bug #10984: Hash#contain? to check whether hash contains other hash
> Akira Tanaka wrote:
> ...
This implies that
```ruby
{a: 1, b: 2} <= {a: 1, b: 3}
{a: 1, b: 3} <= {a: 1, b: 2}
```
Is that expected? This breaks the main use-case in testing method results.
prijutme4ty (Ilya Vorontsov)
08:56 AM Revision c1da4ef8 (git): ruby.c: feature_option
* ruby.c (feature_option): unify enable_option and disable_option
not to repeat feature names twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:20 AM Bug #11636: super in instance_eval in a method defined in a module is invoked with a wrong receiver
I don't touch this behavior because Ruby 2.3 preview 1 was already released.
I try it on Ruby 2.4.
ko1 (Koichi Sasada)
07:18 AM Misc #11276: [RFC] compile.c: convert to use ccan/list
On 2015/08/21 19:45, Eric Wong wrote:
> Sorry, I am mildly against this patch now because it makes
> the binary bigger and (slightly) slower.
>
> Do you have upcoming plans/changes to compile.c which can
> benefit from this? If s...
ko1 (Koichi Sasada)
07:15 AM Misc #11276 (Closed): [RFC] compile.c: convert to use ccan/list
ko1 (Koichi Sasada)
06:54 AM Revision 95273072 (git): * signal.c: should also clear ruby_disable_gc.
[Bug #11692]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:33 AM Bug #11676 (Closed): Missing inspect for T_IMEMO during make with -DCPDEBUG=2
Applied in changeset r52667.
----------
* compile.c (iseq_compile_each): T_IMEMO/iseq objects should be
wrap with ISeq wrappers. [Bug #11676]
ko1 (Koichi Sasada)
06:33 AM Revision 7ae65d01 (git): * compile.c (iseq_compile_each): T_IMEMO/iseq objects should be
wrap with ISeq wrappers. [Bug #11676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:16 AM Revision 5f671527 (git): * lib/rubygems: Update to RubyGems 2.5.0+ HEAD(c6b4946).
this version includes #1114, #1314, #1322, #1375, #1383, #1387
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:58 AM Revision 9c065a4b (git): ruby.c: set compile options at once
* ruby.c (process_options): set instruction compilation options at
once, and set disabled options to false explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:16 AM Revision 2e865ba8 (git): * win32/win32.c (finish_overlapped_socket): return value of this
function should be only 0 or SOCKET_ERROR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:12 AM Revision 3e867209 (git): compile.c: tailcall before specialize
* compile.c (iseq_tailcall_optimize): apply tail call optimization
before conversion to specialized instructions. when looking
back from `leave` instruction, `send` instructions have been
translated already.
git-svn-id: svn+ssh:/...
nobu (Nobuyoshi Nakada)
04:59 AM Revision 01a54cf4 (git): * win32/win32.c (finish_overlapped_socket): ignore EMSGSIZE when input,
because POSIX platforms just do so. fixes test errors revealed by
r52647.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:15 AM Bug #11481: Segmentation fault when thread is killed during `require`.
Backport r51445 into `ruby_2_2` branch at r52661 to suppress warning in CI. nagachika (Tomoyuki Chikanaga)
01:15 AM Bug #11404: Segfault when 'throw' occurs while loading a Ruby source file [PATCH]
Backport r51445 into `ruby_2_2` branch at r52661 to suppress warning in CI. nagachika (Tomoyuki Chikanaga)
01:14 AM Revision 74eb4cab (git): merge revision(s) 51445: [Backport #11404] [Backport #11481]
envutil.rb: -w for assert_separately
* test/lib/envutil.rb (assert_separately): always add -w option
for warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)

11/18/2015

11:33 PM Revision 8a3423d3 (git): gc.c: use BUILTIN_TYPE
* gc.c (rb_raw_obj_info): BUILTIN_TYPE works fro non-special_const
objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:26 PM Revision 3dcd9270 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:47 PM Misc #11712 (Closed): [PATCH] ext/openssl/ossl_ssl.c: nodoc for private methods
Private methods are implementation details which may change in
the future. Avoid cluttering our API documentation with them or
possibly encouraging their use.
[ruby-core:71540]
I'll commit in a day or two and make changes to sys*_...
normalperson (Eric Wong)
07:28 PM Feature #11710: [PATCH] Replace Set#merge with Set#merge! and make Set#merge non-mutating.
(updating patch with a better change to the | method) tiegz (Tieg Zaharia)
05:16 PM Feature #11710 (Assigned): [PATCH] Replace Set#merge with Set#merge! and make Set#merge non-mutating.
The Set#merge method currently mutates its caller. I propose changing its behavior to non-mutating, and replace its current behavior with a mutating Set#merge! method.
For example, the current behavior:
```
> s = Set.new [1,2,3] ...
tiegz (Tieg Zaharia)
07:13 PM Feature #11690: Update Hash during multiple assignment
If we wanted to avoid chomping the equals sign on methods that have the equals already we'd have to write in a check for that. But I'm not sure that would be as performant.
~~~ruby
class Applicable
def initialize(obj)
@targe...
danielpclark (Daniel P. Clark)
06:41 PM Feature #11690: Update Hash during multiple assignment
I was thinking of what word(s) may best clarify this and not conflict with other potential uses. One issue about the word `assigned` is it seems like `self = ` or `replace`. I at first was thinking of `to_be` ... but that's sounds more... danielpclark (Daniel P. Clark)
05:53 PM Revision 3006e5ea (git): * ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
only when vmaxdatlen is nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:31 PM Bug #11711 (Closed): Documentation for ARGV behavior is incorrect
http://ruby-doc.org/core-2.2.3/Object.html#ARGV
The above documentation states that ARGV[0] will contain the name of the Ruby program. While this is the behavior of ARGV in other places (C, Python, etc), it is *not* the behavior in Ru...
trevrosen (Trevor Rosen)
05:22 PM Bug #11709 (Closed): TestSocket#test_udp_recvmsg_truncation failure on Solaris 10
Applied in changeset r52657.
----------
* test/socket/test_socket.rb (test_udp_recvmsg_truncation): rflags is
nil on Solaris 10 which have no HAVE_STRUCT_MSGHDR_MSG_CONTROL.
Reported by Naohisa Goto. [ruby-core:71557] [Bug #11709]
akr (Akira Tanaka)
04:07 PM Bug #11709 (Closed): TestSocket#test_udp_recvmsg_truncation failure on Solaris 10
On Solaris 10, the following failure occurs.
(observed in r52648)
~~~
1) Failure:
TestSocket#test_udp_recvmsg_truncation [/XXXXX-52648/test/socket/test_socket.rb:709]:
<32> expected but was
<false>.
~~~
The test code ignore...
ngoto (Naohisa Goto)
05:22 PM Revision 1ca59723 (git): * test/socket/test_socket.rb (test_udp_recvmsg_truncation): rflags is
nil on Solaris 10 which have no HAVE_STRUCT_MSGHDR_MSG_CONTROL.
Reported by Naohisa Goto. [ruby-core:71557] [Bug #11709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
04:48 PM Revision f74c229c (git): * configure.in: add -static-libgcc for mingw automatically if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:15 PM Bug #11481: Segmentation fault when thread is killed during `require`.
r51292, r51439 and r51440 were backported into `ruby_2_2` branch at r52655. nagachika (Tomoyuki Chikanaga)
04:15 PM Bug #11404: Segfault when 'throw' occurs while loading a Ruby source file [PATCH]
r51292, r51439 and r51440 were backported into `ruby_2_2` branch at r52655.
r51292 seems required to r51440 works well.
nagachika (Tomoyuki Chikanaga)
04:13 PM Revision f79eaf19 (git): merge revision(s) 51292,51439,51440: [Backport #11404] [Backport #11481]
* load.c (rb_load_internal0): do not raise any exceptions but
return the result tag state.
* load.c (rb_load_protect): reduce nested EXEC_TAGs.
* load.c (rb_load_internal0): extra check before returning
...
nagachika (Tomoyuki Chikanaga)
03:55 PM Revision 3c075955 (git): * 2015-11-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:55 PM Revision adbf8723 (git): * ext/extmk.rb (--extflags): new option to pass EXTLDFLAGS to children,
expecially exts.mk.
* common.mk (EXTMK_ARGS): use above option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:50 PM Bug #11486: euc-jpな文字列に対してgsubするとSEGVします
r52016, r52017, r52019, r52020 and r52021 were backported into `ruby_2_2` branch at r52652. nagachika (Tomoyuki Chikanaga)
03:49 PM Revision 478cdf49 (git): merge revision(s) 52016,52017,52019,52020,52021: [Backport #10735]
* enc/euc_jp.c (mbc_case_fold): check given string is valid or not,
and if invalid, return 1. [Bug #11486]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:38 PM Bug #10735: Memory leak in openssl ossl_pkey_sign
Backported into `ruby_2_2` branch at r52651. nagachika (Tomoyuki Chikanaga)
11:39 AM Bug #10735: Memory leak in openssl ossl_pkey_sign
ruby_2_1 r52643 merged revision(s) 52556,52557. usa (Usaku NAKAMURA)
03:37 PM Revision bd210ff1 (git): merge revision(s) 52556,52557: [Backport #10735]
* ext/openssl/ossl_pkey.c: Merge ruby/openssl@b9ea8ef [Bug #10735]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:12 PM Bug #11637: SEGV
Backported into `ruby_2_2` branch at r52650. nagachika (Tomoyuki Chikanaga)
03:11 PM Bug #11610: Segfault when assigning to ARGV
Backported into `ruby_2_2` branch at r52650. nagachika (Tomoyuki Chikanaga)
03:10 PM Revision 0181fbc4 (git): merge revision(s) 52211: [Backport #11610] [Backport #11637]
* io.c (argf_next_argv): check ARGV element type, and try
conversion if necessary. [ruby-core:71140] [Bug #11610]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:39 PM Bug #11376: Stop using SSLv3 methods
Backported into `ruby_2_2` branch at r52649. nagachika (Tomoyuki Chikanaga)
11:34 AM Bug #11376: Stop using SSLv3 methods
ruby_2_1 r52642 merged revision(s) 51722,51724. usa (Usaku NAKAMURA)
02:38 PM Revision 557ba3fe (git): merge revision(s) 51722,51724: [Backport #11376]
* ext/openssl/ossl_ssl.c (static const struct): Only add SSLv3 support
if the SSL library supports it. Thanks Kurt Roeckx <kurt@roeckx.be>
[Bug #11376]
* ext/openssl/extconf.rb: check for SSLv3 support in th...
nagachika (Tomoyuki Chikanaga)
02:02 PM Feature #11708 (Closed): Specify a way to override Struct-subclass constructor
It's common to create simple data-object with some constraints. One can either implement custom class or use `Struct`. Struct is generally simpler and helps to avoid some mistakes as non-defined `#hash` and `#eql?`. But at the same time ... prijutme4ty (Ilya Vorontsov)
02:00 PM Bug #11672 (Closed): refinement
Applied in changeset r52648.
----------
* vm_method.c (rb_class_clear_method_cache): should clear all
RCLASS_CALLABLE_M_TBLs of all sub-classes (T_ICLASS).
RCLASS_CALLABLE_M_TBL() caches complemented method entries.
It should be ...
ko1 (Koichi Sasada)
01:59 PM Revision fa3affad (git): * vm_method.c (rb_class_clear_method_cache): should clear all
RCLASS_CALLABLE_M_TBLs of all sub-classes (T_ICLASS).
RCLASS_CALLABLE_M_TBL() caches complemented method entries.
It should be cleared when the modules are cleared.
On previous version clears only for direct children.
It is enou...
ko1 (Koichi Sasada)
01:19 PM Revision 1f2b9a46 (git): add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:10 PM Revision 03efb7de (git): * vm_method.c (prepare_callable_method_entry): use
RCLASS_CALLABLE_M_TBL() instead of accessing a filed directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
11:57 AM Bug #10906: Problem building on Solaris 10 - symbol rb_infinity not found
ruby_2_1 r52645 merged revision(s) 50104,50105. usa (Usaku NAKAMURA)
11:57 AM Revision 18d73ae8 (git): merge revision(s) 50104,50105: [Backport #10906]
* ext/date/extconf.rb: try_cflags("-std=iso9899:1999") [Bug #10906]
ruby itself (including numeric.c) is built with strict compile
options including -std=iso9899:1999, but ext/date is not.
By the way -std=is...
U.Nakamura
11:48 AM Bug #11366: Don't force SSLv3 in test, as it is insecure and may not be supported
ruby_2_1 r52638 merged revision(s) 51569,51649. usa (Usaku NAKAMURA)
11:48 AM Bug #11693: Backport r50985. (don't close others for rubyspec)
ruby_2_1 r52644 merged revision(s) 50985. usa (Usaku NAKAMURA)
11:48 AM Revision 5d428a7e (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_1@52644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:39 AM Revision dacb9169 (git): merge revision(s) 52556,52557: [Backport #10735]
* ext/openssl/ossl_pkey.c: Merge ruby/openssl@b9ea8ef [Bug #10735]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:34 AM Revision 936a2775 (git): merge revision(s) 51722,51724: [Backport #11376]
* ext/openssl/ossl_ssl.c (static const struct): Only add SSLv3 support
if the SSL library supports it. Thanks Kurt Roeckx <kurt@roeckx.be>
[Bug #11376]
* ext/openssl/extconf.rb: check for SSLv3 support in th...
U.Nakamura
11:26 AM Bug #11603: Count trace_running for internal event
ruby_2_1 r52641 merged revision(s) 52476,52477. usa (Usaku NAKAMURA)
11:26 AM Revision 3233891d (git): merge revision(s) 52476,52477: [Backport #11603]
* vm_trace.c (rb_threadptr_exec_event_hooks_orig):
maintain trace_running counter on internal events.
This patch is made by Takashi Kokubun <takashikkbn@gmail.com>.
[Bug #11603] https://github.com/ruby/ruby/...
U.Nakamura
11:24 AM Bug #10449: [TracePoint API] Duplicated line events when using parenthesis
ruby_2_1 r52640 merged revision(s) 48609. usa (Usaku NAKAMURA)
11:24 AM Revision 9f8d00ff (git): merge revision(s) 48609: [Backport #10449] [Backport #11651]
* compile.c (iseq_compile_each): remove duplicated line event.
[Bug #10449]
* test/ruby/test_settracefunc.rb: add and fix tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52640 b2dd03c8-39d4-4d8f-...
U.Nakamura
11:17 AM Bug #11492: TracePoint API report extra return for defined method
ruby_2_1 r52639 merged revision(s) 51713. usa (Usaku NAKAMURA)
11:17 AM Revision bc090868 (git): merge revision(s) 51713: [Backport #11492] [Backport #11646]
* vm.c (hook_before_rewind): prevent kicking :return event while
finishing vm_exec func because invoke_block_from_c() kick a :return
event for bmethods.
[Bug #11492]
* test/ruby/test_settracefunc.rb...
U.Nakamura
11:13 AM Bug #11367: Use OP_NO_TICKET when testing SSL session cache callbacks
ruby_2_1 r52638 merged revision(s) 51569,51649. usa (Usaku NAKAMURA)
11:13 AM Revision 69e671aa (git): merge revision(s) 51569,51649: [Backport #11367]
test_ssl_session.rb: check SSL method
* test/openssl/test_ssl_session.rb (test_ctx_server_session_cb):
ensure the method to be tested is supported.
* test/openssl/test_ssl_session.rb: Fix tests so that they take in to
...
U.Nakamura
11:08 AM Bug #10046: OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
ruby_2_1 r52637 merged revision(s) 49099. usa (Usaku NAKAMURA)
11:08 AM Revision 7e9ce9f5 (git): merge revision(s) 49099: [Backport #10046]
* test/openssl/test_ssl_session.rb (OpenSSL#test_ctx_client_session_cb):
fix test failure with OpenSSL disabled SSLv3 protocol.
[ruby-core:63772] [Bug #10046]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rub...
U.Nakamura
08:46 AM Feature #11633: NilLogger class
```
logger = Logger.new(nil)
logger.fatal { 'foo' } # no print
```
Is this not enough?
sonots (Naotoshi Seo)
02:56 AM Feature #11633 (Assigned): NilLogger class
naruse (Yui NARUSE)
08:15 AM Revision 3f7c0e9f (git): * method.h: introduce the folliwing field and macros.
* rb_method_definition_t::complemented_count to count shared method
entries because of complemented method entries and separate from
alias_count.
Shared `def' only by complemented method entries should not prevent
method...
ko1 (Koichi Sasada)
08:08 AM Revision e2f0af57 (git): * gc.c (rb_raw_obj_info): fix trivial issues.
* support SPECIAL_CONSTs.
* fix IMEMO/ment outputs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:51 AM Bug #11707 (Rejected): (a * b) / b yields incorrect result when a is BigDecimal & b is Rational with large terms
When performing arithmetic on BigDecimals and Rationals, (a * b) / b sometimes doesn't yield a result that is equal to a.
Here is an example program:
~~~
require 'bigdecimal'
a = BigDecimal.new('5.0')
b = Rational(889644323052...
yipdw (David Yip)
07:09 AM Revision 40b0dd1c (git): comment for r52633 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:04 AM Bug #11706 (Closed): Clean up files etc/unicode/name2ctype.{h.blt,kwd,src}
The files name2ctype.{h.blt,kwd,src} in etc/unicode are intermediate products that are not needed in the repository, and haven't been committed consistently. I propose to remove them.
[I'm not sure this is a bug or a feature, but it d...
duerst (Martin Dürst)
02:32 AM Revision 4a23f069 (git): compile.c: optimize useless branches
* compile.c (iseq_peephole_optimize): eliminate always/never
branches after a literal object. this sequence typically
appears by defined? operator for a method call on a local
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
nobu (Nobuyoshi Nakada)
02:08 AM Feature #11339: [PATCH] io.c: avoid kwarg parsing in C API
Eric Wong <normalperson@yhbt.net> wrote:
> Will followup with other IO/Socket/SSL methods

Done for normal socket, asked about SSL in [ruby-core:71538]

I might ignore optimizing ARGF.read_nonblock(... exception: false)
for now si...
normalperson (Eric Wong)
02:08 AM Revision e4fc85df (git): compile.c: check type before checking insn_id
* compile.c (iseq_peephole_optimize): check element type before
checking insn_id which is valid only for INSN elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:52 AM Bug #11692: [PATCH] Re-enable GC if stack overflow was caught from signal handler
Edgars Beigarts wrote:
> Do I need to open a new issue for this?
I think it is the same problem. I wrote small explanation what is happening: https://gist.github.com/gazay/54da61919b85eb2e0d42
gazay (Alex Gaziev)
01:37 AM Revision d8e19392 (git): * ext/socket/ancdata.c (bsock_recvmsg_internal): stretch the buffer size
when EMSGSIZE occurs on non HAVE_STRUCT_MSGHDR_MSG_CONTROL platforms
(such as, Windows). fixes a test error revealed by r52625.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:18 AM Revision ca5f5871 (git): socket: fix typo for default size
* ext/socket/ancdata.c (bsock_recvmsg_internal): use 4096 as
default size to match pre-r52610, which also maps to a common
page size.
Oops; absolutely no idea why I made this typo...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
Eric Wong
01:08 AM Revision 46425732 (git): * doc/syntax/refinements.rdoc: update documentation to reflect
recent changes.
[ci skip] [ruby-core:71466] [Misc #11681] Patch by James Adam
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:59 AM Bug #10984: Hash#contain? to check whether hash contains other hash
I've missed absence of `<=>` first. Yes, you are right. And it can slightly reduce damage.
But anyway it doesn't resolve issues with misinterpretation of comparison negation. My qsort function is just the one problem which lie on surf...
prijutme4ty (Ilya Vorontsov)
12:55 AM Bug #11702: errors in tests of logger on Windows
Thanks, I will try with vs2013, but anyway committed :) sonots (Naotoshi Seo)
12:53 AM Bug #11702 (Closed): errors in tests of logger on Windows
Applied in changeset r52628.
----------
* test/logger/test_logdevice.rb: Fix tests of logger to make it work on
windows (windows can not remove opened file) [Bug #11702]
sonots (Naotoshi Seo)
12:53 AM Revision 98763770 (git): * test/logger/test_logdevice.rb: Fix tests of logger to make it work on
windows (windows can not remove opened file) [Bug #11702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sonots (Naotoshi Seo)
12:26 AM Revision 3b91ff89 (git): configure.in: fix help message
* configure.in (ruby-pc): fix help message for --with-ruby-pc
option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:25 AM Revision 54850e46 (git): configure.in: additional flags
* configure.in: add additional flag variable descriptions, which
are appended to common flags, e.g., CFLAGS, CPPFLAGS, etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

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)
 

Also available in: Atom