Project

General

Profile

Activity

From 01/08/2014 to 01/14/2014

01/14/2014

10:46 PM Bug #5985: miniruby skews "make benchmark" results
Btw, I'm still having this problem and it's very noticeable with:
make benchmark-each ITEM=bm_so_reverse_complement

This is running the same COMPARE_RUBY as what was just installed via
"make install" Strangely, miniruby is th...
normalperson (Eric Wong)
09:50 PM Revision 57151af3 (git): * 2014-01-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:49 PM Revision 0f247124 (git): suppress warning: implicit conversion loses integer precision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:17 PM Bug #9412 (Closed): bigdecimal 1.2.4 fail to compile on windows
on windows 7 x 64 with ruby 1.9.3p484 and devkit DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
the latest version of gem (1.2.4) don't compile
version 1.2.3 is ok
result is:
````
ruby 1.9.3p484 (2013-11-22) [i386-mingw32]
Upda...
net1957 (Serge Yneuk)
03:29 PM Bug #9409: Cygwin で "filesystem" の encoding が正しくないケース
Nayuta Taga wrote:
> Windows ネイティブ環境ならばそうかもしれませんが、
> ...
Cygwinだろうがなんだろうが、Windowsにおいて、ファイルシステムの保持する
エンコーディングをRubyが勝手に違うものとみなすことはできません。
usa (Usaku NAKAMURA)
10:10 AM Bug #9409: Cygwin で "filesystem" の encoding が正しくないケース
Nobuyoshi Nakada wrote:
> filesystem encodingはシステムの設定を反映するので、意図通りの動作ですね。
Windows ネイティブ環境ならばそうかもしれませんが、
Cygwin 環境ですので LANG に設定されているエンコーディングに従うべきではないのでしょうか?
少なくとも LANG=ja_JP.UTF-8 の状態で
`Dir.open('.').each{|item| p item.encoding }`...
ganaware (Nayuta Taga)
09:30 AM Bug #9409: Cygwin で "filesystem" の encoding が正しくないケース
filesystem encodingはシステムの設定を反映するので、意図通りの動作ですね。 nobu (Nobuyoshi Nakada)
08:45 AM Bug #9409: Cygwin で "filesystem" の encoding が正しくないケース
チケット #9409 が Nayuta Taga によって報告されました。

----------------------------------------
Bug #9409: Cygwin で "filesystem" の encoding が正しくないケース
https://bugs.ruby-lang.org/issues/9409

* 作成者: Nayuta Taga
* ステータス: Open
* 優先度: Normal
* 担当者:...
ganaware (Nayuta Taga)
08:43 AM Bug #9409 (Assigned): Cygwin で "filesystem" の encoding が正しくないケース
Cygwin で環境変数 LANG に設定されているエンコーディングと
システムのコードページが異なる場合
"filesystem" の encoding が正しく設定されないようです。
例えば、
* Windows 7 (日本語)
* Cygwin 環境 (CYGWIN_NT-6.1-WOW64 ****** 1.7.27(0.271/5/3) 2013-12-09 11:57 i686 Cygwin)
* 環境変数 LANG は ja_JP.UT...
ganaware (Nayuta Taga)
01:36 PM Bug #9411 (Feedback): Rails server not started with Ruby(ruby 2.0.0p353 (2013-11-22) [x64-mingw32] with Rails 4.0.2 and MySQL Server 5.6)
Please provide details on how you build or compiled mysql2 gem for 64bits Ruby.
Asking this because MySQL Connector/C code for 64bits provides a linking library that is not compatible with x64-mingw32 and require extra steps.
luislavena (Luis Lavena)
12:03 PM Bug #9411 (Third Party's Issue): Rails server not started with Ruby(ruby 2.0.0p353 (2013-11-22) [x64-mingw32] with Rails 4.0.2 and MySQL Server 5.6)
HI ALL,
I am facing some problem when installing rails app with mysql in windows7 64 bit machine. Can any one check the issue.
O.S- Windows 7 (64 bit)
Ruby - ruby 2.0.0p353 (2013-11-22) [x64-mingw32]
Rails - Rails 4.0.2
Mysql - MyS...
bideshstr (bidesh mondal)
12:14 PM Bug #9342 (Closed): [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3
Applied in changeset r44595.
----------
* ext/thread/thread.c (rb_szqueue_clear): notify SZQUEUE_WAITERS
on SizedQueue#clear. [ruby-core:59462] [Bug #9342]
* test/thread/test_queue.rb: add test. the patch is from
Justin Collins.
Anonymous
12:14 PM Revision 79e69ec7 (git): * ext/thread/thread.c (rb_szqueue_clear): notify SZQUEUE_WAITERS
on SizedQueue#clear. [ruby-core:59462] [Bug #9342]
* test/thread/test_queue.rb: add test. the patch is from
Justin Collins.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
11:56 AM Bug #8940: printing UTF-32 crashs ruby
By Mistake bideshstr (bidesh mondal)
11:55 AM Bug #8940: printing UTF-32 crashs ruby
By Mistake bideshstr (bidesh mondal)
10:36 AM Bug #8940: printing UTF-32 crashs ruby
Issue #8940 has been updated by Hans Mackowiak.


the bug is still in 2.2trunk with UTF-16 & #inspect


s="\xFF\xFE\"\x00i\x00d\x00\"\x00|\x00\"\x00s\x00y\x00s\x00t\x00e\x00m\x00_\x00c\x00o\x00d\x00e\x00\"\x00|\x00\"\x00a\x00s\x0...
Hanmac (Hans Mackowiak)
10:32 AM Bug #8940: printing UTF-32 crashs ruby
the bug is still in 2.2trunk with UTF-16 & #inspect

s="\xFF\xFE\"\x00i\x00d\x00\"\x00|\x00\"\x00s\x00y\x00s\x00t\x00e\x00m\x00_\x00c\x00o\x00d\x00e\x00\"\x00|\x00\"\x00a\x00s\x00s\x00e\x00m\x00b\x00l\x00y\x00_\x00c\x00o\x00d\x00e\x...
Hanmac (Hans Mackowiak)
10:07 AM Bug #9384: Segfault in ruby 2.1.0p0
Issue #9384 has been updated by Aman Gupta.


The changelog for therubyracer says:

0.12.0 2013/08/20
* enable native (and functional) weakref implementation for MRI > 2.0

It seems likely this fixed your issue.

