Activity
From 12/23/2011 to 12/29/2011
12/29/2011
-
10:42 PM Bug #5822 (Closed): testunit に -j オプションを渡すと稀にテストを実行せずに終了する
- This issue was solved with changeset r34155.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels... -
01:08 PM Bug #5822 (Closed): testunit に -j オプションを渡すと稀にテストを実行せずに終了する
- make test-all TESTS="-j2 ruby/test_require.rb"
のように test-all の引数に -j と1ファイルだけ与えると、稀にテストをひとつも実行せずに終了することがあります。
@tasks が空になった瞬間に worker が全て :prepare または :ready だと実行中の worker が居ないと判断して終了してしまうようです。
以下のような変更で一応発生しなくなりました。一応というのは status... -
01:42 PM Revision 59130ced (git): * lib/test/unit.rb (Test::Unit::Runner::Worker#_run_parallels): fix
- premature exit when all workers' status are :ready or :prepare.
[ruby-dev:45061] [Bug #5822]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:03 PM Feature #5663: Combined map/select method
- =begin
Nobuyoshi Nakada wrote:
> What about:
> (1..10).grep(->(i){i.even?}){|i|i+1}
> or
> (1..10).grep(:even?.to_proc){|i|i+1}
This looks smart. One can also write it as
(1..10).grep((proc &:even?), &:succ)
but that ... -
10:38 AM Bug #5819 (Assigned): Windowsで空のドライブのルートディレクトリに対するFile.stat が失敗する
-
02:21 AM Bug #5819 (Closed): Windowsで空のドライブのルートディレクトリに対するFile.stat が失敗する
- Windows Vista32bit版上の 1.9.3-p0,1.9.2-p290,1.8.7-p330で
File.statが失敗します。(すべてActiveScriptRubyパッケージで確認)
また、Vista 32bit + ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mingw32]
では成功しました。
ここでF:ドライブは ファイル/サブディレクトリが一切無い空っぽのFAT16の
USBドライブ(エ... -
04:23 AM Feature #5820: Merge Onigmo to Ruby 2.0
- > Ruby 1.9 では正規表現エンジンや M17N の基盤として Oniguruma を用いています。
> ...
現状 onigurumaのupstreamは活動が止まっているという認識なので乗り換え自体は賛成です。
ただ将来的には libonigmo.so を動的にリンクするだけで済むような形態に移行できたらなあと
思っており(実際にディストリからそういう要望をつい最近受けたばかりであるし)、k-takataさんと
今後どのような形態で協力していくのか一回お話し... -
02:44 AM Feature #5820: Merge Onigmo to Ruby 2.0
- = 現状の非互換について
Rubyへの取り込み方:
cd Onigmo
cp reg{comp,enc,error,exec,parse,syntax}.c reg{enc,int,parse}.h ~/ruby
cp oniguruma.h ~/ruby/include/ruby/
Onigmo: edf9df1cefc28472085a857116153529253ffab5 (tmp/ruby-2.0.x)
Ruby: r34150
> ... -
02:42 AM Feature #5820 (Closed): Merge Onigmo to Ruby 2.0
- Ruby 1.9 では正規表現エンジンや M17N の基盤として Oniguruma を用いています。
これを 2.0 では Oniguruma の改造版である、k-takata さんの Onigmo に置き換えようという話です。
https://github.com/k-takata/Onigmo/tree/tmp/ruby-2.0.x
この取り込みによる影響は以下の通りです。
* 100%互換 (既存のテストが全て無修正で通る)
* いくつかの新機能 ... -
02:22 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
- Any update on the status of this request being accepted into Ruby trunk? Thanks.
12/28/2011
-
07:32 PM Feature #5809: Benchmark#bm: remove the label_width parameter
- If your suggestion is to provide easy way to pretty enough benchmark method, how about following:
IMPLEMENTATION:
def Benchmark(tbl)
len = tbl.keys.map(&:size).max + 1
total = ">total:"
avg = ">avg:"
len = [len, total.l... -
06:52 PM Feature #5789: Optimize st_table
- Another approach to st_table optimization: use lightweight pool allocator for st_table, st_table_entry and bins of smallest size.
http://bugs.ruby-lang.org/attachments/2352/st_pool_alloc.patch - 04:56 PM Revision de5c0b83 (git): * 2011-12-29
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:56 PM Revision 98696bd2 (git): * include/ruby/ruby.h: fix #error pragma. LLP64 platform is supported.
- * include/ruby/st.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:53 PM Feature #4970: FileUtils refactored
- Hi,
In message "Re: [ruby-core:41834] [ruby-trunk - Feature #4970] FileUtils refactored"
on Wed, 28 Dec 2011 11:54:52 +0900, Thomas Sawyer <transfire@gmail.com> writes:
|Is current trunk destined to be 2.0? If so, can th... -
11:54 AM Feature #4970: FileUtils refactored
- Is current trunk destined to be 2.0? If so, can this get a review and merge if ok?
-
12:47 PM Revision e19bd3ea (git): -This line, and those below, will be ignored--
- M ruby_1_8_7/ChangeLog
M ruby_1_8_7/inits.c
M ruby_1_8_7/version.h
M ruby_1_8_7/string.c
M ruby_1_8_7/st.c
M ruby_1_8_7/test/ruby/test_string.rb
M ruby_1_8_7/random.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra... -
12:40 PM Feature #5818: Feature: Raiseable
- Separate the proposal into two: (a) allow non-Exception object to be raised. (b) Raiseable. And I will refuse (b). Currently, I see no good reason for (a), but you can try to persuade me.
Matz. -
08:21 AM Feature #5818: Feature: Raiseable
- git branch: https://github.com/kstephens/ruby/tree/trunk-raiseable
-
08:17 AM Feature #5818 (Rejected): Feature: Raiseable
- = Proposal
The ability to raise any object that is a Raiseable.
= Problem
* The Exception subclass hierarchy is well-established.
* CRuby does not allow any object that behaves as an Exception to be raised, it must be a subclas... -
11:22 AM Bug #5817 (Closed): [mingw] ruby/test_file.rb error in test_chmod_m17n(TestFile)
- This issue was solved with changeset r34146.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/fileutils.rb (FileUtils::Entry_#entries): use utility method... -
04:41 AM Bug #5817 (Closed): [mingw] ruby/test_file.rb error in test_chmod_m17n(TestFile)
- I cannot read #5671 to determine if this is a duplicate, but based upon the info below, the error doesn't appear to be caused by `File.chmod` but by m17n issues.
The following is from a RubyInstaller-based build of trunk on a Win7 32b... -
09:13 AM Revision d5c889cf (git): fix indent
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:40 AM Revision 8b75c2fc (git): * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:40 AM Revision b2f45483 (git): * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:40 AM Revision 15fb1619 (git): * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:23 AM Revision 9a75b919 (git): * 2011-12-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:23 AM Revision 554397bc (git): * 2011-12-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:22 AM Revision 6a6c314f (git): * lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
- instead of typoed regexp. [ruby-core:41829] [Bug #5817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:22 AM Revision b4491375 (git): * lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
- instead of typoed regexp. [ruby-core:41829] [Bug #5817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:22 AM Revision 31b097ca (git): * lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
- instead of typoed regexp. [ruby-core:41829] [Bug #5817]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@34146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/27/2011
-
10:43 PM Bug #5816 (Closed): Add documentation for profiler
- Add documentation for profiler
-
08:53 PM Feature #5788: Thread#at_exit
- 2011/12/27 Eric Wong <normalperson@yhbt.net>:
> Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
>> I don't think ruby impl w/o GVL can implement this feature.
>
> pthread_key_create() can be used to register a destructor func... -
05:23 PM Feature #5788: Thread#at_exit
- Motohiro KOSAKI <kosaki.motohiro@gmail.com> wrote:
> I don't think ruby impl w/o GVL can implement this feature.
pthread_key_create() can be used to register a destructor function.
I don't know about other thread APIs, though. -
04:23 PM Feature #5788: Thread#at_exit
- =begin
Calling (({rb_gc_mark()})) only once at the hook definition makes no sense.
You have to mark it in (({rb_thread_mark()})).
=end
-
05:19 PM Revision ddec35cf (git): * ChangeLog: fix some typos.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:12 PM Revision ec5483c3 (git): * 2011-12-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:12 PM Revision 0d971069 (git): * vm_insnhelper.c (unknown_keyword_error): add GC guard to prevent
- intermediate object from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:38 PM Bug #5804 (Closed): Cannot cross compile trunk using Ruby 1.9.3 as BASERUBY
- Fixed at r34131.
-
03:53 PM Feature #5474: keyword argument
- Hi,
In message "Re: [ruby-core:41815] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Mon, 26 Dec 2011 23:36:38 +0900, Yusuke Endoh <mame@tsg.ne.jp> writes:
|
|Hello, Matz
|
|What do you think about Ma... -
12:53 PM Feature #5474: keyword argument
- Hello, matz
2011/12/27, Yukihiro Matsumoto <matz@ruby-lang.org>:
> In message "Re: [ruby-core:41814] Re: [ruby-trunk - Feature #5474][Assigned]
> keyword argument"
> on Mon, 26 Dec 2011 23:28:36 +0900, Yusuke Endoh <mame@... -
06:59 AM Feature #5474: keyword argument
- Hi,
In message "Re: [ruby-core:41814] Re: [ruby-trunk - Feature #5474][Assigned] keyword argument"
on Mon, 26 Dec 2011 23:28:36 +0900, Yusuke Endoh <mame@tsg.ne.jp> writes:
|Oh yeah, I understand the use case.
|
|I'l... -
02:56 PM Bug #5813 (Closed): net/http's EOFError and Keep-Alive
- [ruby-dev:39421] describes exceptions thrown by open-uri, and raise a question why net/http raises EOFError.
net/http sometimes raises EOFError.
I recently find it is because of Keep-Alive.
On HTTP/1.1, connections are Keep-Alive an... -
01:37 PM Revision 2828593e (git): * lib/test/unit.rb (Worker#close): "closing IO if IO is closed"
- should be "closing IO if IO isn't closed"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:04 PM Revision 2f6d8bdc (git): * st.c (st_update): new function to lookup the given key and
- update the value. [ruby-dev:44998]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:17 PM Revision 7f649d10 (git): * 2011-12-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:17 PM Revision 731e4521 (git): * node.h (rb_args_info): change pre_args_num and post_args_num as
- int, to match with rb_iseq_t.
* parse.y (new_args_gen): check overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:23 AM Bug #5790: net/http の EOFError と Keep-Alive - (2011/12/22 18:49), Yui NARUSE wrote:
> HTTP/1.1 は、冪等なメソッドの場合には確認なしにリトライすべきと言っているので、
> そのようにするパッチを添付します。
> 冪等でないメソッドの場合にどうするべきかは悩ましいところです。
> http://tools.ietf.org/html/rfc2616#section-8.1.4
> http://tools.ietf.org/html/draft-ietf-h... -
09:13 AM Bug #5812 (Closed): test-all is stuck on Windows
- 以下の2つのテストがWindowsで刺さります。
test/ruby/test_thread.rb TestThreadGroup#test_thread_timer_and_interrupt
test/thread/test_queue.rb TestQueue#test_thr_kill
要するにIO#read中にThread#killしても終わらないことがあるというわけですが、
しばらく頑張ってみたものの(thread_pthread.cからsign... -
07:15 AM Feature #5809: Benchmark#bm: remove the label_width parameter
- Thomas Sawyer wrote:
> All makes very good sense. But I would avoid complexity. Sometimes things need to change, people have to adjust. I'm not sure I ever even knew that #report returned the time, and I imagine you are right, it was ra... -
12:56 AM Feature #5809: Benchmark#bm: remove the label_width parameter
All makes very good sense. But I would avoid complexity. Sometimes things need to change, people have to adjust. I'm not sure I ever even knew that #report returned the time, and I imagine you are right, it was rarely used, so I don't ...-
03:42 AM Bug #5811 (Closed): Ruby Process Deadlocks With Fork on Mac OS X Lion
- =begin
Given a Ruby process that acts like the following:
* Spawn new thread that initializes a TCPSocket
* Execute script using backticks in main thread
there is a chance that it will deadlock on Lion. The GDB traces for the th...
12/26/2011
-
11:53 PM Feature #5474: keyword argument
- Hello, Matz
What do you think about Marc-Andre's alternative syntax for
keyword arguments and mechanism?
2011/12/22, Marc-Andre Lafortune <ruby-core-mailing-list@marc-andre.ca>:
> I haven't given much thought, but here'... -
11:29 PM Feature #5474: keyword argument
- Hello, Marc-Andre
2011/12/22, Marc-Andre Lafortune <ruby-core-mailing-list@marc-andre.ca>:
> While having fun testing your patch, I encountered an issue with more
> than 2 rest arguments:
>
> def foo(*rest, b: 0, **opti... -
11:27 PM Feature #5474: keyword argument
- Hello,
I've committed my patches for keyword arguments, with fixes for
some problems reported during this discussion.
Please try it and let me know if you find any problem.
This feature still requires discussion, so I'm leaving t... -
07:37 PM Feature #5809 (Closed): Benchmark#bm: remove the label_width parameter
- Hello,
I would like to keep on improving the benchmark library.
Feature #4197 was mostly a clean-up, this intend to improve the existing methods.
First, I would like to make Benchmark#bm smarter.
I think than having to specify th... -
05:01 PM Bug #5796 (Closed): main.c is not compiled during cross compilation
- This issue was solved with changeset r34131.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* common.mk (LIBRUBY_A): depends on main.o since r33774.
[ruby-... -
03:09 PM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
- うーん、よろしくは無いと思うんですが、これは速度のために意図的にやっているように思います。
循環参照をチェックしたい場合は、JSON.dump ではなく、JSON() を使ってください。 -
02:02 PM Bug #5808 (Assigned): "a = []; a << a; puts JSON.dump(a)" aborted
-
12:45 PM Bug #5808 (Closed): "a = []; a << a; puts JSON.dump(a)" aborted
- ふと a = []; a << a; puts JSON.dump(a) としてみたら、abort しました。
% ./ruby -rjson -ve 'a = []; a << a; puts JSON.dump(a)'
ruby 2.0.0dev (2011-12-26 trunk 34127) [x86_64-linux]
/home/ruby/tcstate/lib/ruby/1.9.1/json/common.rb:216: stack level ... -
02:20 PM Revision c5e372ff (git): * vm_insnhelper.c (unknown_keyword_error): make it kind a error message when unknown keyword is given. It require more work. See [ruby-core:40518] and [ruby-core:40541] in detail.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:20 PM Revision d0baa0dd (git): * vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments), iseq.c (rb_iseq_parameters), vm_insnhelper.c (vm_callee_setup_arg_complex): support Method#parameters for keyword arguments. The provisional spec is what Benoit Daloze proposed. [ruby-core:40518]
- * test/ruby/test_keyword.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:20 PM Revision a0a2c144 (git): * vm_core.h (struct rb_iseq_struct), compile.c (iseq_set_arguments, iseq_compile_each), vm_insnhelper.c (vm_callee_setup_arg_complex): implement keyword arguments. See [ruby-core:40290] The feature is promised to be included in 2.0, but the detail spec is still under discussion; this commit is a springboard for further discussion. Please try it and give us feedback. This commit includes fixes for some problems reported by Benoit Daloze <eregontp AT gmail.com> [ruby-core:40518] and Marc-Andre Lafortune <ruby-core-mailing-list AT marc-andre.ca> [ruby-core:41772].
- * iseq.c (iseq_free, prepare_iseq_build): bookkeeping.
* test/ruby/test_keyword.rb: add tests for keyword arguments.
* test/ripper/dummyparser.rb (class DummyParser): temporal fix for
ripper test.
git-svn-id: svn+ssh://ci.ruby-lang.... -
02:20 PM Revision 1ab3974b (git): * node.h, node.c, parse.y: implement a parser part for keyword arguments. This is a preparation for keyword argument (see [ruby-core:40290]).
- * gc.c (gc_mark_children): bookkeeping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:19 PM Revision afb10c62 (git): * node.h, parse.y (new_args_gen), compile.c (iseq_set_arguments): use struct rb_args_info instead of NODEs. This is a preparation for keyword argument (see [ruby-core:40290]).
- * node.c (dump_node), gc.c (gc_mark_children, obj_free): bookkeeping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:19 PM Revision 90b1afa3 (git): * node.h, parse.y (lambda, f_larglist): remove NEW_LAMBDA hack. This is a preparation for keyword argument (see [ruby-core:40290]).
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:49 PM Revision 68fde444 (git): * io.c (rb_sys_fail_path): move the definition.
- Move above for using it in set_binary_mode_with_seek_cur().
* io.c (set_binary_mode_with_seek_cur): fix improper seek cursor.
Seeking file cursor with setting binary mode has possibility to
cause infinite loop. Fixed the bug and ref... -
09:52 AM Feature #5805: object_hexid
- > My last ditch approach will be to bind Kernel#inspect InstanceMethod to the current object and extract the hex id from it's output. It should work, but it's definitely a hack. In the future I'd much rather just ask Ruby for it!
You... -
08:01 AM Revision fb37a14a (git): * common.mk (LIBRUBY_A): depends on main.o since r33774.
- [ruby-core:41786] [Bug #5796]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:33 AM Revision 8f37f68c (git): * ChangeLog: fix miss; testcase is test file.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:21 AM Revision bec52ad7 (git): * test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't
- accept the block argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:08 AM Revision 48053fe6 (git): * lib/test/unit.rb: Avoid zombie processes on "--separate" option
- added at r34121.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/25/2011
-
11:42 PM Feature #5805: object_hexid
- On 2011年12月25日 14:38, Nobuyoshi Nakada wrote:
> In 1.9.3 or later
> ...
Hmm.. this seems to pad two extra zeros.
"0x00000000014100e0"
instead of
"0x000000014100e0"
Is Urabe correct? Does `sprintf` work just as well... -
11:27 PM Feature #5805: object_hexid
- Thank you for 1.9.3+ definition, I will add that. Do you happen to know definition for 1.8.7? I am not worried about anything older than that.
> Even if the method were added, it would never affect 1.9 or earlier, so it changes nothin... -
06:23 PM Feature #5805: object_hexid
- On 2011年12月25日 14:38, Nobuyoshi Nakada wrote:
> In 1.9.3 or later
> ```ruby
> module Kernel
> def object_hexid
> "0x"+[object_id<<1].pack("L>!").unpack("H*")[0]
> end
> end
I prefer to use `sprintf()... -
02:38 PM Feature #5805 (Feedback): object_hexid
- Hi,
(11/12/25 0:22), Thomas Sawyer wrote:
> By default Ruby will show this id when using #inspect.
> ...
In 1.9.3 or later
```ruby
module Kernel
def object_hexid
"0x"+[object_id<<1].pack("L>!").unpack("H*")[0]
... -
12:57 PM Feature #5805: object_hexid
- I think this seems like a simple proposal.
-
12:22 AM Feature #5805 (Feedback): object_hexid
- I would like to see #object_hexid added to Ruby to return an object's id in hexidecimal form.
By default Ruby will show this id when using #inspect.
Object.new.inspect
=> "#<Object:0x000000023cadf0>"
I, for one, have often ... -
11:17 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
- I updated the patch while waiting for the response.
Cleanups
* remove unnecessary parentheses of `fptr`
* use return value of setmode() which returns the previous translation mode if successful
http://msdn.microsoft.com/en-us/libr... -
10:05 PM Feature #5798: Range#include? needs some optimization
- I agree that the behavior you point out seems inconsistent, because
(0..1).include?(0.5)
=> true
-
08:47 PM Revision 7a9b2cad (git): * ext/openssl/ossl_cipher.c: Fix more typos.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:09 PM Revision 91785eca (git): * ext/openssl/ossl_cipher.c: Fixed typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:02 PM Revision 16558749 (git): * ext/openssl/ossl_cipher.c: Update and complete documentation.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:53 PM Revision 684d7b8e (git): * 2011-12-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:53 PM Revision 976aba43 (git): git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:17 PM Revision 38ade501 (git): * test/testunit/test_parallel.rb (test_separate): Test for "--separate"
- option (r34121)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:47 PM Revision 60da7a36 (git): * lib/test/unit.rb (_run_parallel):
- New option "--separate" for test/unit; when running tests with this
option, a job process will be restarted after one testcase has done.
This means all testcases will run with separated process.
* lib/test/unit/parallel.rb: Fix for ... -
12:42 AM Feature #5788: Thread#at_exit
- =begin
Nakada-san, thank you for your reviewing.
I improved the patch at some points.
* th->at_exit is to be marked.
* If the thread is dead, Thread#at_exit returns nil.
* The thread is passed to the hooks(including hooks on main th...
12/24/2011
-
11:58 PM Feature #5788: Thread#at_exit
- I don't think ruby impl w/o GVL can implement this feature.
-
11:15 PM Feature #5788: Thread#at_exit
- i don't think the name of this method is good… are there any more suitable name for this method?
-
07:37 PM Feature #5798: Range#include? needs some optimization
- There is method `Range#cover?` for this. `Range#include?` is inherited from `Enumerable` module, so you are proposing to redefine it inside the class.
This being said, i also had a somewhat related proposal here: #5534. I suggested ... - 03:05 PM Revision f8a4e233 (git): * 2011-12-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:05 PM Revision 60b99d05 (git): * configure.in: change --with-ntver to --with-winnt-ver to be more
- descriptive in the context. [ruby-core:41794]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:24 PM Revision 3cbf3e20 (git): * configure.in: add --with-ntver option to match win32/configure.bat
- functionality. Set 0x0501 as default. [ruby-core:35010]
[ruby-core:35035]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:56 AM Bug #5803 (Closed): closed output and Readline.readline dumps core
- This issue was solved with changeset r34116.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/readline/readline.c (readline_readline): check if outst... -
01:04 AM Bug #5803 (Closed): closed output and Readline.readline dumps core
- =begin
libreadline 側の問題だと思うのですが、Readline.output= に指定した IO をクローズした後
Readline.readline で補完するとコアダンプしました。
"##\t" のところを色々変えてみるとコアダンプしたりしなかったりします。
$ cat readline_test.rb
require "readline"
IO.pipe do |r, w|
Readline.input = ... -
06:59 AM Bug #5802 (Closed): 0 assretions in test/readline/test_readline.rb:test_line_buffer__point
- This issue was solved with changeset r34115.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/readline/test_readline.rb (test_line_buffer__point): u... -
12:39 AM Bug #5802 (Closed): 0 assretions in test/readline/test_readline.rb:test_line_buffer__point
- =begin
test/readline/test_readline.rb の test_line_buffer__point を実行しても、
一つも assertion が実行されていません。Readline.completion_proc に指定した
proc から return しているので、そこでテストケースから抜けているようです。
$ ruby test/readline/test_readline.rb -n test_line_buffer_... -
04:51 AM Bug #5804 (Closed): Cannot cross compile trunk using Ruby 1.9.3 as BASERUBY
- Hello,
Attempting to cross-compile trunk (at r34114) with i686-w64-mingw32 host. -
03:38 AM Revision 8af67e30 (git): * proc.c (proc_call): get rid of optimazation-out by clang.
- * proc.c (rb_proc_call, rb_proc_call_with_block): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:56 AM Revision 1dec79c3 (git): * ext/readline/readline.c (readline_readline): check if outstream
- is closed to get rid of a bug of readline 6. [ruby-dev:45043]
[Bug #5803]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/23/2011
-
09:59 PM Revision 83971343 (git): * test/readline/test_readline.rb (test_line_buffer__point): use
- lambda not to exit entire method by "return". or "next" for
proc. [ruby-dev:45042] [Bug #5802]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:45 PM Bug #5801: Enumerable#take_while の proc を外に出して使うと Segv
- Enumerable#grep なども同様の問題がありますね。
以下の再現コードで Segv を吐きます。
enum.c で、XX_i という形の関数の第二引数が C の
スタックへのポインタになってるやつは、全部同じ問題を
含んでいるのではないでしょうか。
# 再現コード
~~~ruby
class A
include Enumerable
def each(&b)
$block = b
yield
end
... -
05:31 PM Bug #5801 (Closed): Enumerable#take_while の proc を外に出して使うと Segv
- 芝と申します。
下の再現コードのように、`Enumerable#take_while` の Proc を
外に出して使うと Segv が発生します。
~~~ruby
# 再現コード
class A
include Enumerable
def each(&b)
$block = b
yield
end
end
puts A.new.take_while{true}
100.times{$block.call}... -
04:39 PM Revision db9657a8 (git): * bootstraptest/test_flow.rb: remove an unused parameter.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:23 PM Revision dd834c68 (git): * vm_eval.c (send_internal): PASS_PASSED_BLOCK_TH must be placed
- just before calling rb_call0.
* bootstraptest/test_flow.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:56 PM Revision c6cbbd6e (git): * 2011-12-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:56 PM Revision c5485f41 (git): * lib/tempfile.rb (Tempfile#initialize): warn if a block is given.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:32 PM Feature #5798 (Rejected): Range#include? needs some optimization
- For example:
('aa'..'az').include? 123
it seems that the procedure is:
1. check whether 'aa' == 123 # false
2. 'aa'.succ # 'ab'
3. check whether 'ab' == 123 # false
4. 'ab'.succ # 'ac'
5. check whether 'ac' == 123 # false
.... -
11:12 AM Bug #5797 (Third Party's Issue): 2nd crash (?) with green shoes gem (but it seems different) ...
- At http://bugs.ruby-lang.org/issues/5795. That issue was discovered on a Mac 10.5. However, on a Mac 10.7.2 machine, using the same source referenced in that report, an apparently different crash occurs (Cf. the log file at http://pasteb...
-
11:00 AM Bug #5795: Ruby crash (?) with a simple green shoes app
- It may be worth noting this happens on a Mac 10.5 (Leopard) machine.
-
02:42 AM Bug #5795 (Third Party's Issue): Ruby crash (?) with a simple green shoes app
- I have installed the "green shoes" gem and am attempting to run the script found at http://pastebin.com/cCVx7rB5. I expect a shoes app to open with a basic alert box and not a crash. Instead I get a crash (log file found at http://pasteb...
-
07:55 AM Revision dc42e8bb (git): refine message for test_thr_kill.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:38 AM Revision 5191ecad (git): * ext/readline/readline.c (readline_attempted_completion_function):
- in Readline module with GNU Readline 6 case, Readline module
resets completion_append_character to " ", after it executes
completion. So, Readline module stores
completion_append_character, and Readline module always sets it
afte... -
07:02 AM Revision ec4f9d1c (git): * ext/readline/readline.c (Init_readline): libedit check
- rl_getc_function only when rl_initialize() is called, and
using_history() call rl_initialize(). This assignment should be
placed before using_history(). [ruby-core:40641] [Bug #5539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun... -
05:44 AM Bug #5796 (Closed): main.c is not compiled during cross compilation
- Hello,
Attempting to cross-compile trunk against i686-w64-mingw32 (GCC 4.6) is failing to compile main.c when executed a simple "make".
Used 1.8.7-p352 as BASERUBY:
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin10.8.0]
The... -
02:26 AM Feature #5788 (Feedback): Thread#at_exit
- =begin
Just reviewed briefly.
* (({th->at_exit})) needs to be marked,
* (({th->at_exit})) should be hidden, and
* a hook registered to the main thread seems to be executed in a child
process forked in a sub-thread too.
Second, ... -
01:15 AM Revision e89bebda (git): * test/thread/test_queue.rb (test_thr_kill): show the number of loop
- run when the test failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:24 AM Revision 8beb0d35 (git): * test/test_pty.rb (test_pty_check_default): call PTY.check until
- "cat" command is finished.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e