Project

General

Profile

Activity

From 06/07/2011 to 06/13/2011

06/13/2011

11:59 PM Feature #4877: Unify Variable Expansion within Strings
Hi,

In message "Re: [ruby-core:37079] [Ruby 1.9 - Feature #4877] Unify Variable Expansion within Strings"
on Mon, 13 Jun 2011 19:07:44 +0900, Lazaridis Ilias <ilias@lazaridis.com> writes:
|
|I understand this, but:
| * ...
matz (Yukihiro Matsumoto)
10:21 PM Feature #4877: Unify Variable Expansion within Strings
Florian Gilcher wrote:
> "#test" is used _very_ often, especially in many test suites out there, as it is the notation used for instance methods in Ruby. So changing this would break _a lot of code_, for example: https://github.com/data...
lazaridis.com (Lazaridis Ilias)
09:53 PM Feature #4877: Unify Variable Expansion within Strings
On Mon, Jun 13, 2011 at 11:07 AM, Lazaridis Ilias <ilias@lazaridis.com> wrote:
> Yukihiro Matsumoto wrote:
>> Expanding non-prefixed variables/expressions are too easy to conflict.  For example, you will have problem to print a string...
aprescott (Adam Prescott)
09:44 PM Feature #4877: Unify Variable Expansion within Strings
"#test" is used _very_ often, especially in many test suites out there, as it is the notation used for instance methods in Ruby. So changing this would break _a lot of code_, for example: https://github.com/datamapper/dm-core/blob/master... Skade (Florian Gilcher)
07:07 PM Feature #4877: Unify Variable Expansion within Strings
Yukihiro Matsumoto wrote:
> Expanding non-prefixed variables/expressions are too easy to conflict. For example, you will have problem to print a string like "Foo#bar". It would print "Foonil" or whatever depends on the value of the lo...
lazaridis.com (Lazaridis Ilias)
01:09 PM Feature #4877 (Rejected): Unify Variable Expansion within Strings
Expanding non-prefixed variables/expressions are too easy to conflict. For example, you will have problem to print a string like "Foo#bar". It would print "Foonil" or whatever depends on the value of the local variable bar. For me, th... matz (Yukihiro Matsumoto)
01:04 PM Feature #4877 (Assigned): Unify Variable Expansion within Strings
naruse (Yui NARUSE)
06:39 AM Feature #4877 (Rejected): Unify Variable Expansion within Strings
class VarTester
$g = "global"
@@c = "class"

def f
"function"
end
def initialize
@i = "instance"
l = "local"
puts "#$g #@@c #@i #l #f #{l} #{f}"
end
end
VarTester.new
#=> global class i...
lazaridis.com (Lazaridis Ilias)
11:53 PM Feature #4878: CMath に frexp, ldexp, hypot の3関数は不要ではないか
まつもと ゆきひろです

In message "Re: [ruby-dev:43787] [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか"
on Mon, 13 Jun 2011 23:16:37 +0900, Kenta Murata <muraken@gmail.com> writes:

|Issue #4878 has been r...
matz (Yukihiro Matsumoto)
11:53 PM Feature #4878: CMath に frexp, ldexp, hypot の3関数は不要ではないか
まつもと ゆきひろです

In message "Re: [ruby-dev:43787] [Ruby 1.9 - Feature #4878][Open] CMath に frexp, ldexp, hypot の3関数は不要ではないか"
on Mon, 13 Jun 2011 23:16:37 +0900, Kenta Murata <muraken@gmail.com> writes:

|Issue #4878 has been r...
matz (Yukihiro Matsumoto)
11:16 PM Feature #4878 (Rejected): CMath に frexp, ldexp, hypot の3関数は不要ではないか
現在 CMath は、Math を include して各関数を再定義することで実装されています。
このやり方では、複素数向けの関数としては定義できない frexp, ldexp, hypot の3関数も同時に include されてしまいます。
これらは Math の関数として定義されていれば良いだけですので、CMath からの削除を提案します。
mrkn (Kenta Murata)
11:38 PM Bug #4544 (Closed): Ripperで「:"a \n b \n c"」を正常にパースできない
This issue was solved with changeset r32067.
Kazunori, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* parse.y (parser_parse_string): flush delayed token. based ...
nobu (Nobuyoshi Nakada)
11:23 PM Bug #4473: Calling return within begin still executes else
(2011/06/11 16:21), Nobuyoshi Nakada wrote:
> I bet that it is a bug in 1.8.

