Project

General

Profile

Activity

From 05/31/2012 to 06/06/2012

06/06/2012

09:38 PM Bug #5780: test/fileutils/test_fileutils.rb:86: [BUG] Segmentation fault
Seems that the #6011 was fixed by recent glibc-2.15-39.fc18 on Fedora Rawhide. Thank you Steve!
http://arm.koji.fedoraproject.org/koji/taskinfo?taskID=886988
vo.x (Vit Ondruch)
02:17 PM Bug #5780: test/fileutils/test_fileutils.rb:86: [BUG] Segmentation fault
We've found the solution to this problem in Debian. See
http://bugs.debian.org/652674
for more details. Basically, the fallback code for platforms without working getcontext/setcontext appears to be buggy. We've just added implemen...
Sledge (Steve McIntyre)
09:18 PM Feature #5617: Allow install RubyGems into dediceted directory
I am attaching updated patch with added !<verconf>! vo.x (Vit Ondruch)
03:11 PM Bug #6550 (Closed): crash 1.9.3
I was playing around and I got the 1.9.3 interpreter to crash.
Code: https://gist.github.com/2880210
Don't bother too much with the code I was just playing around. What I am doing there shouldn't work anyway, but it shouldn't crash the...
mrbrdo (Jan Berdajs)
02:06 PM Bug #4960 (Feedback): Crash on start up using rubymine 107.315 build
Sorry for accidentally closing. this is only a mistake. usa (Usaku NAKAMURA)
01:29 PM Bug #4960 (Closed): Crash on start up using rubymine 107.315 build
This issue was solved with changeset r35937.
Pat, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/win32.c, include/ruby/win32.h (rb_w32_wrap_io_handle): new...
usa (Usaku NAKAMURA)
02:04 PM Feature #4906 (Closed): rb_w32_add_socket / rb_w32_remove_socket
This issue was solved with changeset r35938.
Greg, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ChangeLog: typo. [Feature #4906]
usa (Usaku NAKAMURA)
01:35 PM Feature #4906: rb_w32_add_socket / rb_w32_remove_socket
Sorry to keep you waiting for a long time.
I've added rb_w32_wrap_io_handle() and rb_w32_unwrap_io_handle().
Although these APIs just like which you proposed, they support not only
sockets but also other I/O handles.
int fd = l...
usa (Usaku NAKAMURA)
01:10 PM Revision 7e0c93b0 (git): fix a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:34 PM Revision 7f83b7e1 (git): remove wrong comments.
earg is processed by surrounding rb_run_exec_options_err call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:33 PM Revision 3c3b5632 (git): * process.c (proc_exec_cmd) renamed from proc_exec_v.
(proc_exec_sh): renamed from rb_proc_exec_e.
(proc_spawn_cmd_internal): renamed from proc_spawn_v.
(proc_spawn_cmd): renamed from proc_spawn_n.
(proc_spawn_sh): renamed from proc_spawn.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
akr (Akira Tanaka)
12:20 PM Revision ee011f7b (git): * process.c (try_with_sh): please take care of the macro defined by
you.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:11 PM Revision 78d7def6 (git): add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:58 AM Revision aaf6bde9 (git): update async-signal-safe comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:49 AM Revision 70232e40 (git): * process.c (proc_exec_v): don't call dln_find_exe_r here because it
is not async-signal-safe and proc_exec_v is called in a child
process.
command_abspath field of rb_exec_arg.
(rb_exec_fillarg): call dln_find_exe_r and set command_abspath.
(rb_exec_err): Give the absolute path of the invoking co...
akr (Akira Tanaka)
11:09 AM Revision 76858374 (git): * process.c (try_with_sh): take envp argument.
(exec_with_sh): ditto. use it for execve.
(proc_exec_v): provide envp for try_with_sh.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:13 AM Feature #6539: public and private for core methods
No comments, so I'm assigning to Matz.
There are more than 150 older issues assigned to Matz already.
marcandre (Marc-Andre Lafortune)
08:31 AM Feature #6503: Support for the NPN extension to TLS/SSL
Thanks, Ilya, for the links!
@mame: I just checked the Python patch and what OpenSSL already provides and what would be needed on our side. It's really not too much, basically feeding OpenSSL API with parameters that we could make a pa...
MartinBosslet (Martin Bosslet)
07:32 AM Feature #6503: Support for the NPN extension to TLS/SSL
If nobody has claimed this yet, I'm happy to take a crack at it over the next couple of days. I know the guy who wrote the Python patch and have a decent understanding of what went into it. It should not be a tremendous amount of work (f... davidbalbert (David Albert)
06:16 AM Revision d18b6537 (git): merge revision(s) 23432:
* eval.c (rb_thread_join), ext/thread/thread.c (wake_one): adjusts
targets of rest waiting threads to join. [ruby-core:23457]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@35942 b2dd03c8-39d4-4d8f-98ff-823f...
shyouhei (Shyouhei Urabe)
05:47 AM Revision 1acfb033 (git): merge revision(s) 28324:
* bignum.c (rb_big2dbl), test/ruby/test_bignum.rb (test_to_f):
A negative Bignum out of Float range should be converted to -Infinity.
[ruby-core:30492] [Bug #3362]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branche...
shyouhei (Shyouhei Urabe)
05:34 AM Revision 996e9cf4 (git): @nobu you must run make test-all _before_ you check in.
reverting revision r34920 because it fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@35940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
05:20 AM Revision 69883b3e (git): merge revision(s) 33611:
* lib/webrick/utils.rb: fix fcntl call.
* lib/drb/unix.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@35939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
05:04 AM Revision 96b96832 (git): * ChangeLog: typo. [Feature #4906]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:55 AM Feature #2715: Optimization to avoid spawning shell in Kernel#system call should check for failure conditions
> As akr-san described, some shells have tail invocation optimization. Thus, even if ruby doesn't have shell invocation optimization, caller can't assume that spawned process is neither child nor grand child.
If we have shell invocati...
akr (Akira Tanaka)
01:40 AM Feature #2715: Optimization to avoid spawning shell in Kernel#system call should check for failure conditions
Hmm...
As akr-san described, some shells have tail invocation optimization. Thus, even if ruby doesn't have shell invocation optimization, caller can't assume that spawned process is neither child nor grand child.
Therefore, if som...
kosaki (Motohiro KOSAKI)
04:29 AM Revision f047b1f0 (git): * win32/win32.c, include/ruby/win32.h (rb_w32_wrap_io_handle): new API.
this API wraps an I/O handle (HANDLE or SOCKET) and returns fd.
the second parameter should be combination of O_*, for example,
O_RDWR | O_BINARY | O_NOINHERT.
* win32/win32.c, include/ruby/win32.h (rb_w32_unwrap_io_handle): new
A...
U.Nakamura
04:18 AM Revision 4c3e402c (git): * win32/win32.c (rb_w32_close): of course, console handle is not socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:39 AM Revision 494d0141 (git): * process.c (rb_run_exec_options_err): allocate a temporary buffer for
run_exec_dup2() for restoring fds on non-fork environments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:46 AM Bug #6548 (Closed): Rake doesn't ignore arguments after --
I've created this issue first in GitHub before I realized that Rake is now part of stdlib:
https://github.com/jimweirich/rake/issues/115
I'll copy it here:
rake some_task -- some_arg
Raises an error after running some_task:
...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:46 AM Revision 5e1e5d04 (git): * test/dl/test_c_{struct_entry,union_entity}.rb: sorry, typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura

06/05/2012

11:43 PM Bug #6475: Fix decryption example in OpenSSL docs
davidbalbert (David Albert) wrote:
> Is there anything I can do to speed up this process a little bit? I'm trying to learn how to contribute to Ruby, and I'd like to know if there's something I should be doing to make it easier for this...
MartinBosslet (Martin Bosslet)
07:16 AM Bug #6475: Fix decryption example in OpenSSL docs
Is there anything I can do to speed up this process a little bit? I'm trying to learn how to contribute to Ruby, and I'd like to know if there's something I should be doing to make it easier for this patch to get accepted. davidbalbert (David Albert)
08:29 PM Revision a4ef2bbd (git): * process.c (rb_exec_fillarg): check use_shell field before accessing
a union field.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
08:10 PM Revision 1c4e6066 (git): Split one big test to seven tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:59 PM Revision c8d6b6e8 (git): * process.c (rb_spawn_process): prog variable is not used for Unix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:31 PM Revision 0acd09c9 (git): update async-signal-safe comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:24 PM Revision baf500dc (git): * 2012-06-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:24 PM Revision 3162e673 (git): * internal.h (rb_exec_arg_init): change return type to void.
* process.c (rb_exec_arg_init): don't return a value.
(rb_exec_arg_prepare): ditto.
(rb_spawn_process): don't take the prog argument. extract the
information from earg.
(rb_spawn_internal): follow rb_spawn_process change.
(rb_...
akr (Akira Tanaka)
02:53 PM Revision 53b17a76 (git): * internal.h (rb_exec_arg): use union to represent command invocation
with/without shell.
* process.c: follow the rb_exec_arg change.
* io.c (pipe_open): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:33 PM Revision 71e79353 (git): update async-signal-safe comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:36 PM Bug #6547 (Assigned): DateTime.new does not call #initialize
=begin
It's a standard behavior of (({Class.new})) to allocate an instance and call
initialize method on it, but (({DateTime.new})) overrides it. This is the
old habit before ruby 1.8.
Although I'm uncertain why you need it, if you rea...
nobu (Nobuyoshi Nakada)
11:46 AM Bug #6547 (Rejected): DateTime.new does not call #initialize
Classes that extend DateTime don't appear to have their "initialize" instance method called from "new".
To reproduce:
irb(main):001:0> [RUBY_VERSION,RUBY_PLATFORM]
=> ["1.9.3", "i686-linux"]
irb(main):002:0> require "date"
=> true...
lmc (Luke Mcildoon)
01:29 PM Revision a79bbdf6 (git): * internal.h: rb_exec_arg and related stuff moved from intern.h
* include/ruby/intern.h (rb_proc_exec_n): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:08 PM Revision 60d5e14b (git): installation dependencies
* common.mk (do-install-{all,nodoc,arch}): fix installation
dependencies so build exts also.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:59 PM Revision ad5bfed1 (git): * process.c (rb_exec_arg_fixup): allocate a temporary buffer for
run_exec_dup2 here because it should be async-signal-safe.
(run_exec_dup2): use the temporary buffer.
(run_exec_dup2_tmpbuf_size): new function.
* include/ruby/intern.h (rb_exec_arg): add dup2_tmpbuf field.
git-svn-id: svn+ssh://...
akr (Akira Tanaka)
11:13 AM Revision 2073258a (git): obj_init_copy
* object.c (rb_obj_init_copy): should check if trusted too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:59 AM Revision b1ae6e47 (git): * process.c (strtok): declaration removed because it is not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:35 AM Revision e3d68590 (git): * process.c (proc_spawn): don't detect simple command line here
because rb_exec_fillarg already did.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:21 AM Revision e58ec337 (git): * process.c (rb_exec_fillarg): bail out a loop eagerly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:16 AM Revision 5b13036f (git): * process.c: add comments about async-signal-safe.
* io.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
08:06 AM Feature #6546 (Closed): Net::HTTP to check for HTTP_PROXY environment setting.
@nahi suggested I request the OS environment HTTP_PROXY be honoured.
Open-uri checks for this environment setting and acts according whereas Net::HTTP does not. Not having Net::HTTP check for this condition sets precedence and stops t...
dekz (Jacob Evans)
07:14 AM Feature #6530: Improve Racc documentation coverage
Since this documentation was sourced from https://github.com/tenderlove/racc/tree/master/doc/en I think it's best to import the tenderlove/racc doc/ directory into ruby as doc/racc, then we can use :include: to pull the grammar reference... drbrain (Eric Hodel)
06:52 AM Bug #6533: Benchmark documenation formatting bug and consistency
Can you drop the drbrain (Eric Hodel)
05:04 AM Revision 93b187ff (git): merge revision(s) 35865:
* lib/ipaddr.rb: Inhibit zero-filled octets in an IPv4 address in
all platforms. [ruby-dev:45671]
* lib/ipaddr.rb: Allow the x:x:x:x:x:x:d.d.d.d form not limited to
IPv4 mapped/compatible addresses. This cha...
Akinori MUSHA
01:29 AM Revision ff3b2cb1 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:37 AM Revision 5da6f554 (git): * 2012-06-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:37 AM Revision e1b230d5 (git): * io.c: Edited documentation for IO and File open and new and
Kernel#open for consistency and clarity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)

06/04/2012

10:34 PM Feature #2715: Optimization to avoid spawning shell in Kernel#system call should check for failure conditions
I wrote a patch to remove the optimization:
remove-shell-invocation-optimization.patch
However it was not good enough because it causes several test failures.
Several failures are caused by pid change which the invoked command is ...
akr (Akira Tanaka)
10:24 PM Bug #6538: Mutability of Rational and Complex
An alternative way is "marshal format compatibility layer". nobu (Nobuyoshi Nakada)
04:22 AM Bug #6538 (Rejected): Mutability of Rational and Complex
ok, it's unnecessary. tadf (tadayoshi funaba)
01:12 AM Bug #6538: Mutability of Rational and Complex
Hi,
nobu (Nobuyoshi Nakada) wrote:
> Marshal compatibilities for (({Complex})) and (({Rational})) are already broken,
> ...
I didn't know. Changing from `#marshal_load` to `.load` would break marshalling between 1.9 and 2.0 though. ...
marcandre (Marc-Andre Lafortune)
09:54 PM Bug #6535 (Closed): [MinGW] Unexpected close program dialog for TestRubyOptions#test_segv_test
This issue was solved with changeset r35913.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
no windows dialog
* win32/win32.c (rb_w32_sysinit): let the syst...
nobu (Nobuyoshi Nakada)
01:14 PM Bug #6535: [MinGW] Unexpected close program dialog for TestRubyOptions#test_segv_test
So, this is mingw issue, I guess. usa (Usaku NAKAMURA)
09:41 AM Bug #6535: [MinGW] Unexpected close program dialog for TestRubyOptions#test_segv_test
I saw similar blocking issues with the following tests while MinGW test-all, but mswin build doesn't have.
test_segv_test in ruby/test_rubyoptions.rb
test_require_invalid_shared_object in ruby/test_require.rb.
test_separate in test/...
h.shirosaki (Hiroshi Shirosaki)
08:57 PM Feature #4477 (Closed): Kernel:exec and backtick (`) don't work for certain system commands
The feature of shell, invoke /bin/sh after ENOEXEC, is implemented
at r33009 of Ruby.
So this example works now as follows.
% cat test1
echo success
% chmod a+x test1
% ./ruby -ve 'p `./test1`'
ruby 2.0.0dev (2012-06...
akr (Akira Tanaka)
08:53 PM Feature #4477: Kernel:exec and backtick (`) don't work for certain system commands
#3856 is at RubyForge tracker:
http://rubyforge.org/tracker/?func=detail&atid=1698&aid=3856&group_id=426
akr (Akira Tanaka)
05:37 PM Feature #6515: array.c: added method that verifies if an Array is part of another
Eregon (Benoit Daloze) wrote:
> as = a.to_set
> ...
But does allocate the Set for it of course (so likely not better).
Eregon (Benoit Daloze)
05:35 PM Feature #6515: array.c: added method that verifies if an Array is part of another
lellisga (Li Ellis Galardo) wrote:
> a = [1,2,3,4,5,6,7].to_set
> ...
Taking you example of a the first set and b the maybe-subset:
Well, probably because #subset? is O(m) (m is the size of b), and doing it naively on Array/Enumerable...
Eregon (Benoit Daloze)
02:36 PM Feature #6515: array.c: added method that verifies if an Array is part of another
Sorry but i'm not sure what you are asking. In other words you really think it's easier to do this:
a = [1,2,3,4,5,6,7].to_set
=> #<Set: {1, 2, 3, 4, 5, 6, 7}>
b = [1,2,3].to_set
=> #<Set: {1, 2, 3}>
b.subset? a
=> true
...
lellisga (Li Ellis Galardo)
03:39 PM Feature #6418 (Closed): Supporing a subset of ANSI escape code on Windows
This issue was solved with changeset r35907.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
win32: VT100 escape
* win32/win32.c (constat_apply): apply VT10...
nobu (Nobuyoshi Nakada)
02:32 PM Bug #6124: remove the "spec-only gems" in Ruby 1.9.3 (was What is the purpose of "fake" gems in Ruby)
Activesupport gem seems to have a problem with this, too: https://github.com/rails/rails/issues/5355.
In short, if new version of bigdecimal is released, activesupport won't pick it up, as it is not in the gemspec and therefore the "fak...
Anonymous
01:29 PM Feature #6545 (Closed): inconvinient require order of DL
I found that test/dl/test_c_{struct,union}_entity.rb was broken when running
test-all with -j option.
The problem was wrong require, so I resolved them in r35901.
In the middle of this work, I noticed that dl/struct.rb didn't requir...
usa (Usaku NAKAMURA)
12:54 PM Revision 07e222d7 (git): no windows dialog
* win32/win32.c (rb_w32_sysinit): let the system not display the
critical-error-handler message box and the Windows Error Reporting
dialog. [ruby-core:45389] [Bug #6535]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35913 b2dd0...
nobu (Nobuyoshi Nakada)
12:52 PM Revision 9ab2ce20 (git): don't exec in the test process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:13 AM Revision 993b4f39 (git): add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:01 AM Revision 71fd73df (git): * process.c (rb_exec_fillarg): allocate one more element before
beginning in argv_str for try_with_sh.
* internal.h (ARGVSTR2ARGC): adjust for the above change.
(ARGVSTR2ARGV): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:19 AM Revision 41819dc4 (git): * internal.h (ARGVSTR2ARGC): defined.
(ARGVSTR2ARGV): defined.
* process.c (proc_exec_v): use ARGVSTR2ARGV.
(rb_spawn_process): use ARGVSTR2ARGC and ARGVSTR2ARGV.
* io.c (pipe_open): use ARGVSTR2ARGV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35909 b2dd03c8-39d...
akr (Akira Tanaka)
08:14 AM Bug #6544 (Closed): Broken links on lib/drb references documentation
Hi seki, I've added a patch to remove the broken links in drb documentation. zzak (zzak _)
07:24 AM Revision 06513cc1 (git): * vm_insnhelper.h: remove magical code "lfp[0] & 0x02".
Current VM doesn't use this bit.
* vm_core.h (RUBY_VM_GET_BLOCK_PTR): added.
* eval.c (rb_block_given_p): use RUBY_VM_GET_BLOCK_PTR().
* vm_eval.c (rb_f_block_given_p): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35908 b2...
ko1 (Koichi Sasada)
06:39 AM Revision 82aa4340 (git): win32: VT100 escape
* win32/win32.c (constat_apply): apply VT100 functions.
[ruby-core:44958] [Feature #6418]
* win32/win32.c (constat_parse): parse some VT100 escape sequence.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35907 b2dd03c8-39d4-4d8f-98...
nobu (Nobuyoshi Nakada)
05:46 AM Revision de8eb56e (git): merge definitions
* process.c (proc_exec_v, rb_proc_exec_e): merge definitions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:46 AM Revision b89e9bf5 (git): unused parameter
* process.c (proc_spawn_n): remove unused parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:33 AM Revision a99d3a62 (git): unused variables
* io.c (pipe_open): argc and argv are not used on win32.
* process.c (rb_spawn_process): remove already useless variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:06 AM Revision 9bb642d6 (git): * process.c (rb_exec_err): should preserve errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:02 AM Revision efebb5b1 (git): Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:10 AM Revision 00e4c2e3 (git): * test/dl/test_c_{struct,union}_entity.rb: broken require.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:04 AM Revision 2e7c7696 (git): * test/ruby/test_backtrace.rb: fix test.
Windows path includes `:' character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:49 AM Revision bac9f65f (git): * vm_core.h (rb_location_t): fix type and field name.
(1) rename rb_location_t to rb_iseq_location_t.
(2) rename field names of rb_iseq_location_t to adjust
RubyVM::Backtrace::Location methods.
(2-1) filename -> path
(2-2) filepath -> absolute_path
(2-3) basename -> base_label
(...
ko1 (Koichi Sasada)
02:40 AM Revision 81a0c608 (git): compatible loader
* marshal.c (r_object0): also load TYPE_USRMARSHAL, TYPE_DATA using
compatible loader.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:36 AM Revision 2493e48d (git): * process.c (rb_run_exec_options_err): restore save_env() call for
non-fork environments.
* process.c (rb_exec_err): restore environments after the failure of
exec to fix [ruby-core:44093] [Bug #6249] on non-fork environments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35897 b2dd03c8-39d4-4d8...
U.Nakamura
01:44 AM Revision 859869e5 (git): * io.c (pipe_open): follow up changes in r35889.
* process.c (proc_spawn_n): now uses char ** instead of VALUE *.
* process.c (rb_spawn_process): prog is now VALUE of String, not char *.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:49 AM Feature #6483: parametric map
I've made a simple extension that allows one to use nested symbolic-procs like this:
```ruby
[[1,2,3],[4,5,6]].map(&:map.(&:to_s.(2))) # => [['1','10','11'],['100','101','110']]
```
Not to duplicate code - look at http://bugs.rub...
prijutme4ty (Ilya Vorontsov)

06/03/2012

11:55 PM Bug #6538: Mutability of Rational and Complex
i thought it first.
but it is cheap trick too (or nils filled instead).
i doubt about this issue.
really need?
tadf (tadayoshi funaba)
11:27 PM Bug #6538 (Assigned): Mutability of Rational and Complex
=begin
What about adding "uninitialized (just allocated) flag" and checking
if it is set in (({marshal_load})) method?
=end
nobu (Nobuyoshi Nakada)
11:19 PM Bug #6538: Mutability of Rational and Complex
=begin
Marshal compatibilities for (({Complex})) and (({Rational})) are already broken,
since the time they were built in.
=end
nobu (Nobuyoshi Nakada)
07:29 PM Bug #6538: Mutability of Rational and Complex
class IM
def initialize(s) @s = s end
attr :s
end
i = IM.new(1)
i.s #=> 1
i.instance_eval{@s = 100}
i.s #=> 100
is this a mutable?
tadf (tadayoshi funaba)
12:41 PM Bug #6538 (Open): Mutability of Rational and Complex
I see that this trick won't work if it's frozen after your commit, but the the freeze part was just more fun, sorry. It's the immutability of Rational and Complex that is at stake here.
r = Rational(0)
magic_trick(r)
r ...
marcandre (Marc-Andre Lafortune)
10:32 AM Bug #6538 (Closed): Mutability of Rational and Complex
anyway forbade it.
this is not a magic.
but this trick seems also effective to others.
> r = Random.new
#=> #<Random:0xb87a6d50>
> ...
#=> [...]
> r.freeze
#=> #<Random:0xb87a6d50>
> ...
#=> true
> (0..10).map{r.rand}.to_a...
tadf (tadayoshi funaba)
09:35 AM Bug #6538 (Assigned): Mutability of Rational and Complex
nobu (Nobuyoshi Nakada)
07:20 AM Bug #6538 (Rejected): Mutability of Rational and Complex
I hesitated to report this, but there is a "hole" in the immutability of Rational & Complex:
r = Rational(0) # Rationals are immutable
r.freeze # but let's be certain and freeze it!
magic_trick(r) # r is now chan...
marcandre (Marc-Andre Lafortune)
10:08 PM Bug #6328 (Closed): Incorrect FSF addres in GPL license file
This issue was solved with changeset r35888.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* GPL: update text of GPLv2. [ruby-core:44488] [Bug #6328]
http:...
naruse (Yui NARUSE)
09:43 PM Feature #4146: Improvement of Symbol and Proc
I also propose to consider recursive application for a method in a style I've written in http://bugs.ruby-lang.org/issues/6483#note-3:
Usual application:
~~~ruby
(1..5).map(&:to_s.(2)) # => ['1', '10', '11', '100', '101']
Recursi...
prijutme4ty (Ilya Vorontsov)
09:13 PM Revision 436d819b (git): adjust indent
* marshal.c (r_object0): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:12 PM Revision f392a8aa (git): remove old warning
* marshal.c (r_object0): remove old warning for _alloc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:26 PM Revision eb6579e6 (git): * marshal.c: experimental test aborted.
* complex.c: ditto.
* rational.c: ditto.
* include/ruby/intern.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
05:29 PM Bug #6249 (Closed): Process.exec doesn't restore the environment if it fails
This issue was solved with changeset r35882.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* use execve() to preserve environment variables when exec method...
akr (Akira Tanaka)
03:45 PM Revision 6b348951 (git): * process.c (rb_spawn_process): fix for Windows. not tested.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:13 PM Revision 78713916 (git): * 2012-06-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:13 PM Revision 93e005d1 (git): * process.c (rb_proc_exec_e): don't use ISSPACE(). \f, \r and \v
are not word separator in Bourne shell.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:53 PM Revision 9ee4575e (git): * include/ruby/intern.h (rb_exec_arg): remove argc and argv fields.
add use_shell, argv_str and argv_buf fields.
* process.c (rb_proc_exec_e): don't split shell command line arguments
here to avoid memory allocation in a child process.
(rb_exec_fillarg): split shell command line arguments here.
(p...
akr (Akira Tanaka)
01:07 PM Revision d70af743 (git): * GPL: update text of GPLv2. [ruby-core:44488] [Bug #6328]
http://www.gnu.org/licenses/gpl-2.0.txt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:25 PM Revision cb44ffc4 (git): * process.c (rb_exec_getargs): remove rb_exec_arg argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:21 PM Revision f5b06413 (git): * marshal.c: calls directly rb_{Complex,Rational}_marshal_load().
But now disabled. [experimental]
* complex.c: followed the above.
* rational.c: ditto.
* include/rub/intern.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
12:18 PM Revision 9977e1cb (git): * process.c (rb_check_argv): use rb_str_new_frozen instead of
rb_str_new4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:25 AM Feature #6481 (Rejected): Add exists? to Pathname GH #126
Ruby has a rule that method names should use a bare verb.
For example, matz described it in [ruby-dev:20735].
I'm not sure that matz described it in English.
Although File#exists? is not removed for compatibility,
it doesn't mean...
akr (Akira Tanaka)
11:16 AM Bug #6541 (Closed): marshal_load discards frozen objects
https://bugs.ruby-lang.org/issues/6538#change-26982 nobu (Nobuyoshi Nakada)
11:15 AM Bug #6540 (Closed): marshal_load discards frozen objects
https://bugs.ruby-lang.org/issues/6538#change-26982 nobu (Nobuyoshi Nakada)
11:12 AM Revision 033e2187 (git): * process.c (rb_proc_exec_e): extended version of rb_proc_exec() to
call execle().
(rb_proc_exec): use rb_proc_exec_e().
(rb_exec_err): use rb_proc_exec_e().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:47 AM Revision 190d319d (git): * thread.c (vm_living_thread_num): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:29 AM Revision f4f28bf7 (git): * use execve() to preserve environment variables when exec method is
failed. [ruby-core:44093] [ruby-trunk - Bug #6249]
* include/ruby/intern.h (rb_exec_arg): add envp_str and envp_buf field
to store envp of execve().
* process.c (proc_exec_v): takes envp_str as an argument and use it
for execve()....
akr (Akira Tanaka)
07:55 AM Feature #6539 (Closed): public and private for core methods
I feel there are inconsistencies in which methods are public and which are private.
For example:
```
obj = []
prev = obj.instance_variable_get(:@foo) # allowed
obj.instance_variable_set(:@foo, nil) # allowed
# But th...
marcandre (Marc-Andre Lafortune)
07:34 AM Revision 694035eb (git): use rb_marshal_{dump,load}
* marshal.c: revert r35879 "now marshal_{load|dump} are external."
* complex.c (nucomp_marshal__{dump,load}): should use rb_marshal_{dump,load}.
* rational.c (nurat_marshal__{dump,load}): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
nobu (Nobuyoshi Nakada)
05:17 AM Revision 5dc5a526 (git): modified tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
05:15 AM Revision d9dd6f5d (git): now marshal_{load|dump} are external.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
05:14 AM Revision 1ddb6f70 (git): * ext/date/date_core.c: checks whether the object is frozen or not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
05:05 AM Revision bdc55aa0 (git): * complex.c: wrote Complex#_dump and Complex::load. But now
disabled (due to compatibility) [experimental].
* rational.c: wrote Rational#_dump and Rational::load. ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
04:49 AM Feature #6532 (Rejected): More methods for Hash and Array: Hash#has_all_keys? and family, Array#delete_at for multiple arguments
I've written a short wiki on making feature requests: http://bugs.ruby-lang.org/projects/ruby/wiki/HowToRequestFeatures
I'm inviting others to review and edit it...
I'm rejecting this feature request as it contains many different req...
marcandre (Marc-Andre Lafortune)
03:04 AM Feature #6532: More methods for Hash and Array: Hash#has_all_keys? and family, Array#delete_at for multiple arguments
You should have a look at #values_at about #selection.
I'm against has_*_keys?, because I think using any?,all?,... is clearer and not too verbose. (If it did look like C with an explicit loop, then I would consider it verbose).
Ab...
Eregon (Benoit Daloze)
01:43 AM Bug #6536 (Closed): Fix broken links for Programming Ruby book
I've added a patch to update the links in lib/drb and lib/observer to the Programming Ruby book. zzak (zzak _)
01:28 AM Bug #6535 (Closed): [MinGW] Unexpected close program dialog for TestRubyOptions#test_segv_test
=begin
Hello,
While running tests for MinGW-based build of trunk, I've found the mentioned test (test_segv_test) always blocks test execution.
The command issue to trigger this was:
make test-all TESTS="-q -v ruby/test_rubyopt...
luislavena (Luis Lavena)
01:26 AM Revision 89ae71d7 (git): * complex.c (nucomp_marshal_load): [ruby-core:45394]
* rational.c (nurat_marshal_load): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
12:22 AM Feature #6418: Supporing a subset of ANSI escape code on Windows
Nobu, Usa,
Apply plans to apply this?
I've been using it locally with good results. Tools like Spinach, MiniTest and even Bundler worked as expected (with colors)
Here I did a naive attempt to benchmark the impact of this change...
luislavena (Luis Lavena)
12:02 AM Feature #6534 (Closed): Delegator documentation for the bang operator
I've added a patch to cover Delegator#!(), and fix a nodoc bug.
The nodoc bug may be a separate issue for rdoc, please check it. Using rdoc 3.9.4
Open to feedback on the bang description.
zzak (zzak _)

06/02/2012

11:36 PM Feature #6532: More methods for Hash and Array: Hash#has_all_keys? and family, Array#delete_at for multiple arguments
And of course I forgot the most useful method (more suggestions about names highly appreciate) Array#selection and Hash#selection
alphabet = %w{a b c d e f g h i j}
alphabet.selection(0,1,5,7) # ==> ['a','b','f','h']
{A: 1, T: 4, G:...
prijutme4ty (Ilya Vorontsov)
11:15 PM Feature #6532 (Rejected): More methods for Hash and Array: Hash#has_all_keys? and family, Array#delete_at for multiple arguments
I suggest introducing Hash methods: has_all_keys?, has_any_key?, has_none_key?, has_one_key?
to write: input.has_all_keys? %w{A C G T}
instead of: %w{A C G T}.all?{|letter| input.has_key? letter}
and to write args.has_one_key?(:inp...
prijutme4ty (Ilya Vorontsov)
11:17 PM Bug #6533 (Closed): Benchmark documenation formatting bug and consistency
=begin
I've added a patch to fix a formatting bug with lib/benchmark.
(({BENCHMARK_VERSION = "2002-04-25" #:nodoc"})) should be (({BENCHMARK_VERSION = "2002-04-25" # :nodoc:}))
Also, went through and fixed up formatting for consis...
zzak (zzak _)
10:42 PM Bug #6531 (Closed): Increase Racc runtime versions
I've added a patch to update the versions in Racc to be consistent.
This is related to https://github.com/tenderlove/racc/issues/8
Should patches for Racc goto GH/tenderlove/racc, or here?
zzak (zzak _)
10:38 PM Feature #6530 (Closed): Improve Racc documentation coverage
I've added a patch to improve documentation for Racc module.
Not sure what to do with debug functions racc_*()
Or what to do with ext/racc?
Feedback welcome
zzak (zzak _)
09:34 PM Revision 82cd48d7 (git): gc.c: simplified
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:24 PM Revision b4be4c7b (git): * regparse.c (onig_number_of_names): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:16 PM Feature #5617: Allow install RubyGems into dediceted directory
=begin
Add !<verconf>! mark
+ AC_DEFINE_UNQUOTED(RUBYGEMS_DIR,"$rubygemsdir")
=end
nobu (Nobuyoshi Nakada)
06:14 PM Feature #5617: Allow install RubyGems into dediceted directory
+ AC_DEFINE_UNQUOTED(RUBYGEMS_DIR,"$rubygemsdir")
nobu (Nobuyoshi Nakada)
08:38 AM Feature #5617: Allow install RubyGems into dediceted directory
This functionality is fine with me, but since it applies to the build system and not RubyGems I think matz or someone else should decide if it should be applied.
I had to manually apply one chunk of this patch, so I attached an update...
drbrain (Eric Hodel)
05:02 PM Bug #6509 (Closed): String#gsub is too slow if receiver includes a binary
This issue was solved with changeset r35863.
okkez, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_enc_cr_str_buf_cat): don't reset coderange as unk...
naruse (Yui NARUSE)
04:46 PM Revision f6f769d2 (git): * vm_backtrace.c: change names.
(1) Class name: RubyVM::FrameInfo -> RubyVM::Backtrace::Location.
(2) Method name: RubyVM::FrameInfo.caller ->
Kernel.caller_locations.
(3) Instance methods of
RubyVM::FrameInfo (RubyVM::Backtrace::Location)
(3-1) name -> label...
ko1 (Koichi Sasada)
04:02 PM Revision 0d1b2164 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:59 PM Revision b57c81ae (git): * common.mk: fix to build vm_backtrace.c only itself (vm_backtrace.c
is no longer included from vm.c). I hope this separation reduce
compile time of vm.c.
* internal.h: ditto.
* vm.c, vm_core.h, vm_dump.c, vm_eval.c: ditto.
* vm_eval.c: some functions (callee, etc) moved to vm_backtrace.c.
git-svn-i...
ko1 (Koichi Sasada)
03:55 PM Bug #6529 (Closed): missing words in description of =~ operator for Regexp
Currently the Regexp class documentation contains the following: "<tt>=~</tt> is Ruby's basic pattern-matching operator. When one operand is a regular expression and is a string (this operator is equivalently defined by Regexp and Strin... nathanst (Nathan Stratton Treadway)
03:24 PM Revision 3657d629 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:23 PM Revision ea5605dd (git): * 2012-06-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:23 PM Revision 681d73a9 (git): * vm_backtrace.c: added. Separate backtrace related functions to
this file.
* vm.c, common.mk: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:37 PM Feature #6528 (Closed): Add Pathname#write and Pathname#binwrite
IO.read と対応する Pathname#read があるので
IO.write と対応する Pathname#write が欲しいです.
IO.write がない現在は pathname.open('w') { |f| f << str } などと書かなくてはならず,冗長ですが
IO.write があれば pathname.write(str) と書けて,簡潔です.
Pathname#write と Pathname#binwrite を実装したパ...
niku (niku _)
01:44 PM Revision d054eb96 (git): Add a test for r35863.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:50 AM Revision ad4b53b3 (git): merge revision(s) 35863,35864:
* string.c (rb_enc_cr_str_buf_cat): don't reset coderange as unknown.
the condition 'ptr_a8 && str_cr != ENC_CODERANGE_7BIT' means not
unknown, str is also ASCII-8BIT because str_encindex == ptr_encindex,
an...
naruse (Yui NARUSE)
09:50 AM Feature #6515 (Feedback): array.c: added method that verifies if an Array is part of another
=begin
Then why don't you use (({Set#subset?})) method?
What's the rationale that (({Array})) also should have similar method?
And why different name?
=end
nobu (Nobuyoshi Nakada)
03:00 AM Feature #6515: array.c: added method that verifies if an Array is part of another
@nobu you are right. I'll change the method to (arry1 - arry2).empty?. About the method functionally I thought of it like the subset method from Set. That's why it doesn't care about the order. lellisga (Li Ellis Galardo)
09:18 AM Revision 866761d2 (git): * lib/ipaddr.rb: Inhibit zero-filled octets in an IPv4 address in
all platforms. [ruby-dev:45671]
* lib/ipaddr.rb: Allow the x:x:x:x:x:x:d.d.d.d form not limited to
IPv4 mapped/compatible addresses. This change also makes it
possible for the parser to understand IPv4 mapped and compatible
IPv6 ...
Akinori MUSHA
08:52 AM Revision 70be643c (git): Fix previous commit, it means not need to make the condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:40 AM Feature #6494: Send Accept-Encoding for all HTTP requests
I will commit this once #6492 is approved and committed. drbrain (Eric Hodel)
08:21 AM Bug #6488 (Closed): String#slice example has a syntax error
Fixed by eaf2b80c and 0d72fc0d to the rdoc repository. drbrain (Eric Hodel)
08:02 AM Revision 7671e7dd (git): * string.c (rb_enc_cr_str_buf_cat): don't reset coderange as unknown.
the condition 'ptr_a8 && str_cr != ENC_CODERANGE_7BIT' means not
unknown, str is also ASCII-8BIT because str_encindex == ptr_encindex,
and nont (str_cr == ENC_CODERANGE_UNKNOWN) and
str_cr != ENC_CODERANGE_7BIT means str_cr is vali...
naruse (Yui NARUSE)
07:13 AM Bug #6525 (Closed): misleading example in Permformance section of Regexp documentation?
This issue was solved with changeset r35862.
Nathan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/re.rdoc (Performance): Replaced incorrect example of red...
drbrain (Eric Hodel)
06:35 AM Bug #6524 (Closed): missing "#=>" in example block in Regexp class documentation
This issue was solved with changeset r35860.
Nathan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/re.rdoc (Performance): Removed useless sample output fro...
drbrain (Eric Hodel)
06:23 AM Bug #6526 (Closed): minor typo in Regexp class documentation
This is a duplicate of #5624 and was fixed by r33976 drbrain (Eric Hodel)
06:10 AM Bug #6306: Ripper lexes :on_kw when it should find :on_ident
That is correct. I've used Ripper.sexp() a tad, but will look to using that more. Thank you for the feedback. turboladen (Steve Loveless)
06:10 AM Feature #6522: Migrate extconf.rb documentation from README.EXT to MakeMakefile
I think this is good.
Nobu, do you have any comments?
drbrain (Eric Hodel)

06/01/2012

10:15 PM Bug #6527 (Rejected): WEBrick::HTTPResponse.header is a hash
This means that there can only be one header with a given name, which makes if for example impossible to implement anything but the most trivial RFC 2617 authentication schemes, most of which would require several WWW-Authenticate header... fhars (Florian Hars)
10:05 PM Revision 5f85fcc1 (git): * doc/re.rdoc (Performance): Replaced incorrect example of reducing
backtracking through anchoring with reduced backtracking through a
range. [ruby-trunk - Bug #6525]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:45 PM Bug #6479: ipaddr.rbの受け付ける書式が、プラットフォームによって異なる
武者さん、なかむら(う)さん
お二方とも、御返信下さり有難う御座います。
> cf. http://pubs.opengroup.org/onlinepubs/009696799/functions/inet_addr.html
0埋め時のC側に於ける解釈は、8進数にする旨明記されていたのですね
由来が把握できて、すっきりしました。
> ...
御丁寧に有難うございます。
手元の ipaddr.rb を利用しているコード内で問題が表面化してい...
kachick (Kenichi Kamiya)
09:35 PM Revision 5c56ae7f (git): * 2012-06-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:35 PM Revision 8424e379 (git): * doc/re.rdoc (Performance): Removed useless sample output from final
performance example and switched from #match to #=~ for consistency.
[ruby-trunk - Bug #6524]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:56 PM Feature #6522: Migrate extconf.rb documentation from README.EXT to MakeMakefile
Hi Eric,
I've updated a new patch with your requested changes, also fixed up the method definitions in "(4) prepare extconf.rb" where applicable.
zzak (zzak _)
08:59 AM Feature #6522: Migrate extconf.rb documentation from README.EXT to MakeMakefile
I don't think the call-seq changes to lib/mkmf.rb are necessary. In some cases they don't match up with the method definitions. Can you remove them?
I think Appendix C. can be removed entirely and and after the extconf.rb method lis...
drbrain (Eric Hodel)
06:37 AM Feature #6522 (Closed): Migrate extconf.rb documentation from README.EXT to MakeMakefile
I've added a patch to move any missing bits from README.EXT Appendix C to MakeMakefile, in exchange for "See MakeMakefile for functions that are available to extconf.rb". zzak (zzak _)
04:38 PM Bug #6524 (Assigned): missing "#=>" in example block in Regexp class documentation
drbrain (Eric Hodel)
01:49 PM Bug #6524 (Closed): missing "#=>" in example block in Regexp class documentation
In the Regexp class documentation, "Performance" section, the code block that starts out "# Match a string of 29 <i>a</i>s against a pattern of 29 optional" seems to be the only block of sample code on the page which would return a valu... nathanst (Nathan Stratton Treadway)
03:53 PM Feature #6499: Array::zip
marcandre (Marc-Andre Lafortune) wrote:
> Hi
> ...
Actually! I had such a problem with #product too, but have already forgotten about it.
prijutme4ty (Ilya Vorontsov)
03:42 PM Feature #6367: #same? for Enumerable
same_by? is a good alternative. I've even replaced #same? with #same_by? in my projects. prijutme4ty (Ilya Vorontsov)
02:53 PM Feature #4254 (Assigned): Allow method transplanting
=begin
What status is this proposal?
I don't think the original proposal has been rejected, but only other
additional extensions.
Possible choice would be:
(1) keep current behavior, all method transplanting is prohibited.
(2) accept...
nobu (Nobuyoshi Nakada)
02:47 PM Bug #6526 (Closed): minor typo in Regexp class documentation
In the "Performance" section of the Regexp class documentation, the intro to the first sample code block says "Consider a string of 25 as, a d, 4 as, and a c."
However, as the return value given in that sample block makes clear, t...
nathanst (Nathan Stratton Treadway)
02:31 PM Bug #6525 (Closed): misleading example in Permformance section of Regexp documentation?
In the Performance section of the Regexp documention, it is stated that changing from Regexp.new('a?' * 29 + 'a' * 29) to Regexp.new('\A' 'a?' * 29 + 'a' * 29) speeds up the match significantly. However, '\A' 'a?' * 29 actually expands... nathanst (Nathan Stratton Treadway)
11:58 AM Feature #6445: request for default length/position on string index
It would look nice and work fine with indexing strings and arrays, but if it were put in you would've come to want (1..).each {|i| .. } to work as well.
It might be better to default the omitted end to +Infinity and then make {Array,S...
knu (Akinori MUSHA)
11:53 AM Bug #5497 (Feedback): Math.log10(10_000) error on HP-UX/PA
I don't have any environments to examine this issue.
Please give me a patch to fix this.
mrkn (Kenta Murata)
11:50 AM Bug #5693 (Closed): clang warning in bigdecimal
This is fixed by r33915 mrkn (Kenta Murata)
11:45 AM Bug #5647 (Closed): Possible use of uninitialized value in Init_bigdecimal
This is fixed by r35555 mrkn (Kenta Murata)
11:39 AM Bug #5772 (Feedback): Segmentation Fault on Mac (crash)
You use Leopard because the kernel version is 9.8.0.
We don't support Leopard so we want to know whether this issue is reproduced on the combination of the newest version of kernel (11.4.0) and the newest version of ruby (trunk or 1.9.3...
mrkn (Kenta Murata)
08:51 AM Feature #6517: Array documentation examples and formatting
Great work, but please watch for trailing whitespace. drbrain (Eric Hodel)
08:51 AM Feature #6517 (Closed): Array documentation examples and formatting
This issue was solved with changeset r35858.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c: Updated Array documentation formatting. Patch by ...
drbrain (Eric Hodel)
08:07 AM Bug #6523 (Closed): typos/display errors in Regexp.html page
This is a duplicate of #6488 drbrain (Eric Hodel)
06:48 AM Bug #6523 (Closed): typos/display errors in Regexp.html page
I was looking through the Regexp class documentation found at
http://www.ruby-doc.org/core-1.9.3/Regexp.html
... and found a number of problems that appeared to be either display issues or typos.
Most notably, throughout the entire ...
nathanst (Nathan Stratton Treadway)
07:09 AM Feature #6521: Document Kernel module intro
I reworded this slightly to emphasize that instance methods of Kernel are documented on Object but module methods are documented on Kernel. drbrain (Eric Hodel)
06:42 AM Feature #6521 (Closed): Document Kernel module intro
This issue was solved with changeset r35856.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c (Init_Object): Restored Kernel documentation based...
drbrain (Eric Hodel)
05:51 AM Feature #6521 (Closed): Document Kernel module intro
I've added a patch to cover Kernel module documentation. This puts object.c to 100% documentation! zzak (zzak _)
06:30 AM Feature #6518 (Closed): Object#=== documentation formatting
This issue was solved with changeset r35854.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* object.c (rb_equal): Let Object be a link in #=== documenta...
drbrain (Eric Hodel)
01:47 AM Bug #6520 (Rejected): Invalid url is identified as valid
The following will tell you what is happening.
1.9.3p125 :010 > s[URI.regexp]
=> "http://abc"
URI.regexp is supposed to be used to extract urls from text.
str.scan(URI.regexp) { p $& }
I don't think it is a good idea t...
mame (Yusuke Endoh)
01:33 AM Bug #6520 (Rejected): Invalid url is identified as valid
(({
1.9.3p125 :006 > require 'uri'
=> true
1.9.3p125 :007 > URI.parse invalid_url
URI::InvalidURIError: bad URI(is not URI?): http://abc</option%3E
1.9.3p125 :009 > invalid_url =~ URI::regexp
=> 0
}))
As you can see, 'parse...
zheka (Eugene Mirkin)
12:31 AM Revision 5b95238a (git): class_or_module_required
* object.c (class_or_module_required): extract check for class or
module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:06 AM Bug #6514: Abort trap: 6 running rspec on rdf.rb
Hi,
It seems that step 1.5
$ git clone git://github.com/ruby-rdf/rdf.git
is required.
But I also cannot reproduce abort trap with ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0].
Mr Gregg, could you tell us th...
nagachika (Tomoyuki Chikanaga)

05/31/2012

11:51 PM Revision 53b61ccb (git): * array.c: Updated Array documentation formatting. Patch by Zachary
Scott. [ruby-trunk - Feature #6517]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:51 PM Bug #6519 (Closed): space in COUTFLAG
redmine側のbugfixをしていたり系なのでclose naruse (Yui NARUSE)
11:50 PM Bug #6519 (Assigned): space in COUTFLAG
これって [ruby-dev:45694] を見るとバックポート以外決着がついてるように見えるのですが、
今更チケット化されたのは何かやることが残っているのでしょうか。
よくわからないままに usa さんにアサイン。
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:09 PM Bug #6519 (Closed): space in COUTFLAG
こんにちは。

mkmf.rbで作成するMakefileには COUTFLAG や OUTFLAG といったmakeの変数が
定義されます。その内容が意図した結果となっていないのではないかと思いま
した。殆どの環境で実害は出ていないと思います。


きっかけは4月の終わりに、Solaris 9上のpkgsrcでruby193-baseのコンパイル
がエラーとなるという報告がありました。報告された方に答えつつ確認を求め
た事項が少々的...
taca (Takahiro Kambe)
11:45 PM Feature #6518 (Assigned): Object#=== documentation formatting
mame (Yusuke Endoh)
09:33 AM Feature #6518 (Closed): Object#=== documentation formatting
Let Object be a link in rdoc output, formatting of case. zzak (zzak _)
11:43 PM Feature #6517 (Assigned): Array documentation examples and formatting
mame (Yusuke Endoh)
09:28 AM Feature #6517 (Closed): Array documentation examples and formatting
I went through array.c to add missing examples and apply more consistent formatting. zzak (zzak _)
11:38 PM Bug #6514 (Feedback): Abort trap: 6 running rspec on rdf.rb
I cannot reproduce.
$ git clone git://github.com/ruby-rdf/rdf.git
Cloning into 'rdf'...
remote: Counting objects: 6187, done.
remote: Compressing objects: 100% (1828/1828), done.
remote: Total 6187 (delta 4496), reused 5949 (delta...
mame (Yusuke Endoh)
11:32 PM Bug #6508 (Feedback): Add an (optional) GNU configure option to demand libyaml before continuing, when compiling ruby from source
I completely agree that the behavior you are proposing is best.
But it would be hard to implement exactly because the library (libyaml) is searched by extconf.rb, which requires ruby executable (miniruby).
So, it is impossible to make ...
mame (Yusuke Endoh)
11:17 PM Feature #6515: array.c: added method that verifies if an Array is part of another
=begin
I'm not in favor with this proposal, because of its name mainly.
'Array ((|X|)) is part of array ((|Y|))' sounds like 'all elements in ((|X|)) are
arranged in ((|Y|)) successively in the same order', to me.
If the order is not yo...
nobu (Nobuyoshi Nakada)
11:11 PM Feature #6494 (Assigned): Send Accept-Encoding for all HTTP requests
mame (Yusuke Endoh)
11:10 PM Feature #6492 (Assigned): Inflate all HTTP Content-Encoding: deflate, gzip, x-gzip responses by default
mame (Yusuke Endoh)
11:10 PM Feature #6482 (Assigned): Add URI requested to Net::HTTP request and response objects
mame (Yusuke Endoh)
10:07 PM Revision fe962cde (git): * ext/dl/lib/dl/struct.rb (DL::CStructEntity#set_ctypes): Refactored
#set_ctypes using newer ruby features to simplify its implementation.
* test/dl/test_c_struct_entry.rb (class DL): Test to verify
refactoring.
Reviewed by Aaron Patterson.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35857 b2d...
drbrain (Eric Hodel)
09:41 PM Revision 4f69926f (git): * object.c (Init_Object): Restored Kernel documentation based on
Pickaxe book documentation. Patch by Zachary Scott.
[ruby-trunk - Feature #6521]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:30 PM Revision ee4f9b7c (git): * 2012-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:30 PM Revision c458f08e (git): * object.c (rb_equal): Let Object be a link in #=== documentation.
Patch by Zachary Scott. [ruby-trunk - Feature #6518]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
06:16 PM Bug #4413: Segmentation fault when using deliver for GMAIL SMTP
So, thinking about this resulted in the following:
1.9.3p194 pry(main)> require 'openssl'
=> true
1.9.3p194 pry(main)> OpenSSL::OPENSSL_VERSION
=> "OpenSSL 1.0.1c 10 May 2012"
1.9.2p180 pry(main)> require 'openssl'
=> true
1.9...
hectormalot (Dennis de Reus)
02:59 PM Revision 96066035 (git): adjust indent
* gc.c (os_obj_of_i): adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:21 PM Feature #6321: Find and repair bad bytes in encodings, without transcoding
jrochkind (jonathan rochkind) wrote:
> I think the use case is very common -- it is for me anyway, I think I"m not unique!
> ...
Raising exception as soon as possible sounds reasonable.
But replacing is not.
In principle, such bad da...
naruse (Yui NARUSE)
11:05 AM Bug #6306: Ripper lexes :on_kw when it should find :on_ident
So, you need to have semantics of your input, not a lexical analysis. Right?
Then your using Ripper.lex is a wrong idea. You should not only catch those lexer events but also catch parser events.
You might find Ripper.sexp() implemen...
shyouhei (Shyouhei Urabe)
08:15 AM Bug #6306: Ripper lexes :on_kw when it should find :on_ident
=begin
If this is how the lexer works, then I guess there's not much use in pleading my case, but FWIW, I'll explain more...
I'm the author of ((<URL:http://rubygems.org/gems/tailor>)) and I'm trying to parse code that looks, for exampl...
turboladen (Steve Loveless)
09:44 AM Bug #6496: Adding a bit of DL and friends documentation
After checking with Aaron I cleaned up some missing capitalization in the patch, improved some generic descriptive documentation, and replaced "== Example" with just "Example:" since the sections were so short. drbrain (Eric Hodel)
07:48 AM Bug #6496 (Closed): Adding a bit of DL and friends documentation
This issue was solved with changeset r35846.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/dl: Added documentation. Patch by Vincent Batts.
[ru...
drbrain (Eric Hodel)
07:48 AM Feature #5663: Combined map/select method
=begin
By the way, is anybody using the (({nil})) returned by (({#compact!})) ?
enum.map { |i| i + 1 if i.even? }.compact
makes un unnecessary copy, but i cannot use
enum.map { |i| i + 1 if i.even? }.compact!
because it ...
alexeymuranov (Alexey Muranov)
06:50 AM Revision 2ab7c530 (git): vm.c: UNREACHABLE to suppress warnings
* vm.c (frame_info_{line_no,name,basename,filename,filepath}): add
UNREACHABLE to suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:37 AM Revision 711c067e (git): * test/dl/test_c_struct_entry.rb: Removed duplicated test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
12:27 AM Revision 40cf3e0c (git): * ext/dl/lib/dl/struct.rb (DL::CStructEntity::size): Refactored ::size
to remove unused variables and simplify using newer ruby features.
* test/dl/test_c_struct_entry.rb: Test to validate refactoring
Reviewed by Aaron Patterson
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35850 b2dd03c8-39d4-4d8f-...
drbrain (Eric Hodel)
 

Also available in: Atom