Project

General

Profile

Activity

From 03/10/2011 to 03/16/2011

03/16/2011

09:23 PM Revision 05529fa1 (git): * ext/openssl/ossl_x509name.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:37 PM Feature #4464 (Assigned): [PATCH] add Fcntl::Flock object for easier use of POSIX file locks
=begin
I'd like to review this as soon as I get some time. But sorry, now I don't have.
=end
kosaki (Motohiro KOSAKI)
04:22 PM Revision 2d5c2140 (git): * 2011-03-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:22 PM Revision 9f088185 (git): fix typos and add a space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:42 AM Revision bc843e4b (git): * ext/socket/ipsocket.c (init_inetsock_internal): raise an error on
listen(2) failure.
reported by Xavier Shay. [ruby-core:35505]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:57 AM Bug #3150: net/https peer verification doesn't do anything
=begin
Heh. Actually, without the ((|verify_callback|)) I get consistent results.
net/https does a (({post_connection_check})) internally when (({use_ssl=true})).
(({VERIFY_PEER})) is also automatically set when (({use_ssl=true})) usin...
justincase (Justin Case)
07:17 AM Feature #4504: Add rb_funcall_passing_block to public API
=begin
=end
quix (James M. Lawrence)
06:10 AM Revision cc6c3daa (git): Ignore generated files exts.mk, change.log, ext/date/{Makefile,extconf.h,mkmf.log}
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
06:07 AM Revision d6fb3080 (git): * ext/openssl/lib/openssl/buffering.rb (module OpenSSL): #flush should
not change sync mode on exception.
* test/openssl/test_buffering.rb: added
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
04:47 AM Revision 92946d44 (git): de-nest the Buffering module
add RDoc for OpenSSL::Buffering
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:34 AM Feature #4495: PStoreの高速化
=begin
Masaki Matsushita wrote:
> file.rewind
> file.write(data)
> file.truncate(data.size)
bytesize じゃなくても良いのでしょうか?
=end
znz (Kazuhiro NISHIYAMA)

03/15/2011