Matz, could you give me a comment, again?

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
11:12 PM Bug #3676 (Closed): CMath.cbrt(-8)の結果が複素数にならない
CMath についてですが、現状で複素数に対応できていないのは以下の3関数です。
gamma
lgamma
erf
erfc
これらのうち、gamma は exp(lgamma) なので良いとして、他の3種類はアルゴリズムを手に入れるところからのスタートなので、1.9.4で対応することを目標に取り組みます。
それから、frexp, ldexp, hypot の3関数は CMath の下に定義する必要は無いと思いますので、別チケットで削除の提案をし...
mrkn (Kenta Murata)
02:00 PM Bug #3676: CMath.cbrt(-8)の結果が複素数にならない
まず CMath.cbrt 単独で、主値を返却するように修正します。
CMath の他の関数についてはバグとして、オプション引数の導入についてはフィーチャーとちえ、個別にチケット化します。
mrkn (Kenta Murata)
11:06 PM Bug #4855 (Assigned): rb_context_t::saved_thread::machine_stack_(start|end) should be cleared
別途メールで芝さんに確認して頂けました。問題なさそうなのでこれでコミットします。 nagachika (Tomoyuki Chikanaga)
10:29 PM Feature #4824: Provide method Kernel#executed?
On Sat, Jun 11, 2011 at 11:20:31AM +0900, Rocky Bernstein wrote:
> On Fri, Jun 10, 2011 at 10:03 AM, Cezary <cezary.baginski@gmail.com> wrote:
> > On Fri, Jun 10, 2011 at 07:20:32AM +0900, Rocky Bernstein wrote:
> >
> > > It has...
Cezary (Cezary Baginski)
06:53 PM Bug #4825 (Closed): BigDecimal#new is broken
I fixed this issue by r32052.
mrkn (Kenta Murata)
05:23 PM Revision d4eae546 (git): * test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
fix for Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:06 PM Bug #4579: SecureRandom + OpenSSL may repeat with fork
I think securerandom_opensslfree.diff is too radical for this issue.
It may decrease working platforms.
However concrete advantage/disadvantage between OpenSSL and /dev/urandom is interesting.
(portability, randomness quality, perfo...
akr (Akira Tanaka)
12:23 PM Bug #4579: SecureRandom + OpenSSL may repeat with fork
Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
> Eeek. I dislike to remove OpenSSL dependency from SecureRadom. Because
> /dev/urandom is less secure than OpenSSL.

Is that only the case with poor urandom implementations in ...
normalperson (Eric Wong)
11:00 AM Bug #4579: SecureRandom + OpenSSL may repeat with fork
The patch looks good to me.
Thank you.
kosaki (Motohiro KOSAKI)
01:11 AM Bug #4579: SecureRandom + OpenSSL may repeat with fork
Hm.
I don't like pthread_atfork because the hook is run even if we don't need random functions in the child process.
(Remember only async signal safe functions are safe in forked child process)
We should delay modifying PRNG state...
akr (Akira Tanaka)
04:59 PM Feature #4645: Pass existing buffer to getsockopt
I think it is reasonable.
It also makes us possible to specify the buffer size.
Currently the buffer size for getsockopt is fixed. (256 bytes)
However I'd like to see actual good example for this feature.
It is great for the meth...
akr (Akira Tanaka)
04:12 PM Revision 1d147fb2 (git): * test/coverage/test_coverage.rb: add a test for restart. a patch
from Xavier Shay. [ruby-core:36745]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
04:06 PM Revision 7023a64d (git): * ext/coverage/coverage.c: make it restartable. [ruby-core:36539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
03:06 PM Revision 8dddc12a (git): * 2011-06-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision afd1a64c (git): * thread.c (rb_thread_schedule_rec): call gvl_yield() unconditionally.
* thread_pthread.c: remove HAVE_GVL_YIELD macro.
* thread_win32.c (gvl_yield): new. this fallback logic was moved from
rb_thread_schedule_rec().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32069 b2dd03c8-39d4-4d8f-98ff-823fe69...
kosaki (Motohiro KOSAKI)
02:51 PM Revision 57ed1e9d (git): * ext/io/console/console.c (console_dev): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
02:38 PM Revision ce90fcdb (git): * parse.y (parser_parse_string): flush delayed token. based on a
patch by Masaya Tarui in [ruby-dev:43762]. Bug #4544
* parse.y (yylex): revert r24557. delayed token at the end of
string should be flushed already by the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32067 b2dd03c...
nobu (Nobuyoshi Nakada)
02:33 PM Revision 73c6b9d4 (git): * ext/io/console/console.c (console_dev): console should be
unbuffered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:28 PM Revision a7b0b52f (git): * ext/io/console/console.c (console_dev): take care of no-ctty
case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 PM Revision bcfc22b1 (git): * thread_pthread.c: rewrite GVL completely.
* thread_win32.c: ditto.
* thread_pthread.h: ditto.
* vm_core.h: ditto.
* thread.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:12 PM Revision e504a81f (git): * test/socket/test_unix.rb: don't use Thread.abort_on_exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:11 PM Revision 9778737d (git): * ext/socket/unixsocket.c (unix_send_io): race condition fixed.
(unix_recv_io): ditto.
fixed by Eric Wong. [ruby-core:35574]
* test/socket/test_unix.rb: test added for above problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:06 PM Revision 3254c1bf (git): * ext/io/console/console.c (console_dev): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:05 PM Revision a72f0334 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:42 PM Bug #4536 (Closed): 定数参照について1.8と1.9の違い
matz (Yukihiro Matsumoto)
01:33 PM Bug #4536: 定数参照について1.8と1.9の違い
Koichi Sasada wrote:
> これは閉じてもいいでしょうか.
まつともさんがこれでいいならいいと思います。
というわけでまつもとさんにアサインしました。
shugo (Shugo Maeda)
12:49 PM Revision e3672626 (git): * thread_win32.c (native_cond_signal): remove unnecessary rb_bug().
It's addional fix for r32021. [Bug #4696]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
11:56 AM Revision 83961430 (git): * test/openssl/test_ec.rb
test/openssl/test_pkey_ec.rb: merge both files into test_pkey_ec.rb.
Removed redundant group instantiation from PKey tests.
* test/openssl/utils.rb: only create TEST_PKEY_EC_P256V1 if EC is
defined.
git-svn-id: svn+ssh://ci.ruby-la...
MartinBosslet (Martin Bosslet)
11:37 AM Feature #4412 (Closed): [ext/openssl] Create Digest by OID
This issue was solved with changeset r32040.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_digest.c: allow Digests to be created by sn,...
Anonymous
11:32 AM Revision 56aca9fc (git): * test/openssl/digest.rb: remove MDC2 from test, it is not available
by default in an OpenSSL installation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
11:25 AM Revision 038ef3f0 (git): * vm_core.h, vm_insnhelper.h: move decl. of
ruby_vm_global_state_version and related macros
from vm_core.h to vm_insnhelper.h.
* vm.c (vm_clear_all_cache): added. This function is called
when ruby_vm_global_state_version overflows.
TODO: vm_clear_all_inline_method_cache() i...
ko1 (Koichi Sasada)
10:48 AM Revision 0f6794cb (git): * lib/cmath.rb: add new methd Object#real?. fix #3137
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e keiju (Keiju Ishitsuka)
10:21 AM Revision 2ba3909c (git): Additional fix for r31933.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:51 AM Revision 5112c6d1 (git): * ext/bigdecimal/bigdecimal.c (is_kind_of_BigDecimal): new function to
examine the whether the object is kind of BigDecimal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
09:51 AM Revision 3bd8b390 (git): * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): use GetVpValueWithPrec
for Float and Rational arguments.
* test/bigdecimal/test_bigdecimal.rb (test_new, test_cmp, test_power):
add and modify tests for the above change.
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): modify coding style to
match ruby's st...
Kenta Murata
09:36 AM Revision c2e6b0fd (git): * 2011-06-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:36 AM Revision 58bae71a (git): * lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state
to prevent random number sequence repeatation at forked child
process which has same pid.
reported by Eric Wong. [ruby-core:35765]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:36 AM Revision 427d707b (git): * lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state
to prevent random number sequence repeatation at forked child
process which has same pid.
reported by Eric Wong. [ruby-core:35765]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@32050 b2dd03c8-39d4-4d8f-98ff-823fe69...
akr (Akira Tanaka)
08:03 AM Revision df366010 (git): * lib/net/http.rb (Net::HTTP#use_ssl?): require 'openssl' only when
https is needed. fixes r31933.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:41 AM Revision 1afe9dbd (git): Fix: r32043 may raise NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:47 AM Feature #4424: [ext/openssl] Allow public/private key creation from arbitrary data
I added the PKey.read functionality as a new (backward-compatible) feature to the PKey module.
Regards,
Martin
MartinBosslet (Martin Bosslet)
05:39 AM Feature #4424 (Closed): [ext/openssl] Allow public/private key creation from arbitrary data
This issue was solved with changeset r32036.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_pkey.c: added PKey.read module function that...
Anonymous
05:36 AM Revision e6bea897 (git): * lib/cmath.rb (CMath.cbrt): returns the principal value of the cube
root of the argument. fix #3676
* test/test_cmath.rb (test_cbrt_returns_principal_value_of_cube_root):
test for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
05:22 AM Revision da923d2b (git): * lib/test/unit.rb (Test::Unit::GlobOption#non_options): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
04:09 AM Revision 1c629eff (git): * ext/openssl/ossl_digest.c: fix error for digests that have no oid
(e.g. DSS1).
* test/openssl/test_digest.c: add tests for this.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
03:55 AM Revision 60947ded (git): * lib/yaml.rb: load psych only when syck is not loaded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:54 AM Revision 8318a14c (git): * ext/syck/lib/syck/rubytypes.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:54 AM Revision 4e8fed8f (git): Specify yamler before runnnig tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:54 AM Revision 69cb0ca3 (git): * ext/psych/lib/psych/deprecated.rb (Object#to_yaml_properties):
undef to_yaml_properties before redefine it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:37 AM Revision 4247bfd6 (git): * ext/openssl/ossl_digest.c: allow Digests to be created by sn, ln or
oid.
* test/openssl/test_digest.rb: add tests for this.
[Ruby 1.9 - Feature #4412] [ruby-core:35319]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
01:58 AM Revision a27b63d3 (git): * ext/openssl/pkey_dh.c: corrected documentation.
* test/openssl/utils.rb: add test key for DH.
* test/openssl/test_pkey_dh.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
01:57 AM Bug #4651: Bus Error using continuation on x86_64-darwin11.0.0 (Lion)
oops sorry, i missed looking old replies... sorah (Sorah Fukumori)
01:56 AM Bug #4651 (Feedback): Bus Error using continuation on x86_64-darwin11.0.0 (Lion)
Hi,
thank you for your testing.
Could you test without rvm (compile with your hands!)?
Also, if you can, could you test at the ruby svn trunk?
and Lion is not released, so we can't support well.
please understand that.
thanks.
sorah (Sorah Fukumori)
01:43 AM Bug #4651: Bus Error using continuation on x86_64-darwin11.0.0 (Lion)
diffing both config.log files:
the segfaulting ruby (XCode 4.2) is compiled with:
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
i686-apple-darwin10-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. bui...
levinalex (Levin Alexander)
01:25 AM Bug #4651: Bus Error using continuation on x86_64-darwin11.0.0 (Lion)
I downgraded to XCode 4.0.2 (4A2002a) and recompiled ruby with rvm. This makes the problem go away. (both for 1.9.2p180 and p274)
$ ruby --version
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
$ ruby cc.rb
cc.rb...
levinalex (Levin Alexander)
01:23 AM Bug #3456: bisarre comma
まつもと ゆきひろです

In message "Re: [ruby-dev:43765] Re: [Ruby 1.9 - Bug #3456] bisarre comma"
on Sun, 12 Jun 2011 15:05:51 +0900, Urabe Shyouhei <shyouhei@ruby-lang.org> writes:

|> 末尾assocの後ろにもカンマを許すパッチ。
|
|手元で確認してみた感じとしては、...
matz (Yukihiro Matsumoto)
01:15 AM Revision 149f35fc (git): * ext/openssl/pkey_dh.c: clarify difference between DH#public_key and
DH#pub_key in documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
01:15 AM Bug #4821: Random Segfaults (in start_thread?)
As of 0.9.0, therubyracer does not support multithreaded webservers. We're working on this, but in the meantime, there are some workarounds here:
https://github.com/cowboyd/therubyracer/issues/79
cowboyd (Charles Lowell)
12:04 AM Bug #4875: Segmentation fault in http.rb
export RUBYOPT='-r openssl'
fixes this
Falcon (Ilya Sokolov)

06/12/2011

11:45 PM Feature #4806 (Closed): A few Issues subjecting the Issue Tracker
naruse (Yui NARUSE)
11:00 PM Feature #4806: A few Issues subjecting the Issue Tracker
You can close this issue, I consider it solved (independent of the 1.9.2 status) lazaridis.com (Lazaridis Ilias)
11:40 PM Bug #4651: Bus Error using continuation on x86_64-darwin11.0.0 (Lion)
I just ran into this on Snow Leopard after reinstalling rvm [1]. I am using Xcode 4.2 (4C104)
config.log is attached.
$ cat cc.rb
require 'continuation'
x = callcc { |b| b }
x.call
$ which ruby
/Users/levin/.rvm/rubies/ru...
levinalex (Levin Alexander)
11:06 PM Bug #3862: Bugs in the OpenSSL extension on sparc64
Ok, I'll see what I can find out :) MartinBosslet (Martin Bosslet)
06:23 AM Bug #3862: Bugs in the OpenSSL extension on sparc64
On Sun, Jun 12, 2011 at 05:25:35AM +0900, Martin Bosslet wrote:
>
> Issue #3862 has been updated by Martin Bosslet.
>
>
> Hi,
>
> Aaron, I could take this if you like?
> I neither have OpenBSD nor sparc64, but I could analyz...
tenderlovemaking (Aaron Patterson)
05:25 AM Bug #3862: Bugs in the OpenSSL extension on sparc64
Hi,
Aaron, I could take this if you like?
I neither have OpenBSD nor sparc64, but I could analyze
the results and tell whether this is a real bug or what
else might have caused this behavior.
MartinBosslet (Martin Bosslet)
10:48 PM Bug #4579: SecureRandom + OpenSSL may repeat with fork
Yes, comment#9 said,
> Yes, I confirmed OpenSSL can't change the current behavior:
> ...
kosaki (Motohiro KOSAKI)
08:07 PM Bug #4579: SecureRandom + OpenSSL may repeat with fork
This issue seems a OpenSSL issue.
Does someone reported to OpenSSL project?
akr (Akira Tanaka)
10:45 PM Bug #4554 (Closed): test_set_errors in test_x509store.rb fails on CentOS 5.5
kosaki (Motohiro KOSAKI)
06:43 PM Bug #4554: test_set_errors in test_x509store.rb fails on CentOS 5.5
Sorry, it is already reported as #4122 . yhara (Yutaka HARA)
09:38 PM Bug #4814: minitest 2.2.x and test/unit do not get along
How's it going? naruse (Yui NARUSE)
09:29 PM Bug #4757: Attempt to make Enumerator docs more clear (patch included)
2011/6/12 Yusuke ENDOH <mame@tsg.ne.jp>:

> I can understand "next_values doesn't affect Array#each". So,
> "enumeration sequence by" is not needed, right?

I see.
It makes sense.
--
Tanaka Akira
akr (Akira Tanaka)
08:29 PM Bug #4757: Attempt to make Enumerator docs more clear (patch included)
Hello,

2011/6/12 Tanaka Akira <akr@fsij.org>:
> 2011/5/25 Yusuke Endoh <mame@tsg.ne.jp>:
>
>> - * Note that enumeration sequence by next_values method does not affect other
>> - * non-external enumeration methods, unless underlyi...
mame (Yusuke Endoh)
08:23 PM Bug #4757: Attempt to make Enumerator docs more clear (patch included)
2011/5/25 Yusuke Endoh <mame@tsg.ne.jp>:

> - * Note that enumeration sequence by next_values method does not affect other
> - * non-external enumeration methods, unless underlying iteration
> - * methods itself has side-effect,...
akr (Akira Tanaka)
08:52 PM Revision bec36af2 (git): * NEWS: introduce PKey.read
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
08:39 PM Revision bbb3cfb1 (git): * ext/openssl/ossl_pkey.c: added PKey.read module function that allow
reading arbitrary public/private keys from DER-/PEM-encoded File or
string instances.
* ext/openssl/ossl_pkey_dh.c: improved documentation.
* test/openssl/utils.rb: added EC test key.
* test/openssl/test_pkey_rsa.rb
test/openssl/test...
MartinBosslet (Martin Bosslet)
07:53 PM Bug #4544: Ripperで「:"a \n b \n c"」を正常にパースできない
なかだです。

At Sun, 12 Jun 2011 09:18:46 +0900,
Masaya Tarui wrote in [ruby-dev:43762]:
> このチケットの原因になってる 、yylex でdelayed_tokenをdispatchするコード(parse.y:7855)の直後のreturnを
> r24557([Bug #1071])で削除していますが、
> ripper_dispatch_delayed_tok...
nobu (Nobuyoshi Nakada)
07:53 PM Bug #4544: Ripperで「:"a \n b \n c"」を正常にパースできない
なかだです。

At Sun, 12 Jun 2011 09:18:46 +0900,
Masaya Tarui wrote in [ruby-dev:43762]:
> このチケットの原因になってる 、yylex でdelayed_tokenをdispatchするコード(parse.y:7855)の直後のreturnを
> r24557([Bug #1071])で削除していますが、
> ripper_dispatch_delayed_tok...
nobu (Nobuyoshi Nakada)
09:18 AM Bug #4544: Ripperで「:"a \n b \n c"」を正常にパースできない

ripperのコードを読んでみましたが通常のparse.cとの何が違うか理解するのが難しいですね。
このチケットの原因になってる 、yylex でdelayed_tokenをdispatchするコード(parse.y:7855)の直後のreturnを
r24557([Bug #1071])で削除していますが、
ripper_dispatch_delayed_token(parser, t);
ripper_dispatch_scan_event(pa...
tarui (Masaya Tarui)
07:44 PM Revision 7b614a53 (git): * ext/objspace/objspace.c (total_i): fix to skip no ruby objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
07:40 PM Bug #4821: Random Segfaults (in start_thread?)
It seems the problem is related to the `therubyracer` gem. If I remove it, no errors occur. I'll lodge bug there. Would be nice if it could be confirmed. dnagir (Dmytrii Nagirniak)
07:09 PM Bug #4821: Random Segfaults (in start_thread?)
It looks like I have the same (or very similar issue) in Rails 3.1.0.rc1-4.
I was trying to run request specs using Capybara from source and sprockets.
Attaching the Gemfile.lock with all the dependencies used and the terminal output.
dnagir (Dmytrii Nagirniak)
05:08 AM Bug #4821: Random Segfaults (in start_thread?)
Hi Aaron,
thanks! I sent you an email with a url.
Corné
corneverbruggen (Corné Verbruggen)
02:23 AM Bug #4821: Random Segfaults (in start_thread?)
On Sat, Jun 11, 2011 at 07:07:31PM +0900, Corné Verbruggen wrote:
>
> Issue #4821 has been updated by Corné Verbruggen.
>
>
> Running rails 3.1.0.rc4 on ruby 1.9.2 on Ubuntu 11.04 64bit, I get segfaults that might point at the s...
tenderlovemaking (Aaron Patterson)
07:08 PM Bug #4864: RubyGems が環境変数 MAKE を見てくれない
translation: http://ruby-dev.route477.net/posts/43696 yhara (Yutaka HARA)
06:53 PM Bug #4765: signal が正しくマスクされておらず main thread でシグナルハンドラが動いている
ささださんと議論した結果、逆にシグナルマスク操作を全部削除してしまって全スレッドでシグナルを受けれるようにしたほうが
よいという結論にしました。改訂版パッチを添付します。
rb_syswait() の件が経緯不明のため、このパッチは1.9.4 送りの方向で考えています。
kosaki (Motohiro KOSAKI)
06:43 PM Bug #4122: test_x509store.rbのtest_set_errorsが失敗する
See also: #4554 yhara (Yutaka HARA)
06:20 PM Revision a7198a3c (git): Ignore exception from Process.kill.
On NetBSD this usually raises Errno::ESRCH.
Of course, the process is already finished and should be ignored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:13 PM Revision e445f1c6 (git): * test/benchmark/test_benchmark.rb (capture_output):
replace '-' as space. On NetBSD, subtract between two Process.times
after and before the short process may return negative value like:
t0=Process.times; yield; t1=Process.times; p t1.utime-t0.utime
git-svn-id: svn+ssh://ci.ruby-lang...
naruse (Yui NARUSE)
05:53 PM Feature #3905 (Closed): rb_clear_cache_by_class() called often during GC for non-blocking I/O
This issue was solved with changeset r32024.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_method.c (rb_clear_cache*): update only vm state version.
* ...
ko1 (Koichi Sasada)
05:43 PM Revision f2c7a874 (git): * test/openssl/test_pkey_dsa.rb: Test for DSA#syssign/sysverify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
05:03 PM Revision 48a399d6 (git): * ext/openssl/ossl_pkey_dh.c: completed documentation.
* ext/openssl/ossl_pkey_dsa.c: corrected examples. Improved parameter
sections.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
04:22 PM Bug #4853 (Closed): ext/tk/extconf.rb fails on Mac OS X
This issue was solved with changeset r32023.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/tk/extconf.rb: fails on Mac OS X [Ruby 1.9 - Bug #4853]
nagai (Hidetoshi Nagai)
03:58 PM Bug #4723 (Closed): check_deadlock_i での transition_for_lockの扱いが thread unsafe
This issue was solved with changeset r32022.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c: remove th->transition_for_lock. It's thread unsaf...
kosaki (Motohiro KOSAKI)
03:55 PM Bug #4696 (Closed): thread.c#lock_func() が spurious wakeup unsafe
This issue was solved with changeset r32021.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c: introduce spurious wakeup safe deadlock check.
...
kosaki (Motohiro KOSAKI)
03:48 PM Revision eac92254 (git): * 2011-06-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:48 PM Revision d6b4cf46 (git): * ext/openssl/ossl_pkey_dsa.c: completed documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
03:23 PM Bug #3456: bisarre comma
(06/12/2011 03:55 AM), Yukihiro Matsumoto wrote:
> まつもと ゆきひろです
>
> In message "Re: [ruby-dev:43760] Re: [Ruby 1.9 - Bug #3456] bisarre comma"
> on Sun, 12 Jun 2011 03:33:57 +0900, Yukihiro Matsumoto <matz@ruby-lang.org> wri...
shyouhei (Shyouhei Urabe)
03:59 AM Bug #3456: bisarre comma
まつもと ゆきひろです
In message "Re: [ruby-dev:43760] Re: [Ruby 1.9 - Bug #3456] bisarre comma"
on Sun, 12 Jun 2011 03:33:57 +0900, Yukihiro Matsumoto <matz@ruby-lang.org> writes:
|いや、見落としがあったのは事実で申し訳ない。とりあえずこんな
|パッチを書いて見ました。ちょっと余裕がない...
matz (Yukihiro Matsumoto)
03:53 AM Bug #3456: bisarre comma
まつもと ゆきひろです
In message "Re: [ruby-dev:43759] Re: [Ruby 1.9 - Bug #3456] bisarre comma"
on Sun, 12 Jun 2011 03:14:43 +0900, Urabe Shyouhei <shyouhei@ruby-lang.org> writes:
|まあこれも実はredmineのログには書いてあったわけですが、
|
|* 卜部は当然yaccとruby ...
matz (Yukihiro Matsumoto)
03:23 AM Bug #3456: bisarre comma
卜部です。

まあこれも実はredmineのログには書いてあったわけですが、

* 卜部は当然yaccとruby -yを読んでから発言しており、現状の解説を求めてい
るわけではない。現状がおかしいと言っている。
* 卜部は括弧がない場合のみ(「行末の,」に言及していますね?)を問題にしてお
り、かつ、括弧がある場合の挙動変更はえんどうさんからrejectされているの
で、現在話題になっているのは括弧なしの場合のみ。

の二点を再...
shyouhei (Shyouhei Urabe)
03:23 AM Bug #3456: bisarre comma
卜部です。

まあこれも実はredmineのログには書いてあったわけですが、

* 卜部は当然yaccとruby -yを読んでから発言しており、現状の解説を求めてい
るわけではない。現状がおかしいと言っている。
* 卜部は括弧がない場合のみ(「行末の,」に言及していますね?)を問題にしてお
り、かつ、括弧がある場合の挙動変更はえんどうさんからrejectされているの
で、現在話題になっているのは括弧なしの場合のみ。

の二点を再...
shyouhei (Shyouhei Urabe)
02:29 AM Bug #3456: bisarre comma
まつもと ゆきひろです
In message "Re: [ruby-dev:43755] Re: [Ruby 1.9 - Bug #3456] bisarre comma"
on Sun, 12 Jun 2011 00:17:05 +0900, Urabe Shyouhei <shyouhei@ruby-lang.org> writes:
> 俺がこれはバグだと思うのは、括弧のあるなしで意味が変わるというのが凶悪だ
> ...
「演算子(この場合...
matz (Yukihiro Matsumoto)
12:23 AM Bug #3456: bisarre comma
メールにじかに反応したまつもとさんは読んでないと思うのでコメント#5を再掲
すると、
俺がこれはバグだと思うのは、括弧のあるなしで意味が変わるというのが凶悪だ
という思うからです。なぜ
i(j,)
k l
がOKで
i j,
k l
がNGなのか、あきらかに混乱のもとです。さらにいうと
i j, do end
k l
も現状OKです。もはやわけわからん。
この行末に,を許そうと...
shyouhei (Shyouhei Urabe)
02:40 PM Revision c6a506d0 (git): lib/drb/drb.rb (kill_sub_thread): remove the method. [ruby-core:34185]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masatoshi SEKI
12:09 PM Revision 1afbc783 (git): * ext/date/date_core.c (d_lite_marshal_load): should give converted value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
11:38 AM Revision ef9fe821 (git): * ext/date/date_core.c: edited doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:06 AM Bug #1296 (Closed): [trunk/22981] 64-bit issues on trunk in ext/zlib
I no longer see these warnings on gcc 4.2.1 on OS X 10.6. drbrain (Eric Hodel)
09:12 AM Revision d5abe72c (git): * benchmark/bm_vm3_clearmethodcache.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:53 AM Revision 8c09664a (git): * vm_method.c (rb_clear_cache*): update only vm state version.
* vm_method.c (rb_method_entry_get_without_cache, rb_method_entry):
Fill method cache entry with vm state version, and
check current vm state version for method (cache) look up.
This modification speed-up invaridating of global met...
ko1 (Koichi Sasada)
07:22 AM Revision 483efa1f (git): * ext/tk/extconf.rb: fails on Mac OS X [Ruby 1.9 - Bug #4853]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
06:58 AM Revision f0041fa0 (git): * thread.c: remove th->transition_for_lock. It's thread unsafe.
[Bug #4723][ruby-dev:43563]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:55 AM Revision 614fcdf6 (git): * thread.c: introduce spurious wakeup safe deadlock check.
[Bug #4696][ruby-dev:43554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
04:38 AM Revision 3c9187a2 (git): * benchmark/bm_vm3_thread_mutex.rb: remove it.
* benchmark/bm_vm3_thread_mutex[1-3].rb: added 3 benchmarks.
1: one thread with one mutex (no contention).
2: two threads with one mutex (contention).
3: 1000 threads with one mutex (huge number of contention)
Abobe removed bench...
ko1 (Koichi Sasada)
04:31 AM Bug #4875 (Closed): Segmentation fault in http.rb
=begin
It appears when i use omniauth in rails app
/Users/Falcon/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/net/http.rb:678: [BUG] Segmentation fault
ruby 1.9.2p274 (2011-06-06 revision 31932) [x86_64-darwin10.7.0]

-- contr...
Falcon (Ilya Sokolov)
02:53 AM Feature #1269: warning when Kernel#p is used
まつもと ゆきひろです

In message "Re: [ruby-dev:43705] [Ruby 1.9 - Feature #1269] warning when Kernel#p is used"
on Sat, 11 Jun 2011 14:21:18 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|これ,どうしましょう.

pをコンパイル時に特別扱いというの...
matz (Yukihiro Matsumoto)
02:53 AM Feature #1269: warning when Kernel#p is used
まつもと ゆきひろです

In message "Re: [ruby-dev:43705] [Ruby 1.9 - Feature #1269] warning when Kernel#p is used"
on Sat, 11 Jun 2011 14:21:18 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|これ,どうしましょう.

pをコンパイル時に特別扱いというの...
matz (Yukihiro Matsumoto)
02:53 AM Feature #1374: location of already initialized constant
まつもと ゆきひろです

In message "Re: [ruby-dev:43707] [Ruby 1.9 - Feature #1374] location of already initialized constant"
on Sat, 11 Jun 2011 14:27:28 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|Issue #1374 has been up...
matz (Yukihiro Matsumoto)
02:53 AM Feature #1374: location of already initialized constant
まつもと ゆきひろです

In message "Re: [ruby-dev:43707] [Ruby 1.9 - Feature #1374] location of already initialized constant"
on Sat, 11 Jun 2011 14:27:28 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|Issue #1374 has been up...
matz (Yukihiro Matsumoto)
02:41 AM Bug #4874 (Closed): Adding documentation for CSV#raw_encoding method
Another patch to help with the Ruby 1.9.3 documentation challenge czarneckid (David Czarnecki)
02:23 AM Bug #4623: Consistent crash related to action_mailer
On Sat, Jun 11, 2011 at 04:30:37PM +0900, Koichi Sasada wrote:
>
> Issue #4623 has been updated by Koichi Sasada.
>
> Priority changed from High to Normal
>
> Third party issue?
> Anyone can handle this?
> -------------------...
tenderlovemaking (Aaron Patterson)
02:18 AM Revision 60e078c8 (git): * io.c: use select() appropriately for sendfile().
Fixed by Eric Wong. [ruby-core:36150]
(maygvl_copy_stream_wait_readwrite): removed.
(nogvl_copy_stream_sendfile): use nogvl_copy_stream_wait_write and
maygvl_copy_stream_wait_read instead of
maygvl_copy_stream_wait_readwrite.
...
akr (Akira Tanaka)
02:02 AM Bug #4401 (Closed): override :method method breaks Psych
This was fixed in r31075. I'm not sure why redmine didn't automatically close. tenderlovemaking (Aaron Patterson)
01:57 AM Bug #2717 (Closed): Requiring rubygems/specification causes tons of warnings for NoMethodError
This seems to be fixed in ruby trunk:
[aaron@higgins ~]$ ruby -v -rrubygems/specification -e' '
ruby 1.9.3dev (2011-06-06 trunk 31944) [x86_64-darwin10.7.0]
[aaron@higgins ~]$
tenderlovemaking (Aaron Patterson)
01:12 AM Feature #3697: [PATCH] Allow build of dbm extension with Berkeley DB 5.0 series (for 1.9.2_rc2)
Matz, I can handle this issue if you want. I guess you don't have db-5.0 environment. kosaki (Motohiro KOSAKI)
12:23 AM Feature #3697: [PATCH] Allow build of dbm extension with Berkeley DB 5.0 series (for 1.9.2_rc2)
Hi,

In message "Re: [ruby-core:36979] [Ruby 1.9 - Bug #3697] [PATCH] Allow build of dbm extension with Berkeley DB 5.0 series (for 1.9.2_rc2)"
on Sat, 11 Jun 2011 15:14:35 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:
...
matz (Yukihiro Matsumoto)
12:45 AM Bug #4873 (Closed): Adding documentation for Benchmark::Tms#memberwise
First patch to help with the Ruby 1.9.3 documentation challenge. czarneckid (David Czarnecki)
12:32 AM Revision df3e3768 (git): * atomic.h (ATOMIC_OR): _InterlockedOr is not available on migw.
* gc.c (rb_gc_set_params): VM_OBJSPACE is disabled on mignw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:23 AM Bug #1792: Fixnum#& 等が、Rational などを受けつける
まつもと ゆきひろです

In message "Re: [ruby-core:36972] [Ruby 1.9 - Bug #1792] Fixnum#& 等が、Rational などを受けつける"
on Sat, 11 Jun 2011 14:54:43 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|Issue #1792 has been updated by Koich...
matz (Yukihiro Matsumoto)

06/11/2011

11:48 PM Bug #4770 (Closed): [Q] thread->interrupt_flag が適切に排他制御されていないように見える
kosaki (Motohiro KOSAKI)
11:16 PM Bug #3990 (Closed): tests of rexml/rss reports many errors and failures without iconv
#4872 として新しくチケットを作ったので、これはcloseします。 kou (Kouhei Sutou)
05:23 PM Bug #3990: tests of rexml/rss reports many errors and failures without iconv
 ささだです.

(2011/06/11 15:44), Kouhei Sutou wrote:
> もう、触っちゃダメだということだと思っていたので、1.9.3がリリースした後でやろうと思っていました。
>
> なるせさんが言っている通り、
>
>> > REXML::XMLDecl#encoding が一体何を保持するものなのかって話ですよね、結局のところ。
> のところで思うところがあるのですが、文章でやりとりしていても落とし...
ko1 (Koichi Sasada)
05:23 PM Bug #3990: tests of rexml/rss reports many errors and failures without iconv
 ささだです.

(2011/06/11 15:44), Kouhei Sutou wrote:
> もう、触っちゃダメだということだと思っていたので、1.9.3がリリースした後でやろうと思っていました。
>
> なるせさんが言っている通り、
>
>> > REXML::XMLDecl#encoding が一体何を保持するものなのかって話ですよね、結局のところ。
> のところで思うところがあるのですが、文章でやりとりしていても落とし...
ko1 (Koichi Sasada)
03:44 PM Bug #3990: tests of rexml/rss reports many errors and failures without iconv
もう、触っちゃダメだということだと思っていたので、1.9.3がリリースした後でやろうと思っていました。
なるせさんが言っている通り、
> REXML::XMLDecl#encoding が一体何を保持するものなのかって話ですよね、結局のところ。
のところで思うところがあるのですが、文章でやりとりしていても落とし所が見つかる気がしなかったので、Ruby会議の時にでも相談しようかと思っていました。
kou (Kouhei Sutou)
03:24 PM Bug #3990: tests of rexml/rss reports many errors and failures without iconv
須藤さん
こちら,どうなってますでしょうか.
ko1 (Koichi Sasada)
11:15 PM Feature #4872: REXML::XMLDecl#encodingがStringではなくEncodingを返すようにする
(本文中で #3990 にリンクをはるにはどうしたらよいのでしょうか。。。) kou (Kouhei Sutou)
11:14 PM Feature #4872 (Closed): REXML::XMLDecl#encodingがStringではなくEncodingを返すようにする
経緯は #3990 の後ろの方の流れを参照。
1.9.3がリリースされてからやる。
kou (Kouhei Sutou)
11:08 PM Bug #4417 (Closed): OpenSSL::Buffering#each_byte がブロックに文字をStringで渡している
r32012で取り込みました。ありがとうございました。 nahi (Hiroshi Nakamura)
10:59 PM Bug #3456: bisarre comma
まつもと ゆきひろです

In message "Re: [ruby-dev:43717] [Ruby 1.9 - Bug #3456] bisarre comma"
on Sat, 11 Jun 2011 15:06:24 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|長期的な展望としては,この件はどうなるべきでしょうか.

このままなんじゃない? 配列とかで要素の末...
matz (Yukihiro Matsumoto)
03:06 PM Bug #3456: bisarre comma
長期的な展望としては,この件はどうなるべきでしょうか. ko1 (Koichi Sasada)
10:53 PM Bug #4561: 1.9.2 requires parentheses around argument of method call in an array, where 1.8.7 did not
Hi,

In message "Re: [ruby-core:36994] [Ruby 1.9 - Bug #4561] 1.9.2 requires parentheses around argument of method call in an array, where 1.8.7 did not"
on Sat, 11 Jun 2011 15:58:33 +0900, Koichi Sasada <redmine@ruby-lang.org...
matz (Yukihiro Matsumoto)
03:58 PM Bug #4561: 1.9.2 requires parentheses around argument of method call in an array, where 1.8.7 did not
Matz, could you reply?
ko1 (Koichi Sasada)
10:38 PM Bug #4579: SecureRandom + OpenSSL may repeat with fork
Eeek. I dislike to remove OpenSSL dependency from SecureRadom. Because /dev/urandom is less secure than OpenSSL. kosaki (Motohiro KOSAKI)
06:36 PM Bug #4579: SecureRandom + OpenSSL may repeat with fork
Attached is the patch which removes OpenSSL dependency. Tanaka-san, aside from how OpenSSL.random_bytes should behave, can you accept this change? nahi (Hiroshi Nakamura)
05:02 PM Bug #4579 (Assigned): SecureRandom + OpenSSL may repeat with fork
ko1 (Koichi Sasada)
10:29 PM Bug #4443: odd evaluation order in a multiple assignment
まつもと ゆきひろです

In message "Re: [ruby-dev:43724] [Ruby 1.9 - Bug #4443] odd evaluation order in a multiple assignment"
on Sat, 11 Jun 2011 15:49:30 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|まつもとさん,こちらいかがでしょうか.
...
matz (Yukihiro Matsumoto)
10:29 PM Bug #4443: odd evaluation order in a multiple assignment
まつもと ゆきひろです

In message "Re: [ruby-dev:43724] [Ruby 1.9 - Bug #4443] odd evaluation order in a multiple assignment"
on Sat, 11 Jun 2011 15:49:30 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

>まつもとさん,こちらいかがでしょうか.
...
matz (Yukihiro Matsumoto)
04:04 PM Bug #4443: odd evaluation order in a multiple assignment
http://redmine.ruby-lang.org/issues/4440
に matz の返事があります。
> 優先順位は高くありませんが、直すべきだと思います。
> ...
確か redmine の更新直後で、インターフェイスの違いにハマってチケット登録に失敗してしまったのでした。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:49 PM Bug #4443: odd evaluation order in a multiple assignment
まつもとさん,こちらいかがでしょうか.
直せと言われたら私なのかなぁ.
ko1 (Koichi Sasada)
10:29 PM Bug #4591: (1.5...2).max #=> 1 (Range#max)
まつもと ゆきひろです

In message "Re: [ruby-dev:43732] [Ruby 1.9 - Bug #4591][Assigned] (1.5...2).max #=> 1 (Range#max)"
on Sat, 11 Jun 2011 17:03:00 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|終端を含まないRangeについて、endがInteg...
matz (Yukihiro Matsumoto)
10:29 PM Bug #4591: (1.5...2).max #=> 1 (Range#max)
まつもと ゆきひろです

In message "Re: [ruby-dev:43732] [Ruby 1.9 - Bug #4591][Assigned] (1.5...2).max #=> 1 (Range#max)"
on Sat, 11 Jun 2011 17:03:00 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|終端を含まないRangeについて、endがInteg...
matz (Yukihiro Matsumoto)
05:02 PM Bug #4591 (Assigned): (1.5...2).max #=> 1 (Range#max)
ko1 (Koichi Sasada)
10:23 PM Bug #595: Fiber ignores ensure clause
RubySpec 的にバグ扱いになってますね。
core/fiber/resume_spec.rb
naruse (Yui NARUSE)
10:23 PM Bug #595: Fiber ignores ensure clause
まつもと ゆきひろです

In message "Re: [ruby-dev:43715] [Ruby 1.9 - Bug #595] Fiber ignores ensure clause"
on Sat, 11 Jun 2011 14:52:03 +0900, Koichi Sasada <redmine@ruby-lang.org> writes:

|未だに考え中ですが,これは 1.9.3 には仕様変更になるので入りませんよね?
...
matz (Yukihiro Matsumoto)
02:52 PM Bug #595: Fiber ignores ensure clause
未だに考え中ですが,これは 1.9.3 には仕様変更になるので入りませんよね? ko1 (Koichi Sasada)
09:03 PM Feature #4871 (Closed): envのコンパクト化
=begin
辻本です。
rb_env_tのenvは以下の構造を持ちますが、env[2](prev env val)は不要ではないでしょうか。
/*
env{
env[0] // special (block or prev env)
env[1] // env object
env[2] // prev env val
};
*/
根拠は次の通りです。
* prev env va...
ktsj (Kazuki Tsujimoto)
07:58 PM Bug #4547 (Closed): RUBY_HEAP_MIN_SLOTS is not reflected
=begin
r32007 のコミットで修正しました。
=end
authorNari (Narihiro Nakamura)
05:04 PM Bug #4547 (Assigned): RUBY_HEAP_MIN_SLOTS is not reflected
ko1 (Koichi Sasada)
07:49 PM Bug #4859 (Rejected): Debug output in 1.8 vs 1.9
Now Array#flatten tries to expand elements by to_ary, that is it's a spec change. nobu (Nobuyoshi Nakada)
07:41 PM Bug #4420 (Closed): OpenSSL::X509::Request#to_der で RequestError ではなく CertificateError が発生する
nahi (Hiroshi Nakamura)
03:45 PM Bug #4420: OpenSSL::X509::Request#to_der で RequestError ではなく CertificateError が発生する
なひさん,こちらいかがでしょうか. ko1 (Koichi Sasada)
07:14 PM Bug #4723: check_deadlock_i での transition_for_lockの扱いが thread unsafe
deadlock checkを入れるときの議論のURLを貼ります
http://markmail.org/message/xxlb4hnai54etixu#query:+page:1+mid:4ekc6xwdubrjno5r+state:results
kosaki (Motohiro KOSAKI)
07:07 PM Bug #4821: Random Segfaults (in start_thread?)
Running rails 3.1.0.rc4 on ruby 1.9.2 on Ubuntu 11.04 64bit, I get segfaults that might point at the same problem. It happens randomly when starting the app. The line at the top of the ouput which ends with "[BUG] Segmentation fault" sho... corneverbruggen (Corné Verbruggen)
06:55 PM Feature #3622 (Closed): Net::HTTP does not wait to send request body with Expect: 100-continue
I close this since I believe r31860 includes the original intent of the patch from Eric. Please reopen this if it doesn't work. nahi (Hiroshi Nakamura)
06:38 PM Bug #4268: FIBER_USE_NATIVE を undef していると GC.stress 下で Enumerable#zip が core
確認したところ r31954 以降で再現しなくなってました。 metanest (Makoto Kishimoto)
04:07 PM Bug #4268 (Closed): FIBER_USE_NATIVE を undef していると GC.stress 下で Enumerable#zip が core
では、再現したらreopenということで kosaki (Motohiro KOSAKI)
04:01 PM Bug #4268: FIBER_USE_NATIVE を undef していると GC.stress 下で Enumerable#zip が core
HEADで再現しませんでした。取り急ぎ metanest (Makoto Kishimoto)
02:46 PM Bug #4268: FIBER_USE_NATIVE を undef していると GC.stress 下で Enumerable#zip が core
こちら,再現しますでしょうか. ko1 (Koichi Sasada)
06:06 PM Bug #4870 (Rejected): forkのテストが非常にまれに失敗する
MacOS Xでmake check すると一度だけ以下のテストが fail しました。
--------------------------------------------------------------------------------------------------------------------
#236 test_fork.rb:30:in `<top (required)>':
begin
if pid...
kosaki (Motohiro KOSAKI)
05:22 PM Bug #1341: pthread_cond_timedwait failing in 1.9.1-p0 thread tests on HP-UX 11i v2
Now, following two links are dead. Do anyone know new URLs?
* - http://docs.sun.com/app/docs/doc/806-0630/6j9vkb8ct?a=view
* - http://bugs.opensolaris.org/view_bug.do?bug_id=4038480
kosaki (Motohiro KOSAKI)
04:28 PM Bug #1341: pthread_cond_timedwait failing in 1.9.1-p0 thread tests on HP-UX 11i v2
I guess it still reproduces on Solaris.
I have no idea about HP-UX.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:25 PM Bug #1341: pthread_cond_timedwait failing in 1.9.1-p0 thread tests on HP-UX 11i v2
Endo-san,
Can we close this issue?
ko1 (Koichi Sasada)
05:14 PM Bug #4543 (Assigned): Ripperで"<<-eos\neos"を正常にパースできない
ko1 (Koichi Sasada)
05:13 PM Bug #4536 (Feedback): 定数参照について1.8と1.9の違い
これは閉じてもいいでしょうか. ko1 (Koichi Sasada)
05:12 PM Feature #4521: NoMethodError#message may take very long to execute
It is not a bug, but a feature request. ko1 (Koichi Sasada)
05:11 PM Bug #4517: ArgumentError when sorting array of objects
Could you show the reproducible code? ko1 (Koichi Sasada)
05:09 PM Bug #4508 (Feedback): Ability class for CanCan for Rails
Can you show the crash log? ko1 (Koichi Sasada)
05:05 PM Bug #4559 (Assigned): Proc#== does not match the documented behaviour
ko1 (Koichi Sasada)
05:01 PM Bug #4577 (Assigned): (int...float).max should not raise an error
ko1 (Koichi Sasada)
04:59 PM Bug #4795 (Rejected): Nested classes don't seem to resolve correctly when another class exists with the same name
As Magnus Holm has explained, it's the spec. nobu (Nobuyoshi Nakada)
04:59 PM Bug #4648 (Assigned): lambda上のclass定義からのreturnでSEGV
ko1 (Koichi Sasada)
04:58 PM Bug #4731 (Assigned): ruby -S irb fails with mingw/msys vanilla builds
ko1 (Koichi Sasada)
04:53 PM Bug #4716 (Assigned): Ripper orders rescue_mod subnodes inconsistently [PATCH]
ko1 (Koichi Sasada)
04:48 PM Bug #4841 (Assigned): WEBrick threading leads to infinite loop
ko1 (Koichi Sasada)
04:43 PM Bug #3924 (Assigned): Performance bug (in require?)
ko1 (Koichi Sasada)
04:33 PM Bug #4630 (Assigned): PROCDEBUG to non-zero values causes segmentation faults in check_env in trunk
ko1 (Koichi Sasada)
04:32 PM Bug #4535 (Assigned): [PATCH] fix race in blocking send_io/recv_io
ko1 (Koichi Sasada)
05:29 AM Bug #4535: [PATCH] fix race in blocking send_io/recv_io
Eric Wong <normalperson@yhbt.net> wrote:
> ----------------------------------------
> Bug #4535: [PATCH] fix race in blocking send_io/recv_io
> http://redmine.ruby-lang.org/issues/4535

Ping? This may become a big issue for s...
normalperson (Eric Wong)
04:32 PM Bug #4161 (Closed): ReXML wants "elements.each" argument to be not frozen
This issue was solved with changeset r31998.
Pavel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ChangeLog: fix ticket number at r31995. fixes #4161 is correct.
kou (Kouhei Sutou)
03:46 PM Bug #4161: ReXML wants "elements.each" argument to be not frozen
I'm sorry. I didn't noticed it. I'll check it soon. kou (Kouhei Sutou)
03:30 PM Bug #4161: ReXML wants "elements.each" argument to be not frozen
Suto-san,
How about it?
ko1 (Koichi Sasada)
04:31 PM Bug #4413 (Feedback): Segmentation fault when using deliver for GMAIL SMTP
ko1 (Koichi Sasada)
04:30 PM Bug #4623: Consistent crash related to action_mailer
Third party issue?
Anyone can handle this?
ko1 (Koichi Sasada)
04:29 PM Bug #4498 (Closed): REXML Pretty formater does use specified 'width' to wrap lines
This issue was solved with changeset r31997.
Michael, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/rexml/formatters/pretty.rb
(REXML::Formatters::Pretty#...
kou (Kouhei Sutou)
03:54 PM Bug #4498: REXML Pretty formater does use specified 'width' to wrap lines
Suto-san,
What do you think about it?
ko1 (Koichi Sasada)
04:23 PM Feature #4614: [RFC/PATCH] thread_pthread.c: lower RUBY_STACK_MIN_LIMIT to 64K
Koichi Sasada <redmine@ruby-lang.org> wrote:
> GC eats large stack size if there are nested object (deep nested array
> and so on). I'm not sure but I think this is why we allocate 512KB
> for stack.

Good point. I didn't th...
normalperson (Eric Wong)
04:21 PM Bug #4866 (Closed): Macでmake checkするとIO.copy_streamでSEGV
ko1 (Koichi Sasada)
01:23 PM Bug #4866: Macでmake checkするとIO.copy_streamでSEGV
なかだです。

At Sat, 11 Jun 2011 11:23:32 +0900,
Tanaka Akira wrote in [ruby-dev:43702]:
> > make checkが以下のように異常終了します。
>
> Mac のテスト環境は持っていないので、実際に直るかどうかはわかりませんが、
> とりあえず問題付近にあからさまにおかしいコードがあったので直しておきました.

直ってました。

--
...
nobu (Nobuyoshi Nakada)
01:23 PM Bug #4866: Macでmake checkするとIO.copy_streamでSEGV
なかだです。

At Sat, 11 Jun 2011 11:23:32 +0900,
Tanaka Akira wrote in [ruby-dev:43702]:
> > make checkが以下のように異常終了します。
>
> Mac のテスト環境は持っていないので、実際に直るかどうかはわかりませんが、
> とりあえず問題付近にあからさまにおかしいコードがあったので直しておきました.

直ってました。

--
...
nobu (Nobuyoshi Nakada)
11:29 AM Bug #4866: Macでmake checkするとIO.copy_streamでSEGV
2011/6/10 Motohiro KOSAKI <kosaki.motohiro@gmail.com>:
>
> make checkが以下のように異常終了します。

Mac のテスト環境は持っていないので、実際に直るかどうかはわかりませんが、
とりあえず問題付近にあからさまにおかしいコードがあったので直しておきました.
--
[田中 哲][たなか あきら][Tanaka Akira]
akr (Akira Tanaka)
11:29 AM Bug #4866: Macでmake checkするとIO.copy_streamでSEGV
2011/6/10 Motohiro KOSAKI <kosaki.motohiro@gmail.com>:
>
> make checkが以下のように異常終了します。

Mac のテスト環境は持っていないので、実際に直るかどうかはわかりませんが、
とりあえず問題付近にあからさまにおかしいコードがあったので直しておきました.
--
[田中 哲][たなか あきら][Tanaka Akira]
akr (Akira Tanaka)
04:21 PM Bug #4473: Calling return within begin still executes else
I bet that it is a bug in 1.8. nobu (Nobuyoshi Nakada)
04:20 PM Bug #4558 (Closed): TestSocket#test_closed_read fails after r31230
1) Windows test case failure have already been fixed.
2) "release GVL on close" is now discussing #4570.
So, we can close this ticket.
kosaki (Motohiro KOSAKI)
04:18 PM Bug #4583 (Feedback): trace doesn't work for methods set up by attr_*
ko1 (Koichi Sasada)
04:07 PM Revision 465b0d49 (git): * 2011-06-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:07 PM Revision 67345bfa (git): * ext/date/date_core.c: edited doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
04:07 PM Bug #4658 (Feedback): Minitest - invalid return code when using MiniTest::Unit.after_tests
ko1 (Koichi Sasada)
03:56 PM Bug #4516 (Rejected): test-all hangs on i386 environment
環境がおかしかったそうです.
ko1 (Koichi Sasada)
03:52 PM Bug #4502: strange Module.new behaviour
This issue have complex problems. I'll fix it 1.9.4 or later.
ko1 (Koichi Sasada)
03:47 PM Bug #4453: Overriding #to_s changes #inspect
Matz, how about it?
ko1 (Koichi Sasada)
03:45 PM Bug #4401: override :method method breaks Psych
Aaron, how about it?
ko1 (Koichi Sasada)
03:43 PM Bug #4318 (Feedback): Legacy bug in net/imap in Ruby 1.9.x
ko1 (Koichi Sasada)
03:37 PM Bug #4301: Off-by-one line number in Psych parse error
How about it? ko1 (Koichi Sasada)
03:29 PM Bug #4122: test_x509store.rbのtest_set_errorsが失敗する
Aaron, how about it?
ko1 (Koichi Sasada)
03:29 PM Bug #4126 (Rejected): Pathname#+ サブクラスの場合
ko1 (Koichi Sasada)
03:26 PM Bug #4037: Net/http keep alive bug
Can we close it?
ko1 (Koichi Sasada)
03:21 PM Bug #3866: Multipart Form Parsing bug
Fujioka-san,
How about it?
ko1 (Koichi Sasada)
03:20 PM Bug #3869: Logger#log does not handle or escape new-line characters.
Nahi-san,
Is it closed?
ko1 (Koichi Sasada)
03:19 PM Bug #3827: ext/readline can't handle cursor keys and cp932 chars
高尾さん
本件,いかがでしょうか.
ko1 (Koichi Sasada)
03:18 PM Bug #3841: RubyVM::InstructionSequence.to_a() and disasm() do not work properly for "for <var> in <list>"
If I have a time, I'll check it.
ko1 (Koichi Sasada)
03:15 PM Bug #3760: help "String.new" (for example) no longer works in irb
Keiju, how about it? ko1 (Koichi Sasada)
03:14 PM Feature #3697: [PATCH] Allow build of dbm extension with Berkeley DB 5.0 series (for 1.9.2_rc2)
Matz, how about it?
Kosaki said this ticket should be a "Feature".
ko1 (Koichi Sasada)
03:12 PM Bug #3674: dRuby サーバプロセスを停止する時に時間がかかることがある
これは,咳さん待ちということになるんでしょうか. ko1 (Koichi Sasada)
03:10 PM Bug #3676: CMath.cbrt(-8)の結果が複素数にならない
この件はどうなってますでしょうか.
ko1 (Koichi Sasada)
03:02 PM Bug #3272: BigDecimal#** が実用的な速度ではない
中田さんが早くしろ,と言っています. ko1 (Koichi Sasada)
03:01 PM Bug #3231: Digest Does Not Build
Who should handle this ticket?
ko1 (Koichi Sasada)
02:59 PM Bug #3137: complex.rb changes exceptions of Math
この件,どうしましょうか. ko1 (Koichi Sasada)
02:59 PM Bug #2420 (Closed): super call may use wrong receiver object
This issue has gone away. nobu (Nobuyoshi Nakada)
02:56 PM Bug #2420: super call may use wrong receiver object
wanabe-san,
Should we keep it open or not?
ko1 (Koichi Sasada)
02:58 PM Bug #2717: Requiring rubygems/specification causes tons of warnings for NoMethodError
What's going on? again.
ko1 (Koichi Sasada)
02:54 PM Bug #1792: Fixnum#& 等が、Rational などを受けつける
これはどうしましょうか. ko1 (Koichi Sasada)
02:49 PM Bug #4444: Windowsプラットフォームでtest_parallel.rbがエラー
こちら,いかがでしょうか.
ko1 (Koichi Sasada)
02:48 PM Bug #4419: ext/openssl のコメントが正しくない
なひさん,いかがでしょうか. ko1 (Koichi Sasada)
02:47 PM Bug #4434: make test-all "-j10000" のように大きな並列数を与えると異常終了
この問題はどうなっていますでしょうか.
ko1 (Koichi Sasada)
02:47 PM Revision 29f7ea1b (git): add to bug number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
02:43 PM Bug #3817: current ruby-openssl impl wrongly utilizes CRYPTO_EX_DATA in X509_STORE
How about it? ko1 (Koichi Sasada)
02:43 PM Bug #3862: Bugs in the OpenSSL extension on sparc64
How about it? ko1 (Koichi Sasada)
02:42 PM Bug #3738 (Closed): Invalid Line Number in Unused Variable Warning
maybe fixed. ko1 (Koichi Sasada)
02:40 PM Bug #3523: win32 exception c0000029 on exit using fibers
Can we close this issue? ko1 (Koichi Sasada)
02:38 PM Bug #3305 (Closed): test_processのMANDATORY_ENVS
発症しなくなっているためcloseします。 tarui (Masaya Tarui)
02:35 PM Bug #2489 (Closed): Segmentation Fault Ruby 1.9.1 p376, AIX 5.3
No feedback. Please reopen if the same issue happens. ko1 (Koichi Sasada)
02:34 PM Bug #2386 (Closed): r25230 causes SEGV arround Marshal
いったん close しますので,再現したら教えて下さい. ko1 (Koichi Sasada)
02:30 PM Bug #1720: [NaN] == [NaN] が true になる
誰に聞けばいいのかわかりませんが,これはどうなりますでしょうか. ko1 (Koichi Sasada)
02:27 PM Feature #1374: location of already initialized constant
まつもとさん? 中田さん?
これ,どうなってますでしょう.
ko1 (Koichi Sasada)
02:27 PM Revision 9d4e471c (git): * vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT,
RUBY_VM_SET_FINALIZER_INTERRUPT): use atomic ops for preventing
interrupt_flag bit lost.
* thread.c (rb_threadptr_execute_interrupts_rec): ditto.
* vm_core.h (typedef struct rb_thread_struct): change type of
interrupt_flag to rb_atom...
kosaki (Motohiro KOSAKI)
02:24 PM Feature #1316: Phasor.rb: Complex number class using polar coordinates
mrkn, what do you think about it?
ko1 (Koichi Sasada)
02:24 PM Revision 8df20d6b (git): * ext/date/date_core.c: edited doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
02:23 PM Bug #1296: [trunk/22981] 64-bit issues on trunk in ext/zlib
Can we close this issue? ko1 (Koichi Sasada)
02:21 PM Feature #1269: warning when Kernel#p is used
これ,どうしましょう. ko1 (Koichi Sasada)
02:17 PM Feature #1031: -U オプションの説明が --help にない
まだ,閉じられていないようです.... ko1 (Koichi Sasada)
02:14 PM Feature #227 (Closed): rb_scan_args() for keyword arguments
違う形で入ったらしいので終了. ko1 (Koichi Sasada)
02:13 PM Feature #120 (Rejected): --enable-gc-malloc-stats
The code CALC_EXACT_MALLOC_SIZE was removed.
Please use other tools such as valgrind (massif).
ko1 (Koichi Sasada)
02:07 PM Revision 47f89c98 (git): * ext/openssl/lib/openssl/buffering.rb (module OpenSSL):
Buffering#each_byte should return String in accordance with IO in
1.9.
* test/openssl/test_buffering.rb (class OpenSSL): add tests for getc
and each_byte.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32012 b2dd03c8-39d4-4d8f-...
Hiroshi Nakamura
01:42 PM Revision 35c16fe3 (git): * time.c: a correction of doc for strftime (%v).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
01:32 PM Revision aab82243 (git): * ext/date/date_core.c: replaced doc for strftime based on Time's one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
01:10 PM Revision 87eeed51 (git): * ext/date/date_core.c (datetime_s_{iso8601,rfc3339,xmlschema,rfc2822,httpdate}):
do not take argument comp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
12:59 PM Revision 4a400e53 (git): * ext/date/date_core.c: added examples.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
12:56 PM Bug #4868 (Closed): ActiveSupport::JSON.decode Fails Decoding Date/Time String
Hi,
Tom, thank you for your report.
I think this issue was fixed in trunk by r30957.
And it was already back-ported to ruby_1_9_2 branch by r31769.
Please wait the new 1.9.2 patch level release.
Regards,
nagachika (Tomoyuki Chikanaga)
12:51 PM Bug #4868: ActiveSupport::JSON.decode Fails Decoding Date/Time String
=begin
Same as #4479 ?
=end
sakuro (Sakuro OZAWA)
11:40 AM Bug #4868: ActiveSupport::JSON.decode Fails Decoding Date/Time String
From the error message above it appears that the issue is related to ruby 1.9.2 and psych. The issue does not occur when running rails 3.0.7 and ruby 1.8.7. tboilard (Tom Boilard)
11:02 AM Bug #4868 (Third Party's Issue): ActiveSupport::JSON.decode Fails Decoding Date/Time String
Report it to ActiveSupport.
The bundled JSON module does not provide JSON.decode.
nobu (Nobuyoshi Nakada)
10:39 AM Bug #4868 (Closed): ActiveSupport::JSON.decode Fails Decoding Date/Time String
Issuing the command...
ActiveSupport::JSON.decode('[{"created_at":"2011-06-10T18:09:09-04:00"}]')
using the rails console results in the following error...
Psych::SyntaxError: couldn't parse YAML at line 1 column 30
from /Users...
tboilard (Tom Boilard)
10:51 AM Revision 11c43f7a (git): * gc.c: expand heap if initial_heap_min_slots is bigger than
HEAP_MIN_SLOTS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
10:44 AM Revision f53a117c (git): * ChangeLog (vim): set shiftwidth to 2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e eban (Hirofumi WATANABE)
10:39 AM Revision 004bd259 (git): * ext/openssl/ossl_x509req.c: raise RequestError instead of
CertificateError when Request#to_der gets an error from OpenSSL.
Patch from Ippei Obayashi, see #4420. I cannot write a test for
this... Request does not allow to create broken bytes...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
Hiroshi Nakamura
10:36 AM Revision a6567f2b (git): * ext/date/date_core.c (Date::(ABBR_)?(MONTH|DAY)NAMES): should be usascii.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:25 AM Revision 4dbc9af8 (git): * ext/date/date_core.c: rewrote doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:23 AM Bug #4853: ext/tk/extconf.rb fails on Mac OS X
なかだです。

At Wed, 08 Jun 2011 07:53:54 +0900 (JST),
Hidetoshi NAGAI wrote:
> > TkConfig_Info['TK_INCLUDE_SPEC']がセットされていないようです。
>
> 以下のパッチではいかがでしょうか?

これでいけました。ありがとうございます。

--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
...
nobu (Nobuyoshi Nakada)
10:23 AM Bug #4853: ext/tk/extconf.rb fails on Mac OS X
なかだです。

At Wed, 08 Jun 2011 07:53:54 +0900 (JST),
Hidetoshi NAGAI wrote:
> > TkConfig_Info['TK_INCLUDE_SPEC']がセットされていないようです。
>
> 以下のパッチではいかがでしょうか?

これでいけました。ありがとうございます。

--
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
...
nobu (Nobuyoshi Nakada)
10:04 AM Revision 95e42dc1 (git): * lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
with 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:07 AM Revision 10bf738b (git): * bootstraptest/runner.rb: should initilize $stress to avoid warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e eban (Hirofumi WATANABE)
09:02 AM Revision 34b19050 (git): * io.c (io_getc): should be 7bit if ascii. fixes #4557
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:52 AM Revision 6f58118e (git): * numeric.c (rb_enc_uint_chr): fix message format. Bug#4869
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:32 AM Revision 0347b17b (git): * ChangeLog: fix ticket number at r31995. fixes #4161 is correct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
07:29 AM Revision da672779 (git): * lib/rexml/formatters/pretty.rb
(REXML::Formatters::Pretty#write_text),
test/rexml/test_core.rb
(Tester#test_pretty_format_long_text_finite): don't ignore
'width' parameter in pretty formatter. fixes #4498
Reported by Michael Frasca. Thanks!!!
git-svn-id: svn...
Sutou Kouhei
07:12 AM Revision 962956e8 (git): * test/rexml/test_core.rb
(Tester#test_pretty_format_long_text_finite): remove needless
assert_nothing_raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
07:05 AM Revision 80cb3351 (git): * lib/rexml/parsers/xpathparser.rb
(REXML::Parsers::XPathParser#parse),
test/rexml/test_elements.rb
(ElementsTester::test_each_with_frozen_condition):
don't modify original XPath. fixes #4164
Reported by Pavel Shved. Thanks!!!
git-svn-id: svn+ssh://ci.ruby-lang....
Sutou Kouhei
06:53 AM Revision 8aecece6 (git): * test/rexml/test_elements.rb (ElementsTester): remove needless
prefix from test name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
06:37 AM Revision 0dfbb49a (git): fixed a grammatical error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
05:21 AM Revision 1485f3c1 (git): * vm.c (thread_memsize): don't ignore size of th->local_storage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
03:23 AM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
SASADA Koichi <ko1@atdot.net> wrote:
> (2011/06/10 13:10), Eric Wong wrote:
> >> For (2), ephemeral class seems good.
> >
> > Your patch for (1) improves (2), too. However, I think cache miss
> > is already a huge problem be...
normalperson (Eric Wong)
01:32 AM Revision ac0ab1f6 (git): * lib/mkmf.rb: should quote arch_hdrdir and libpath for the case
installed prefix contains spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:21 AM Revision fe244c77 (git): * thread_pthread.c (native_cond_timeout): wrap conditinally used label.
* thread_pthread.c (native_sleep): remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:17 AM Revision 71fdb43e (git): * thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract
rb_thread_t from VALUE.
reorted by Motohiro KOSAKI. [ruby-dev:43700]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:01 AM Revision 2e29d255 (git): * 2011-06-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:01 AM Revision 1482fcce (git): * ruby.c (ruby_process_options): add missing return type.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:22 AM Feature #4867 (Closed): Document more Module callbacks
I've added documentation for the method_added and method_removed callbacks on Module. The patches are available at https://github.com/shyouhei/ruby/pull/5 , don't change any code or test coverage, and should apply cleanly.
bkerley (Bryce Kerley)

06/10/2011

11:35 PM Bug #4866 (Closed): Macでmake checkするとIO.copy_streamでSEGV
make checkが以下のように異常終了します。
.
#245 test_io.rb:99:in `block in <top (required)>':
at_exit { p :foo }

megacontent = "abc" * 12345678
#File.open("megasrc", "w") {|f| f << megacontent }

Thread.n...
kosaki (Motohiro KOSAKI)
11:23 PM Feature #4824: Provide method Kernel#executed?
On Fri, Jun 10, 2011 at 09:35:24PM +0900, Austin Ziegler wrote:
> On Thu, Jun 9, 2011 at 3:49 PM, Cezary Baginski
> <cezary.baginski@gmail.com> wrote:
> > Issue #4824 has been updated by Cezary Baginski.
> >
> > ~~~ruby
> > ...
Cezary (Cezary Baginski)
11:23 PM Feature #4824: Provide method Kernel#executed?
On Fri, Jun 10, 2011 at 07:20:32AM +0900, Rocky Bernstein wrote:
>
> Issue #4824 has been updated by Rocky Bernstein.
>
>
> Cezary Baginski wrote:
> > This may seem like heresy, but isn't really:
> >
> > ~~~ruby
> > __...
Cezary (Cezary Baginski)
09:53 PM Feature #4824: Provide method Kernel#executed?
On Thu, Jun 9, 2011 at 3:49 PM, Cezary Baginski
<cezary.baginski@gmail.com> wrote:
> Issue #4824 has been updated by Cezary Baginski.
> This may seem like heresy, but isn't really:
>
> ~~~ruby
> __FILE__
austin (Austin Ziegler)
09:08 AM Feature #4824: Provide method Kernel#executed?
I'd still prefer a Kernel method - It's about better readability, isn't it? My favourites:
~~~ruby
directly_executed?
standalone?
~~~
If it should be some kind of keyword, I can't see any serious issue against the `__MAIN__` sol...
rbjl (Jan Lelis)
07:20 AM Feature #4824: Provide method Kernel#executed?
Cezary Baginski wrote:
> This may seem like heresy, but isn't really:
> ...
I wrote my thoughts regarding this to ruby-core on June 5-6. See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/36772. But I realize that doesn't ...
rocky (Rocky Bernstein)
04:49 AM Feature #4824: Provide method Kernel#executed?
This may seem like heresy, but isn't really:
~~~ruby
__FILE__ == $0
~~~
just a hack for letting a file be *both* a script and a "library" at the same time? With the only sane use (I can think of) being adding unit tests?
This ...
Cezary (Cezary Baginski)
02:30 AM Feature #4824: Provide method Kernel#executed?
Lazaridis Ilias wrote:
> Nobuyoshi Nakada wrote:
[...]
> ...
[...]
>
> ...
Correcting myself:
Taking in account that "`self`" refers to the "`main`" object (the global object) and not to the file object (as it should, from my po...
lazaridis.com (Lazaridis Ilias)
11:23 PM Bug #4473: Calling return within begin still executes else
(2011/06/10 22:56), Yukihiro Matsumoto wrote:
> In message "Re: [ruby-core:36926] Re: [Ruby 1.9 - Bug #4473] Calling return within begin still executes else"
> on Fri, 10 Jun 2011 22:36:19 +0900, SASADA Koichi <ko1@atdot.net> wr...
ko1 (Koichi Sasada)
11:03 PM Bug #4473: Calling return within begin still executes else
Yugui-san,
This fix will introduce incompatibility from 1.9.2. Is it acceptable?
ko1 (Koichi Sasada)
10:59 PM Bug #4473: Calling return within begin still executes else
Hi,

In message "Re: [ruby-core:36926] Re: [Ruby 1.9 - Bug #4473] Calling return within begin still executes else"
on Fri, 10 Jun 2011 22:36:19 +0900, SASADA Koichi <ko1@atdot.net> writes:

|I recognize this issue. Matz, ...
matz (Yukihiro Matsumoto)
10:53 PM Bug #4473: Calling return within begin still executes else
Hi,

I recognize this issue. Matz, what do you think about it?

(2011/04/06 21:12), Mayank Kohaley wrote:
>
> Issue #4473 has been updated by Mayank Kohaley.
>
>
> I can see the same issue happening on Windows also...
ko1 (Koichi Sasada)
11:23 PM Bug #4630: PROCDEBUG to non-zero values causes segmentation faults in check_env in trunk
Hi,

(2011/04/29 4:52), Elise Huard wrote:
> PROCDEBUG is meant to show debugging output from the vm.
> However, when it's activated in vm.c
> #define PROCDEBUG 1
> The make process fails in segmentation faults.

Oops. ...
ko1 (Koichi Sasada)
11:05 PM Feature #4538 (Assigned): [PATCH (cleanup)] avoid unnecessary select() calls before doing I/O
Assigned.
kosaki (Motohiro KOSAKI)
10:53 PM Feature #4538: [PATCH (cleanup)] avoid unnecessary select() calls before doing I/O
Hi,

Any action on this proposal?

This thread is too long and difficult to understand....



(2011/03/30 3:22), Eric Wong wrote:
>
> Issue #4538 has been reported by Eric Wong.
>
> ----------------------------...
ko1 (Koichi Sasada)
10:55 PM Feature #4614: [RFC/PATCH] thread_pthread.c: lower RUBY_STACK_MIN_LIMIT to 64K
GC eats large stack size if there are nested object (deep nested array and so on). I'm not sure but I think this is why we allocate 512KB for stack.
Any comments?
I think that Thread.new should accept stack size.
ko1 (Koichi Sasada)
10:54 PM Bug #373: MingwでIO#dupがブロックする
Was this fixed in r20630 ? rogerdpack (Roger Pack)
10:53 PM Bug #4613: define_method lacks trace events
Hi,

I'll check your patch and commit it. Thank you.

(2011/04/26 8:29), Roger Pack wrote:
>
> Issue #4613 has been reported by Roger Pack.
>
> ----------------------------------------
> Bug #4613: define_method lac...
ko1 (Koichi Sasada)
10:53 PM Bug #4583: trace doesn't work for methods set up by attr_*
Hi,

(2011/04/17 11:44), redmine@ruby-lang.org wrote:
> Methods set up with (({attr_accessor})) or alike are not traceable:
>
> class Foo
> attr_writer :bar
> def baz=(value)
> @baz = value
> end
> end
>
...
ko1 (Koichi Sasada)
10:53 PM Feature #4830: Provide Default Variables for Array#each and other iterators
On Fri, Jun 10, 2011 at 2:32 PM, Adam Prescott <adam@aprescott.com> wrote:

> I think the ${1,2,3,...} variables match the gsub(regex, "a $1 replacement
> $2 here $3").
>

Sorry, that wasn't really clear, and the latter code...
aprescott (Adam Prescott)
10:53 PM Feature #4830: Provide Default Variables for Array#each and other iterators
On Fri, Jun 10, 2011 at 1:28 AM, Jan Lelis <mail@janlelis.de> wrote:

> "string".gsub(/com(plex)_reg(ex)/){
> # use $1, $2, ...
> }
>
> To get back to the original problem, I'd prefer: $item (which is -of
> course- not a ...
aprescott (Adam Prescott)
09:28 AM Feature #4830: Provide Default Variables for Array#each and other iterators
There is (almost) a case where it is already possible:
```ruby
"string".gsub(/./){ |e|
# use e
}
```
vs.
```ruby
"string".gsub(/./){
# use $&
}
```
I always (except in code-golfing) end up with the first solution. H...
rbjl (Jan Lelis)
08:38 PM Feature #4865 (Rejected): Documentation of FileUtils is very unclear on how errors are handled
Documentation of FileUtils is very unclear on how errors are handled.
Looking at the documentation at http://ruby-doc.org/stdlib/libdoc/fileutils/rdoc/classes/FileUtils.html on "cp_r" you can see that error handling isn't mentioned at...
x3ro (x3ro _)
07:23 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
(2011/06/10 18:50), Eric Wong wrote:
> One possible issue is the VM state counter overflowing. Maybe we should
> empty the method cache on the rare event of a VM state counter overflow
> to avoid false positives?

Good point....
ko1 (Koichi Sasada)
06:59 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Hi,

(2011/06/10 13:10), Eric Wong wrote:
>> For (2), ephemeral class seems good.
>
> Your patch for (1) improves (2), too. However, I think cache miss
> is already a huge problem because cache-clearing is called during GC...
ko1 (Koichi Sasada)
06:53 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Eric Wong <normalperson@yhbt.net> wrote:
> > For (1), I made an alternative patch:
> > http://www.atdot.net/sp/readonly/x8wjml
>
> Awesome! It gives roughly the same performance as my ephemeral class
> patch in my measurem...
normalperson (Eric Wong)
06:53 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Charles Oliver Nutter <headius@headius.com> wrote:
> On Thu, Jun 9, 2011 at 3:17 AM, Eric Wong <normalperson@yhbt.net> wrote:
> > Nevermind, I misread the first time and got ordering of your question
> > mixed up in my mind.
> >...
normalperson (Eric Wong)
04:53 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
On Thu, Jun 9, 2011 at 3:52 AM, Eric Wong <normalperson@yhbt.net> wrote:
> Since you provided the benchmark code, I reformatted and
> made a version of it for kgio (see below).
>
> Summary: ephemeral-class performance noticeably (an...
headius (Charles Nutter)
04:53 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
On Thu, Jun 9, 2011 at 3:17 AM, Eric Wong <normalperson@yhbt.net> wrote:
> Nevermind, I misread the first time and got ordering of your question
> mixed up in my mind.
>
> Once a class is tagged RCLASS_EPHEMERAL, it's impossible for...
headius (Charles Nutter)
01:23 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
SASADA Koichi <ko1@atdot.net> wrote:
> Clearing method caching cause the following 2 overheads:
>
> (1) Clearing overhead
> (2) Cache misses because of clearing methods
>
> Which is your purpose?

I used oprofile last ...
normalperson (Eric Wong)
10:53 AM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Hi,

(2011/06/07 2:55), Eric Wong wrote:
> Akira Tanaka <akr@fsij.org> wrote:
>> I don't against for the ephemeral class flag but
>> it needs discussion with ko1 and/or matz.
>
> Can either of them comment please? I woul...
ko1 (Koichi Sasada)
08:23 AM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Eric Wong <normalperson@yhbt.net> wrote:
> A better idea would be to get a kgio-like API into Ruby itself and
> encourage people to start using that. kgio itself will never take off
> since it's *nix-only and written in C, so it ...
normalperson (Eric Wong)
07:07 PM Bug #4864 (Assigned): RubyGems が環境変数 MAKE を見てくれない
naruse (Yui NARUSE)
06:00 PM Bug #4864 (Closed): RubyGems が環境変数 MAKE を見てくれない
mkmf などでは環境変数 MAKE を見てくれるのですが、RubyGems だけ環境変数 MAKE を見てくれません。
RubyGems でもなぜか小文字の make は見てくれるのですが。。。
Solaris とかで gmake を使いたいときに困るので大文字の MAKE も参照するようにして欲しいです。
diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb
in...
okkez (okkez _)
04:42 PM Bug #4854 (Closed): Invalid locale_charmap (CP0) when running as Windows Service
This issue was solved with changeset r31985.
Rafal, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* encoding.c (rb_locale_charmap): When ruby process is run as Wi...
naruse (Yui NARUSE)
04:15 PM Bug #4863 (Third Party's Issue): config.charset not found
ext/iconv/charset_alias.rb と ext/iconv/mkwrapper.rb に
http://www.ctan.org/get/macros/texinfo/texinfo/gnulib/lib/config.charset
という URL が書いてありますが、存在しなくなっているようです。
znz (Kazuhiro NISHIYAMA)
02:24 PM Revision 7eed9093 (git): * ext/tk/tcltklib.c (lib_eventloop_core): replace CHECK_INTS with
rb_thread_check_ints(). Because current code can't be compiled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
11:29 AM Feature #4862 (Rejected): Struct#to_hash
Occasionally, it is necessary to convert a Struct to a Hash (especially when generating JSON from an Array of Structs). A Struct#to_hash method would be very useful in this situation.
class Struct
#
# Returns the H...
postmodern (Hal Brodigan)
07:42 AM Revision c479bde4 (git): * encoding.c (rb_locale_charmap): When ruby process is run as Windows
Service the console codepage is not set, GetConsoleCP returns 0.
So on such environment, use GetACP().
http://blogs.msdn.com/b/michkap/archive/2005/02/08/369197.aspx
patched by Rafal Bigaj [ruby-core:36832] [Bug #4854]
git-svn-id:...
naruse (Yui NARUSE)
06:45 AM Revision 09c86513 (git): Don't break test-all.
Revert "* lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to"
This reverts commit r31982.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:47 AM Revision 5a363fbb (git): * common.mk: restore TESTRUN_SCRIPT to "$(srcdir)/test.rb".
TESTRUN_SCRIPT is used by "make run", "make gdb" and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:23 AM Feature #666: Enumerable::to_hash
Hi,

On 09.06.2011 20:26, Marc-Andre Lafortune wrote:
> You might want to read the thread [ruby-core:33683] on Akira's
> proposal for Enumerable#categorize and my alternative proposal
> Enumerable#associate which would act as ...
mfn (Markus Fischer)
03:26 AM Feature #666: Enumerable::to_hash
Thanks for commenting on this old request.
You might want to read the thread [ruby-core:33683] on Akira's
proposal for Enumerable#categorize and my alternative proposal
Enumerable#associate which would act as a more versatile
Enume...
marcandre (Marc-Andre Lafortune)
04:23 AM Feature #4326: Fiber should respond to call() and []
Hi,

Sorry for late response.

(2011/01/26 16:08), Aaron Patterson wrote:
> Feature #4326: Fiber should respond to call() and []
> http://redmine.ruby-lang.org/issues/show/4326
>
> Author: Aaron Patterson
> Status: Op...
ko1 (Koichi Sasada)
04:23 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
Hi,

Sorry for late response.

I can't find out the conclusion of this problem. Is it solved? Is
there summary of this thread?

(2010/12/18 1:57), Brian Durand wrote:
> Bug #4168: WeakRef is unsafe to use in Ruby 1.9
...
ko1 (Koichi Sasada)
04:04 AM Revision 3bc5b309 (git): * lib/test/unit/assertions.rb (Test::Unit::Assertions#skip): reason to
skip should be explained.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:03 AM Revision c95cbe80 (git): * test/testunit: add skip messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:02 AM Revision be462352 (git): * test/ruby/test_transcode.rb (TestTranscode#test_Big5_Hkscs): fix
indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:01 AM Revision b5d59da9 (git): * test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all
module related to Rake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:10 AM Bug #4859 (Rejected): Debug output in 1.8 vs 1.9
This code emits warnings in debug mode in 1.9 but does not in 1.8:
$-d = true

class Foo
def method_missing(method, *args, &block)
super
end
end

[[Foo.new]].flatten
In 1.8, there...
tenderlovemaking (Aaron Patterson)
12:52 AM Revision 58b14e78 (git): * encoding.c: Mention that Encoding.compatible? can work with more
than just Strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:35 AM Bug #4858 (Closed): array.drop() doc change in array.c
I made the following change to the array.drop documentation:
* Drops first n elements from <i>ary</i>, and returns rest elements
* in an array.
* Drops first n elements from <i>ary</i>. and returns the rest of the
* element...
caleywoods (Caley Woods)

06/09/2011

11:45 PM Bug #4828 (Closed): crash in test_thread_instance_variable
This issue was solved with changeset r31968.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c (rb_objspace_call_finalizer): use rb_typeddata_is_kind...
nagachika (Tomoyuki Chikanaga)
11:03 PM Feature #666: Enumerable::to_hash
Arnau Sanchez wrote:
> I don't know if it's polite to comment in old closed issues, excuse me if it's not.
> ...
[...]
> Hash[(1..3).map { |n| [n, n**2] }]
> ...
I was about to open a new feature request when I found this, unfortuna...
mfn (Markus Fischer)
07:54 PM Feature #4830: Provide Default Variables for Array#each and other iterators
Charles Nutter wrote:
[...]
> FWIW, I have implemented "it" in JRuby previously, just for fun. It's not hard to add, if the powers decide it's a good feature for Ruby.
Some important details:
* the user can choose to use explicit...
lazaridis.com (Lazaridis Ilias)
07:18 PM Bug #4460: Date.commercial date calculations don't match strftime output
repost code
=begin
> Date.new(2011,2,28).strftime('%G-%V-%u')
#=> "2011-09-1"
> Date.new(2011,2,28).next_year(2).strftime('%G-%V-%u')
#=> "2013-09-4"

> Date.commercial(2011,9,1)
#=> #<Date: 2011-02-28 ((2455621j,0s,0n...
tadf (tadayoshi funaba)
07:12 PM Bug #4460 (Rejected): Date.commercial date calculations don't match strftime output
not a bug.
'%U', '%V' and '%W' are available for week number.
you should use %V in this case.
you can also use it with Date.strptime.
> Date.new(2011,2,28).strftime('%G-%V-%u')
#=> "2011-09-1"
> ...
#=> "2013-09-4"
> Date.c...
tadf (tadayoshi funaba)
05:53 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Charles Oliver Nutter <headius@headius.com> wrote:
> Interested in the overhead of this EAGAIN nonsense, I ran a quick
> benchmark. I include it here for the amusement of all. It demonstrates
> pretty clearly the impact of the ext...
normalperson (Eric Wong)
05:23 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Charles Oliver Nutter <headius@headius.com> wrote:
> On Wed, Jun 8, 2011 at 4:00 PM, Eric Wong <normalperson@yhbt.net> wrote:
> > Charles Nutter <headius@headius.com> wrote:
> >> What's the effect of the EPHEMERAL flag if someone ...
normalperson (Eric Wong)
02:23 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
On Wed, Jun 8, 2011 at 4:00 PM, Eric Wong <normalperson@yhbt.net> wrote:
> Charles Nutter <headius@headius.com> wrote:
>> What's the effect of the EPHEMERAL flag if someone takes an object
>> with an attached ephemeral class and star...
headius (Charles Nutter)
06:23 AM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Charles Nutter <headius@headius.com> wrote:
> What's the effect of the EPHEMERAL flag if someone takes an object
> with an attached ephemeral class and starts making singleton changes
> to that object? Do those changes properly fl...
normalperson (Eric Wong)
05:26 PM Revision 132161da (git): * ext/psych/lib/psych.rb: updating version to match released gem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tenderlovemaking (Aaron Patterson)
04:08 PM Revision c2f9e1b1 (git): * ext/bigdecimal (BigDecimal_to_i): Integer#** may return flonum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
03:36 PM Revision 14c504b3 (git): * complex.c (string_to_c_internal): uses rb_reg_nth_match;
* rational.c (string_to_r_internal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
03:31 PM Revision 5aee85ce (git): * gc.c: remove an unused declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:25 PM Revision aca87391 (git): * rational.c (string_to_r): Rational#** may return flonum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
03:02 PM Revision 27f4e218 (git): * 2011-06-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision 87f025da (git): * io.c: fix IO.copy_stream interrupt handling.
based on the patch by Eric Wong. [ruby-core:36156]
* vm_core.h (rb_thread_call_with_gvl): don't declare here.
* thread.c: include internal.h.
(rb_thread_execute_interrupts): new function.
* internal.h (rb_thread_execute_interrupts)...
akr (Akira Tanaka)
03:02 PM Revision b2e133ab (git): * 2011-06-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision 1c960858 (git): reedit previous commit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
02:45 PM Revision 1fdbe0f4 (git): * gc.c (rb_objspace_call_finalizer): use rb_typeddata_is_kind_of() for
type check to get rid of a double free when main Thread has singleton
class. [ruby-core:36741] [Bug #4828]
* thread.c (rb_obj_is_mutex): add a new utility function.
* vm.c (rb_obj_is_thread): ditto.
git-svn-id: svn+ssh://ci.ruby-lang....
nagachika (Tomoyuki Chikanaga)
01:58 PM Revision 50a058b6 (git): * test/ruby/test_thread.rb (TestThread#test_kill_thread_subclass):
add test for Thread.kill with Thread subclass instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:38 PM Revision d7a3261d (git): * test/ruby/test_thread.rb (TestThread#test_kill_wrong_argument):
test for [ruby-core:35086].
partially forward porting r31402 from ruby_1_9_2 branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:31 AM Revision 8b687950 (git): * lib/date.rb: zone_to_diff in this version is just class method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:46 AM Revision bc69c7ff (git): * 2011-06-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:46 AM Revision 67236523 (git): * lib/date.rb (time_to_day_fraction): accepts flonum without Float#to_r.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
09:39 AM Revision 30a87f35 (git): * string.c: Fix the ambiguous description of the behavior of
rb_str_aref_m with a range. It returns nil when the beginning of
the range is greater than the end of the string rather than the range.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
08:43 AM Feature #4412 (Assigned): [ext/openssl] Create Digest by OID
MartinBosslet (Martin Bosslet)
08:42 AM Feature #4481 (Assigned): Add client_ca method to OpenSSL::SSLSocket
MartinBosslet (Martin Bosslet)
06:38 AM Feature #4481: Add client_ca method to OpenSSL::SSLSocket
Thanks Ippei for submitting this - I will have a look at it!
Regards,
Martin
MartinBosslet (Martin Bosslet)
06:53 AM Feature #4778: IO#each_chomped
Yeah, probably...or it should be x.chomp!; yield x

My intent was to avoid creating a useless transient object.

- Charlie (mobile)

On Jun 8, 2011, at 10:54, Jos Backus <jos@catnook.com> wrote:

>
> Issue #4778 has been updat...
headius (Charles Nutter)
12:54 AM Feature #4778: IO#each_chomped
Charles, shouldn't
x.chomp!
be
x.chomp
in the above code? x.chomp! can return nil.
josb (Jos Backus)
06:32 AM Feature #4672: [PATCH] openssl: enable SSL_MODE_RELEASE_BUFFERS if available
This patch seems reasonable. I looked at the implementation in OpenSSL (1.0.0d)
and it looks like using SSL_MODE_RELEASE_BUFFERS should not cause any problems.
Hiroshi, what do you think?
Regards,
Martin
(PS: If you agree that...
MartinBosslet (Martin Bosslet)
06:14 AM Feature #4805: Add X509::Name#hash_old for 0.9.X compat
Hi Hiroshi,
sorry for taking some time to answer, I was on vacation last week...
I think your patch is good! But there is one thing I don't like
about OpenSSL itself here - why do they hardcode the digest algorithm
in the first pla...
MartinBosslet (Martin Bosslet)
05:23 AM Bug #3924: Performance bug (in require?)
>> Require performance has been imporved a little at r31875, i think.
>
> nice! It sure has.
>
>> Please compare the proposal with it
>
>                        Mine    1.9.3r31923
> 2000 in load path       0.70 ...
tarui (Masaya Tarui)
02:05 AM Feature #4824: Provide method Kernel#executed?
Markus Fischer wrote:
> Hi,
> ...
[...]
Hijacking issues on an issue-tracking-system is really not the way to go.
Better open a new issue (or a new discussion topic) and place a link to it, if it's somehow related.
lazaridis.com (Lazaridis Ilias)
01:23 AM Feature #4824: Provide method Kernel#executed?
Hi,

I take the courtesy to hijack this because ...

On 08.06.2011 13:31, Rodrigo Rosenfeld Rosas wrote:
> Issue #4824 has been updated by Rodrigo Rosenfeld Rosas.
>
>
> Actually, maybe something like the snippet below...
mfn (Markus Fischer)
01:13 AM Feature #4824: Provide method Kernel#executed?
Nobuyoshi Nakada wrote:
> Hi,
> ...
@C.O. Nutter
I you dislike "digging around in the caller's frame", then you can possibly implement it in a different way.
> `__FILE__.main?`
This is not an OO approach, even I would prefer to...
lazaridis.com (Lazaridis Ilias)
01:58 AM Revision 8cd2bf07 (git): * ext/psych/lib/psych/visitors/to_ruby.rb: Hash subclasses can be read
from YAML files.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Hash subclasses can be
dumped to YAML files.
* test/psych/test_hash.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31961 b2dd03c8-39d4-4d8f-98ff-...
tenderlovemaking (Aaron Patterson)
12:22 AM Revision aaa52bf0 (git): * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby modules can be loaded
from YAML files.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby modules can be
dumped to YAML files.
* test/psych/test_class.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31960 b2dd03c8-39d4-4d8f-98ff-82...
tenderlovemaking (Aaron Patterson)
12:06 AM Revision a8cc42d1 (git): * 2011-06-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:06 AM Revision c641e4b2 (git): * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby classes can be loaded
from YAML files.
* ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby classes can be
dumped to YAML files.
* test/psych/test_class.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31958 b2dd03c8-39d4-4d8f-98ff-82...
tenderlovemaking (Aaron Patterson)

06/08/2011

11:58 PM Bug #4855 (Closed): rb_context_t::saved_thread::machine_stack_(start|end) should be cleared
近永と申します。英語で説明するのが難しいのでruby-devで失礼します。
#4827 の調査の途上で再現スクリプトを valgrind つきで実行すると以下のように
不正な領域を machine stack として mark しようとしているようなメッセージが出ました。
(ただし FIBER_USE_NATIVE=0 にした場合です)。
==27771== Invalid read of size 4
==27771== at 0x809AC1...
nagachika (Tomoyuki Chikanaga)
11:53 PM Feature #4824: Provide method Kernel#executed?
Em 08-06-2011 11:28, Nobuyoshi Nakada escreveu:
> Hi,
>
> At Wed, 8 Jun 2011 16:44:55 +0900,
> Charles Oliver Nutter wrote in [ruby-core:36833]:
>> I might be more inclined to a keyword or pseudo constant along the
>> lines ...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:29 PM Feature #4824: Provide method Kernel#executed?
Hi,

At Wed, 8 Jun 2011 16:44:55 +0900,
Charles Oliver Nutter wrote in [ruby-core:36833]:
> I might be more inclined to a keyword or pseudo constant along the
> lines of `__FILE__`, like `__MAIN__` that produces true iff `__FI...
nobu (Nobuyoshi Nakada)
09:23 PM Feature #4824: Provide method Kernel#executed?
Em 08-06-2011 08:50, Bill Kelly escreveu:
> Why would one expect `__MAIN__` to be any more or less of a
> constant than `__FILE__` or `__LINE__` or `__method__` ?
>
> Seems to me its behavior would be consistent with the others....
rosenfeld (Rodrigo Rosenfeld Rosas)
08:53 PM Feature #4824: Provide method Kernel#executed?
Hi,

Rodrigo Rosenfeld Rosas wrote:
>
> I like the idea too. I just think that Ruby is very simple to start with
> because it is very consistent and with a few rules. Someone would expect
> `__MAIN__` to be a constant, wh...
spatulasnout (B Kelly)
08:31 PM Feature #4824: Provide method Kernel#executed?
Actually, maybe something like the snippet below would be ideal:
~~~ruby
if defined?(__MAIN__) ...
~~~
This means `__MAIN__` is still a constant, but one defined by the interpreter in some conditional way that is injected only in...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:29 PM Feature #4824: Provide method Kernel#executed?
Em 08-06-2011 06:13, Ryan Davis escreveu:
> On Jun 8, 2011, at 00:44 , Charles Oliver Nutter wrote:
>
>> I might be more inclined to a keyword or pseudo constant along the
>> lines of `__FILE__`, like `__MAIN__` that produces tr...
rosenfeld (Rodrigo Rosenfeld Rosas)
06:23 PM Feature #4824: Provide method Kernel#executed?
On Jun 8, 2011, at 00:44 , Charles Oliver Nutter wrote:

> I might be more inclined to a keyword or pseudo constant along the
> lines of `__FILE__`, like `__MAIN__` that produces true iff `__FILE__
> $0`. Something we can static...
zenspider (Ryan Davis)
04:53 PM Feature #4824: Provide method Kernel#executed?
On Mon, Jun 6, 2011 at 7:09 AM, Rodrigo Rosenfeld Rosas
<rr.rosas@gmail.com> wrote:
>
> Issue #4824 has been updated by Rodrigo Rosenfeld Rosas.
>
>
> Ruby allows a question mark in method names exactly for avoiding writing ...
headius (Charles Nutter)
11:29 PM Bug #4828: crash in test_thread_instance_variable
Hi,

At Wed, 8 Jun 2011 23:11:29 +0900,
Tomoyuki Chikanaga wrote in [ruby-core:36849]:
> But I'm hesitating to close this ticket. Is this patch fixes root problem of this issue?
> I suspect it is just a makeshift fix.

At ...
nobu (Nobuyoshi Nakada)
11:25 PM Bug #4828: crash in test_thread_instance_variable
wow, the patch fixes warnings on valgrind ruby -e'class << Thread.current; end' naruse (Yui NARUSE)
11:11 PM Bug #4828: crash in test_thread_instance_variable
I refined my patch to use rb_typeddata_is_kind_of() to check Thread and Mutex object,
because rb_obj_is_kind_of() might raise exception and use of rb_typeddata_is_kind_of() seems more efficient.
I'll check in it later.
But I'm hesit...
nagachika (Tomoyuki Chikanaga)
10:09 PM Bug #4827 (Closed): meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
Thank you for your checking.
I committed it at r31954.
nagachika (Tomoyuki Chikanaga)
09:23 PM Feature #4840: Allow returning from require
One real use case I see would be avoiding global state (like CommonJS). However, if an already required file return `nil`, this is not possible.
rkh (Konstantin Haase)
08:59 PM Feature #4840: Allow returning from require
On 08/06/11 01:33, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:36811] Re: [Ruby 1.9 - Feature #4840][Open] Allow returning from require"
> on Tue, 7 Jun 2011 19:10:15 +0900, Yusuke ENDOH <mame@tsg.ne.jp> ...
regularfry (Alex Young)
06:29 PM Feature #4840: Allow returning from require
On Wed, Jun 8, 2011 at 4:22 AM, Ryan Davis <ryand-ruby@zenspider.com> wrote:
> How about raising a specific exception that is rescued by #require instead?
>
> ~~~ruby
> class AbortRequire < StandardError; end
...
> raise Abo...
headius (Charles Nutter)
06:23 PM Feature #4840: Allow returning from require
On Jun 7, 2011, at 17:33 , Yukihiro Matsumoto wrote:

> Hi,
>
> In message "Re: [ruby-core:36811] Re: [Ruby 1.9 - Feature #4840][Open] Allow returning from require"
> on Tue, 7 Jun 2011 19:10:15 +0900, Yusuke ENDOH <mame@t...
zenspider (Ryan Davis)
05:53 PM Feature #4840: Allow returning from require
On Wed, Jun 8, 2011 at 8:38 AM, Charles Oliver Nutter
<headius@headius.com>wrote:

> exit_script if defined? GitoriousConfig
>

This could be confusing, if you happen to view the entire program as a
script. You might think...
aprescott (Adam Prescott)
04:53 PM Feature #4840: Allow returning from require
On Tue, Jun 7, 2011 at 7:33 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Ah, I understand the request.  But returning from outside of a method
> makes me so weird.

I agree with both the feature and the fact that return ...
headius (Charles Nutter)
09:53 AM Feature #4840: Allow returning from require
Hi,

In message "Re: [ruby-core:36811] Re: [Ruby 1.9 - Feature #4840][Open] Allow returning from require"
on Tue, 7 Jun 2011 19:10:15 +0900, Yusuke ENDOH <mame@tsg.ne.jp> writes:

>Agreed.

Ah, I understand the request....
matz (Yukihiro Matsumoto)
09:19 PM Feature #4025: Add Assertion class to Core
Pretty sure Assertion has to be subclass of Exception, because the way test runners work is to use #rescue to catch Assertion failure and other exceptions. Test framework developers can still subclass it for their own specific purposes, ... trans (Thomas Sawyer)
05:08 PM Feature #4778: IO#each_chomped
Trivial Ruby impl...
class IO
def each_chomped
each {|x| yield x.chomp!}
end
end
Of course if you don't mind the whole file being read into memory:
io.each.map(&:chomp).each { ...
Might be a way to pipeline that w...
headius (Charles Nutter)
05:01 PM Feature #4830: Provide Default Variables for Array#each and other iterators
I've gone back and forth on whether I like this feature in Groovy. For simple iterations or chained iterations, it definitely shortens things up:
some_array.map { foo(it) }.select { bar(it) }.each { baz(it) }
versus
some_array.m...
headius (Charles Nutter)
04:51 PM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
What's the effect of the EPHEMERAL flag if someone takes an object with an attached ephemeral class and starts making singleton changes to that object? Do those changes properly flush cache?
If this flag only helps cases where you're ...
headius (Charles Nutter)
04:38 PM Bug #4854 (Closed): Invalid locale_charmap (CP0) when running as Windows Service
When ruby process is run as Windows Service the console codepage is not set, GetConsoleCP returns 0.
As a result function rb_locale_charmap refers to not existing codepage: CP0.
It has a dramatic performance drawback on the system when...
rafal.bigaj (Rafal Bigaj)
12:57 PM Revision c84bb5df (git): * ChangeLog: fix some typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
12:52 PM Revision 5cf9a75c (git): * ChangeLog: add ticket link
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
12:50 PM Revision 3621b2de (git): * 2011-06-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:50 PM Revision 6d9e64d3 (git): * cont.c (root_fiber_alloc): set root fiber's status RUNNING.
in cont_mark() only RUNNING fiber's machine stack is marked.
root fiber's status should be RUNNING at the beginning regardless of
FIBER_USE_NATIVE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31954 b2dd03c8-39d4-4d8f-98ff-823f...
nagachika (Tomoyuki Chikanaga)
07:59 AM Bug #4853: ext/tk/extconf.rb fails on Mac OS X
永井@知能.九工大です.

From: Nobuyoshi Nakada <nobu@ruby-lang.org>
Subject: [ruby-dev:43656] [Ruby 1.9 - Bug #4853] ext/tk/extconf.rb fails on Mac OS X
Date: Wed, 8 Jun 2011 05:44:00 +0900
Message-ID: <redmine.journal-17583.20110608054...
nagai (Hidetoshi Nagai)
07:59 AM Bug #4853: ext/tk/extconf.rb fails on Mac OS X
永井@知能.九工大です.

From: Nobuyoshi Nakada <nobu@ruby-lang.org>
Subject: [ruby-dev:43656] [Ruby 1.9 - Bug #4853] ext/tk/extconf.rb fails on Mac OS X
Date: Wed, 8 Jun 2011 05:44:00 +0900
Message-ID: <redmine.journal-17583.20110608054...
nagai (Hidetoshi Nagai)
05:40 AM Bug #4853 (Closed): ext/tk/extconf.rb fails on Mac OS X
=begin
trunkのext/tk/extconf.rbがDarwin 9.8で通りません。r31894でも
r31947でも同じです。
configuring tk
check functions.........
check struct members..
check libraries....
Use ActiveTcl libraries (if available).
Search tclConfig.sh a...
nobu (Nobuyoshi Nakada)
12:19 AM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
Yukihiro Matsumoto wrote:
> Hi,
> ...
I understand.
But the central point should be: the OO model (consistency) breaks essentially.
I feel uncomfortable to ask a 3rd time, thus I assume that for now there is no workaround availab...
lazaridis.com (Lazaridis Ilias)

06/07/2011

11:53 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
Hi,

In message "Re: [ruby-core:36822] [Ruby 1.9 - Feature #4845] Provide Class#cb_object_instantiated_from_literal(object)"
on Tue, 7 Jun 2011 23:32:31 +0900, Lazaridis Ilias <ilias@lazaridis.com> writes:

|Yukihiro Matsu...
matz (Yukihiro Matsumoto)
11:32 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
Yukihiro Matsumoto wrote:
> Besides that, I strongly discourage to intercept literal creation, since it would change the semantics of the fundamental object model.
Discouraging and disabling are two different things.
The fundament...
lazaridis.com (Lazaridis Ilias)
10:53 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
Hi,

In message "Re: [ruby-core:36809] [Ruby 1.9 - Feature #4845] Provide Class#cb_object_instantiated_from_literal(object)"
on Tue, 7 Jun 2011 18:42:34 +0900, Lazaridis Ilias <ilias@lazaridis.com> writes:

|Nobuyoshi Naka...
matz (Yukihiro Matsumoto)
10:50 PM Feature #4845 (Rejected): Provide Class#cb_object_instantiated_from_literal(object)
Besides that, I strongly discourage to intercept literal creation, since it would change the semantics of the fundamental object model.
matz.
matz (Yukihiro Matsumoto)
06:42 PM Feature #4845: Provide Class#cb_object_instantiated_from_literal(object)
Nobuyoshi Nakada wrote:
> > * minimal overhead if not used (C-level if *ptr available, call)
> ...
I admit I don't know your current implementation.
Can you please point me to the relevant source code?
And please rethink the "pri...
lazaridis.com (Lazaridis Ilias)
06:02 PM Feature #4845 (Assigned): Provide Class#cb_object_instantiated_from_literal(object)
> * minimal overhead if not used (C-level if *ptr available, call)
Not true.
nobu (Nobuyoshi Nakada)
03:01 AM Feature #4845 (Rejected): Provide Class#cb_object_instantiated_from_literal(object)
(assuming that this is not a bug, but a speed tradeoff / known issue)
class String
alias_method :orig_initialize, :initialize
def initialize(val)
orig_initialize "OBSERVED: " + val
end
def my_method_test
print ...
lazaridis.com (Lazaridis Ilias)
11:41 PM Bug #4827: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
nagachika's patch works great. Thanks!
This patch should be committed.
sorah (Sorah Fukumori)
11:29 PM Bug #4827: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
Hi,
I think the following tiny patch will fix this problem.
Please check it out.
diff --git a/cont.c b/cont.c
index 72e1117..770cfeb 100644
--- a/cont.c
+++ b/cont.c
@@ -1148,8 +1148,8 @@ root_fiber_alloc(rb_thread_t *th)
#i...
nagachika (Tomoyuki Chikanaga)
12:37 AM Bug #4827: meke test-all TESTS="-j2 test/ruby/test_fiber.rb" on Mac crash sometimes
Hi,
I've created small script which can reproduce "crash in rb_method_entry_get_without_cache()".
script:
GC.stress = true
a = [0].map {|i| Fiber.new{Fiber.yield}.resume }
p a # => [BUG] Segmentation fault
result:
ruby 1.9.3...
nagachika (Tomoyuki Chikanaga)
11:19 PM Bug #4844: RVM crash while running resque worker pool
Hi,
I've attached pool.rb which you can correlate the stacktrace with.
emakris (Ernie Makrkis)
03:38 AM Bug #4844: RVM crash while running resque worker pool
Can you show the reproducible code? naruse (Yui NARUSE)
02:33 AM Bug #4844 (Closed): RVM crash while running resque worker pool
I can manage to make this crash happen regularly when running resque-pool on fast running jobs
/mnt/backupify-production/shared/bundle/ruby/1.9.1/gems/activesupport-3.0.0/lib/active_support/core_ext/kernel/agnostics.rb:7: [BUG] Segm...
emakris (Ernie Makrkis)
08:53 PM Feature #4840: Allow returning from require
Hello,

2011/6/7 Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>:
> This patch is so small, that it seems strange that it affects only
> requires... Won't it have side effects? Notice that I didn't test it yet.

I'm not sure.
...
mame (Yusuke Endoh)
08:23 PM Feature #4840: Allow returning from require
Em 07-06-2011 05:14, Haase, Konstantin escreveu:
> How will that work with require? Remember it will only load the file once. Return false otherwise? (Which would be kinda compatible with the current behavior and using raise/throw). O...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:23 PM Feature #4840: Allow returning from require
Em 07-06-2011 07:10, Yusuke ENDOH escreveu:
> Hello,
>
> ...
>
> Agreed. It would be also useful to write platform-specific code:
>
> ~~~ruby
> require "test/unit"
>
> return unless /mswin|cygwin|mingw|bccwin/...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:23 PM Feature #4840: Allow returning from require
Hello,

2011/6/6 Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>:
> I have a situation where there is some code in Gitorious like:
>
> unless defined? GitoriousConfig
>  # tons of lines here
> end
>
> And I would it to look like
...
mame (Yusuke Endoh)
05:23 PM Feature #4840: Allow returning from require
How will that work with require? Remember it will only load the file once. Return false otherwise? (Which would be kinda compatible with the current behavior and using raise/throw). Or should those values be cached? If you want to use r... rkh (Konstantin Haase)
07:23 AM Feature #4840: Allow returning from require
On 07/06/2011, at 12:18 AM, Michael Edgar wrote:
> On Jun 6, 2011, at 10:11 AM, Rodrigo Rosenfeld Rosas wrote:
>> It would be great to allow return from a required file or some
>> other keyword (break, etc or a new one)
>
> ...
cjheath (Clifford Heath)
12:23 AM Feature #4840: Allow returning from require
I think using "return" is quite natural in this case, as long as we
can use it in module/class-definitions too.

// Magnus Holm

On Mon, Jun 6, 2011 at 16:18, Michael Edgar <adgar@carboni.ca> wrote:
> On Jun 6, 2011, at 10:1...
judofyr (Magnus Holm)
08:52 PM Bug #4843 (Closed): typo in doc/irb/irb.rd* (and doc/ChangeLog-YARV)
This issue was solved with changeset r31953.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/irb/irb.rd: fix typo. patch by Nobuhiro IMAI.
[Bug #4...
kosaki (Motohiro KOSAKI)
01:42 AM Bug #4843 (Closed): typo in doc/irb/irb.rd* (and doc/ChangeLog-YARV)
http://redmine.ruby-lang.org/issues/4837 を処理していて気づいたのですが、
doc/irb/irb.rd* に source を souce としているタイポあります。
ついでに doc/ChangeLog-YARV にも見つけたので、まとめてパッチにしました。
no6v (Nobuhiro IMAI)
08:15 PM Bug #4451 (Rejected): Date#step does not raise ArgumentError for 0 step
tadf (tadayoshi funaba)
08:12 PM Bug #4776 (Rejected): DateTime.new! has been disabled
not a bug.
it's for only internal use.
he must have known it.
i once talked to the authour of tzinfo about Rational.new!.
anyway now DateTime.new! is not reasonable at all.
it does not depend on the current internal structure.
...
tadf (tadayoshi funaba)
02:37 AM Bug #4776: DateTime.new! has been disabled
Hello? :( tenderlovemaking (Aaron Patterson)
07:56 PM Bug #4848 (Rejected): DateTime.jd raises 'invalid fraction' when called with more than one argument
i've never seen such a nonsense patch.
this is not a bug.
you cannot specify both fraction and hour.
DateTime.new(2001,2,28.5,12) should mean 2001-03-31??
we have to be cautious about such a abuse.
tadf (tadayoshi funaba)
06:09 AM Bug #4848: DateTime.jd raises 'invalid fraction' when called with more than one argument
=begin
The second example has gone partially missing above (because RedMine doesn't appear to be escaping the < and >). It should have read:
>> DateTime.jd(Rational(39014323, 16))
#<DateTime: 1963-12-31T04:30:00+00:00 ((2438395j,1...
philr (Phil  )
06:01 AM Bug #4848 (Rejected): DateTime.jd raises 'invalid fraction' when called with more than one argument
Since trunk revision 31862, the DateTime.jd function raises an ArgumentError with message 'invalid fraction' when it is called with more than one argument. For example,
>> DateTime.jd(Rational(39014323, 16), 0)
ArgumentError: invalid...
philr (Phil  )
01:37 PM Bug #4835 (Closed): Compilation failure of ext/tk with recent ActiveTcl
This issue was solved with changeset r31947.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/tk/extconf.rb: use $defs not $CPPFLAGS to get rid of
comm...
nobu (Nobuyoshi Nakada)
06:23 AM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
永井@知能.九工大です.

From: Nobuyoshi Nakada <nobu@ruby-lang.org>
Subject: [ruby-dev:43637] Re: [Ruby 1.9 - Bug #4835] Compilation failure of ext/tk with recent ActiveTcl
Date: Mon, 6 Jun 2011 19:03:09 +0900
Message-ID: <4deca5da.610c...
nagai (Hidetoshi Nagai)
06:23 AM Bug #4835: Compilation failure of ext/tk with recent ActiveTcl
永井@知能.九工大です.

From: Nobuyoshi Nakada <nobu@ruby-lang.org>
Subject: [ruby-dev:43637] Re: [Ruby 1.9 - Bug #4835] Compilation failure of ext/tk with recent ActiveTcl
Date: Mon, 6 Jun 2011 19:03:09 +0900
Message-ID: <4deca5da.610c...
nagai (Hidetoshi Nagai)
12:29 PM Bug #4803: RCLASS_SUPER won't compile for C extensions as of revision 31627
Hi,

At Mon, 6 Jun 2011 23:47:57 +0900,
Roger Pack wrote in [ruby-core:36791]:
> > rb_class_superclass() since 1.4.0.
>
> Appears it has become public with 1.9.3?

Sure, it had been static, sorry.

So you can use it...
nobu (Nobuyoshi Nakada)
11:52 AM Revision 58aa09cb (git): * doc/irb/irb.rd: fix typo. patch by Nobuhiro IMAI.
[Bug #4843] [ruby-dev:43639]
* doc/irb/irb.rd.ja: ditto.
* doc/ChangeLog-YARV: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:56 AM Revision 733be259 (git): * lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of
Windows has been fixed at r29969.
* test/rubygems/test_gem_stream_ui.rb: now can run tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:38 AM Revision 04b81ae7 (git): * test/rubygems/test_gem.rb (TestGem#{test_self_user_home_userprofile,
test_self_user_home_user_drive_and_path}): should simply ignore
meaningless tests instead of skipping them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
09:16 AM Revision 01fd0228 (git): * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
should show some messages when skippning tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:47 AM Feature #4849 (Closed): io/wait should have a way to avoid FIONREAD
I would like an API method for io/wait which bypasses FIONREAD. Some IO
objects I work with (e.g. Linux eventfd[1]) to not support FIONREAD.
I can implement any proposed API for io/wait, but I don't know what it should
be. Perhaps...
normalperson (Eric Wong)
05:00 AM Revision b59179c8 (git): * ext/date/date_core.c (date_s_today, datetime_s_now): check the
result of localtime_r().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:50 AM Revision 8137c555 (git): * time.c (rb_gmtime_r2): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:37 AM Revision 5b3bf854 (git): * ext/tk/extconf.rb: use $defs not $CPPFLAGS to get rid of
command line escape issues on Windows. fixed #4835.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:36 AM Bug #4847 (Closed): Documentation Error for Hash#reject
The documentation for Hash#reject fails to note that, when called without a block, an enumerator is returned.
A small patch correcting this is attached.
adgar (Michael Edgar)
03:35 AM Bug #4846 (Closed): Permission denied - /tmp/nonexisting
This issue was solved with changeset r31945.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/ruby/test_io.rb (TestIO#test_s_{,bin}write): do not cr...
znz (Kazuhiro NISHIYAMA)
03:32 AM Bug #4846 (Closed): Permission denied - /tmp/nonexisting
=begin
なぜか chkbuild が所有者になっている /tmp/nonexisting というファイルが存在していて、
test_s_binwrite(TestIO) と test_s_write(TestIO) が以下の Failure になります。
[Errno::EINVAL] exception expected, not
Class: <Errno::EACCES>
Message: <"Permission denied - /t...
znz (Kazuhiro NISHIYAMA)
02:59 AM Feature #3905: rb_clear_cache_by_class() called often during GC for non-blocking I/O
Akira Tanaka <akr@fsij.org> wrote:
> I don't against for the ephemeral class flag but
> it needs discussion with ko1 and/or matz.

Can either of them comment please? I would really like to see
this performance regression fixe...
normalperson (Eric Wong)
 

Also available in: Atom