Project

General

Profile

Activity

From 03/15/2011 to 03/21/2011

03/21/2011

11:13 PM Bug #4251: Segmentation fault when using ruby-prof and Ruby 1.9.2
=begin
gdb backtrace shows this:
...
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
[Switching to process 70350]
exec_event_hooks [inlined] () at /Users/evan/.rvm/src/rub...
rogerdpack (Roger Pack)
10:23 PM Bug #4515: File.each_line read all lines of file as one line
=begin
Hi,

The default line separator is a newline ("\n"), but if you want to
change it, try f.each_line("\r") instead.

matz.

In message "Re: [ruby-core:35534] [Ruby 1.9 - Bug #4515][Open] File.each_line read all...
matz (Yukihiro Matsumoto)
10:05 PM Bug #4515 (Rejected): File.each_line read all lines of file as one line
=begin
I access a tab-delimited text file from Excel, the text file is 5 lines in my editors (TextEdit, TextWrangler).
However, when I use File.each_line to read it, this method only iterate once and combine 5 lines to 1 line.
I ex...
maso (Yen-Nan Lin)
09:49 PM Revision f9819d03 (git): * ext/date/date_strftime.c (date_strftime_wo_timespec):
surpress warning: shorten-64-to-32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:45 PM Revision 40bf1a5d (git): * ext/date/date_core.c: surpress warning: shorten-64-to-32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:42 PM Revision c85be425 (git): * lib/test/unit/parallel.rb: remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:23 PM Revision 78df33a0 (git): * enc/utf_16le.c: surpress warning: shorten-64-to-32.
* ext/dbm/dbm.c: ditto.
* ext/gdbm/gdbm.c: ditto.
* parse.y (Init_ripper): surpress warning: unused value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:06 PM Feature #4288: Allow invoking arbitrary method names with foo."something" syntax
=begin
I agree, you'd want to support double-quotes and string interpolation, otherwise the introduction of the new syntax loses half its benefit. I don't see how interpolation could increase parser complexity, given that you could use t...
wardrop (Tom Wardrop)
07:23 PM Feature #4514 (Assigned): #deep_clone and #deep_dup for Objects
=begin
There's often a need to do a deep clone of an object, especially of Hash/Array trees. The typical work around to the lack of this functionality is to Marshall and then Unmarshall (e.g. Marshal::load(Marshal::dump(self)) ), which ...
wardrop (Tom Wardrop)
06:57 PM Feature #4475: default variable name for parameter
I like the suggestion. The magic variable I'd use for this pattern would be 'this'. For example:
```ruby
posts.each { this.author = 'Santa Clause' }
```
The rule would be: The first argument of any block would be accessible from ...
wardrop (Tom Wardrop)
11:24 AM Bug #4503: ext/win32ole writes into $srcdir during build, breaking read-only source tree builds
=begin
Thanks Benoit, I didn't see that change.
And thanks Nobu, for the fix.
=end
josb (Jos Backus)
11:14 AM Bug #4503: ext/win32ole writes into $srcdir during build, breaking read-only source tree builds
=begin
> Hi Nobu, you closed the bug but I didn't see any actions/resolution associated with it. What gives? Thanks!
Seems a bug in the automatic update from svn.
It was solved with r31121:
* ext/win32ole/extconf.rb (create_docfil...
Eregon (Benoit Daloze)
10:20 AM Bug #4503: ext/win32ole writes into $srcdir during build, breaking read-only source tree builds
=begin
Hi Nobu, you closed the bug but I didn't see any actions/resolution associated with it. What gives? Thanks!
=end
josb (Jos Backus)
09:31 AM Bug #4503 (Closed): ext/win32ole writes into $srcdir during build, breaking read-only source tree builds
=begin
=end
nobu (Nobuyoshi Nakada)
09:14 AM Feature #4513 (Closed): allow whitespace following EOL continuation backslash
In a few programming languages, the displayed or printed program can hide
critical syntactic and/or semantic information. For example, in make(1)
and Python, the difference between initial tabs and spaces can cause bugs
that are not ...
Rich_Morin (Rich Morin)
02:23 AM Revision 80b64d14 (git): * lib/test/unit.rb: Refactoring. Unified if and elsif.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sorah (Sorah Fukumori)

03/20/2011

04:28 PM Revision 580f7c95 (git): * 2011-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:11 PM Revision d9dd52ac (git): * ext/date/date_strftime.c: checks duplicated modifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
01:49 PM Revision 7adef007 (git): * ext/date/date_strftime.c: removed unused code and arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
01:34 PM Revision e48047fe (git): * ext/date/date_strftime.c: removed unused code and arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
01:00 PM Feature #4512 (Closed): [PATCH] ext/fcntl/fcntl.c: add F_DUPFD_CLOEXEC constant
=begin
It's in POSIX.1-2008 and will be useful when Ruby becomes more
multi-threaded.
related: http://redmine.ruby-lang.org/issues/1291
If/when 1291 goes through I'd also like IO#dup to work with the dup3()
system call, but this...
normalperson (Eric Wong)
12:44 PM Revision 43415744 (git): * ext/date/date_core.c: replacement of implementation of
strftime. It has some limitations that is same as Time's
one. [experimental]
* ext/date/date_strftime.c: new.
* ext/date/lib/date/format.c: removed ruby version of strftime.
git-svn-id: svn+ssh://ci.ruby-lang...
Tadayoshi Funaba
03:43 AM Revision 7bc47c02 (git): * ext/openssl/ossl_x509store.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:39 AM Bug #3927: Ruby can't interprete rmagick library
=begin
Found this workaround: http://article.gmane.org/gmane.comp.lib.qt.general/26147
Worked for me. Hope this can help to correct the issue, as it appears to be related to Ruby, not ImageMagick itself.
=end
mfagundes (Mauricio Fagundes)

03/19/2011

04:34 PM Revision 099e7c19 (git): * 2011-03-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:33 PM Revision 11e40522 (git): * hash.c (ruby_setenv): check env process block size with OS ver.
* win32/win32.c: export rb_w32_osver for above patch.
* include/ruby/win32.h: declare rb_w32_osver for Win32 Libs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
arton (Akio Tajima)
02:03 PM Bug #4511 (Closed): Ripper#end_seen? の戻り値に関するコメント
=begin
Ripper#end_seen? は true か false しか返さないと思うので、コメントが間違っている気がします。例えば、以下のような修正になるのではないではないかと思います。
- * Return if parsed source ended by +\_\_END\_\_+.
- * This number starts from 1.
+ * Return true if parsed source ended ...
sho-h (Sho Hashimoto)
10:00 AM Revision bdc8f4fc (git): * hash.c: refactoring prior patch (getenvsize win32 specfic function).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e arton (Akio Tajima)
09:28 AM Revision 5281610f (git): * hash.c (ruby_setenv): calculate total env block size for win32.
* test/ruby/test_env.rb: add test for above patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
arton (Akio Tajima)
08:10 AM Revision 812550b9 (git): * hash.c (ruby_setenv): checking with max process environment block size fow Win32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e arton (Akio Tajima)
04:41 AM Feature #1081: add File::write() convenience method
=begin
Ok here is a new patch (the old one no longer merged cleanly, plus had minor bugs). Feel free to reformat it or convert to C.
The format is:
File::write(path, string, offset, opt={}) or
File::write(path, string, opt={})
...
rogerdpack (Roger Pack)
03:30 AM Revision b86e5f85 (git): * ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:50 AM Bug #4509: Net::IMAP::ResponseParseError: unexpected token CRLF (expected NUMBER)
=begin
[not sure what happened to body of submission - putting in as update]
To reproduce, create a free yahoo mail account. Using those credentials try this ruby code:
require 'net/imap'
Net::IMAP.debug = true
conn =...
digger69 (Mark Nadig)
12:25 AM Revision 61f41131 (git): * 2011-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:25 AM Revision 16493e4e (git): remove duplicated and change comment location
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)

