Project

General

Profile

Activity

From 04/26/2014 to 05/02/2014

05/02/2014

11:58 PM Feature #9772: IO#statfs and File::Statfs
Yui NARUSE wrote:
> statfs では f_type の類がとれないからですね。[ruby-core:62150]
なるほど。
では、IO#statfs では f_type の類は必須で、
f_type の類が提供されない環境では statvfs があっても
IO#statfs は提供しないということでしょうか?
> ...
OpenBSD 5.5 が出たので記念にインストールして試してみたところ、コンパイルできない感じで...
akr (Akira Tanaka)
03:29 PM Feature #9772: IO#statfs and File::Statfs
r45790 にて、File::Statfs#fstypename を AIX, HP-UX, Solaris でも使えるようにしてみました。(ただし動作確認は Solaris のみ。)
struct statvfs.f_basetype を struct statfs.f_fstypename の代替として使用しています。
ngoto (Naohisa Goto)
11:27 PM Feature #9794 (Feedback): DateTime.strptime() doesn't work correctly for '%s %z'
Felipe's rudeness, while not acceptable, is borne out of frustration. I suspect that frustration exists on both sides of this argument. Setting that aside for a moment, and evaluating only the **facts** stated (and not the tone) in [[htt... zenspider (Ryan Davis)
09:55 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
Felipe, your extreme rudeness has no place here.
The rejection reason is described in #7445 as linked.
Not every committer is proficient in English so Japanese is just fine.
I don't suspect you'll get a reason.
drbrain (Eric Hodel)
08:32 PM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
English. This is an international project, isn't it?
Time.strptime('2001 -0900', '%Y %z')
This is clearly a red herring. If you want to fix '%Y %z', go ahead, that's no reason not to fix '%s %z'.
felipec (Felipe Contreras)
11:53 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
何回も言うけどCで自分の意図どおりに扱えてるっていうあんたの主張は間違ってる。
ある実装では構文的に解析出来てるかもしれないけど、意味を解釈する事は仕様上無理なんだよ。どう解釈しても。
あんたは都合よく仕様の話と実装の話をつなげて自分の主張にしてるだけなの。
俺はそれなりに妥当な解釈で拡張してるわけでバグだから直せと頭ごなしに言われる筋合いはない。
time に従えって言いたいのかもしれないけど、現状はこんなんなんだけど
~~~ruby
Time.s...
tadf (tadayoshi funaba)
11:14 AM Feature #9794: DateTime.strptime() doesn't work correctly for '%s %z'
Tadayoshi you are so fucking ridiculous it's not even funny.
You reject a perfectly sensible patch that **EVERYBODY** agrees with for NO REASON AT ALL WHATSOEVER? At the very list give a reason.
I'm amazed that anybody would make y...
felipec (Felipe Contreras)
10:59 AM Feature #9794 (Rejected): DateTime.strptime() doesn't work correctly for '%s %z'
identical to 7445.
tadf (tadayoshi funaba)
10:53 AM Feature #9794 (Assigned): DateTime.strptime() doesn't work correctly for '%s %z'
tadf (tadayoshi funaba)
10:21 AM Feature #9794 (Closed): DateTime.strptime() doesn't work correctly for '%s %z'
Time.strptime() works correctly:
Time.strptime('0 +0100', '%s %z').strftime('%s %z')
=> "0 +0100"
But DateTime.strptime() doesn't:
DateTime.strptime('0 +0100', '%s %z').strftime('%s %z')
=> "0 +0000"
In Rubi...
felipec (Felipe Contreras)
11:15 PM Bug #9795 (Feedback): ruby-head breaks spreadsheet gem
Symbol GC has been introduced at r45426, Mar 26, and just fixed some attrset ID bugs these days.
Try with the latest trunk.
nobu (Nobuyoshi Nakada)
08:28 PM Bug #9795 (Closed): ruby-head breaks spreadsheet gem
When Zeno commit a comment with https://github.com/zdavatz/spreadsheet/commit/9b08dceecf634139f819d1f9dcd0dbcdf10b4dbd on Wed Apr 2 19:00:32 2014 +0200
Our travis-ci build https://travis-ci.org/zdavatz/spreadsheet/builds/22119822 failed...
ngiger (Niklaus Giger)
07:21 PM Bug #9608 (Closed): [PATCH] avoid large alloca on Complex/Rational calls
Applied in changeset r45793.
----------
avoid large alloca on Complex/Rational calls
* complex.c (parse_comp): replace ALLOCA_N with ALLOCV_N/ALLOCV_END
[Bug #9608]
* rational.c (read_digits): ditto
Anonymous
11:29 AM Bug #9608: [PATCH] avoid large alloca on Complex/Rational calls
i'd like to try it; please commit it. tadf (tadayoshi funaba)
07:21 PM Revision a9befcdb (git): avoid large alloca on Complex/Rational calls
* complex.c (parse_comp): replace ALLOCA_N with ALLOCV_N/ALLOCV_END
[Bug #9608]
* rational.c (read_digits): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
06:43 PM Revision 0989529f (git): time.c: fix underflow of unsigned integers
* time.c (vtm_add_offset): get rid of underflow of unsigned
integers. fix up r45155.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:35 PM Misc #9741 (Assigned): Policy for Posting Security & General Announcements on www.ruby-lang.org
I'm glad we settled on a clear policy for this, I'll draft up a wiki page which explains it. zzak (zzak _)
06:59 AM Misc #9741 (Closed): Policy for Posting Security & General Announcements on www.ruby-lang.org
We discussed this issue on https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20140418Japan .
* known issues: get consensus of github & w.r-l.o reviewers
* unknown issues: get consensus on ruby-core/security@ members + ...
hsbt (Hiroshi SHIBATA)
03:24 PM Revision 9621f8a9 (git): * 2014-05-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:24 PM Revision 09f51c56 (git): * file.c (HAVE_STRUCT_STATVFS_F_BASETYPE): File::Statfs#fstypename
is supported on AIX, HP-UX, and Solaris, by using the value of
struct statvfs.f_basetype.
* configure.in (HAVE_STRUCT_STATVFS_F_BASETYPE): check struct
statvfs.f_basetype which is available on AIX, HP-UX, and Solaris.
git-svn-id: s...
ngoto (Naohisa Goto)
03:02 PM Feature #9781: Feature Proposal: Method#super_method
Ryan, using `superclass` gets you really close, but doesn't handle extending object instances:
```ruby
class BigFoo
def bar
end
end
class Foo < BigFoo
def bar
super
end
end
class Object
def super_method na...
schneems (Richard Schneeman)
08:47 AM Feature #9781: Feature Proposal: Method#super_method
Maybe I'm still not getting something. If you can call it (or super to it) you can grab it:
~~~ruby
class BigFoo
def bar
end
end
class Middle1 < BigFoo; end
class Middle2 < Middle1; end
class Middle3 < Middle2; end
class...
zenspider (Ryan Davis)
03:14 AM Feature #9781: Feature Proposal: Method#super_method
I must be tired.
Nobu: Sorry, I was confused, there's no problem with `UnboundMethod#super_method` because we retain which class this method was accessed from.
Ryan: That's actually a good example, there is no api to get the "origi...
marcandre (Marc-Andre Lafortune)
03:03 AM Feature #9781: Feature Proposal: Method#super_method
Nobuyoshi Nakada wrote:
> It's an ordinary `Method` (or `UnboundMethod`) instance, same as `SuperClass.instance_method(:foo).bind(obj)`.
Agreed for `Method`, but I'm not sure I understand how we could define `UnboundMethod#super_meth...
marcandre (Marc-Andre Lafortune)
02:43 AM Feature #9781: Feature Proposal: Method#super_method
Hi,
Ryan Davis wrote:
> Maybe it is just me misunderstanding something... but this doesn't seem that complicated. I don't understand why you'd walk through the ancestors when you just just ask one level up:
For one level, with sim...
marcandre (Marc-Andre Lafortune)
01:35 PM Revision 1388beb1 (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:04 PM Revision b1520b74 (git): parse.y: fix wrong static symbol
* parse.y (next_id): no reason to set ID_STATIC_SYM here, as ID
returned by rb_intern3 can be a dynamic symbol and the static
symbol flag is set otherwise. [Bug #9787]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45788 b2dd03c...
nobu (Nobuyoshi Nakada)
11:32 AM Feature #9513 (Assigned): Hide Rational internal
i'm ok.
tadf (tadayoshi funaba)
07:40 AM Bug #9661 (Closed): CSV Header Conversion Causes NoMethodError For Empty Headers
https://github.com/ruby/ruby/pull/575 is already closed. hsbt (Hiroshi SHIBATA)
07:34 AM Bug #9720 (Closed): [Doc] Proofreading of Net::IMAP docs
Applied in changeset r45787.
----------
* lib/net/imap.rb: Proofreading docs. [ruby-core:61931][Bug #9720]
hsbt (Hiroshi SHIBATA)
07:34 AM Revision 3fb8542b (git): * lib/net/imap.rb: Proofreading docs. [ruby-core:61931][Bug #9720]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
07:25 AM Bug #9738 (Closed): A document fix for Rinda::TupleEntry#renew
Applied in changeset r45786.
----------
* lib/rinda/tuplespace.rb: fix document. [ruby-core:62003][Bug #9738]
hsbt (Hiroshi SHIBATA)
07:25 AM Revision ba0002a9 (git): * lib/rinda/tuplespace.rb: fix document. [ruby-core:62003][Bug #9738]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:51 AM Bug #9742 (Closed): Error when trying to debug line with "startDate = Time.parse('2014-Apr-01 12:00:30')"
hsbt (Hiroshi SHIBATA)
04:43 AM Bug #9792: Segmentation fault while running jekyll serve with ruby installed by homebrew
You should ask `rvm` developers. nobu (Nobuyoshi Nakada)
03:47 AM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
And if you want to discard output from the child process:
~~~ruby
system(command, *args, chdir: dir, out: IO::NULL) # discard stdout only
system(command, *args, chdir: dir, out: IO::NULL, err: [:child, :out]) # also stderr
~~~
nobu (Nobuyoshi Nakada)
03:26 AM Revision 29a2fe12 (git): mkmf.rb: no messages unless needed
* lib/mkmf.rb (create_makefile): no library scripts to install, no
installing messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:21 AM Bug #9789: Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
このパッチで、テストが通るようになりました。
何らかの原因でseekに失敗した時に、Procが呼ばれ、Solarisでは Statfs#type がNotImplementedError となり、(Failureではなく) Errorになる可能性は残ってはいますが、その機能自体が Feature #9772 の議論対象のため、結論を待ちます。
ngoto (Naohisa Goto)
02:33 AM Bug #9789 (Closed): Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
Applied in changeset r45783.
----------
test_io.rb: defer f_type
* test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer
File::Statfs#type call which may not be implemented, to mitigate
errors on platforms where SEEK_DATA is...
nobu (Nobuyoshi Nakada)
03:20 AM Revision ff99fd4d (git): parse.y: hide anonymous id
* parse.y (rb_id_attrset): should not reveal anonymous ID as an
instance variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:32 AM Revision d1c03755 (git): test_io.rb: defer f_type
* test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer
File::Statfs#type call which may not be implemented, to mitigate
errors on platforms where SEEK_DATA is available but f_type in
struct statfs is not. [ruby-dev:48154] ...
nobu (Nobuyoshi Nakada)
01:37 AM Revision d42e0ea8 (git): parse.y: turn dynamically interned Symbol into an ID
* parse.y (rb_id_attrset): turn dynamically interned Symbol into
an ID, since rb_str_dynamic_intern returns a Symbol but not an
ID. [ruby-core:62226] [Bug #9787]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45782 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
01:34 AM Revision 5c58bb9f (git): * 2014-05-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:34 AM Revision 38fd0dc6 (git): symbol/type.c: bug_pindown
* ext/-test-/symbol/type.c (bug_pindown): method for debug, which
pins down the given symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:34 AM Revision a80b3004 (git): symbol/type.c: bug_static_p bug_dynamic_p
* ext/-test-/symbol/type.c (bug_static_p, bug_dynamic_p): methods
for debug, which predicate the given symbol type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:56 AM Bug #9793 (Third Party's Issue): package "thread" is missed on http://www.ruby-doc.org/stdlib-2.1.1/ and also 2.1.0
http://www.ruby-doc.org isn't our resources. Please contact ruby-doc.org maintainers. hsbt (Hiroshi SHIBATA)

05/01/2014

11:44 PM Feature #9711: Remove test-unit and minitest from stdlib.
BTW, the patch looks fine to me. Should it not do deletes from lib/* ? zenspider (Ryan Davis)
05:22 AM Feature #9711: Remove test-unit and minitest from stdlib.
Ryan Davis wrote:
> Sorry it has taken me so long to respond. Sometimes I am slow at
> ...
Maybe slow, but I think you choose your words very well.
> I *AM* against shipping ruby without a testing library.
> ...
This is very well...
duerst (Martin Dürst)
12:46 AM Feature #9711: Remove test-unit and minitest from stdlib.
Sorry it has taken me so long to respond. Sometimes I am slow at
choosing my words.
> We are hard to maintain test-unit and minitest for standard library.
> ...
I'm not against moving minitest & test-unit into test for the sake of
...
zenspider (Ryan Davis)
11:10 PM Feature #9781: Feature Proposal: Method#super_method
Maybe it is just me misunderstanding something... but this doesn't seem that complicated. I don't understand why you'd walk through the ancestors when you just just ask one level up:
~~~ruby
class BigFoo
def bar
end
end
cla...
zenspider (Ryan Davis)
10:53 PM Bug #9790 (Assigned): Zlib::GzipReader only decompressed the first of concatenated files
drbrain (Eric Hodel)
10:01 PM Feature #9785 (Rejected): Feature Proposal: Dir.chdir Thread Safety
:chdir option for spawn(), system() and IO.popen() is usable to specify the current directory of the child process without changing the current process of the parent process.
```
% pwd
/home/akr
% ruby -e 'system("pwd", :chdir => "...
akr (Akira Tanaka)
03:33 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
I think maybe the `openat` and family of *`at` calls is close to my original proposal but does not help for executing a script inside of a `chdir` block: https://github.com/heroku/hatchet/commit/f882d8920525df6c1dda5fbd5494ce03aaa7c592#d... schneems (Richard Schneeman)
09:52 PM Bug #6634: Deadlock with join and ConditionVariable
nhm tanveeer hossain khan wrote:
> Hi there,
> ...
Hey, I have the same problem. I took the test case you posted, reduced it further, and fiddled with the numbers of threads, etc. See attached. It crashed reliably for me, always right ...
nikkoara (L Nicoara)
03:50 PM Feature #9772: IO#statfs and File::Statfs
Also, for reference see the sys-filesystem gem. :) djberg96 (Daniel Berger)
03:24 PM Bug #9592: Fix segfault with old OpenSSL
r45271 was backported into `ruby_2_1` branch at r45778. nagachika (Tomoyuki Chikanaga)
03:23 PM Revision 49fed341 (git): merge revision(s) r45271: [Backport #9592] [Backport #9671]
* ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
error reasons with old OpenSSL, and insert a colon iff formatted
message is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@457...
nagachika (Tomoyuki Chikanaga)
01:52 PM Revision 0e7a25bd (git): parse.y: abort at inappropriate symbol
* parse.y (must_be_dynamic_symbol): abort if inappropriate symbol
is given, which should never happen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 PM Revision da0c358e (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:25 PM Revision a0a58364 (git): add indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:25 PM Revision 2957f88f (git): * file.c: Change AND condition to nested condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:00 PM Bug #9793 (Third Party's Issue): package "thread" is missed on http://www.ruby-doc.org/stdlib-2.1.1/ and also 2.1.0
it seems not intended? chaiko (Ye Jia)
12:34 PM Bug #9792: Segmentation fault while running jekyll serve with ruby installed by homebrew
Nobuyoshi Nakada wrote:
> Mixing 2.0.0 and 2.1.1 shared libraries.
I've already installed rbenv
How can i avoid this?
viztor (Zili Yin)
12:08 PM Bug #9792 (Third Party's Issue): Segmentation fault while running jekyll serve with ruby installed by homebrew
Mixing 2.0.0 and 2.1.1 shared libraries. nobu (Nobuyoshi Nakada)
09:46 AM Bug #9792 (Third Party's Issue): Segmentation fault while running jekyll serve with ruby installed by homebrew
viztor (Zili Yin)
12:00 PM Bug #9702: r45488以降、SolarisStudioで ext/readline がコンパイルエラー(readline 6.2使用)
r45518 was backported to ruby_2_1 branch at r45773. nagachika (Tomoyuki Chikanaga)
11:59 AM Revision f2013ff8 (git): merge revision(s) r45518: [Backport #9578] [Backport #9630] [Backport #9702]
* ext/readline/extconf.rb (rl_hook_func_t): check pointer type.
[ruby-dev:48089] [Bug #9702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:55 AM Revision ab58587f (git): merge revision(s) r45225,r45240,r45488: [Backport #9578] [Backport #9630]
* ext/readline/readline.c (Init_readline): Use rl_hook_func_t instead
of Function to support readline-6.3. (rl_hook_func_t is available
since readline-4.2.)
Reported by Dmitry Medvinsky. [ruby-core:61141] ...
nagachika (Tomoyuki Chikanaga)
10:53 AM Revision ad528e85 (git): parse.y: show symbol name
* parse.y (must_be_dynamic_symbol): show the name if it is a
static symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:46 AM Bug #9791 (Closed): Segfault using gets() in IRB or with sqlite3 gem
I built Ruby from the latest source, first with readline configured and installed. Windows 7, msys/mingw environment. Every time I'd press backspace, IRB and/or the cmd prompt would start deleting the second character back, and the cmd p... ChazDomerese (Chaz Domerese)
03:07 AM Bug #9789: Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)

>IO::SEEK_DATA自体はうごくんでしょうか。
~~~
% dd if=/dev/zero of=/var/tmp/test.dat bs=512 count=10 seek=16384
%
% ruby -e 'f = open("/var/tmp/test.dat"); f.seek(0, :DATA); p f.pos'
8388608
% ruby -e 'f = open("/var/tmp/test.dat"); f.seek(...
ngoto (Naohisa Goto)

04/30/2014

08:56 PM Bug #9790 (Closed): Zlib::GzipReader only decompressed the first of concatenated files
There is a similar old issue in Node that I came across that perfectly describes the situation in ruby:
https://github.com/joyent/node/issues/6032
In ruby given the following setup:
```
echo "1" > 1.txt
echo "2" > 2.txt
gzip ...
quainjn (Jake Quain)
05:25 PM Bug #9787: r45698 causes a segv in Rails tests
@nobu the segv seems fixed, but now we get an error:
~~~
/Users/aaron/git/rails/activesupport/lib/active_support/dependencies.rb:247:in `require': wrong argument type Symbol (expected Symbol) (TypeError)
from /Users/aaron/git/rails...
tenderlovemaking (Aaron Patterson)
08:07 AM Bug #9787 (Closed): r45698 causes a segv in Rails tests
Applied in changeset r45756.
----------
parse.y: pin down dynamic symbol only
* parse.y (rb_id_attrset): pin down dynamic symbol only. it is
possibe that attrset ID can be registered as a static symbol
after the corresponding attrg...
nobu (Nobuyoshi Nakada)
02:19 AM Bug #9787 (Assigned): r45698 causes a segv in Rails tests
nobu (Nobuyoshi Nakada)
02:18 AM Bug #9787: r45698 causes a segv in Rails tests
Aaron Patterson wrote:
> ~~~
> ...
`73328908` is `0x45ee90c`, so it is a static symbol.
> ~~~
> ...
Seems "new" ID with "=" was not actually new, but it has been interned in C level.
Does this fix it?
~~~diff
diff --git a/pa...
nobu (Nobuyoshi Nakada)
05:11 PM Feature #9781: Feature Proposal: Method#super_method
(2014/05/01 1:35), nobu@ruby-lang.org wrote:
>
> It's an ordinary `Method` (or `UnboundMethod`) instance, same as `SuperClass.instance_method(:foo).bind(obj)`.

Oh, OK. I misunderstood the spec of Method class.


--
// SASADA ...
ko1 (Koichi Sasada)
04:35 PM Feature #9781: Feature Proposal: Method#super_method
It's an ordinary `Method` (or `UnboundMethod`) instance, same as `SuperClass.instance_method(:foo).bind(obj)`.
nobu (Nobuyoshi Nakada)
07:13 AM Feature #9781: Feature Proposal: Method#super_method
What should happen on `#call` method with method objects returned from `super_method`?
ko1 (Koichi Sasada)
04:45 PM Revision f7397d98 (git): win32.c: add linkage
* win32/win32.c (ustatfs): need a linkage to get rid of conflict.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:44 PM Bug #9789: Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
`IO::SEEK_DATA`自体はうごくんでしょうか。
~~~diff
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index d2abd9e..5ed2ddd 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -1715,7 +1715,7 @@ class TestIO < Test::Unit::Te...
nobu (Nobuyoshi Nakada)
04:26 PM Bug #9789 (Closed): Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)
File::Statfs#type が無い(NotImplementedErrorになる)環境にて、
TestIO#test_seek_symwhence と TestIO#test_seek がエラーになります。
Solaris 10 (64ビット)、r45760 (+ Bug #9788 のパッチ)にて確認しました。
~~~
52) Error:
TestIO#test_seek_symwhence:
NotImplementedError: ty...
ngoto (Naohisa Goto)
04:07 PM Revision d681a624 (git): win32.c: declare for old VC
* win32/win32.c (ustatfs): declare GetVolumePathNameW for old VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:55 PM Bug #9788: TestFile#test_statfs = Bad System Call on Solaris
> 過去のリリースでコンパイルしたバイナリでは動作するのかもしれません。
Bad System Call が出てエラーになったのは64ビットでコンパイルした場合で、32ビットでは未確認でした。32ビットでコンパイルしたら、SunOS時代のバイナリが今でも一応動くのがSolaris10の売りですし、動作する気がします。
ngoto (Naohisa Goto)
03:38 PM Bug #9788 (Closed): TestFile#test_statfs = Bad System Call on Solaris
Applied in changeset r45768.
----------
* file.c (FSTATFS): check availability of struct statfs and
struct statvfs in addition to fstatfs(2) and fstatvfs(2).
This fixes error in Solaris. [Bug #9788] [ruby-dev:48145]
ngoto (Naohisa Goto)
02:48 PM Bug #9788: TestFile#test_statfs = Bad System Call on Solaris
In message <redmine.issue-9788.20140430140222.829abc7694e7af28@ruby-lang.org>
on Wed, 30 Apr 2014 14:02:22 +0000,
ngotogenome@gmail.com wrote:
> という記述があり、現在のSolaris10では、削除はされていないものの、呼ん
> でもSIGSYSかENOSYSを返してまともに動作しないようです。(または、未確
>...
taca (Takahiro Kambe)
02:02 PM Bug #9788 (Closed): TestFile#test_statfs = Bad System Call on Solaris
Solaris 10 にて、make test-all が以下のエラーで中断します。(r45759 で確認。)
~~~
TestFile#test_statfs = Bad System Call
make: *** [yes-test-all] Error 140
~~~
以下のように、statfsメソッド内にて呼んでいるfstatfsシステムコールがSIGSYSを発生させているようです。
~~~
% truss ruby -e 'f ...
ngoto (Naohisa Goto)
03:38 PM Revision 793d9c14 (git): * file.c (FSTATFS): check availability of struct statfs and
struct statvfs in addition to fstatfs(2) and fstatvfs(2).
This fixes error in Solaris. [Bug #9788] [ruby-dev:48145]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
03:37 PM Revision 795a6b23 (git): parse.y: show name as possible
* parse.y (rb_id_attrset): show the name of broken ID if it is
still registered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:25 PM Revision fba47c13 (git): parse.y: raise with numeric ID type
* parse.y (rb_id_attrset): all valid ID types are handled
properly, raise with numeric ID type which may be broken for
GCed static symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:16 PM Revision 58fdffaa (git): * 2014-05-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:16 PM Revision 6b7ed604 (git): parse.y: use rb_id2str
* parse.y (rb_id_attrset): use rb_id2str to get rid of method call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:16 PM Revision b5223355 (git): test_inadvertent_creation.rb: use Symbol.find
* ext/-test-/symbol/intern.c: Symbol.find is available now.
* test/-ext-/symbol/test_inadvertent_creation.rb (noninterned_name):
use Symbol.find instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45763 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
02:53 PM Revision d46cd5cf (git): missed at r45748.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
02:38 PM Feature #9772: IO#statfs and File::Statfs
In message <redmine.journal-46331.20140426142125.1b2e3962cfe9fb0b@ruby-lang.org>
on Sat, 26 Apr 2014 14:21:25 +0000,
akr@fsij.org wrote:
> Issue #9772 has been updated by Akira Tanaka.
>
>
> Takahiro Kambe wrote:
>> 「NetBSD ...
taca (Takahiro Kambe)
06:27 AM Feature #9772: IO#statfs and File::Statfs
Akira Tanaka wrote:
> ruby-core:62137 で Eric Wong も尋ねていますが、なぜ POSIX で定義されている statvfs じゃなくて、statfs なのか、というのは私も最初に疑問に思いました。
> ...
statfs では f_type の類がとれないからですね。[ruby-core:62150]
> そして、その理由があったとしても、API としては statvfs という名前にして、
> ...
うーん...
naruse (Yui NARUSE)
12:09 PM Revision 60375cd6 (git): parse.y: use rb_str_ellipsize
* parse.y (next_id): use rb_str_ellipsize to preserve encoding and
get rid of incomplete multibyte sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:58 AM Revision ca319081 (git): * gc.c (gc_after_sweep): suppress unnecessary expanding heap.
Tomb heap pages are freed pages here, so expanding heap is
not required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
10:34 AM Bug #9759: [TracePoint API] return event missing when raising exception
Thanks!! So happy that this got fixed!! I hope it'll be added to 2.1 too. deivid (David Rodríguez)
09:18 AM Bug #9759: [TracePoint API] return event missing when raising exception
It can be reproduced by the following code:
```
class C9759
define_method(:foo){
raise
}
end
events = []
obj = C9759.new
TracePoint.new(:call, :return){|tp|
events << [tp.event, tp.method_id]
...
ko1 (Koichi Sasada)
09:08 AM Bug #9759 (Closed): [TracePoint API] return event missing when raising exception
Applied in changeset r45758.
----------
* vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
it is bmethod frame.
* vm.c (vm_exec): invoke RUBY_EVENT_RETURN event if rollbacked frame
is VM_FRAME_FLAG_BMETHOD.
[Bug #97...
ko1 (Koichi Sasada)
09:11 AM Revision 751a8dce (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:08 AM Revision ba6b0acd (git): * vm.c (invoke_block_from_c): add VM_FRAME_FLAG_BMETHOD to record
it is bmethod frame.
* vm.c (vm_exec): invoke RUBY_EVENT_RETURN event if rollbacked frame
is VM_FRAME_FLAG_BMETHOD.
[Bug #9759]
* test/ruby/test_settracefunc.rb: add a test for TracePoint/set_trace_func.
* vm_core.h: renmae rb_thread...
ko1 (Koichi Sasada)
08:06 AM Revision 9873f990 (git): * 2014-04-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:06 AM Revision 48384bba (git): parse.y: pin down dynamic symbol only
* parse.y (rb_id_attrset): pin down dynamic symbol only. it is
possibe that attrset ID can be registered as a static symbol
after the corresponding attrget ID has been registered as a
dynamic, and then the latter may be collected.
...
nobu (Nobuyoshi Nakada)
07:50 AM Bug #9560: Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 to 2.0
oops, it's reverted on ruby_2_0_0 because of incompatibility... usa (Usaku NAKAMURA)
06:33 AM Bug #9560: Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 to 2.0
backported r43682 (test), r43727 (test), r43752 and r43759 into ruby_2_0_0 at r45747.
# note: also implement assert_raise_with_message for these tests.
usa (Usaku NAKAMURA)
07:45 AM Revision 03da71a9 (git): revert r45747 because it introduced severe incompatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:40 AM Bug #9702: r45488以降、SolarisStudioで ext/readline がコンパイルエラー(readline 6.2使用)
backported into ruby_2_0_0 at r45754. usa (Usaku NAKAMURA)
07:39 AM Revision da20411b (git): merge revision(s) 45518: [Backport #9702]
* ext/readline/extconf.rb (rl_hook_func_t): check pointer type.
[ruby-dev:48089] [Bug #9702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:38 AM Bug #9688: Ruby's child process inherits parent's sockets (mswin)
backported into ruby_2_0_0 at r45753. usa (Usaku NAKAMURA)
07:37 AM Revision e6c3b9cd (git): merge revision(s) 45471: [Backport #9688]
* win32/win32.c (rb_w32_accept, open_ifs_socket, socketpair_internal):
reset inherit flag of socket to avoid unintentional inheritance of
socket. note that the return value of SetHandleInformation() is not
...
U.Nakamura
07:35 AM Bug #9652: Marshal doesn't dump/load Time#zone correctly with too many time object
backported r45364, r45395, r45396, r45403 and r45406 into ruby_2_0_0 at r45752. usa (Usaku NAKAMURA)
07:34 AM Revision fdec8bb0 (git): merge revision(s) 45364,45395,45396,45403,45406: [Backport #9652]
* time.c (time_mload): freeze and preserve marshal-loaded time zone
* test/ruby/test_time.rb: add test for GC on loaded object
[Bug #9652]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45752 b2dd03c...
U.Nakamura
07:30 AM Bug #9656: check for -fno-defer-pop option in ext/dl/extconf.rb
backported into ruby_2_0_0 at r45751. usa (Usaku NAKAMURA)
07:29 AM Revision 29fdecfe (git): merge revision(s) 45365: [Backport #9656]
dl/extconf.rb: check for -fno-defer-pop option
* ext/dl/extconf.rb: check for -fno-defer-pop option, since clang
5.1 no longer support -fno-defer-pop option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@457...
U.Nakamura
07:27 AM Bug #9475: Behavior change with include + super + alias_method between 1.9.x and 2.x
backported r45367, r45387, r45388 and r45389 into ruby_2_0_0 at r45750. usa (Usaku NAKAMURA)
07:26 AM Revision 0b9f0164 (git): merge revision(s) 45367,45387,45388,45389: [Backport #9475]
* vm_method.c (rb_method_entry_get_without_cache): me->klass is 0
for a method aliased in a module. [ruby-core:61636] [Bug #9663]
* vm_method.c (rb_method_entry_get_without_cache): get rid of
infinite recursion at aliases in a subc...
U.Nakamura
07:18 AM Revision 16a10e0a (git): missed at previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:10 AM Bug #9622: Extra method arguments are magically swallowed after first successful call, possible method cache bug
backported into ruby_2_0_0 at r45748. usa (Usaku NAKAMURA)
07:09 AM Revision 13ed57b4 (git): merge revision(s) 45320,45321: [Backport #9622]
* vm_insnhelper.c (vm_callee_setup_arg): turn a macro into an
inline function.
* vm_insnhelper.c (vm_callee_setup_arg): disable fastpath if splat
argument, since argc may differ for each calls.
[rub...
U.Nakamura
07:02 AM Bug #9525: Stuck with Socket.pack_sockaddr_in
memo: related commits: 45046,45047,45063,45087,45150,45151,45152 usa (Usaku NAKAMURA)
06:32 AM Revision 20d4a375 (git): merge revision(s) 43682,43727,43752,43759: [Backport #9560]
* lib/delegate.rb (Delegator#send): override to get rid of global function interference.
[Fixes GH-449]
* lib/delegate.rb (Delegator#send): separate from method_missing so
that super calls proper method.
...
U.Nakamura
06:04 AM Revision a2542330 (git): merge revision(s) 45488: [Backport #9631]
* ext/readline/extconf.rb: fix typo, `$defs` not `$DEFS`.
[ruby-core:61756] [Bug #9578]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:00 AM Bug #9763 (Third Party's Issue): Windows上のirbで「金」と入力できない
usa (Usaku NAKAMURA)
02:26 AM Bug #9763: Windows上のirbで「金」と入力できない
This issue is not a bug of ruby or irb but a bug of rb-readline library.
I fixed this bug in https://github.com/phasis68/rb-readline.
You can try with https://github.com/phasis68/rb-readline/archive/master.zip
If you have issues a...
phasis68 (Heesob Park)
04:19 AM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
MVM branch has incomplete per-thread cwd, some methods are not implemented however, e.g., `File#rename`. nobu (Nobuyoshi Nakada)
02:01 AM Feature #9786 (Rejected): refinement & map(&:refinement_method) does not work
Refinements does affects to the current scope only.
And `Symbol#to_proc` is independent from the callers' context.
A block works as you expect:
~~~ruby
puts a.map {|x| x.add_z}
~~~
nobu (Nobuyoshi Nakada)

04/29/2014

10:27 PM Bug #9787 (Closed): r45698 causes a segv in Rails tests
I haven't been able to reduce the reproduction code yet, but r45698 introduced a segv. If you need any other info than what I've provided below, please let me know!
Here is the backtrace from the debugger:
~~~
(lldb) bt
* thread...
tenderlovemaking (Aaron Patterson)
09:26 PM Bug #9592: Fix segfault with old OpenSSL
Nobuyoshi Nakada wrote:
> I suspect it occurs only with very old version OpenSSL, I can't reproduce it on other platforms at least.
Yes, Heroku is running OpenSSL 0.9.8k 25 Mar 2009 on their Cedar stack.
(heroku run openssl version)...
nathany (Nathan Youngman)
02:25 AM Bug #9592: Fix segfault with old OpenSSL
I suspect it occurs only with very old version OpenSSL, I can't reproduce it on other platforms at least.
It is planned to backport to 2.1, and the next 2.1 will be 2.1.2.
nobu (Nobuyoshi Nakada)
07:10 PM Feature #9777: Feature Proposal: Proc#to_lambda
I find that using `throw` is useful in the situation you describe. It gives a nice explicit message about what's going: it's like a multi-level return to the point where you want to `catch` it. avit (Andrew Vit)
07:02 PM Feature #9777: Feature Proposal: Proc#to_lambda
Andrew Vit wrote:
> Would it work to just wrap it inside a lambda to get the semantics you want?
Like `lambda &proc`? That would be fine. As Nobu mentioned Proc and lambda behave differently, sometimes I want control over the behavio...
schneems (Richard Schneeman)
04:20 PM Feature #9777: Feature Proposal: Proc#to_lambda
Would it work to just wrap it inside a lambda to get the semantics you want? avit (Andrew Vit)
12:36 AM Feature #9777: Feature Proposal: Proc#to_lambda
`return` in a proc exits the defined method, unless it has returned already.
Turning a proc into a lambda disappoints that expectation.
It doesn't feel a good idea.
nobu (Nobuyoshi Nakada)
06:57 PM Feature #9786 (Rejected): refinement & map(&:refinement_method) does not work
Greetings!
Thank you for your hard work on ruby, I love the language.
I encountered an oddity, in which, I expected a refinement to be available and it wasn't.
Here is the sample code using: ruby 2.1.1p76 (2014-02-24 revision 45...
wilburlo (Daniel Lo)
04:49 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
richard.schneeman@gmail.com wrote:
> It's come to my attention that this is fairly hardcoded into the OS
> (changing CWD is a per-process operation rather than a per-thread
> one). I do not have a proposed implementation for how to c...
normalperson (Eric Wong)
03:38 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
If forking is an option for you, it would allow you to use chdir blocks the way you want I think. rosenfeld (Rodrigo Rosenfeld Rosas)
03:24 PM Feature #9785: Feature Proposal: Dir.chdir Thread Safety
It's come to my attention that this is fairly hardcoded into the OS (changing CWD is a per-process operation rather than a per-thread one). I do not have a proposed implementation for how to change directory within a thread, perhaps we c... schneems (Richard Schneeman)
02:13 PM Feature #9785 (Rejected): Feature Proposal: Dir.chdir Thread Safety
I am proposing that `Dir.chdir` with a block be local to the current thread and any threads that are created inside of that block. `FileUtils.cd` and `FileUtils.chdir` should also behave the same way.
Currently `Dir.chdir` will chang...
schneems (Richard Schneeman)
02:06 PM Bug #9759: [TracePoint API] return event missing when raising exception
Bump, @ko1? deivid (David Rodríguez)
01:27 PM Bug #9189: Build failure on Windows in case of nonascii TEMP environment.
I still failed to build trunk.
~~~
C:\work\ruby-2.2.0-r45738>nmake
...
generating psych-x64-mswin64_120.def
compiling psych.c
psych.c
compiling psych_emitter.c
psych_emitter.c
compiling psych_parser.c
psych_parser.c
compilin...
phasis68 (Heesob Park)
08:42 AM Revision b6d7233d (git): fix style of ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:29 AM Feature #9783: [PATCH] Add Method#curry
Updated the patch with documentation. There's an interesting side effect to be considered. `Method#to_proc` returns a lambda that checks its arity. `Proc#curry` takes an optional `arity` argument. If this doesn't match the method's arity... plexus (Arne Brasseur)
05:39 AM Feature #9783 (Closed): [PATCH] Add Method#curry
There is already Proc#curry, but to curry a method you need to go through to_proc. This patch adds `Method#curry` which delegates to `method.to_proc.curry`.
Looking forward to seeing this discussed.
plexus (Arne Brasseur)
05:42 AM Feature #9784 (Open): Alias URI#merge to URI#join
To make Pathname and URI more consistent, it would be great to have a `join` instance method that behaves like `Pathname#join`. This could be a simple alias of `URI#merge`. plexus (Arne Brasseur)
05:28 AM Bug #9782: Array#bsearch skip first match while using block with complex condition
.
Understood. Thanks for explanation.
vsyrovat (Valentin Syrovatskiy)
05:14 AM Bug #9782 (Rejected): Array#bsearch skip first match while using block with complex condition
Array#bsearch is binary search; it works correctly *only when* the array is sorted.
In other words, "ary.map { cond }" must return [false, false, ..., false, true, true, ..., true] if you want to use "ary.bsearch { cond }".
> [{a:1, ...
mame (Yusuke Endoh)
04:19 AM Bug #9782: Array#bsearch skip first match while using block with complex condition
More accurate description: Array#bsearch cannot find first match while using block with equality condition:
Example:
$ irb
2.1.1 :001 > [1, 2].bsearch{|x| x == 1}
=> nil
(WRONG, expected 1)
2.1.1 :002 > [1, 2].bsearch{|x| x > 0...
vsyrovat (Valentin Syrovatskiy)
04:09 AM Bug #9782 (Rejected): Array#bsearch skip first match while using block with complex condition
Description: Array#bsearch cannot find first match when using block with condition by hash key.
Example:
$ irb
2.1.1 :001 > [{a:1, b:2}, {a:3, b:4}].bsearch{|x| x[:a] == 1}
=> nil
(WRONG, expected {a:1, b:2})
2.1.1 :002 > [{a:3...
vsyrovat (Valentin Syrovatskiy)
05:19 AM Revision 07f25637 (git): * (lib/tmpdir.rb): Rescue LoadError on etc.so for miniruby.
Revert r45707, r45711, r45717.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
04:24 AM Feature #9781: Feature Proposal: Method#super_method
I would also find this feature very useful when debugging large code bases with complicated class/module hierarchies. Anonymous
01:59 AM Feature #9781: Feature Proposal: Method#super_method
A patch.
No tests yet.
~~~diff
diff --git a/proc.c b/proc.c
index 8153cc9..d1db478 100644
--- a/proc.c
+++ b/proc.c
@@ -1481,11 +1481,17 @@ method_owner(VALUE obj)
return defined_class;
}

-void
-rb_method_name_error...
nobu (Nobuyoshi Nakada)
03:51 AM Revision 17a4a9b9 (git): * lib/fileutils.rb: Don't need to define fu_get_gid and fu_get_gid in
rescue LoadError on 'etc'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:35 AM Revision cce5fe1a (git): * test/ruby/test_symbol.rb (TestSymbol#test_symbol_gc_1): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:25 AM Revision 0f51db6a (git): * parse.y (symbols_i): like r45492, call rb_gc_resurrect().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)

04/28/2014

10:23 PM Feature #9781: Feature Proposal: Method#super_method
I also have this problem especially when debugging code where modules are mixed in at runtime, so I have to do something like this:
~~~ruby
class << obj; self; end.ancestors.find_all { |klass|
klass.method_defined? :foo
}.map { |...
tenderlovemaking (Aaron Patterson)
10:07 PM Feature #9781 (Closed): Feature Proposal: Method#super_method

When `super` is called in a method the Ruby VM knows how to find the next ancestor that has that method and call it. It is difficult to do this manually, so I propose we expose this information in Method#super_location.
Ruby Method ...
schneems (Richard Schneeman)
07:53 PM Bug #9592: Fix segfault with old OpenSSL
We saw this error in production with Ruby 2.1.1p76 on Heroku, but I don't know how to reproduce it. Is a backport to 2.1.1 planned? Or including the fix in 2.1.2?
```
Apr 22 08:03:01 app/worker.1: /app/vendor/ruby-2.1.1/lib/ruby/2.1...
nathany (Nathan Youngman)
07:35 PM Revision 7973883c (git): new macros for statfs_t
* file.c (HAVE_STRUCT_STATFS_T_F_FSTYPENAME): Add new macro for
statfs_t.
* file.c (HAVE_STRUCT_STATFS_T_F_TYPE): ditto.
* file.c (rb_io_statfs): check FSTATFS macro only instead of
HAVE_FSTATFS and HAVE_FSTATVFS.
* file.c (statfs_...
znz (Kazuhiro NISHIYAMA)
07:35 PM Revision c521d87f (git): fix preprocessor condition
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:55 PM Feature #9777: Feature Proposal: Proc#to_lambda
Sorry for the delayed response. I was not "watching" this issue by default.
> Why can't you use break and next?
I wanted this to make a public api based on anonymous functions: https://github.com/opro/opro#password-token-exchange (...
schneems (Richard Schneeman)
05:49 PM Bug #9780: sysread blocks when reading some files (AIX)
kcburge@gmail.com wrote:
> Ruby 1.9.3-p286 does not do this.

Sorry, I might have introduced this bug in 2.0
Can you try the following patch? Thanks.

http://80x24.org/0001-io.c-try-to-fix-9780.patch
normalperson (Eric Wong)
04:03 PM Bug #9780 (Closed): sysread blocks when reading some files (AIX)
This hangs when running on AIX 7 build of Ruby 2.1.1:
test_sysread:
~~~ruby
filename = "/proc/#{Process.pid}/as"
File.open(filename, 'rb') do |f|
p f.sysread(4)
end
~~~
Ruby 1.9.3-p286 does not do this. If I simply chang...
kcburge (Kevin Burge)
03:20 PM Revision 5aa94c6c (git): * 2014-04-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:20 PM Revision 37ce765b (git): fix typo [Fix GH-603]
* bootstraptest/test_literal.rb: fix typo of "dynamic". [ci skip]
* regexp.rdoc: fix typo of "organized". [ci skip]
* lib/session.rb: fix typo of "recognized". [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45737 b2dd03c...
nobu (Nobuyoshi Nakada)
02:13 PM Revision 1cabc3ca (git): file.c: fix typo
* file.c (FSTATFS): fix typo and commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:10 PM Revision a76b0ed5 (git): file.c: fix errors on Windows
* file.c (rb_io_statfs, rb_statfs_init, statfs_inspect): fix
compilation errors on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:46 PM Revision 19fac443 (git): * configure.in (HAVE_STRUCT_STATFS_F_TYPE): check struct statfs.f_type
to support OpenBSD.
* file.c (statfs_type): use above macro to switch.
* file.c (statfs_inspect): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:08 AM Revision 559d689c (git): * configure.in: check struct statvfs and struct statvfs.f_fstypename.
* configure.in: on NetBSD fstatfs is obsoleted.
* file.c: support NetBSD for File::Statfs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:46 AM Revision 1782a16e (git): * 2014-04-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:46 AM Revision ec0cfc3a (git): * gc.c: This argument must be a pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
08:46 AM Revision 6ee891d6 (git): * gc.c: Fix typos. These are undefined variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
07:39 AM Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
Usaku NAKAMURA wrote:
> Nobuyoshi Nakada wrote:
> ...
I thought 1. is spec on Windows because old version ruby, `dir` command and `FindFirstFile` behavior is same.
I agree to change behavior unixen systems.
h.shirosaki (Hiroshi Shirosaki)
07:02 AM Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
Nobuyoshi Nakada wrote:
> In that case, what should it return?
> ...
First I think it should returns the directory that the symlink exists (maybe 1 ?),
but now I think it should be 3.
> > Skipping `READDIR` usage for this case so...
usa (Usaku NAKAMURA)
06:40 AM Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
Hiroshi Shirosaki wrote:
> If current directory is C:\foo\bar (linked to V:\), `READDIR` of '.' (i.e. `FindFirstFile(".\\*", &d)`) globs linked directory (V:/), but the result doesn't have '..'.
> ...
In that case, what should it retur...
nobu (Nobuyoshi Nakada)
05:31 AM Bug #9648 (Assigned): Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
If current directory is C:\foo\bar (linked to V:\), `READDIR` of '.' (i.e. `FindFirstFile(".\\*", &d)`) globs linked directory (V:/), but the result doesn't have '..'.
So we cannot trace parent directory.
Skipping `READDIR` usage for...
h.shirosaki (Hiroshi Shirosaki)
12:21 AM Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
Nobuyoshi Nakada wrote:
> Is there any files at `V:/`?
Yes, there are some files and directories at `V:/`.
If no files and directories exist at `V:/`, the result is same.
h.shirosaki (Hiroshi Shirosaki)
07:28 AM Feature #9779: Add Module#descendents
s/descendents/descendants/ shugo (Shugo Maeda)
07:02 AM Feature #9779 (Open): Add Module#descendents
Now classes have links to their subclasses, so how about to add Module#descendents?
```ruby
class X
end
class Y < X
end
class Z < Y
end
p X.descendents #=> [X, Y, Z]
module A
end
module B
include A
end
mo...
shugo (Shugo Maeda)
01:56 AM Feature #9778 (Rejected): Bring shortcut methods to Hash
nobu (Nobuyoshi Nakada)
01:13 AM Feature #9778: Bring shortcut methods to Hash
`Hash#+` rejected in #6225. Also see #7739 for `Hash#|`. bitsweat (Jeremy Daer)

04/27/2014

10:48 PM Feature #9778 (Rejected): Bring shortcut methods to Hash
My obsession with easy syntax annoys me when I see `Hash#merge` does not have a shortcut in the form of a mathematical operation (like `-` or `+`).
~~~ruby
h_one = { :foo => "bar", :this => "that", :all => "nothing" }
h_two = { :foo...
natesymer (Nathaniel Symer)
03:34 PM Bug #9657 (Closed): Segfault in bigdecimal/util.rb Float#to_d
I close the ticket for backporting r45015.
I've confirmed that this issue is solved on trunk, by following code.
~~~ruby
require 'bigdecimal'
GC.stress = true
(200..400).each do |i|
p BigDecimal.new(10 ** i) * BigDecimal.new(...
wanabe (_ wanabe)
10:45 AM Revision a3a6da5e (git): trivial change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:44 AM Revision bb05bcde (git): * ext/date/date_strptime.c (date__strptime_internal): do not overwrite century.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
07:35 AM Revision 264b4150 (git): * 2014-04-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:35 AM Revision 248fced3 (git): fix indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
01:14 AM Feature #9777 (Feedback): Feature Proposal: Proc#to_lambda
Why can't you use `break` and `next`? nobu (Nobuyoshi Nakada)
01:06 AM Feature #9777: Feature Proposal: Proc#to_lambda
Richard Schneeman wrote:
> Currently different block objects such as a lambda can be converted into to a proc: http://www.ruby-doc.org/core-1.9.3/Proc.html#method-i-to_proc
It changes nothing, but returns `self` as-is, without any ef...
nobu (Nobuyoshi Nakada)

04/26/2014

06:02 PM Feature #9777 (Feedback): Feature Proposal: Proc#to_lambda
Currently different block objects such as a lambda can be converted into to a proc: http://www.ruby-doc.org/core-1.9.3/Proc.html#method-i-to_proc
However you cannot turn a Proc instance into a lambda. Since a Proc and lambda behave di...
schneems (Richard Schneeman)
02:21 PM Feature #9772: IO#statfs and File::Statfs
Takahiro Kambe wrote:
> 「NetBSD はどうなのかなぁ。」とは、どのような意味でしょう??
NetBSD で動かないのはよろしくないんじゃないか、という意味です。
akr (Akira Tanaka)
09:48 AM Feature #9772: IO#statfs and File::Statfs
In message <redmine.journal-46305.20140424231120.f745bb8a50ac0750@ruby-lang.org>
on Thu, 24 Apr 2014 23:11:20 +0000,
akr@fsij.org wrote:
> 214 Others have statvfs.f_fstypename[_VFS_NAMELEN] (NetBSD 3.0).
> 215 Others have ...
taca (Takahiro Kambe)
08:36 AM Feature #9711: Remove test-unit and minitest from stdlib.
I update my patch. this patch copy test-unit and minitest to test/lib and separate to dependecy from stdlib.
Could someone review this patch?
hsbt (Hiroshi SHIBATA)
07:38 AM Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
Hi,

In message "[ruby-core:62170] [ruby-trunk - Bug #9648] Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows"
on Apr.26,2014 16:22:34, <nobu@ruby-lang.org> wrote:
> 'ok' means it globs as if it ...
usa (Usaku NAKAMURA)
07:22 AM Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
Usaku NAKAMURA wrote:
> I've tested on 1.9.3-p545, 2.0.0-p451, 2.1.1 and found they are ok.
‘OK’ means it globs as if it is a real directory but not a symlink?
> ...
It doesn’t glob anything, neither the parent of the symlink, or ...
nobu (Nobuyoshi Nakada)
07:02 AM Bug #9648: Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
I've tested on 1.9.3-p545, 2.0.0-p451, 2.1.1 and found they are ok.
This problem is only with trunk.
usa (Usaku NAKAMURA)
06:46 AM Bug #9648 (Feedback): Dir.glob('../*') shows unexpected result in a symbolic linked directory on Windows
Is there any files at `V:/`? nobu (Nobuyoshi Nakada)
02:53 AM Revision 24065577 (git): * test/ruby/test_enum.rb (test_flat_map): Added test for flat_map.
Contribute from @igaiga. [fix GH-598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
01:55 AM Bug #9776 (Closed): Ruby double-splat operator unexpectedly modifies hash
Applied in changeset r45724.
----------
compile.c: non-destructive keyword splat
* compile.c (compile_array_): make copy a first hash not to modify
the argument itself. keyword splat should be non-destructive.
[ruby-core:62161] [B...
nobu (Nobuyoshi Nakada)
01:55 AM Revision 37e432b5 (git): compile.c: non-destructive keyword splat
* compile.c (compile_array_): make copy a first hash not to modify
the argument itself. keyword splat should be non-destructive.
[ruby-core:62161] [Bug #9776]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45724 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
01:24 AM Feature #8956 (Rejected): Allow hash members delimited by \n inside of {}
It seems this issue has diverged so far from the original.
I reject it for now.
nobu (Nobuyoshi Nakada)
12:21 AM Revision 3bd10c6e (git): update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:07 AM Bug #9757: Segfault in 2.1.1 from RSpec expect_any_instance_of
Sorry I missed the notification about your message. I've retried this with trunk (ruby 2.2.0dev (2014-04-25 trunk 45720) [x86_64-darwin13]) and it just gives a SystemStackError, with message "stack level too deep" now, so it does seem l... dafaber (David Faber)
 

Also available in: Atom