11:41 PM Revision 0777480a (git): * 2011-03-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:41 PM Revision 9b62c58a (git): * ext/openssl/ossl_x509ext.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:34 AM Revision 3b17a84e (git): * ext/openssl/ossl_x509crl.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:24 AM Feature #4504 (Closed): Add rb_funcall_passing_block to public API
=begin
rb_funcall2 fails to pass a block; rb_funcall_passing_block must be
used instead.
string.c needed it (http://redmine.ruby-lang.org/issues/show/3792),
and I need it as well.
=== test_relay.rb

require './relay'

...
quix (James M. Lawrence)
05:23 AM Bug #4463: [PATCH] release GVL for fcntl() for operations that may block
=begin
Eric Wong <normalperson@yhbt.net> wrote:
> KOSAKI Motohiro <kosaki.motohiro@gmail.com> wrote:
> > Umm..
> > I don't like its interface so much. your flock object don't mange any lock
> > state. it's merely wrapper of argu...
normalperson (Eric Wong)
04:53 AM Feature #4464: [PATCH] add Fcntl::Flock object for easier use of POSIX file locks
=begin
mis-attached patch in previous comment
=end
normalperson (Eric Wong)
04:51 AM Feature #4464: [PATCH] add Fcntl::Flock object for easier use of POSIX file locks
=begin
This revised patch makes the API easier to use with the
following changes:
* renamed Fcntl::Flock -> Fcntl::Lock
* Fcntl::Lock.synchronize {} and Fcntl::Lock.get helpers
* ability to specify constants via :symbol (like 1.9.2...
normalperson (Eric Wong)
03:58 AM Bug #4503 (Closed): ext/win32ole writes into $srcdir during build, breaking read-only source tree builds
=begin
ext/win32ole/extconf.rb writes a .document file into $srcdir, which violates the premise of a read-only source tree.
Possible workarounds:
* check in a static .document file containing win32ole.c, and remove the code in extcon...
josb (Jos Backus)
02:50 AM Bug #4413: Segmentation fault when using deliver for GMAIL SMTP
=begin
This is what I did to get it solved properly. I uninstalled MacPorts completely and all packages that I installed with it. Then I installed homebrew and reinstalled all packages with this. Seems to have done the trick for me.
=end
mhenrixon (Mikael Henriksson)
01:19 AM Bug #4501: 1.9.2-p180 fails to compile on OSX 10.7
=begin
I am unsure if this is related however even on 1.8.7 which "compiled fine" when I try to install a gem from remote it segfaults:
gem install rake
/Users/wayne/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/timeout.rb:60: [B...
wayneeseguin (Wayne E. Seguin)
12:53 AM Revision 627527d7 (git): * 2011-03-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:53 AM Revision fae8bc73 (git): * test/misc/test_ruby_mode.rb(test_singleton_class): Skip for Pending.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sorah (Sorah Fukumori)

03/14/2011

11:35 PM Bug #4502 (Closed): strange Module.new behaviour
=begin
First I create a proc:
p = proc {
self::X = Class.new
def self.X
X.new
end
}
Then I create a module:
A = Module.new(&p)
puts A.X # => #<A::X:0x9c2e774>
Then I create another module:
B = Module.new(&p...
evilbrain (Andy Bogdanov)
11:00 PM Bug #4501 (Closed): 1.9.2-p180 fails to compile on OSX 10.7
=begin
I am receiving more inquiries into running Ruby on OSX 10.7 from developers, 1.8.7-p334 compiled fine however 1.9.2-p180 did not.
The following gist shows configure and make output, https://gist.github.com/869114
At the bot...
wayneeseguin (Wayne E. Seguin)
12:27 PM Revision dc5eb897 (git): * test/ruby/test_require.rb (test_require_too_long_filename):
increase path length, because MAXPATHLEN is defined as 4096 on linux.
* test/ruby/test_require.rb (test_require_path_home_1): ditto.
* test/ruby/test_require.rb (test_require_path_home_2): ditto.
git-svn-id: svn+ssh://ci.rub...
nagachika (Tomoyuki Chikanaga)
10:55 AM Revision f82f5216 (git): * 2011-03-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:55 AM Revision 675b3f33 (git): * ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:21 AM Bug #4500 (Closed): warning: implicit declaration of function 'fdatasync' for OS X
=begin
While compiling ruby, this warning appears on OS X:
compiling io.c
io.c: In function 'rb_io_fdatasync':
io.c:1433: warning: implicit declaration of function 'fdatasync'
This is a regression caused by the revert (r30821) of...
Eregon (Benoit Daloze)
03:02 AM Bug #4498: REXML Pretty formater does use specified 'width' to wrap lines
=begin
Patch attached for 'lib/rexml/formatters/pretty.rb'. @width attribute is used to compute line width when wrapping text output. @level is subtracted from @width to account for indenting of current xml node.
-Michael Frasca
...
mfrasca (Michael Frasca)

03/13/2011

03:43 PM Bug #4418: OpenSSL::PKey::DH#public_key
=begin
Hi, Martin
RSA#public_key returns a RSA object, DSA#public_key returns a
DSA object, but EC#public_key does not return a EC object (it returns a EC::Point object).
I feel this fact is also confusing.
=end
ohai (Ippei Obayashi)
09:11 AM Revision fd641fbf (git): * ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:14 AM Revision fe7425bb (git): * 2011-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:14 AM Revision 6ef956ab (git): * lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe
is true. Patch by Masaki Matsushita (Glass_saga). [ruby-dev:43337]
* test/test_pstore.rb: Test for above.
Patch by Masaki Matsushita (Glass_saga) [ruby-dev:43337]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31101 b2dd03c8-39d4-...
sorah (Sorah Fukumori)
04:58 AM Bug #4498 (Closed): REXML Pretty formater does use specified 'width' to wrap lines
=begin
REXML::Formatters::Pretty has 'width' attribute used to wrap lines. This is not used when the wrap method is invoked
# pretty.rb
def write_text( node, output )
s = node.to_s()
s.gsub!(/\s/,' ')
s.squeeze!(" ")
...
mfrasca (Michael Frasca)

03/12/2011

08:26 PM Bug #4480: Thread-local variables issue: Thread#[] returns nil when called first time
=begin
I also wanted to say this is rdoc's example of Thread#[] the one that tricked me.
Right now this is:
a = Thread.new { Thread.current["name"] = "A"; Thread.stop }
b = Thread.new { Thread.current[:name] = "B"; Thread.sto...
dre3k (Andrei Kulakov)
06:48 PM Bug #4480: Thread-local variables issue: Thread#[] returns nil when called first time
=begin
Hi Robert,
Thanks a lot. You are totally right about Thread#join.
But what the solution in my particular case, how do I get thread-local variable when `Thread.stop` called within a thread.
t = Thread.new do
Threa...
dre3k (Andrei Kulakov)
05:42 PM Bug #4480: Thread-local variables issue: Thread#[] returns nil when called first time
=begin
Hi Andrei,
I don't think this is a bug. You should call Thread#join before you call Kernel.p.
Your thread may or may not not have been run by the time you call Kernel.p, and you may get
inconsistent results such as t[:var] b...
robertgleeson (Robert Gleeson)

03/11/2011

07:13 PM Revision f085a0b0 (git): * ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:28 PM Revision ec40f716 (git): * ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
04:27 PM Revision af7a09a6 (git): * ext/date/date_core.c: changed some directives.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
04:21 PM Revision e26e4b2c (git): * ext/date/date_core.c, ext/date/lib/*: moved rdoc descriptions.
- この行以下は無視されます --
M ChangeLog
M ext/date/date_core.c
M ext/date/lib/date.rb
M ext/date/lib/date/format.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
03:07 PM Revision 2a2c9877 (git): * 2011-03-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:07 PM Revision f8094403 (git): * ext/date/lib: moved from lib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
02:33 PM Revision 725e9ee9 (git): * lib/date/delta*: removed undocumented delta.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
02:23 PM Feature #4495: PStoreの高速化
=begin
sora_hです

2011/3/11 Masaki Matsushita <redmine@ruby-lang.org>:
> * チェックサムをDigest::MD5.digestではなくZlib.crc32で求めるようにした
zlibが無い環境はどうなるのでしょう?

--
Shota Fukumori a.k.a. @sora_h - http://codnote.net/
=end
sorah (Sorah Fukumori)
02:23 PM Feature #4495: PStoreの高速化
=begin
sora_hです

2011/3/11 Masaki Matsushita <redmine@ruby-lang.org>:
> * チェックサムをDigest::MD5.digestではなくZlib.crc32で求めるようにした
zlibが無い環境はどうなるのでしょう?

--
Shota Fukumori a.k.a. @sora_h - http://codnote.net/
=end
sorah (Sorah Fukumori)
01:34 PM Feature #4495 (Closed): PStoreの高速化
=begin
PStoreを少し速くしてみました。
加えた変更は以下の通りです。
* チェックサムをDigest::MD5.digestではなくZlib.crc32で求めるようにした
PStoreは無駄なファイルアクセスを減らす為、外部ファイルのチェックサムと内部のHashをMarshal.dumpしたもののチェックサムを比較して
両者が異なる場合のみ書き込みを行うようになっているのですが、そのチェックサムをDigest::MD5.digestでは...
Glass_saga (Masaki Matsushita)
01:59 PM Revision 906aaa9c (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:59 AM Bug #4482: ext/date/date_core.c has no documentation
=begin
I looked at the code last week, and I'm pretty sure the documentation is in date.rb, and date_core is "invisibly" called from it. So users shouldn't even need to know that date_core ever exists.
=end
meta (mathew murphy)
09:42 AM Revision e77a9ad4 (git): * lib/mkmf.rb (find_executable0): should exclude directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:33 AM Revision 23f2460e (git): * test/misc/test_ruby_mode.rb (TestRubyMode): try to run emacs if
runnable, and get rid of --quick for older versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/10/2011

10:44 PM Bug #4492: Segfault on successive stack overflows
=begin
Oops, apparently Redmine didn't like my markup. Same report with an alternative syntax follows...
On a Mac, this snippet crashes Ruby:
def f(*x); end
begin
f(*(0..120000))
rescue
nil
end
f(*(0..120000))
H...
catwell (Pierre Chapuis)
10:39 PM Bug #4492 (Closed): Segfault on successive stack overflows
On a Mac, this snippet crashes Ruby:
```
def f(*x); end
begin
f(*(0..120000))
rescue
nil
end
f(*(0..120000))
```
Here is the result when run with ruby:
```
segfaulter.rb:7: [BUG] Segmentation fault
ruby 1....
catwell (Pierre Chapuis)
08:25 PM Bug #4474: 複数のスレッドからトランザクションに入ろうとした場合のPStoreの挙動
=begin
r31050にて#4のパッチが取り込まれましたが、
require 'pstore'

p = PStore.new("foo", true)

p.transaction { p.transaction { } }
上記のコードで例外nested transaction (PStore::Error)ではなく例外deadlock; recursive locking (ThreadError)が発生するというバグがありました...
Glass_saga (Masaki Matsushita)
06:05 PM Bug #4474: 複数のスレッドからトランザクションに入ろうとした場合のPStoreの挙動
=begin
私も試してみましたが、確かにMutexはDummyMutexと比べて2倍程度遅いようです。
しかし、次のコード
require 'benchmark'
require 'pstore'

pd = PStore.new("foo") #DummyMutex
pm = PStore.new("bar", true) #Mutex

pd.transaction { pd["hoge"] = 0 }
pm.transa...
Glass_saga (Masaki Matsushita)
08:22 PM Bug #4491 (Closed): Some methods of Dir/File do not encode dirname/filename transparently
=begin
My Ruby version is: ruby 1.9.2p180 (2011-02-18) [i386-mingw32]
My OS is Windows 7 (Simplified Chinese), its cmd.exe has a default codepage of CP936 (aka GBK), but I want my scripts to be written in UTF-8, so I've set the script...
yimutang (Joey Zhou)
04:54 PM Revision bd90dc80 (git): * process.c (proc_getmaxgroups, proc_setmaxgroups): Process#maxgroups
and Process#maxgroups= now raise NotImplementedError if the
platform don't support supplementary groups concept.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
04:26 PM Revision 2ff3ec5d (git): * 2011-03-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:26 PM Revision 4a8cf2d9 (git): * process.c (get_sc_ngroups_max): return -1 if platform don't
support NGROUPS_MAX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:53 PM Bug #4490 (Rejected): struct timespec declared without defining HAVE_STRUCT_TIMESPEC, clashes with pthreads.
pthreads wants to declare struct timespec again since HAVE_STRUCT_TIMESPEC is not defined. After adding the following to ./include/ruby-1.9.1/ruby/missing.h problem is solved.
#if !defined(HAVE_STRUCT_TIMESPEC)
+ #define HAVE_STRUC...
levsa (Levon Saldamli)
01:28 PM Revision d49f0d95 (git): * ext/openssl/ossl_ssl.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:07 PM Revision f1b2fb67 (git): * parse.y (parser_encode_length): add exception as UTF8-MAC for
magic comment's emacs newline specifier
patched by James M. Lawrence [ruby-core:35476] fixes #4489
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:31 AM Bug #4455: rubygem's test fails when source directory and build directory differ
=begin
You can't fix this?
=end
naruse (Yui NARUSE)
08:24 AM Bug #4488 (Third Party's Issue): Segmentation fault when calling new (or in rspec)
=begin
def Session.instance(*args, &block)
@__instance__ ||= new(*args, &block) # this line seems to trigger a segfault
end
when called from:
it "should fail on an invalid application key" do
expect { Hal...
levsa (Levon Saldamli)
08:07 AM Revision eb778a7b (git): * parse.y (parser_encode_length): fix typo: the length of
"-dos" and "-mac" is not 5 but 4.
patched by James M. Lawrence [ruby-core:35476] fixes #4489
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:25 AM Bug #4487 (Closed): require_relative fails in an eval'ed file
=begin
Hello all.

$cat eval_me1.rb
eval(File.read('eval_me2.rb'), binding, File.expand_path('./eval_me2.rb'))
$cat eval_me2.rb
require_relative 'eval_me1.rb'
$ ruby eval_me1.rb
C:/dev/ruby/faster_require/spec/eval_me2.rb:...
rogerdpack (Roger Pack)
02:15 AM Revision 2fc47aa0 (git): Fix wrong (and duplicated) test name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:55 AM Revision a9a0b5df (git): * test/ruby/test_require.rb: setting too long string to ENV causes
Errno::EINVAL on Windows. long path name errors may causes over
about 1024 bytes, then limit it about 4000 bytes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:35 AM Revision 9e53a0b1 (git): * lib/test/unit.rb (Test::Unit::Runner::Worker#read): fix for the case
when IO#read or IO#gets returns nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
 

Also available in: Atom