-------------...
tmm1 (Aman Karmani)
09:57 AM Bug #9384: Segfault in ruby 2.1.0p0
The changelog for therubyracer says:
0.12.0 2013/08/20
* enable native (and functional) weakref implementation for MRI > 2.0
It seems likely this fixed your issue.
tmm1 (Aman Karmani)
09:34 AM Bug #9384: Segfault in ruby 2.1.0p0
So the issue is closed? Is it really a third party issue that causes the segfault? cbliard (Christophe Bliard)
06:58 AM Revision 0a8988c1 (git): bigdecimal.c: backword compatibility as gem
* ext/bigdecimal/bigdecimal.c (CLASS_NAME): macro to wrap
depending on PRIsVALUE for 1.9. [Backport #9406]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:51 AM Revision 88383b05 (git): bigdecimal.c: backword compatibility as gem
* ext/bigdecimal/bigdecimal.c (DECIMAL_SIZE_OF_BITS): fallback
definition for 2.1 or older. [ruby-core:59750] [Backport #9406]
* ext/bigdecimal/bigdecimal.c (raise_with_class): fallback definition
for 1.9.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
05:42 AM Misc #9219: Policy Announcement for All Versions
Issue #9219 has been updated by Yui NARUSE.


About 2.1 and 2.0.0 is discussing now.

----------------------------------------
misc #9219: Policy Announcement for All Versions
https://bugs.ruby-lang.org/issues/9219#change-44274
...
naruse (Yui NARUSE)
05:38 AM Misc #9219: Policy Announcement for All Versions
About 2.1 and 2.0.0 is discussing now. naruse (Yui NARUSE)
04:35 AM Bug #9407: bigdecimal 1.2.4 install fail because missing ruby/util.h macro
With no patch to util.h, bigdecimal 1.2.4 installs ok on 64bit linux in both 2.0.0 and 2.1.1
jon@ubusvr64:~$ uru gem up bigdecimal
ruby 2.0.0p384 (2014-01-12 revision 44576) [x86_64-linux]
Updating installed gems
...
jonforums (Jon Forums)
03:46 AM Bug #9407 (Closed): bigdecimal 1.2.4 install fail because missing ruby/util.h macro
2.1.1 ruby/util.h is missing this trunk macro
http://paste.ubuntu.com/6748376/
which causes this failure
http://paste.ubuntu.com/6747904/
Manually patching util.h with the trunk macro fixes gem install fail
http://paste.ub...
jonforums (Jon Forums)
04:32 AM Bug #9406: bigdecimal 1.2.4 install fail because missing ruby/util.h macro
With no patch to util.h, bigdecimal 1.2.4 installs ok on 64bit linux in both 2.0.0 and 2.1.1
jon@ubusvr64:~$ uru gem up bigdecimal
ruby 2.0.0p384 (2014-01-12 revision 44576) [x86_64-linux]
Updating installed gems
...
jonforums (Jon Forums)
03:42 AM Bug #9406 (Closed): bigdecimal 1.2.4 install fail because missing ruby/util.h macro
2.0.0 ruby/util.h is missing this trunk macro
http://paste.ubuntu.com/6748376/
which causes this failure
http://paste.ubuntu.com/6747904/
Manually patching util.h with the trunk macro fixes gem install fail
http://paste.ub...
jonforums (Jon Forums)
03:23 AM Revision 43d41486 (git): strscan.c: fix typo
* ext/strscan/strscan.c (inspect1): fix typo, rb_str_cat() instead
of rb_str_cat2().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:48 AM Revision 747e3c73 (git): strscan.c: make string directly
* ext/strscan/strscan.c (inspect1): extract intermediate string from
the buffer directly, like as inspect2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:32 AM Revision ab4e0ab4 (git): * vm_exec.c (cfp): Fixes a SEGV issue in r44554.
r11 can be broken by subroutine and sometimes causes SEGV at
runtime. Use r13 instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
01:16 AM Feature #9390 (Assigned): Support for the ALPN TLS extension
drbrain (Eric Hodel)

01/13/2014

11:04 PM Feature #9405 (Rejected): Implicitly convert blocks to procs / remove blocks completely?
It's the idea once implemented and abandoned. nobu (Nobuyoshi Nakada)
11:58 AM Feature #9405 (Rejected): Implicitly convert blocks to procs / remove blocks completely?
While i am think of this, here is one more proposal.
If a block appears in a place where no block can appear, convert it automatically to a proc. For example:
p = do |n; s| s = gets; n.times do puts s end end
t = {|| Time...
alexeymuranov (Alexey Muranov)
07:08 PM Misc #9006: build and host binary rubies
rvm-bin is definitely the most immediately viable solution. In the future, you should consider using something like Gitian for reproducable builds. http://gitian.org/ postmodern (Hal Brodigan)
05:30 PM Revision 503e3434 (git): * 2014-01-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:29 PM Revision e7fe5648 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_divide): Add an additional
digit for the quotient to be compatible with bigdecimal 1.2.1 and
the former. [ruby-core:59365] [#9316] [#9305]
* test/bigdecimal/test_bigdecimal.rb: tests for the above change.
* ext/bigdecimal/bigdecimal.gemspec: bigdecimal versio...
Kenta Murata
11:19 AM Bug #9384 (Third Party's Issue): Segfault in ruby 2.1.0p0
nobu (Nobuyoshi Nakada)
10:38 AM Bug #9384: Segfault in ruby 2.1.0p0
Aman Gupta wrote:
> Maybe it's related to the ref gem and weak_reference implementation? Can you try without it?
No I can't because ref is required by therubyracer gem, which is needed for rails assets precompilation. So I tried upda...
cbliard (Christophe Bliard)
02:11 AM Bug #9384: Segfault in ruby 2.1.0p0
Sure, but `ref` is pure ruby. nobu (Nobuyoshi Nakada)
02:07 AM Bug #9384: Segfault in ruby 2.1.0p0
Maybe it's related to the ref gem and weak_reference implementation? Can you try without it? tmm1 (Aman Karmani)
10:59 AM Bug #595: Fiber ignores ensure clause
What about this ticket?
Guaranteed `ensure` inside of Fiber and Fiber.raise (as complement for Thread.raise) will be usefull for full coroutine based environment ala python's gevent.
funny_falcon (Yura Sokolov)
09:14 AM Feature #9401: Yet another syntax for literal anonymous functions (lambdas)
Nobuyoshi Nakada wrote:
> What about `(^x) {x*x}`?
I think, my initial attempt was closer to lambda calculus notation `(λx(x*x))` or `(λx.x*x)`, to its modern variant `x ⟼ x*x`, to Haskell `\x -> x*x`, to Ruby block syntax `{|x| x*x ...
alexeymuranov (Alexey Muranov)
06:51 AM Revision b2e85cbd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:57 AM Revision 94f35c9b (git): * lib/xmlrpc/client.rb: [DOC] Remove note about SSL package on RAA
Since RAA has been deprecated, and the SSL package has been replaced
with net/https this statement is entirely false and should be
deleted. [Bug #9152]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44586 b2dd03c8-39d4-4d8f-98ff...
zzak (zzak _)
05:54 AM Misc #9394 (Closed): Remove dead link to raa
Applied in changeset r44585.
----------
* lib/net/smtp.rb: [DOC] Remove dead link to RAA by Giorgos Tsiftsis
Fixes the following bugs: [Bug #9152] [Bug #9268] [Bug #9394]
* lib/open-uri.rb: ditto
zzak (zzak _)
05:54 AM Bug #9268 (Closed): dead link to raa
Applied in changeset r44585.
----------
* lib/net/smtp.rb: [DOC] Remove dead link to RAA by Giorgos Tsiftsis
Fixes the following bugs: [Bug #9152] [Bug #9268] [Bug #9394]
* lib/open-uri.rb: ditto
zzak (zzak _)
05:54 AM Bug #9152 (Closed): Relic documentation in lib/xmlrpc/client.rb
Applied in changeset r44585.
----------
* lib/net/smtp.rb: [DOC] Remove dead link to RAA by Giorgos Tsiftsis
Fixes the following bugs: [Bug #9152] [Bug #9268] [Bug #9394]
* lib/open-uri.rb: ditto
zzak (zzak _)
05:49 AM Revision 7433ce3e (git): * lib/net/smtp.rb: [DOC] Remove dead link to RAA by Giorgos Tsiftsis
Fixes the following bugs: [Bug #9152] [Bug #9268] [Bug #9394]
* lib/open-uri.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:36 AM Bug #9243 (Closed): DOC fix example key exchane using DH
Applied in changeset r44584.
----------
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szücs [Bug #9243]
zzak (zzak _)
05:27 AM Revision 3f039c96 (git): * ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szücs [Bug #9243]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:40 AM Bug #9391 (Closed): Segfault after upgrade from ruby 2.0 to 2.1
nobu (Nobuyoshi Nakada)
04:22 AM Misc #9219: Policy Announcement for All Versions
This is actually pretty much a duplicate of #9215, the only difference is we still don't have an anticipated maintenance window for 2.0.0
Perhaps nagachika-san could comment on this, and we could formally introduce a tentative mainten...
zzak (zzak _)
04:20 AM Misc #9215 (Feedback): Maintenance Policy for Future Releases (2.1.0 & beyond)
I will give some time for feedback before closing this and opening a Pull Request on the upstream www.ruby-lang.org repository. zzak (zzak _)
04:14 AM Misc #9215: Maintenance Policy for Future Releases (2.1.0 & beyond)
I've written a draft of the [future maintenance policy](https://github.com/zzak/www.ruby-lang.org/blob/future_release_policy/en/news/_posts/2014-01-13-approved-maintenance-policy.md).
Please check it.
zzak (zzak _)
03:31 AM Bug #9302 (Open): [PATCH] thread: fix deadlock/freeze on SizedQueue#push
Anonymous
03:25 AM Bug #9302 (Closed): [PATCH] thread: fix deadlock/freeze on SizedQueue#push
Applied in changeset r44583.
----------
* ext/thread/thread.c (rb_szqueue_push): check GET_SZQUEUE_WAITERS
instead of GET_QUEUE_WAITERS to prevent deadlock. Patch by Eric Wong.
[Bug #9302] [ruby-core:59324]
* test/thread/test_queue...
Anonymous
03:30 AM Bug #9396 (Rejected): SizedQueue broken in Ruby 2.1
Duplicate of #9302 Anonymous
03:18 AM Revision 64926db9 (git): * ext/thread/thread.c (rb_szqueue_push): check GET_SZQUEUE_WAITERS
instead of GET_QUEUE_WAITERS to prevent deadlock. Patch by Eric Wong.
[Bug #9302] [ruby-core:59324]
* test/thread/test_queue.rb: add test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Charlie Somerville
12:57 AM Revision 23a85687 (git): openssl/ossl.h: calculate as long
* ext/openssl/ossl.h (ossl_str_adjust): calculate as long, not
casting to int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:57 AM Revision 74947c9d (git): ext: use rb_sprintf() and rb_vsprintf() with PRIsVALUE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:57 AM Revision 5f11c410 (git): * 2014-01-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:57 AM Revision eadaa8ba (git): ext: use PRIsVALUE for rb_raise and rb_warn
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): use PRIsVALUE for
rb_raise() and rb_warn().
* ext/openssl/ossl_cipher.c (ossl_cipher_init): ditto.
* ext/racc/cparse/cparse.c (extract_user_token): ditto.
* ext/syslog/syslog.c (mSyslog_l...
nobu (Nobuyoshi Nakada)
12:57 AM Revision 7e9bd8f7 (git): ext: real class name
* ext/dl/cptr.c (rb_dlptr_inspect): use real class name, not
singleton class.
* ext/fiddle/pointer.c (rb_fiddle_ptr_inspect): ditto.
* ext/strscan/strscan.c (strscan_inspect): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
nobu (Nobuyoshi Nakada)
12:57 AM Revision 56e96b9f (git): cptr.c: unused variable
* ext/dl/cptr.c (rb_dlptr_inspect): remove no longer used variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:05 AM Bug #9397: Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
Benoit Daloze wrote:
> > Consider that ruby's syntax doesn't even allow you to call === with 0 or more than 1 argument unless you resort to hacks like send
> ...
Interesting. You learn something new everyday :).
I'd still put this ...
myronmarston (Myron Marston)

01/12/2014

11:36 PM Feature #9401: Yet another syntax for literal anonymous functions (lambdas)
What about `(^x) {x*x}`? nobu (Nobuyoshi Nakada)
10:35 PM Feature #9401: Yet another syntax for literal anonymous functions (lambdas)
I have realized that the backslash may conflict with explicit line continuation. In that case, "almost any" symbol would work to distinguish a "lambda" from a hash. For example: `{^ x => x*x }`. (I've read that initially Church wrote ... alexeymuranov (Alexey Muranov)
12:49 PM Feature #9401: Yet another syntax for literal anonymous functions (lambdas)
An anonymous "function" (not really a function) without arguments would be like this:
timer = {\=> Time.now }
---
Maybe there is no need to make it look so much like a hash, so the following looks to me like a good option ei...
alexeymuranov (Alexey Muranov)
10:44 AM Feature #9401 (Open): Yet another syntax for literal anonymous functions (lambdas)
Please do not be angry at me and just close this proposal if it does not look interesting. It comes from my aesthetic dissatisfaction with the `->(x){ ... }` literal anonymous function notation and from my amateurish interest in lambda ... alexeymuranov (Alexey Muranov)
02:23 PM Revision 75e7f2ff (git): merge revision(s) 44260: [Backport #9168]
patch inspired from r44260 on trunk. [ruby-core:58652] [Bug #9168]
* gc.c (run_finalizer): clear th->errinfo before invoke finalizer and
restore afterward.
* test/ruby/test_gc.rb (test_exception_in_finalizer): add test for
above.
...
nagachika (Tomoyuki Chikanaga)
01:31 PM Bug #9348 (Closed): --with-tcllib and --with-tklib configure options not working correctly
nagachika (Tomoyuki Chikanaga)
01:30 PM Bug #9348: --with-tcllib and --with-tklib configure options not working correctly
fixed by r44574. nagachika (Tomoyuki Chikanaga)
01:18 PM Revision e76761e7 (git): merge revision(s) 44570:
tcltklib.c: create_ip_exc format argument
* ext/tk/tcltklib.c (create_ip_exc): format argument must not be a
dynamic string, not to contain unescaped %.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@44575 b2...
nagachika (Tomoyuki Chikanaga)
01:04 PM Bug #9399 (Closed): [PATCH] iseq: avoid potential memory leak in iseq_load
fixed by r44568. nagachika (Tomoyuki Chikanaga)
01:00 PM Feature #9402 (Open): A syntax to specify the default value of a hash
I propose the following syntax to specify the default value of a hash:
h = { => 0, :a => 1, :b => 2 }
h[:a] # => 1
h[:c] # => 0
alexeymuranov (Alexey Muranov)
09:09 AM Bug #9397: Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
Myron Marston wrote:
> Why is it desirable for a built-in type to raise `ArgumentError` for `===` rather than returning false?
I guess mostly because it would be hard to debug why you never get in a specific clause of the case.
Eregon (Benoit Daloze)
09:06 AM Bug #9397: Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
> Consider that ruby's syntax doesn't even allow you to call === with 0 or more than 1 argument unless you resort to hacks like send
The syntax allows it, you just need a dot:
-> a, b { a + b }.=== 1,2
-> a, b { a + b }.===(1,2)
->...
Eregon (Benoit Daloze)
08:01 AM Bug #9397: Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
This seems odd behaviour, given that in normal usage you'd never be able to satisfy the constraint to avoid the ArgumentError, I feel this should return false like a proc would do. JonRowe (Jon Rowe)
07:27 AM Bug #9397: Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
> Why lambda?
> ...
Users can use rspec's expectations with any kind of object. We can't arbitrarily restrict it and say, "you can't use lambdas". With some new features we're adding, we're leveraging ruby's `===` protocol, and we can...
myronmarston (Myron Marston)
07:21 AM Bug #9397 (Rejected): Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
Why `lambda`?
You can use `proc` for such purpose.
nobu (Nobuyoshi Nakada)
09:04 AM Revision 738c298c (git): * ext/tk/extconf.rb: --with-tcllib and --with-tklib configure options
don't work correctly. Patch by jeremyevans0 (Jeremy Evans).
[ruby-core:59483] [Bug #9348]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagai (Hidetoshi Nagai)
08:20 AM Revision 89a3450a (git): test_bigmath.rb: ignore on unrelated platforms
* test/bigdecimal/test_bigmath.rb (test_log): ignore the result of log
which is not a finite number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:11 AM Revision 9bd672f6 (git): ext: use rb_sprintf() and rb_vsprintf() with PRIsVALUE
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:11 AM Revision 42406852 (git): stubs.c: library name strings
* ext/tk/stubs.c (ruby_open_tcl_dll, ruby_open_tk_dll): make library
names by string literal concatenation at compilation time, not by
sprintf() at runtime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44571 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
08:11 AM Revision 13e47e81 (git): tcltklib.c: create_ip_exc format argument
* ext/tk/tcltklib.c (create_ip_exc): format argument must not be a
dynamic string, not to contain unescaped %.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:49 AM Revision 59d1856d (git): iseq.c: linear search
* iseq.c (iseq_type_from_id): linear search instead of hash lookup for
small fixed number keys.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:41 AM Revision ff003008 (git): iseq.c: potential memory leak
* iseq.c (iseq_load): keep type_map to get rid of memory leak.
based on a patch by Eric Wong at [ruby-core:59699]. [Bug #9399]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:08 AM Bug #8623: Make stable Gem::Specification.files in default .gemspecs
r43587 was backported to ruby_2_0_0 at r44567. nagachika (Tomoyuki Chikanaga)
07:08 AM Revision 7b60ab09 (git): merge revision(s) 43587: [Backport #8623]
* tool/rbinstall.rb (Gem::Specification#collect): make stable
Gem::Specification.files in default .gemspecs the different order of
"files" in .gemspec files makes them different therefore possibly
conflictin...
nagachika (Tomoyuki Chikanaga)
07:06 AM Bug #8439: test_aes_gcm_wrong_tag(OpenSSL::TestCipher) fails randomly
r43676 was backported to ruby_2_0_0 at r44566. nagachika (Tomoyuki Chikanaga)
07:05 AM Revision 1b056110 (git): merge revision(s) 43676: [Backport #8439]
* test/openssl/test_cipher.rb (test_aes_gcm_wrong_tag): Don't use
String#succ because it can make modified (wrong) auth_tag longer
than 16 bytes. The longer auth_tag makes that
EVP_CIPHER_CTX_ctrl (and inte...
nagachika (Tomoyuki Chikanaga)
06:57 AM Bug #7842: An alias of a "prepend"ed method skips the original method when calling super
r44175 was already backported to `ruby_2_0_0` at r44345. nagachika (Tomoyuki Chikanaga)
06:54 AM Bug #7772: Consider bumping stack size in ruby_qsort
r44195 was backported to ruby_2_0_0 at r44565. nagachika (Tomoyuki Chikanaga)
06:53 AM Revision 0c44d661 (git): merge revision(s) 44195: [Backport #7772]
* util.c (ruby_qsort): fix potential stack overflow on a large
machine. based on the patch by Conrad Irwin <conrad.irwin AT
gmail.com> at [ruby-core:51816]. [Bug #7772]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nagachika (Tomoyuki Chikanaga)
06:31 AM Bug #5199: ext/tk: RB_GC_GUARD seems to be needed in several places
r41351 was backported to ruby_2_0_0 at r44564. nagachika (Tomoyuki Chikanaga)
06:30 AM Revision 9a1728a1 (git): merge revision(s) 41351: [Backport #9199]
* ext/tk/tkutil/tkutil.c: use rb_sprintf(), rb_id2str(), and
rb_intern_str() instead of rb_intern() and RSTRING_PTR() with
RB_GC_GUARD(), to prevent temporary objects from GC.
[ruby-core:39000] [Bug #5199]
...
nagachika (Tomoyuki Chikanaga)
05:03 AM Feature #9400 (Open): Respect constant lookup when using `raise`
When raising an error without defining an exception class, `::RuntimeError` appears to be a hard-coded default. I propose that this be changed so proper constant lookup rules are respected when looking up `RuntimeError`. For example, I w... wardrop (Tom Wardrop)
12:21 AM Revision 3963c09a (git): * 2014-01-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:21 AM Revision 5e9b7bac (git): ruby/util.h: DECIMAL_SIZE_OF_BITS
* include/ruby/util.h (DECIMAL_SIZE_OF_BITS): a preprocessor
constant macro to approximate decimal representation size of n-bits
integer.
* iseq.c (register_label): use DECIMAL_SIZE_OF_BITS for better
approximation.
* ext/bigdecima...
nobu (Nobuyoshi Nakada)

01/11/2014

08:44 PM Bug #9399 (Closed): [PATCH] iseq: avoid potential memory leak in iseq_load
The following changes since commit 0e9cad9a8e25282be170d3e4240bd2ba6ce1a419:
test_bigmath.rb: r44558 (2014-01-11 10:26:07 +0000)
are available in the git repository at:
git://80x24.org/ruby.git iseq_load-leak
for you to f...
normalperson (Eric Wong)
07:57 PM Bug #9398 (Rejected): Unexplained core dump error
Unable to run rspec due to possible Ruby bug.
See Gist file of terminal output here: https://gist.github.com/jacqueline-homan/8373175
jacqueline-homan (Jacqueline Homan)
06:47 PM Bug #9397 (Rejected): Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
Ruby 1.9 introduced `===` on lambdas/procs so that you can put them in case statements. I'm a fan of this, but there's an unfortunate side effect I've run into recently.
If you have a lambda that accepts 0 args (e.g. `lambda { }`) or...
myronmarston (Myron Marston)
03:27 PM Bug #9396 (Rejected): SizedQueue broken in Ruby 2.1
It looks like SizedQueue is broken in Ruby 2.1. The following program deadlocks when running on trunk and 2.1, but works correctly on 1.9.3 and 2.0.0:
require "thread"

q = SizedQueue.new(1)

Thread.start do
...
Anonymous
11:36 AM Feature #8168: Feature request: support for (single) statement lambda syntax/definition
I do not understand the argument about the code presumably looking ugly with curly braces (maybe if code looks ugly, it is better to read poetry? :)).
I do not think that
foo ->> Time.now
is more beautiful or clear than
...
alexeymuranov (Alexey Muranov)
11:09 AM Feature #8863: New error class: UndefinedBehaviorError
After thinking about it, and since there is no feedback, i think this my feature request may be closed. I think handling special cases or catching exceptions to raise another exception is an unnecessary complication. Documentation shou... alexeymuranov (Alexey Muranov)
10:26 AM Revision 0e9cad9a (git): test_bigmath.rb: r44558
* test/bigdecimal/test_bigmath.rb (test_log): add assertion for r44558.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:26 AM Revision 1367f28a (git): test_bigmath.rb: test_log
* test/bigdecimal/test_bigmath.rb (test_log): add basic test for BigMath.log.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Bug #9393 (Closed): Strange behavior of DelegateClass + loop + method_missing
Correct behavior.
`loop` is also delegated to the target object now.
nobu (Nobuyoshi Nakada)
03:15 AM Revision c855854e (git): * 2014-01-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:15 AM Revision 2b1c47da (git): bigdecimal.c: expand buffer
* ext/bigdecimal/bigdecimal.c (BigMath_s_log): expand buffer size for
64bit platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:41 AM Bug #9334 (Closed): activesupport-4.0.2/lib/active_support/dependencies.rb:229: [BUG] Segmentation fault at 0x00000000000018
hsbt (Hiroshi SHIBATA)
12:06 AM Revision 820b7147 (git): * 2014-01-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:06 AM Revision 0957229a (git): merge revision(s) 44544:
* doc/NEWS-2.1.0: Add mention for litteral.freeze
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@44556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

01/10/2014

11:08 PM Misc #9394 (Closed): Remove dead link to raa
Fixes this bug https://bugs.ruby-lang.org/issues/9268
(I could not update this issue)
giorgostsiftsis (Giorgos Tsiftsis)
10:28 PM Bug #9393 (Rejected): Strange behavior of DelegateClass + loop + method_missing
Having the following class in Ruby 2.1:
```
require 'delegate'
class A < DelegateClass(Hash)
def a
loop do
::Kernel.p 'A'
break
end
end
end
```
After calling `A.new({}).a` the output is "A".
H...
fxposter (Pavel Forkert)
08:19 PM Misc #9392 (Closed): Fix typo
giorgostsiftsis (Giorgos Tsiftsis)
07:16 PM Bug #9391 (Closed): Segfault after upgrade from ruby 2.0 to 2.1
Hi,
I also this message on the rubyforum but no reaction so far, therefor I am posting here as well. I upgraded our Sinatra app to ruby 2.1 and running our tests immediately result in a segfault. Attached my dependencies with versions...
lars.vonk@gmail.com (Lars Vonk)
04:30 PM Feature #9390 (Closed): Support for the ALPN TLS extension
ALPN [1] is a successor [2] to NPN, support for which was added in 2.0.0 [3].
HTTP/2 [4] is using ALPN to negotiate protocol support, and the spec is moving fast -- it'd be great to have ALPN support in one of the upcoming Ruby releas...
igrigorik (Ilya Grigorik)
02:55 PM Bug #9389 (Closed): ruby crashed when crash in gsub function on LARGE string.
[description]
ruby crashed when crash in gsub function on LARGE string.
[expected result]
"Out of Memory" or any other exception
[actual result]
ruby crash
[platform]
ruby 1.9.3p194/ubuntu 13.10
[code]
stream=Fil...
sergey.erokhin (Sergey Erokhin)
12:04 PM Bug #9388 (Closed): Ruby 1.9.3-pxxx segmentation fault
Hi,
we experience regular segmentation faults on our production server (a Rails web application running at www.torial.com/magazine). I have attached the log showing the segmentation fault and all the information being logged with it. ...
phillipoertel (Phillip Oertel)
10:12 AM Bug #9361 (Closed): gem install --ignore-dependencies fails to install local gems
Eric fixed this by updating RubyGems to 2.2.1 in r44515 (or at least, I think that's the right revision. headius (Charles Nutter)
09:42 AM Revision b89a88f0 (git): test_weakref.rb: find collected weakref
* test/test_weakref.rb (test_recycled): retry and find a WeakRef
whose the target is collected, to fix circumstance dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:22 AM Revision e85e95c4 (git): * vm_exec.c (cfp): Avoid generating invalid binary for
NativeClient.
r15 on x86_64 is reserved by NativeClient. So r15 to cfp used to
generate invalid binary under some combinations of compiler
optimization flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44554 b2dd03c8-39d4-...
yugui (Yuki Sonoda)
09:01 AM Revision aee9f287 (git): vm_insnhelper.c: boudn method transplanting
* vm_insnhelper.c (vm_search_super_method): allow bound method from a
module, yet another method transplanting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:40 AM Revision 95779dea (git): test_super.rb: remove unneeded code
* test/ruby/test_super.rb (test_missing_super_in_module_unbound_method):
binding target does not need extending.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:53 AM Bug #9170: Math.sqrt returns different types when mathn is included; breaks various gems - this bug can be reproduced in Ruby 1.8 as well
I will check the docs and see if I can fix it.

> On Jan 6, 2014, at 12:44 AM, "kranzky (Jason Hutchens)" <JasonHutchens@gmail.com> wrote:
>
>
> Issue #9170 has been updated by kranzky (Jason Hutchens).
>
>
> mrkn (Kenta Mur...
zzak (zzak _)
07:48 AM Bug #9170: Math.sqrt returns different types when mathn is included; breaks various gems - this bug can be reproduced in Ruby 1.8 as well
Isn't this more an issue with the documentation of `mathn` not specifying all the methods it changes and how?
It might be wise to add a warning that it is suggested not to require it from a library because it might induce unexpected c...
marcandre (Marc-Andre Lafortune)
07:42 AM Feature #7688: Error hiding with rb_rescue() on Comparable#==, #coerce and others
tenderlovemaking (Aaron Patterson) wrote:
> It seems like I would have to implement `==` with
> ...
Not sure I follow... You don't have to implement `==` at all in your example.
Moreover `==` should not return `nil`, it is `<=>` that...
marcandre (Marc-Andre Lafortune)
07:35 AM Feature #7688: Error hiding with rb_rescue() on Comparable#==, #coerce and others
The method `<=>` should return `nil` for objects that are not comparable, not raise errors.
So this seems to be a misunderstanding/bug in Rails.
It might be best to add a warning to Ruby 2.2 if an exception is caught by `==` and we...
marcandre (Marc-Andre Lafortune)
07:23 AM Feature #7688: Error hiding with rb_rescue() on Comparable#==, #coerce and others
On Fri, Jan 10, 2014 at 06:03:03AM +0900, Eregon (Benoit Daloze) wrote:
>
> Issue #7688 has been updated by Eregon (Benoit Daloze).
>
>
> @tenderlove These are probably bugs then, is it not? I will try to have a look.

...
tenderlovemaking (Aaron Patterson)
06:02 AM Feature #7688: Error hiding with rb_rescue() on Comparable#==, #coerce and others
@tenderlove These are probably bugs then, is it not? I will try to have a look. Eregon (Benoit Daloze)
05:13 AM Feature #7688: Error hiding with rb_rescue() on Comparable#==, #coerce and others
r44502 makes the Rails tests fail spectacularly. We have <=> implementations that raise exceptions and expect == to swallow them. We probably shouldn't be raising exceptions in these methods, but this change definitely breaks our tests. tenderlovemaking (Aaron Patterson)
04:54 AM Revision 58f800a2 (git): insns.def: add opt path for Hash#[] and Hash#[]= used with str literal keys
* insns.def (opt_aref_with): new instruction to optimize Hash#[],
removing any allocation overhead when used with a string literal
key. Patch by normalperson (Eric Wong). [ruby-core:59640] [Bug #9382]
* insns.def (opt_aset_with): new...
tmm1 (Aman Karmani)
04:13 AM Revision 9bfaeffd (git): gc.c: fix doc typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tmm1 (Aman Karmani)
03:34 AM Bug #9334: activesupport-4.0.2/lib/active_support/dependencies.rb:229: [BUG] Segmentation fault at 0x00000000000018
I confirm that on ruby 2.2.0dev (2014-01-10 trunk 44548) the issue is resolved malagodia (Andrea Malagodi)
12:58 AM Feature #9047: Alternate hash key syntax for symbols
I should also mention this allows for similar syntax between JavaScript, Python, and Ruby. In this case, all three languages could translate the same dictionary/hash in a more or less compatible way.
jamonholmgren (Jamon Holmgren)
12:47 AM Bug #9386 (Closed): Ruby won't build tcl/tk extension, libpathflag expects array
This issue was solved with changeset r44541.
Josef, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
tk/extconf.rb: fix libpathflag arguments
* ext/tk/extconf.rb: f...
nobu (Nobuyoshi Nakada)
12:10 AM Bug #9386: Ruby won't build tcl/tk extension, libpathflag expects array
Including alternative patch if we don't want to change the mkmf. This just fixes the revision. jstribny (Josef Stribny)

01/09/2014

10:40 PM Bug #9387 (Closed): Documentation for Range#size is incomplete
The documentation for Range#size does not mention the case where not all arguments are instances of Numeric, in which case it returns nil.
I created a patch here: https://github.com/ruby/ruby/pull/501
Skade (Florian Gilcher)
09:23 PM Revision d31cd065 (git): * range.c (Range#size): [DOC] improve description and add examples.
Patch by @skade. [Fixes GH-501]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
08:46 PM Bug #8358 (Closed): TestSprintf#test_float test failure
This issue was solved with changeset r44538.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
configure.in: use SSE2
* configure.in: use SSE2 instructions t...
nobu (Nobuyoshi Nakada)
08:33 PM Bug #7742: System encoding (Windows-1258) is not recognized by Ruby to convert back to UTF-8
phasis68 (Heesob Park) wrote:
> As I know, VISCII(Vietnamese Standard Code for Information Interchange) can round trip UTF-8. So the implementation of the converter between VISCII and UTF-8 might be easy.
Yes, it should be easy. Can ...
duerst (Martin Dürst)
07:15 PM Bug #7742: System encoding (Windows-1258) is not recognized by Ruby to convert back to UTF-8
As I know, VISCII(Vietnamese Standard Code for Information Interchange) can round trip UTF-8. So the implementation of the converter between VISCII and UTF-8 might be easy.
I am not sure if a converter between Windows-1258 and VISCII ...
phasis68 (Heesob Park)
04:26 PM Bug #7742: System encoding (Windows-1258) is not recognized by Ruby to convert back to UTF-8
thegcat (Felix Schäfer) wrote:
> =begin
> ...
As explained above, the problem is with normalization. If you are okay with a version that just does one-to-one conversion, then that can be produced rather quickly (maybe even over the wee...
duerst (Martin Dürst)
07:13 PM Bug #9321 (Closed): rb_mod_const_missing does not generate a c-return event
This issue was solved with changeset r44535.
Stefan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm.c (rb_vm_pop_cfunc_frame): added. It cares c_return event...
ko1 (Koichi Sasada)
06:59 PM Bug #9386 (Closed): Ruby won't build tcl/tk extension, libpathflag expects array
Hi,
I wasn't successful building Ruby tcl/tk extension from trunk, since the last revision[1] switched to use libpathflag method
that expects an array, but on my Fedora "/usr/lib64":String would be passed to the method.
I believe ...
jstribny (Josef Stribny)
05:59 PM Feature #9362: Minimize cache misshit to gain optimal speed
Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:
> OK, so I found a way to enable Intel Turbo Boost on this CPU. I went
> through the benchmarks again and got this for object paddings (minus
> embedding; same as previous chart I po...
normalperson (Eric Wong)
05:23 PM Feature #9362: Minimize cache misshit to gain optimal speed
OK, so I found a way to enable Intel Turbo Boost on this CPU. I went
through the benchmarks again and got this for object paddings (minus
embedding; same as previous chart I posted here).

http://www.atdot.net/fp/view/zoj4zm
...
shyouhei (Shyouhei Urabe)
05:49 PM Revision e5839862 (git): * gc.c: Oups, symbols are immediates too
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:34 PM Revision 705f9a7e (git): * gc.c: Supplement object_id's rdoc for immediate and frozen string litterals
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:34 PM Revision cc366241 (git): * gc.c: Fix and remove outdated rdoc for object_id
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:34 PM Revision a91bad28 (git): * object.c: Add rdoc for classes frozen by default
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:34 PM Revision 291be099 (git): * doc/NEWS-2.1.0: Add mention for litteral.freeze
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:33 PM Revision e030b4ee (git): * array.c: rdoc clarification for <=>
* file.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:33 PM Bug #9186 (Rejected): json/pure.rb missing on trunk
I intentionally removed pure.rb on ruby's repo because CRuby always have C exts.
If C exts is not properly build, the binary shouldn't work.
naruse (Yui NARUSE)
05:07 PM Misc #8288 (Closed): Ruby 2.1.0 release engeneering
naruse (Yui NARUSE)
03:48 PM Revision 363e189a (git): * 2014-01-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:47 PM Revision f06ee90f (git): tk/extconf.rb: fix libpathflag arguments
* ext/tk/extconf.rb: fix to pass arrays instead of strings to
libpathflag. patch at [ruby-core:59665]. [Bug #9386]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:34 PM Bug #9341: IMAPTest#test_imaps_with_ca_file test failed after 2014-01-01.
backported into ruby_1_9_3 at r44533.
and, seems to be backported into ruby_2_1 at r44528.
usa (Usaku NAKAMURA)
01:19 PM Revision 791ff0a2 (git): ChangeLog: commit miss
* ChangeLog: remove duplicated entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:49 PM Bug #9367: REXML::XmlDecl doesn't use user specified quotes
@duerst, @kou,
Thanks for the comments!
I'll revise my patch to use :xml_declaration_quote and back to you soon.
bearmini (Takashi Oguma)
11:49 AM Revision b5faf430 (git): configure.in: -mstackrealign
* configure.in: -mstackrealign is necessary for -msse2 working.
[ruby-core:54716] [Bug #8349]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:46 AM Revision 40967a5c (git): configure.in: use SSE2
* configure.in: use SSE2 instructions to drop unexpected precisions on
other than mingw. [ruby-core:59472] [Bug #8358]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:34 AM Revision ac2864a8 (git): * hash.c (rb_objid_hash): should return `long'. brushup r44534.
* object.c (rb_obj_hash): follow above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:45 AM Revision 4ee57e08 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:23 AM Bug #9300: YAML Regression Concerning Escaping of Strings
On Sat, Dec 28, 2013 at 01:35:02AM +0900, schneems (Richard Schneeman) wrote:
>
> Issue #9300 has been updated by schneems (Richard Schneeman).
>
>
> Do we know what changed in psych to cause this? Was this the result of a ...
tenderlovemaking (Aaron Patterson)
09:56 AM Bug #9300 (Closed): YAML Regression Concerning Escaping of Strings
This issue was solved with changeset r44531.
Richard, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/psych/lib/psych/visitors/yaml_tree.rb: dumping strings w...
tenderlovemaking (Aaron Patterson)
10:12 AM Revision c2e72fb3 (git): * vm.c (rb_vm_pop_cfunc_frame): added. It cares c_return event.
The patch base by drkaes (Stefan Kaes).
[Bug #9321]
* variable.c (rb_mod_const_missing): use rb_vm_pop_cfunc_frame()
instead of rb_frame_pop().
* vm_eval.c (raise_method_missing): ditto.
* vm_eval.c (rb_iterate): ditto.
* internal.h ...
ko1 (Koichi Sasada)
08:42 AM Revision 8abc55bc (git): * hash.c (rb_any_hash): should treat the return value of rb_objid_hash()
as `long', because ruby assumes the object id of an object is `long'.
this fixes test failures on mswin64 introduced at r44525.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
06:48 AM Bug #9385 (Closed): open-uri always uses proxy set as env var even if proxy flag is set to nil
According to doc http://ruby-doc.org/stdlib-2.1.0/libdoc/open-uri/rdoc/OpenURI.html we can disable the proxy by doing
open("http://www.ruby-lang.org/en/raa.html", :proxy => nil)
and "environment variables for proxy are ignored and ...
toch (Christophe Philemotte)
05:28 AM Revision 21d29b3a (git): merge revision(s) 44488,44489: [Backport #9341]
* test/net/imap/cacert.pem: generate new CA cert, since the last one
expired. [Bug #9341] [ruby-core:59459]
* test/net/imap/server.crt: new server cert signed with updated CA.
* test/net/imap/Makefile: add `ma...
U.Nakamura
05:06 AM Revision f0722322 (git): merge revision(s) 44440,44444: [Backport #9306]
* win32/Makefile.sub (fake.rb): should depend on version.h because
if RUBY_VERSION is updated, fake.rb need to say the new version
to avoid install error in rbconfig.rb.
* win32/{setup.mak,Makefile.sub}: upda...
naruse (Yui NARUSE)
02:01 AM Bug #9384: Segfault in ruby 2.1.0p0
With 2.0.0, it works (ruby -v is "ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]").
With trunk, it still segfaults (ruby -v is "ruby 2.2.0dev (2014-01-08 trunk 44527) [x86_64-linux]"). I attached the log bundle_exec_rake_asse...
cbliard (Christophe Bliard)
12:13 AM Bug #9384: Segfault in ruby 2.1.0p0
Could you try with the trunk?
It seems something dead object is used in a finalizer.
nobu (Nobuyoshi Nakada)
12:56 AM Revision b90076e8 (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: dumping strings with
quotes should not have changed. [ruby-core:59316] [Bug #9300]
* ext/psych/lib/psych.rb: fixed missing require.
* test/psych/test_string.rb: test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44531 b2dd03c8-39d4-4d8f-98ff-823fe69b...
tenderlovemaking (Aaron Patterson)
12:54 AM Revision 73b046d0 (git): * 2014-01-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:54 AM Revision 7c6e4f8f (git): * ext/psych/lib/psych/visitors/to_ruby.rb: anonymous structs
should be able to roundtrip. Thanks @splattael!
* test/psych/test_object_references.rb: test for change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)

01/08/2014

11:29 PM Bug #9384: Segfault in ruby 2.1.0p0
I tried with ruby-2.1.0-head installed with RVM. It downloaded ruby from ruby_2_1 branch, SHA 41deb12e9d6646b42ef0e011509870f6ddf383c5.
ruby -v: ruby 2.1.1p2 (2013-12-31 revision 44467) [x86_64-linux]
It still segfaults with this l...
cbliard (Christophe Bliard)
07:40 PM Bug #9384 (Third Party's Issue): Segfault in ruby 2.1.0p0
I got a stacktrace while capistrano was deploying our rails app to our server. We switched to ruby 2.1.0 recently. It worked on my dev station, not in staging.
I attached the ruby stderr as output by capistrano and every line was prep...
cbliard (Christophe Bliard)
11:21 PM Revision a1d56b18 (git): merge revision(s) 44488: [Backport #9341]
* test/net/imap/cacert.pem: generate new CA cert, since the last one
expired. [Bug #9341] [ruby-core:59459]
* test/net/imap/server.crt: new server cert signed with updated CA.
* test/net/imap/Makefile: add `ma...
naruse (Yui NARUSE)
11:12 PM Bug #9377: Seg fault on call of missing super from self.extended in a Module
Since 2.0, `vm_search_superclass()` doesn't traverse the receiver's ancestors.
It works just because an invalid klass is not dereferenced accidentally.
nobu (Nobuyoshi Nakada)
10:53 PM Bug #9377 (Closed): Seg fault on call of missing super from self.extended in a Module
This issue was solved with changeset r44527.
Joe, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_insnhelper.c: revive r44455 for bound module method
*...
nobu (Nobuyoshi Nakada)
09:11 PM Bug #7742: System encoding (Windows-1258) is not recognized by Ruby to convert back to UTF-8
=begin
We (((<Planio|URL:https://plan.io>))) are also in need of Windows-1258 to UTF-8 conversion, is there anything we can do to help?
=end
thegcat (Felix Schäfer)
08:07 PM Bug #9382: [patch] add opt_aref_str and opt_aset_str
With the patch, "allocations per request" in our app is reduced by ~3%. tmm1 (Aman Karmani)
06:07 PM Bug #9382 (Closed): [patch] add opt_aref_str and opt_aset_str
@charliesome, @normalperson and I have been working on a patch to add two new instructions:
https://bugs.ruby-lang.org/issues/9188#note-9
These optimize Hash#[] and Hash#[]=, when used with a string literal key.
Before:
0...
tmm1 (Aman Karmani)
07:08 PM Feature #9383 (Closed): Add unit test for FileUtils.chown_R
There is no unit tests for FileUtils.chown_R.
Here is the patch to add unit test for FileUtils.chown_R.
vajrasky (Vajrasky Kok)
03:55 PM Bug #9381 (Closed): 2.1.0 Regression. Hash lookup with #hash and #eql?
This issue was solved with changeset r44525.
Nick, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
object.c: hash value from objid with salt
* hash.c (`rb...
nobu (Nobuyoshi Nakada)
03:38 PM Bug #9381 (Assigned): 2.1.0 Regression. Hash lookup with #hash and #eql?
nobu (Nobuyoshi Nakada)
12:56 PM Bug #9381 (Closed): 2.1.0 Regression. Hash lookup with #hash and #eql?
Ruby 2.1.0 won't fetch objects when the lookup key overrides `#hash` and `#eql?`.
This is a regression as it works as expected in ruby 1.8, 1.9 and 2.0.
```ruby
class Wrapper
def initialize(obj)
@obj = obj
end
def me...
nick78 (Nick S)
01:53 PM Revision 5c0d17c9 (git): vm_insnhelper.c: revive r44455 for bound module method
* vm_insnhelper.c (vm_search_super_method): when super called in a
bound UnboundMethod generated from a module, no superclass is
found since the current defined class is the module, then call
method_missing in that case. [ruby-cor...
nobu (Nobuyoshi Nakada)
01:12 PM Bug #9380 (Closed): Enumerator does not work in timeout
This issue was solved with changeset r44523.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
lib/timeout.rb: fallback to Timeout::Error
* lib/timeout.rb...
nobu (Nobuyoshi Nakada)
12:46 PM Bug #9380 (Closed): Enumerator does not work in timeout
`Enumerator`と`timeout`の組み合わせで、`Timeout::Error`が起きるべきところで`ArgumentError`が発生します。
```
$ ruby -v -rtimeout -e 'def (o=Object.new).each; sleep; end' -e 'Timeout.timeout(0.01) {o.to_enum.next}'
ruby 2.2.0dev (2014-01-07 trunk 44522) [univ...
nobu (Nobuyoshi Nakada)
10:36 AM Bug #8358: TestSprintf#test_float test failure
In the case of using SSE2, -mstackrealign flag would be required for Windows.
See #8349
h.shirosaki (Hiroshi Shirosaki)
10:26 AM Bug #9109 (Assigned): extend したモジュールメソッドと RSpec の let で 2 つ同名を使ったときに segmentation fault になる
[i386-mingw32] では、SEGVになってしまうようです。
これは直るのでしょうか?
以下、gdbの出力です。
```
sh-3.1$ gdb -args ./ruby -v -I. -I ../../../ruby/lib -I .ext/i386-mingw32 -e 'h = {a: ->{h[:a].call}};h[:a].call'
GNU gdb (rubenvb-4.7.2-release) 7.5.50.20120920-c...
h.shirosaki (Hiroshi Shirosaki)
08:13 AM Revision fe46b2d5 (git): rubygems/test_case.rb: fix errors in mkmf tests
* lib/rubygems/test_case.rb (Gem#teardown): BASERUBY is not set
usually. fix errors in mkmf tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:55 AM Revision ab6efa5b (git): object.c: hash value from objid with salt
* hash.c (rb_objid_hash): return hash value from object ID with a
salt, extract from rb_any_hash().
* object.c (rb_obj_hash): return same value as rb_any_hash().
fix r44125. [ruby-core:59638] [Bug #9381]
git-svn-id: svn+ssh://ci.ru...
nobu (Nobuyoshi Nakada)
04:12 AM Revision 06f624b8 (git): * 2014-01-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:12 AM Revision 3e9e4a6a (git): lib/timeout.rb: fallback to Timeout::Error
* lib/timeout.rb (Timeout::ExitException.catch): pass arguments
for new instance.
* lib/timeout.rb (Timeout::ExitException#exception): fallback to
Timeout::Error if couldn't throw. [ruby-dev:47872] [Bug #9380]
* lib/timeout.rb (Time...
nobu (Nobuyoshi Nakada)
12:53 AM Feature #9362: Minimize cache misshit to gain optimal speed
Hello,

2014/1/7 Urabe Shyouhei <shyouhei@ruby-lang.org>:
> My experiment on valgrind clearly shows decreasing number of L1 data read
> misshits. I can say that at least.

Something is wrong. In principle, using more memor...
mame (Yusuke Endoh)
12:32 AM Feature #9379 (Closed): Support for using libxml-ruby as XML parser in xmlrpc-libs
The default backend in the XMLRPC parser is REXML. This should work at most occasions, but it definitely isn't the fastest implementation. The attached patch allows a backend using libxml-ruby <http://xml4r.github.io/libxml-ruby/> which ... herwinw (Herwin Quarantainenet)
 

Also available in: Atom