03/18/2011

10:24 PM Bug #4510 (Closed): Float#round(n) is O(n)
=begin
The current implementation of Float#round(n) is O(n). This causes a minor issue with rubyspec, which includes this:
0.8346268.round(-2.0**30).should == 0
which would take about 5 minutes to complete on my machine, during w...
regularfry (Alex Young)
07:41 PM Feature #4504 (Closed): Add rb_funcall_passing_block to public API
=begin
=end
nobu (Nobuyoshi Nakada)
02:00 PM Revision e287d9de (git): * .gitignore: ignore files generated by mkmf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:45 AM Revision 022b3368 (git): * ext/openssl/ossl_x509req.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:42 AM Bug #4418: OpenSSL::PKey::DH#public_key
=begin
Hello Ippei,
I thought this to be confusing, too - that EC#public_key is an EC::Point instead of an instance of EC itself. But when I had a closer look again, I noticed that EC::Point is in fact a subclass of EC, so the analogy...
MartinBosslet (Martin Bosslet)
10:33 AM Bug #4509 (Closed): Net::IMAP::ResponseParseError: unexpected token CRLF (expected NUMBER)
=begin
To reproduce, create a free yahoo mail account. Using those credentials try this ruby code:
require 'net/imap'
Net::IMAP.debug = true
conn = Net::IMAP.new('imap.mail.yahoo.com', 143, false)
conn.instance_eva...
digger69 (Mark Nadig)
08:16 AM Bug #4508 (Rejected): Ability class for CanCan for Rails
=begin
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-linux]
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
When I use the following CanCan::Ability class, Ruby dies.
class Ability
include CanCan::Ability
...
tobiaspreuss (Tobias Preuss)
06:57 AM Bug #4507 (Closed): FileUtils.cp in 1.9 doesn't preserve permissions unless :preserve is set
=begin
By default /bin/cp preserves file permissions when copying a file, -p flag is meant for preserving uid, gid, mtime etc. However with FileUtils.cp in 1.9 permissions are only copied when :preserve => true option is given. I think ...
olegshaldybin (Oleg Shaldybin)

03/17/2011

11:48 PM Revision c7837ed8 (git): * lib/fileutils.rb (FileUtils::Entry_#copy_file): updated FileUtils.cp
to still copy file permissions when :preserve is false (as cp does
this even when -p isn't set).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:07 PM Revision 58e8b41e (git): * .gitignore: reduce duplications.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:59 PM Revision 508d65a5 (git): * ext/win32ole/extconf.rb (create_docfile): removed. should not
modify source directory unnecessarily, platform dependent
documentation should be dealt with by rdoc. [ruby-core:35495]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:54 PM Revision 3ae0dbcc (git): * 2011-03-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:54 PM Revision 247fdeed (git): * include/ruby/ruby.h (rb_funcall_passing_block): add prototype.
a patch by James M. Lawrence at [ruby-core:35501]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:41 AM Feature #4495: PStoreの高速化
=begin
指摘を受けて修正しました。
> zlibが無い環境はどうなるのでしょう?
これは問題ですね。
Zlib.crc32ではなく、String#sumを使うようにしました。
String#sumはZlib.crc32とほぼ同じぐらい速いです。
> ...
bytesizeにするべきですね。修正しました。
修正したパッチを添付します。test-allをpassします。
よろしくお願いします。
=end
Glass_saga (Masaki Matsushita)

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)
 

Also available in: Atom