Project

General

Profile

Activity

From 11/28/2012 to 12/04/2012

12/04/2012

07:38 PM Feature #5174: Export ruby_init_prelude()
Unfortunately, ruby_options(0, 0) causes a SEGV in 1.9.3p327. The crash has been fixed ([Bug #7423]), but I don't think that ruby_options(0, 0) works correctly. It causes the embedded Ruby interpreter to read from standard input (the sam... gfim (Graham Menhennitt)
07:24 PM Revision 32a75432 (git): * lib/README: Add rdoc modeline directive and formatting libs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
07:17 PM Bug #7507: lazy.map{}.zip{} causes SEGV
=begin
Seems a GC issue.
With (({GC.stress=true})), just (({(1..2)})) segfaults.
=end
nobu (Nobuyoshi Nakada)
02:00 PM Bug #7507 (Closed): lazy.map{}.zip{} causes SEGV
The following program causes SEGV. (Tested on Mac and Ubuntu)
(1..10000).lazy.map{}.zip(){}
---
/Users/yhara/r/ruby % ./miniruby -e '(1..10000).lazy.map{}.zip(){}'
-e:1: [BUG] Segmentation fault
ruby 2.0.0dev (2012-12-04 trunk...
yhara (Yutaka HARA)
07:11 PM Revision 9f9380ed (git): typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
07:06 PM Revision afa3ce25 (git): * test/ruby/test_thread.rb (test_async_interrupt_blocking): bugfix
about defared check
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
06:54 PM Feature #7508 (Closed): Clean up some more calls to rb_intern()
Related to #7495, I cleaned up a few more calls to rb_intern, replacing some with IDs defined in id.h, and others with IDs interned once on initialization and then cached.
Anonymous
06:38 PM Revision 64f634f1 (git): * vm_core.h (RUBY_VM_CHECK_INTS_BLOCKING): check async queue everytime.
* thread.c (sleep_forever): check RUBY_VM_CHECK_INTS_BLOCKING first.
* thread.c (sleep_timeval): ditto.
* test/ruby/test_thread.rb (test_async_interrupt_blocking): add a test
exceptions are correctly defared and...
Masaya Tarui
06:33 PM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> > Let's move the feature to 2.1, possibly including an explicitly experimental form of refinements in the 2.0 release. I am willing to help continue this discussion for 2.1, so we can deliver the feature peo...
shugo (Shugo Maeda)
06:00 PM Bug #7484 (Closed): Fiddle::Importer incompatibility with DL::Importer
This issue was solved with changeset r38182.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/fiddle/lib/fiddle/import.rb (import_function, bind_funct...
ngoto (Naohisa Goto)
03:37 PM Bug #7484: Fiddle::Importer incompatibility with DL::Importer
I asked aaron about this commit, and he confirmed the patch.
Goto-san, please commit it!
usa (Usaku NAKAMURA)
03:18 PM Bug #7484 (Assigned): Fiddle::Importer incompatibility with DL::Importer
I'm waiting this problem is fixed.
I'm planning to move ext/dl/win32/lib/win32/* scripts to fiddle, but this problem prevents it.
usa (Usaku NAKAMURA)
05:36 PM Revision 28ee4c29 (git): id.c: generate
* common.mk, defs/id.def, template/id.c.tmpl: generate id.c as well as id.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:35 PM Feature #7414: Now that const_get supports "Foo::Bar" syntax, so should const_defined?.
I also noticed this inconsistency. It seems very odd to have different behavior for Module#const_get and Module#const_defined?. I hope it's possible to get this change into 2.0.0. It's been a while since I've written any C but I'd be hap... sferik (Erik Michaels-Ober)
04:08 PM Revision 01380620 (git): * test/ruby/memory_status.rb: fixed small typos introduced at r38182.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:06 PM Revision 70d603a4 (git): supress warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
04:05 PM Revision 3765f668 (git): supress warning
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
04:02 PM Revision bbfbf662 (git): * thread.c (rb_mutex_owned_p): new method that return current
thread have the target mutex or not. [Feature #7505] [ruby-dev:46697]
* test/ruby/test_thread.rb (test_mutex_owned, test_mutex_owned2):
test for the above.
* NEWS: new for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3...
kosaki (Motohiro KOSAKI)
03:53 PM Feature #6762: Control interrupt timing
> handle_interrupt(X => :immediately)
> handle_interrupt(Y => :on_blocking)
> handle_interrupt(Z => :never)
>
> Handle interrupt X immediately. Handle interrupt Y on_blocking.
> Handle interrupt Z never. You could also...
kosaki (Motohiro KOSAKI)
08:23 AM Feature #6762: Control interrupt timing
I was suggesting "interruptible" as a better alternative for
"async_interrupt_timing" or "control_interrupt". Can either be called
without a block? If so, does it change the way subsequent interrupts
are delivered?

I'd like...
brent (Brent Roman)
06:53 AM Feature #6762: Control interrupt timing
Regarding ability of Thread.current.raise to be deferred,
if it works that way now, I'd vote to keep it this way.
Best not to have a special case for Thread.current.raise
If an application requires the special behavior, that's eas...
brent (Brent Roman)
03:10 PM Revision 1bdf3395 (git): * 2012-12-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:10 PM Revision d8164d50 (git): * lib/erb.rb (make_compiler, add_put_cmd, add_insert_cmd): extract
methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masatoshi SEKI
02:54 PM Revision 784019f7 (git): id.h.tmpl: remove unused id
* template/id.h.tmpl (attr_ids): remove Bitblt and Answer which are no
longer predefined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:00 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
いや、これはソースディレクトリとビルドディレクトリ、インストールディレクトリを区別していないrubygemsのバグじゃないでしょうか。
I think the culprit is rubygems, which doesn't separate build, source and install directories.
nobu (Nobuyoshi Nakada)
12:46 AM Bug #7344: gem pristine bigdecimal が失敗してしまう
私の手元の環境では、以下の patch を適用し、ruby の top_srcdir で gem build ext/bigdecimal/bigdecimal.gemspec を実行してビルドした gem パッケージを使う事で、install/pristine/uninstall などがきちんと動くことを確認できました。
私は本来の問題を再現する環境の作り方が分からないので、以下の変更で問題ないかどうかレビューまたは確認をしていただけないでしょうか。
di...
mrkn (Kenta Murata)
12:24 PM Bug #7500: Improve GC profiler timings on linux
Increasing the number of iterations shows the 4ms granularity.
tmm1@fe19:~$ grep loops timings.c
int loops = 1000000;
for (n=0; n<loops; n++) pow(2, 2048);
for (n=0; n<loops; n++) pow(2, 2048);
tmm1@fe19:~$ gc...
tmm1 (Aman Karmani)
10:04 AM Bug #7500: Improve GC profiler timings on linux
tmm1@fe19:~$ uname -a
Linux fe19.rs.github.com 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 GNU/Linux
tmm1@fe19:~$ cat timings.c
#include <stdlib.h>
#include <stdio.h>
#include <sys/resource.h>
#incl...
tmm1 (Aman Karmani)
10:01 AM Bug #7494 (Closed): Suppress uninitialized warning from @is_proxy_class
This issue was solved with changeset r38172.
Zachary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Suppress warning: uninitialized variable [ruby-core:50470] [Bu...
naruse (Yui NARUSE)
09:55 AM Revision 34422887 (git): * test/ruby/memory_status.rb (Memory): use fiddle/types if available.
* test/ruby/memory_status.rb (Memory::Win32): :stdcall is needed on
x86 WIN32. This commit partly reverts r38054.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
09:08 AM Revision b6b89600 (git): * ext/fiddle/lib/fiddle/types.rb: copied from ext/dl/lib/dl/types.rb
and modified for Fiddle, needed for migration from DL to Fiddle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
09:00 AM Revision 7b103012 (git): * ext/fiddle/lib/fiddle/import.rb (import_function, bind_function):
should respect call_type for migration from DL to Fiddle.
[Bug #7484] [ruby-core:50405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
08:39 AM Revision b2e6a26a (git): fix typos
unification is uncountable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
07:57 AM Revision b3be67bd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:54 AM Revision 95ae31b7 (git): * .document: Added ChangeLog and doc/ChangeLog-* as documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
07:50 AM Revision 38b96673 (git): * lib/rdoc/parser/changelog.rb: Added a ChangeLog parser to RDoc.
* lib/rdoc/parser.rb: ditto
* test/rdoc/test_rdoc_parser_changelog.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:24 AM Revision 086fce31 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:23 AM Revision cfa4a59d (git): marshal.c: PRIsVALUE
* marshal.c (path2class, path2module): use PRIsVALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:23 AM Revision dd2eb694 (git): marshal.c: rb_check_funcall
* marshal.c (w_object, marshal_dump, marshal_load): use
rb_check_funcall if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:23 AM Revision 2974b00f (git): marshal.c: GC guard
* marshal.c (w_object, marshal_dump, r_object0, marshal_load): use
RB_GC_GUARD() (directly or indirectly) instead of volatile.
* variable.c (rb_path_to_class): prevent the arguemnt from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
nobu (Nobuyoshi Nakada)
06:09 AM Bug #7506 (Closed): segfault generating encdb.h
on x86_64-linux-gnu and r38168 zzak (zzak _)
05:45 AM Bug #3320: emacs ruby-mode.el font-lock fails on symboled string ending with ?
All examples in this bug work fine for me with ruby-mode from the Emacs tree.
Not sure when they were fixed.
dgutov (Dmitry Gutov)
04:57 AM Revision d3842de5 (git): * vm_opts.h: enable optimization - operand unifications.
Operand unification technique enable to combine
an instruction and specific operands and make new
instruction.
* defs/opt_operand.def: add several configuration
of operand unifications.
* insns.def: use `int' instead to suppress wa...
ko1 (Koichi Sasada)
04:54 AM Feature #5382: %r{…} and similar delimited strings, arrays, and regexps aren’t highlighted in ruby-mode
It's been fixed in Emacs trunk for some time now, will be included in 24.3. dgutov (Dmitry Gutov)
03:43 AM Bug #7501 (Rejected): \w in a regular expression doesn't match international characters
If I remember correctly this is an intentional design. Because as Unicode version grows, the definition of what is a word character and what is not changes form time to time. It is hard for us to follow that. shyouhei (Shyouhei Urabe)
03:13 AM Feature #7444: Array#product_set
marcandre (Marc-Andre Lafortune) wrote:
> alexeymuranov (Alexey Muranov) wrote:
> ...
In your example the first element was not an Array but a Range. The method is called on the *outer* array, and constructs a certain product of its ele...
alexeymuranov (Alexey Muranov)
02:51 AM Feature #7444: Array#product_set
Thanks and sorry for being unclear.
It seemed to me that you did not specify the expected behavior for the proposed method in the case of e.g. 3 arrays.
stomar (Marcus Stollsteimer)
02:24 AM Feature #7444: Array#product_set
stomar (Marcus Stollsteimer) wrote:
> > Not really. `arrays.product_set.to_a` and `arrays.inject(:product)` give only the same result if `arrays.size == 2`. If < or > 2, results are different.
> ...
I'm not sure how I was not clear, bu...
marcandre (Marc-Andre Lafortune)
01:25 AM Feature #7444: Array#product_set
>> 3. `[(1..13).to_a, %w(spades hearts diamond clubs)].inject(:product)` does a very similar thing to what the proposed method would do.
> ...
Please elaborate.
stomar (Marcus Stollsteimer)
12:43 AM Feature #7444: Array#product_set
alexeymuranov (Alexey Muranov) wrote:
> @marcandre, here are just some things that first came to my mind:
> ...
I'm not suggesting that functions of multiple (generic) arguments be instance methods of Array. I'm proposing that this fun...
marcandre (Marc-Andre Lafortune)
02:57 AM Bug #7504: Rdoc for OptionParser (remove "developer documentation" from Rdoc output)
Nice catch Marcus! zzak (zzak _)
12:25 AM Bug #7504 (Closed): Rdoc for OptionParser (remove "developer documentation" from Rdoc output)
The rdoc for OptionParser starts with "developer documentation"
that's "not for RDoc output", which is a little strange.
In case this is not intentional for some reason, the patch removes
this part of the docs from the output (using...
stomar (Marcus Stollsteimer)
02:23 AM Feature #7503: make timeout.rb async-interrupt safe by default
Actually, I like your proposal.
But I make weak objection.

The following code doesn't stop forever.

timeout(3){
# long calculation / infinite loop w/o IO operation
}

I guess most of case, the block includes...
ko1 (Koichi Sasada)
01:39 AM Feature #7505 (Assigned): Mutex#owned? メソッドの新設
kosaki (Motohiro KOSAKI)
01:25 AM Feature #7505: Mutex#owned? メソッドの新設
>> なので、mutexを取れるまで待つように修正する方針を押したいと思います。
>これは個人的には賛成しますが、別チケットにすることを提案します。
Mutex#owned? の話でしたね。すいません。
これ自体には賛成です。
ただ、これでどうして元の課題が救えるのか分かりませんでした。
tarui (Masaya Tarui)
01:19 AM Feature #7505: Mutex#owned? メソッドの新設
> なので、mutexを取れるまで待つように修正する方針を押したいと思います。
これは個人的には賛成しますが、別チケットにすることを提案します。
kosaki (Motohiro KOSAKI)
01:17 AM Feature #7505: Mutex#owned? メソッドの新設
それは小崎さんの3の場合でも同じだと思うけど、
そう言う点からしても、例外で抜ける場合でmutexのlockとらないでunlockしたままとかおかしいですよね。
tarui (Masaya Tarui)
01:13 AM Feature #7505: Mutex#owned? メソッドの新設
樽井さんの例はもっと危険で mutexがunlockしたまま例外で抜けてきて synchronized抜けるときにもう一度 unlockしちゃうので、二重unlockでThreadErrorになっちゃいますね
kosaki (Motohiro KOSAKI)
01:00 AM Feature #7505: Mutex#owned? メソッドの新設
多分、こういう事だろうとおもうのですが、
mutex=Mutex.new
Thread.new{
mutex.synchronize{
begin
sleep 1
mutex.sleep
ensure
リソース解放
end
}
}
mutex.syncronize{
sleep 10
}
mutex.sleepでmutexを手放している間にC-cがされてmute...
tarui (Masaya Tarui)
12:29 AM Feature #7505 (Closed): Mutex#owned? メソッドの新設
以下のようなプログラムがあったとします。
Thread.async_interrupt_timing(Object => :on_blocking) {
begin
  mutex = Mutex.new
mutex.synchronize {
sleep 1
condvar.wait mutex
 }
ensure
リソース解放したい
end
}
mutex.synchroni...
kosaki (Motohiro KOSAKI)
01:28 AM Feature #859: open-uri doesn't allow redirection to https
I've packed this patch as a gem:
https://github.com/jaimeiniesta/open_uri_redirections
jaimeiniesta (Jaime Iniesta)
01:01 AM Revision 51ee08fd (git): Suppress warning: uninitialized variable [ruby-core:50470] [Bug #7494]
Conditional operator is required to return true or false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:01 AM Revision f68ab200 (git): * parse.y: replase parser->enc with current_enc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:00 AM Bug #7499: public_send can be used to invoke protected methods
Looks good to me. marcandre (Marc-Andre Lafortune)

12/03/2012

11:53 PM Feature #6762: Control interrupt timing
Hi,

2012/11/30 SASADA Koichi <ko1@atdot.net>:
> (2012/11/30 18:59), Brent Roman wrote:
>> Do you propose allowing a thread to defer delivery of exceptions to
>> itself?
>> What happens if one writes:
>>
>> Thread.cur...
tarui (Masaya Tarui)
04:02 PM Feature #6762: Control interrupt timing
brent (Brent Roman) wrote:
> OK. I see the logic in using the term "interrupt" if you are actually
> ...
I agree. They are "asynchronous events".
> Try googling (with the quotes):
> ...
You are right.
> As someone who was wr...
ko1 (Koichi Sasada)
03:53 PM Feature #6762: Control interrupt timing
On Fri, Nov 30, 2012 at 3:27 AM, Brent Roman <brent@mbari.org> wrote:
> Charlie,
> Five years ago, after a bit of arm twisting, you admitted that this
> technique could allow thread.raise to be used safely. Why the change of
...
headius (Charles Nutter)
11:34 PM Revision 56fca7f1 (git): * README.EXT: Converted to RDoc format
* README.EXT.ja: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:32 PM Revision ec05ade5 (git): * lib/rdoc/ri/driver.rb: Fixed ri page display for files with
extensions.
* test/rdoc/test_rdoc_ri_driver.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:07 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
> (もしかして、bigdecimal用の別のリポジトリがあったりします?)
いえ、ありません。ruby の trunk が唯一のリポジトリです。
ところで、io/console にも同じ問題があったりしますか?
mrkn (Kenta Murata)
10:33 PM Feature #7503 (Assigned): make timeout.rb async-interrupt safe by default
Hi
Again and again we discussed, current timeout.rb is very dangerous because ExitException interrupt argument code and unwind call stack immediately.
It may prevent to run ensure block and makes resource leak.
I proposed change d...
kosaki (Motohiro KOSAKI)
10:28 PM Feature #6183: Enumerator::Lazy performance issue
I've merged the patch with latest trunk (see latest diff attached), specifically with Enumerator lazy size feature.
Also I've removed the ugly case switch: now proc entry stores pointer to a function that is executed when iterating over ...
gregolsen (Innokenty Mikhailov)
09:27 PM Bug #7501: \w in a regular expression doesn't match international characters
/[[:alpha:]]+/ should behave as you expect Anonymous
06:22 PM Bug #7501 (Rejected): \w in a regular expression doesn't match international characters
When using regexp matching, \w doesn't match characters which are not in the English alphabet.
For example, the characters "žščřďťňaáéíóůúý" should all be matched by \w but aren't.
This program demonstrates the bug:
--------------...
eltomito (Tomas Partl)
08:56 PM Feature #7435: Exceptions should have backtrace_locations
One more comment.
Exception class has Exception#set_backtrace method, which set backtrace using string array. It conflicts with locations.
We need to solve this issue to support Exception#backtrace_locations.
ko1 (Koichi Sasada)
08:10 PM Bug #7499: public_send can be used to invoke protected methods
rb_method_call_status checks the value of 'self' at the callsite to determine whether protected methods can be called.
Unfortunately this means calls to protected methods via public_send will erroneously succeed if they are in the rig...
Anonymous
06:00 AM Bug #7499 (Closed): public_send can be used to invoke protected methods
class Foo
def bar
"wtf?"
end
protected :bar
def invoke_bar
public_send(:bar)
end
end
puts Foo.public_send(:bar) rescue puts "error; this seems normal"
puts Foo.new.invoke_bar
# The last statement outp...
alindeman (Andy Lindeman)
07:59 PM Bug #5357: Indentation of nested operators should nest
On 03/12/12 02:35, nobu (Nobuyoshi Nakada) wrote:
>
> ...

Indenting the last 3 lines highlights that the method chain is hanging
off hash. I do this myself.
--
Alex
regularfry (Alex Young)
11:35 AM Bug #5357 (Feedback): Indentation of nested operators should nest
Your first example seems inconsistent, why are the last 3 lines indented at the same column?
It would be:
```ruby
return if
hash.
values_at(:a, :b, :c).
reject{ |e| e.nil? or e.empty? }.
empty?
```
But it...
nobu (Nobuyoshi Nakada)
07:12 PM Revision f8f5a9eb (git): * .document: Add NEWS for `ri ruby:NEWS`
* NEWS: Set format as rdoc
* doc/NEWS-1.8.7: ditto
* doc/NEWS-1.9.1: ditto
* doc/NEWS-1.9.2: ditto
* doc/NEWS-1.9.3: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:03 PM Bug #7502 (Closed): ObjectSpace.each_object で inspect できないオブジェクトが渡ってくる
This issue was solved with changeset r38156.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* iseq.h: iseq_catch_table_entry::catch_type should be
Fixnum...
ko1 (Koichi Sasada)
07:01 PM Bug #7502 (Closed): ObjectSpace.each_object で inspect できないオブジェクトが渡ってくる
西山さんに,
http://bugs.ruby-lang.org/issues/7435#note-4
のコードが動かない,と教えて貰って調べてみると,
64bit 環境で 4 な VALUE が入った Array オブジェクトが
辿れることがわかりました.
(64bit flonum 環境では,4 はあり得ない値)
どこかと調べてみると,compile.c で
#define ADD_CATCH_ENTRY(type, ls, le, iseqv...
ko1 (Koichi Sasada)
06:42 PM Bug #5350 (Assigned): WeakRef で謎の NoMethodError
naruse (Yui NARUSE)
06:23 PM Feature #7444: Array#product_set
@marcandre, here are just some things that first came to my mind:
1. I do not think that an "Array instance method" is a good place for this function: otherwise every time a new function of multiple arguments is wanted, a new instance ...
alexeymuranov (Alexey Muranov)
07:27 AM Feature #7444: Array#product_set
> As for HOMs, they are beautiful, but their place is in the private libraries
> ...
Man, I couldn't disagree with that more. It's delegation man, delegation!
trans (Thomas Sawyer)
06:28 AM Feature #7444: Array#product_set
IF this feature will not be considered feature creep by others, with respect to
eg. Array#repeated_combination etc. (I do not possess 100% knowledge of Array /
Enumerable / Enumerator features),
THEN +1 to your variant syntax Array.pr...
Anonymous
05:01 PM Feature #4085: Refinements and nested methods
matz wrote:
> |This shouldn't work anyway. Why would we look at refinements for Integer if Fixnum has overridden those methods? This seems completely anti-OO to me. Are you saying refinements can route completely around overridden meth...
shugo (Shugo Maeda)
03:59 PM Feature #4085: Refinements and nested methods
I think I should point out that as of today, we have 20 days until code freeze for Ruby 2.0.0, and we are still trying to understand how refinements are going to work. I think this alone is evidence that the feature is still experimental... headius (Charles Nutter)
07:21 AM Feature #4085: Refinements and nested methods
@headius Thank you. I see how matz is conceiving of refinements now. Previous explanations as a means of safe monkey patching are not really accurate. It's not monkey patching. It is more akin to a macros --macros that intercept method c... trans (Thomas Sawyer)
05:53 AM Feature #4085: Refinements and nested methods
Hello Laurent,

On Sun, Dec 2, 2012 at 3:40 PM, Laurent Sansonetti
<laurent.sansonetti@gmail.com> wrote:
> changed at least a couple times. I was wondering if the core team
> (Matz?) has been working on a readable spec that co...
zzak (zzak _)
05:53 AM Feature #4085: Refinements and nested methods
Hi guys,

Sorry to hijack the conversation, but I have been quickly reading the
thread and wow, it sounds like the specifications for this feature
changed at least a couple times. I was wondering if the core team
(Matz?) has been w...
Anonymous
04:29 PM Bug #4559: Proc#== does not match the documented behaviour
On Mon, Dec 3, 2012 at 1:15 AM, SASADA Koichi <ko1@atdot.net> wrote:
> (2012/12/03 15:26), Charles Oliver Nutter wrote:
>> I believe this will be a spec change, albeit a small one. Can we
>> expect a test or rubyspec to be added f...
headius (Charles Nutter)
03:29 PM Bug #4559: Proc#== does not match the documented behaviour
I believe this will be a spec change, albeit a small one. Can we
expect a test or rubyspec to be added for the altered behavior?

- Charlie

On Wed, Nov 28, 2012 at 1:10 AM, SASADA Koichi <ko1@atdot.net> wrote:
> (2012/11/28...
headius (Charles Nutter)
04:24 PM Bug #7497 (Rejected): net/ftp.rb can't list ftp sites behind a firewall
vo.x (Vit Ondruch)
04:21 PM Bug #7497: net/ftp.rb can't list ftp sites behind a firewall
thank you zzak.
sorry again , any one can close this issue, after downloading 1.8.6 I realized that the attr_accessor :passive
is in the FTP class. so this is a good lesson as a start up to verify that it is undead a bug before reporti...
rubyhack (first last)
03:08 PM Revision 943da6d2 (git): * 2012-12-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:08 PM Revision 2c5c0760 (git): adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:55 PM Revision ef0003a4 (git): * ChangeLog: fix a typo for r38151.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
01:53 PM Bug #5024 (Third Party's Issue): ruby-mode.el syntax highlighting breaks on regular expression with quotes
nobu (Nobuyoshi Nakada)
12:43 PM Bug #5140 (Closed): Emacs ruby-mode major indentation bug with Ruby 1.9
This issue was solved with changeset r38150.
Nicolas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ruby-mode.el: fix argument indent
* misc/ruby-mode.el (ruby-b...
nobu (Nobuyoshi Nakada)
12:29 PM Bug #7500: Improve GC profiler timings on linux
And, if i understand the kernel source correctly, getrusage() and get_time(CLOCK_PROCESS_CPUTIME_ID) use the same clock source. So, I doubt this patch improve time accuracy.
Do anyone have a test result?
kosaki (Motohiro KOSAKI)
12:16 PM Bug #7500: Improve GC profiler timings on linux
AFAIK, clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts) return time included kernel running. So, clock_gettime() and ru_utime of getrusage() aren't equivalent.
kosaki (Motohiro KOSAKI)
11:32 AM Bug #7500 (Closed): Improve GC profiler timings on linux
On linux kernels, getrusage()'s precision depends on the value of HZ when the kernel was compiled. By default, HZ=250 provides a 4ms granularity.
This patch uses clock_gettime() with CLOCK_PROCESS_CPUTIME_ID when available, which prov...
tmm1 (Aman Karmani)
11:38 AM Revision 99757127 (git): * vm_exec.c: check VM_COLLECT_USAGE_DETAILS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
11:38 AM Bug #2479 (Third Party's Issue): bugs in ruby-mode
nobu (Nobuyoshi Nakada)
11:37 AM Bug #6090 (Third Party's Issue): ruby-mode.el font-lock fails with some interpolated strings
nobu (Nobuyoshi Nakada)
11:37 AM Bug #5670 (Third Party's Issue): Emacs ruby-mode syntax highlighting issue
nobu (Nobuyoshi Nakada)
11:37 AM Bug #5356 (Third Party's Issue): Add ? to ruby-operator-re
nobu (Nobuyoshi Nakada)
11:36 AM Bug #6854 (Closed): ruby-mode.el has radical changes in `ruby-deep-indent-paren' logic
Use Emacs-bundled ruby-mode.el. nobu (Nobuyoshi Nakada)
11:36 AM Bug #5141 (Closed): Inconsistent indentation in method call with args on multiple lines.
Use Emacs-bundled ruby-mode.el. nobu (Nobuyoshi Nakada)
11:33 AM Revision 5c582807 (git): * compile.c (iseq_specialized_instruction):
change condition of using `opt_send_simple'.
More method invocations can be simple.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
11:06 AM Revision 41d77571 (git): * test/ruby/test_objectspace.rb: skip RuntimeError
which says a message "can't modify frozen File".
Is that correct behavior?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
11:02 AM Revision 010b6e6a (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
11:00 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
Getting it on a clean rvm install of ruby-head with
test.rb
caller_location(0,-1)
I hope my compile is correct, other stuff seems to work fine
sam.saffron (Sam Saffron)
11:00 AM Revision fcc557a8 (git): * vm_exec.c: vm_analysis_insn should be statkc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:22 AM Revision fcbd6db8 (git): proc.c: magic number
* proc.c (rb_method_call): name a magic number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:21 AM Revision d4736bcf (git): object.c: test bits at once
* object.c (rb_obj_clone): test TAINT and UNTRUSTED bits at once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:10 AM Revision 4d73f950 (git): random.c, rational.c: make marshal methods private
* random.c (Init_Random), rational.c (Init_Rational): make marshal
methods private. [Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:03 AM Revision c4f9dd26 (git): * iseq.h: iseq_catch_table_entry::catch_type should be
Fixnum because they are pushed into Array in a compiler.
[Bug #7502]
* test/ruby/test_objectspace.rb: add a test of this issue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:25 AM Revision 17a2be29 (git): id.h.tmpl: move empty?
* template/id.h.tmpl (preserved_ids): "empty?" is not an attribute name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:23 AM Revision 1d193d92 (git): * vm_backtrace.c (vm_backtrace_to_ary): check negative size (2nd arg).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:58 AM Revision 9def7828 (git): Un-zerofill the day of month part of some entries.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
06:52 AM Revision ca4a5bd9 (git): Fix a typo in misc/ruby-additional.el.
* misc/ruby-additional.el (ruby-mode-set-encoding): Unbreak by
fixing a typo, s/set/setq/.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:14 AM Revision 38766319 (git): * compile.c (iseq_compile_each): joke shouldn't use id.h defined ids.
* id.c (Init_id): ditto.
* common.mk: fix dpendency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:43 AM Revision 983c2e87 (git): ruby-mode.el: fix argument indent
* misc/ruby-mode.el (ruby-block-end-re, ruby-delimiter)
(ruby-mode-syntax-table, ruby-parse-partial, ruby-beginning-of-indent):
merge from Emacs.
* misc/ruby-mode.el (ruby-calculate-indent): fix indentation of
argument lines in par...
nobu (Nobuyoshi Nakada)
02:43 AM Bug #7491 (Assigned): BigMath.#exp に Float、Rational を指定できない
mrkn (Kenta Murata)
02:23 AM Bug #7498 (Rejected): Optparse does not complete argument when used with :REQUIRED
#!/usr/bin/env ruby
require 'optparse'
OptionParser.new do |opts|
opts.on(:REQUIRED, "--bug", ["foo", "bar"]) do |v|
puts v
end
opts.on(:REQUIRED, "--nobug ARG", ["foo", "bar"]) do |v|
puts v
end
end.parse!
...
Gondolin (Damien Robert)
01:59 AM Bug #7495: Clean up a few calls to rb_intern()
I applied your patch. Thanks! ko1 (Koichi Sasada)
12:55 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
I agree with Luis' results and think we've just not fully debugged Eric's XP VM setup as in #7427.
With this snippet http://pastie.org/5460872 and Kosaki-san's feedback I see:
## mingw-w64 32bit gcc 4.7.2
C:\sandbox>gcc --version
...
jonforums (Jon Forums)
12:09 AM Bug #5508 (Closed): Is BigDecimal really not $SAFE?
This issue was solved with changeset r38147.
Dmitry, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): stop checking s...
mrkn (Kenta Murata)

12/02/2012

11:20 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
はい。
(もしかして、bigdecimal用の別のリポジトリがあったりします?)
kou (Kouhei Sutou)
10:54 PM Bug #7344: gem pristine bigdecimal が失敗してしまう
> で、それにあわせてbigdecimal.gemspecをこんな感じに編集します。
このパッチは trunk の ext/bigdecimal/bigdecimal.gemspec に当てれば良いのでしょうか?
mrkn (Kenta Murata)
10:52 PM Revision 488fb86a (git): * lib/rdoc/parser.rb: Improved modeline support. Patch by nobu.
* test/rdoc/test_rdoc_parser.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:14 PM Bug #7492: Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8
The segment fault is due to the wrong pack type "l!" on 64bit Windows.
Here is a patch:
~~~
diff --git a/test_dl2.rb b/test_dl2.rb.new
index 88ef086..231f082 100644
--- a/test_dl2.rb
+++ b/test_dl2.rb.new
@@ -28,7 +28,7 @@ cla...
phasis68 (Heesob Park)
12:33 PM Bug #7492: Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8
Assigning this to Aaron, thank you! zzak (zzak _)
12:22 PM Bug #7492 (Closed): Segmentation fault at DL::TestDL#test_call_double on x64 Windows 8
I can see the following segmentation fault with trunk build with x64 VC 2012 on Windows 8.

C:\work\snapshot-ms64>nmake test-all TESTS="dl/test_dl2.rb"
Microsoft(R) Program Maintenance Utility 버전 11.00.50727.1
Copyright (c) Micros...
phasis68 (Heesob Park)
08:03 PM Bug #7497: net/ftp.rb can't list ftp sites behind a firewall
sorry
Category: lib
and the correction is better writen as :
attr_accessor :passive
rubyhack (first last)
07:54 PM Bug #7497 (Rejected): net/ftp.rb can't list ftp sites behind a firewall
net/ftp.rb can't list ftp sites behind a firewall ,
to solve this issue ftp passive mode must be used , the support is in the code but needs means to activate it !
so add to the FTP class attributes to change and access passive state :...
rubyhack (first last)
06:57 PM Bug #7495 (Closed): Clean up a few calls to rb_intern()
This issue was solved with changeset r38143.
Charlie, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* array.c, enum.c, insns.def, io.c, numeric.c, parse.y, proces...
ko1 (Koichi Sasada)
03:00 PM Bug #7495 (Closed): Clean up a few calls to rb_intern()
This isn't really a bug, but it's not really a feature either so I wasn't sure what tracker to file this under. Apologies if I chose the wrong one.
This patch just cleans up a few calls to rb_intern() and replaces them with references...
Anonymous
06:19 PM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
Hello,
I just tested several native compilers on Windows 7 (without your patch) here are the results for those that define HAVE_GCC_ATOMIC_BUILTINS:
C:\Users\Luis\Code\ruby\ruby\build>gcc --version
gcc (tdm-1) 4.5.2
C:\Users\Lu...
luislavena (Luis Lavena)
10:41 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
Hmmm, if it can help, should add it by the default on mingw32? nobu (Nobuyoshi Nakada)
04:41 PM Bug #7496 (Assigned): incorrect base_dir for default gemspecs
luislavena (Luis Lavena)
04:34 PM Bug #7496 (Closed): incorrect base_dir for default gemspecs
gemspecs for default gems have incorrect path since they're installed in a subdirectory of the normal specifications path. The base_dir is dirname(dirname(loaded_from)), so using an additional subdir results in a base_dir that's "off by ... bitsweat (Jeremy Daer)
03:09 PM Revision 28f6b32e (git): * 2012-12-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:09 PM Revision 1fec21fe (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_new): stop checking string
taintness. [Bug #5508] [ruby-core:40510]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
03:02 PM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> If there's a using Christmas::Refinements appears somewhere above this code, things are different. *Both* to_s calls will see the refined to_s (ANSI.blink version). Since that version does not super, bo...
headius (Charles Nutter)
03:01 PM Feature #4085: Refinements and nested methods
trans (Thomas Sawyer) wrote:
> =begin
> ...
Correct. Your definition of Rudolph.light! does not occur in a refined context, so it is calling the normal String#to_s.
> But if elf2 did:
> ...
If this is the entire file, none of these...
headius (Charles Nutter)
02:42 PM Feature #4085: Refinements and nested methods
=begin
> "Refining a method does not force down-stream calls to see it. Only call sites with that refinement active see the method."
If that's the case then rudolph's message won't be blinky? But if so, then santa's cheer won't be blink...
trans (Thomas Sawyer)
02:05 PM Feature #4085: Refinements and nested methods
=begin
This is why refinements as decorators break Christmas present principle.
Rudolph is a library to light everything in red. Our developer, elf1, knows better then to monkey patch:
# lib/rudolph.rb
require 'ansi'
module Rudol...
trans (Thomas Sawyer)
01:07 PM Feature #4085: Refinements and nested methods
PROBLEM: reflection from within a refined scope
Several folks have stated they believe reflection from within a refined scope should reflect the refinements. I do not agree, based on a definition of refinements as scope-local.
clas...
headius (Charles Nutter)
12:14 PM Feature #4085: Refinements and nested methods
Trying to think aloud how things should be structured. Hopefully this will be helpful to others. I base this on my understanding of refinements up to this point.
# VIRTUAL HIERARCHY AS A REPRESENTATION OF REFINEMENTS
I may be start...
headius (Charles Nutter)
11:20 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> |This shouldn't work anyway. Why would we look at refinements for Integer if Fixnum has overridden those methods? This seems completely anti-OO to me. Are you saying refinements can route completely around overridden...
headius (Charles Nutter)
01:34 AM Feature #4085: Refinements and nested methods
@trans :pre :post etc. are covered by #prepend, and I am happy with it (although it's uglier than :pre).
The fundamental use cases of refinements (and monkey patching) are:
* adding new methods to existing class
* intercepting (an...
matz (Yukihiro Matsumoto)
01:10 AM Feature #4085: Refinements and nested methods
| If you think it's anti OO, you are too influenced by Java OO. Think
| of CLOS's around methods. I want refinements to be method decorators.
Ok. This is a very different sort of thing then, and really has nothing to do with safe m...
trans (Thomas Sawyer)
12:29 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50419] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Sat, 1 Dec 2012 06:46:26 +0900, "enebo (Thomas Enebo)" <tom.enebo@gmail.com> writes:
|
|
|Issue #4085 has been updated by eneb...
Anonymous
12:29 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50412] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Sat, 1 Dec 2012 04:54:20 +0900, "headius (Charles Nutter)" <headius@headius.com> writes:

|However, you go on to say that the ex...
Anonymous
02:20 PM Bug #7494 (Closed): Suppress uninitialized warning from @is_proxy_class
zzak (zzak _)
01:08 PM Revision cf4117f5 (git): * 2012-12-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@38146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:08 PM Revision a88dc95d (git): Make an internal block of Generator return nil instead of self.
* lib/generator.rb (Generator#initialize): Make an internal block
return nil instead of self. [Bug #7493]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@38145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
10:51 AM Bug #7491 (Closed): BigMath.#exp に Float、Rational を指定できない
1.9.3 から BigMath.#exp でも Fixnum、Float、Rational オブジェクトが指定できるのではないかと思うのですが、Float、Rational については現在は ArgumentError と TypeError になってしまうようです。
puts BigMath.exp(BigDecimal("1.0"), 10) # => 0.2718281828E1
puts BigMath.exp(1, 10) ...
sho-h (Sho Hashimoto)
10:28 AM Revision c1e6052b (git): * thread.c (RB_GC_SAVE_MACHINE_CONTEXT, rb_gc_save_machine_context):
extract rb_gc_save_machine_context to RB_GC_SAVE_MACHINE_CONTEXT.
NOTE: machine_regs and machine_stack_end must be set in current scope.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38144 b2dd03c8-39d4-4d8f-98ff-823fe69b...
Masaya Tarui
09:57 AM Revision f6f388a5 (git): * array.c, enum.c, insns.def, io.c, numeric.c, parse.y, process.c,
range.c: use prepared IDs.
A patch from charliesome (Charlie Somerville).
[Bug #7495]
* common.mk: add dependency to id.h.
* common.mk: replace ID_H_INCLUDES with id.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38143 b2dd0...
ko1 (Koichi Sasada)
08:56 AM Revision d64a73e1 (git): revert r38141 for stack problem
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
08:45 AM Revision 1e88b393 (git): * thread.c (RB_GC_SAVE_MACHINE_CONTEXT, rb_gc_save_machine_context):
Don't set machine_regs and machine_stack_end with a different scope.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
07:57 AM Revision c5824f38 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
07:48 AM Revision 98eaac15 (git): * lib/weakref.rb (rdoc): Clean up usage, add example,
note ArgumentError on WeakRef.new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:45 AM Revision 5c4e025f (git): * gc.c (WeakMap): Add doc for internal reference, use lib/weakref.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
04:53 AM Feature #6284: Add composition for procs
proc composition is not commutative, so the operator should:
1. not imply commutativity
2. not conceal the order of application
i.e. the operator should be visually asymmetrical with clear directionality
e.g. `<<`, `<<<`, `<-`
...
rits (First Last)
03:38 AM Feature #6321: Find and repair bad bytes in encodings, without transcoding
naruse (Yui NARUSE) wrote:
> What is the use case?
> ...
Hopefully the given use-cases are sufficient to get this feature into Ruby 2.0, but here's one that I have:
In my applications, I process output that is produced by malware. T...
subwindow (Erik Peterson)
03:30 AM Revision 9b711fc7 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:00 AM Feature #7487: Cutting through the issues with Refinements
Probably I don't understand your true intention, but your proposal includes new syntax with new keyword, we cannot add it by 2.0. Besides that, there's no way to optimize 'cut' in compile-time, if I understand it correctly.
Matz.
matz (Yukihiro Matsumoto)
02:39 AM Feature #7487: Cutting through the issues with Refinements
Same way as you have it now. The difference is behind the scenes.
module M
refine String do
def foo; "foo"; end
end
end
Under the hood this would create the equivalent of:
cut M::Refinements::String < Str...
trans (Thomas Sawyer)
01:23 AM Feature #7487: Cutting through the issues with Refinements
In message "Re: [ruby-core:50448] [ruby-trunk - Feature #7487] Cutting through the issues with Refinements"
on Sun, 2 Dec 2012 00:40:07 +0900, "trans (Thomas Sawyer)" <transfire@gmail.com> writes:

|I didn't understand such re...
Anonymous
12:53 AM Feature #7487: Cutting through the issues with Refinements
On 01.12.2012 16:40, trans (Thomas Sawyer) wrote:
>
> Issue #7487 has been updated by trans (Thomas Sawyer).
>
>
> I didn't understand such response at first. Now, I think I realize possible confusion. I am proposing that cuts...
The8472 (Aaron G)
12:40 AM Feature #7487: Cutting through the issues with Refinements
I didn't understand such response at first. Now, I think I realize possible confusion. I am proposing that cuts be used as underlying implementation for refinements. The whole `cut A < C` construct does not need to be exposed --it is not... trans (Thomas Sawyer)
12:29 AM Feature #7487: Cutting through the issues with Refinements
Because we have made decision fore refinement before freeze.
Matz.
matz (Yukihiro Matsumoto)
02:58 AM Bug #7489 (Closed): Kernel.spawn sometimes executes string directly
Kernel.spawn throws an exception in certain cases where it shouldn't.
It seems to attempt to execute the command directly, rather than passing
it to the shell.
See the demo script below. What should happen, when I run this script,
...
jcaesar (Julius Caesar)
02:47 AM Revision 8f7a275c (git): add ticket ref: [ruby-dev:46665] [Bug #7468]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
02:21 AM Bug #7276: TestFile#test_utime failure
This still fails as of r38131 on my Win7 32bit system. Given Shirosaki-san's comment, what's preventing this from being quickly fixed on trunk?
Since this bug is not made visible by the rubyinstaller CI (build slave location) I will m...
jonforums (Jon Forums)
02:18 AM Feature #7486 (Rejected): Cutting through the issues with Refinements
vo.x (Vit Ondruch)
02:12 AM Feature #7488: Receiving object_id in object creation probes
authorNari (Narihiro Nakamura) wrote:
> # I'm sorry, I don't have a Mac so I do not execute dtrace's tests...
Try SystemTap [1] if you are on Linux.
[1] http://sourceware.org/systemtap/
vo.x (Vit Ondruch)
01:14 AM Feature #1586: Including a module already present in ancestors should not be ignored
When I made this change in early 1.9, it caused huge incompatibility.
I had to fix many bundled programs. So it shouldn't be a minor change.
Matz.
matz (Yukihiro Matsumoto)

12/01/2012

11:24 PM Feature #7488 (Assigned): Receiving object_id in object creation probes
Hi.
I want to get a object id in object creation probes to know a creation
point of a suspect object.
I've wrote a patch for above.
https://gist.github.com/4182140
Could you check it?
# I'm sorry, I don't have a Mac so I do n...
authorNari (Narihiro Nakamura)
10:24 PM Revision f242cefc (git): * lib/rdoc/parser.rb: Parse files with a -*- rdoc -*- modeline
* test/rdoc/test_rdoc_parser.rb: Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:19 PM Feature #7487: Cutting through the issues with Refinements
This is too big, but refinements aren't? trans (Thomas Sawyer)
01:31 PM Feature #7487: Cutting through the issues with Refinements
And it's too big to next minor.
Matz.
matz (Yukihiro Matsumoto)
09:55 AM Feature #7487: Cutting through the issues with Refinements
Sorry, cuts are too late for ruby 2.0.0. We started feature freeze last month. drbrain (Eric Hodel)
09:13 AM Feature #7487: Cutting through the issues with Refinements
Here is a slightly more updated version of the RCR: https://github.com/rubyworks/cuts/blob/master/RCR.textile trans (Thomas Sawyer)
08:55 AM Feature #7487 (Rejected): Cutting through the issues with Refinements
=begin
In issue #4085, there has been a long somewhat contentious discussion about Refinements. While it seems that everyone agrees they have merit, no one seems to have a concrete idea about how they should actually work. There are all...
trans (Thomas Sawyer)
09:23 PM Feature #4085: Refinements and nested methods
On 30.11.2012 20:41, headius (Charles Nutter) wrote:
> respond_to? brings up a really good point: there's lots of methods that might need special refinement care...but I think it makes things more confusing rather than less.
>
> L...
The8472 (Aaron G)
06:46 AM Feature #4085: Refinements and nested methods
Could someone make a summary of the current proposed refinements feature in the next couple of days once the churn of corner cases slows down a bit? I have been reading through this and I have three observations:
1. It takes a long t...
enebo (Thomas Enebo)
05:16 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> I mean that all refinements appear in the method lookup 1.blah, but
> ...
This is exactly right.
>
> ...
A refines X, and no other refinements are active. super calls X#blah.
> > |module B; refin...
headius (Charles Nutter)
05:07 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> I guess your idea is similar to ko1's idea using prepend to implement refinements.
> ...
Yes, this doesn't work unfortunately. The super chain is a source of endless problems. Again, C# extension methods do...
headius (Charles Nutter)
05:02 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> Hi,
> ...
I believe you are incorrect. FooImpl1 and FooImpl2 are not simply implementation details...they're critical parts of the OO hierarchy.
Refinements are supposed to localize monkey-patching, but what you w...
headius (Charles Nutter)
04:54 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> |This is incredibly confusing to me. Why are the String refinements active within the refine Array block? That module:
> ...
I'm still very confused by this. You said this won't work:
module R
refine String do
...
headius (Charles Nutter)
04:41 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> From usability perspective, all retrospective methods e.g. respond_to?
> ...
respond_to? brings up a really good point: there's lots of methods that might need special refinement care...but I think it makes things m...
headius (Charles Nutter)
03:59 AM Feature #4085: Refinements and nested methods
> Since there still remain undefined corner case behavior in refinements, and the time is running out, I decided not to introduce full refinement for Ruby 2.0. The limited Ruby 2.0 refinement spec will be:
>
> * refinements are file...
The8472 (Aaron G)
09:15 PM Revision 2ba9cdce (git): * gc.h (SET_MACHINE_STACK_END): add volatile for preventing
harmful optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:31 PM Bug #7356: ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
wanabe さん、情報ありがとうございます。
下記のバージョンで再測定してみました。
* ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux]
* ruby 2.0.0dev (2012-11-01 trunk 37411) [i686-linux] <- 2.0.0-preview1
* ruby 2.0.0dev (2012-11-29 trunk 37962) [i686-linux] <...
yanoh (Yutaka Yanoh)
08:07 PM Revision 5bdd0393 (git): * iseq.c (rb_iseq_line_trace_each): iterate `line' event only.
* test/ruby/test_iseq.rb: add a test for this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:24 PM Bug #5986 (Closed): Segmentation Fault
This issue was solved with changeset r38120.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
io.c: recurse for the argument
* io.c (rb_io_puts): recurse for ...
nobu (Nobuyoshi Nakada)
06:44 PM Bug #5986: Segmentation Fault
Since that to_ary method creates new arrays for each time, rb_exec_recursive() can't catch it. nobu (Nobuyoshi Nakada)
06:53 PM Bug #7481 (Closed): gem cleanup が正常に完了しない
Committed, thank you kou! drbrain (Eric Hodel)
02:40 PM Bug #7481 (Assigned): gem cleanup が正常に完了しない
RubyGemsのリポジトリの方に修正するコミットをしておきました。drbrainに確認してもらったらtrunkの方に入ります!(drbrainが入れてくれるはず!)
https://github.com/rubygems/rubygems/commit/24fdcd744683bcc0931e895dd4eba41c725e112f
kou (Kouhei Sutou)
01:55 PM Bug #7481: gem cleanup が正常に完了しない
あ、再現できた気がします。一番最後のcleanupでmongo-1.7.1がuninstallできないのが問題という事ですね。
% /tmp/local/bin/gem install mongo
Fetching: i18n-0.6.1.gem (100%)
Successfully installed i18n-0.6.1
Fetching: multi_json-1.4.0.gem (100%)
Successfully installed mu...
kou (Kouhei Sutou)
01:42 PM Bug #7481: gem cleanup が正常に完了しない
gem listもらえませんか!?
手元でも試してみます。
kou (Kouhei Sutou)
06:16 PM Feature #6539 (Closed): public and private for core methods
This issue was solved with changeset r38113.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
vm_method.c: make initialize methods private
* id.c (Init_...
nobu (Nobuyoshi Nakada)
05:47 PM Revision 921385a6 (git): * vm_trace.c: add TracePoint#inspect.
* test/ruby/test_settracefunc.rb: add a test for this change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:13 PM Bug #6742 (Closed): Emacs compilation-shell-minor-mode misconfiguration
This issue was solved with changeset r38107.
Jean-Christophe, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
inf-ruby.el: fix compilation-shell-minor-mode
* misc/...
nobu (Nobuyoshi Nakada)
03:26 PM Revision e78cf44a (git): * vm_trace.c (rb_tracepoint_new): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:25 PM Revision d9254071 (git): * 2012-12-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:25 PM Revision 17b19ca0 (git): * tool/gen_dummy_probes.rb: add mode name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:25 PM Revision 66fd9d44 (git): adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:22 PM Revision 82b1bfe4 (git): make-snapshot: PATH_SEPARATOR
* tool/make-snapshot (package): now PATH_SEPARATOR is needed for
id2token.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:54 PM Revision 0efa7abc (git): * test/rubygems/test_gem_specification.rb (test_emits_zulu_timestamps_properly): too old bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:54 PM Revision 3faee652 (git): time.c, vm_method.c: update rdoc
* time.c (time_{mdump,dump,mload,load): update rdoc.
* vm_method.c (obj_respond_to_missing): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:52 PM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
I guess -march=i486 enable __sync_val_compare_and_swap. kosaki (Motohiro KOSAKI)
09:11 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
@nobu Why do we have to bother old broken compiler? shyouhei (Shyouhei Urabe)
08:41 AM Bug #7485: ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
__sync_or_and_fetch wasn't available in Apple derivative gcc. nobu (Nobuyoshi Nakada)
07:38 AM Bug #7485 (Closed): ruby cannot build on mingw32 or FreeBSD 8 due to missing __sync_val_compare_and_swap
mingw32 GCC has the other atomic builtins but not this one. The attached patch checks for the GCC builtins used in ruby_atomic.h but not checked for by configure. drbrain (Eric Hodel)
01:35 PM Revision ccebd9b0 (git): vm_method.c: private
* vm_method.c (basic_obj_respond_to): call even if private.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:52 PM Feature #7427: Update Rubygems
I can build 2.0.0-preview1 on 32bit XP SP3 (right click My Computer -> properties) using the mingw-32-4.6.2 toolchain. `make test` has 0 errors, `make test-all` has 7 failures, 3 errors, 86 skips.
Unfortunately, our mingw64-32-4.7.2 t...
jonforums (Jon Forums)
10:37 AM Feature #7427: Update Rubygems
drbrain (Eric Hodel) wrote:
> set and ruby -v: http://paste.segment7.net/ace.html
Looks ok.

> ...
Bad link..should be http://paste.segment7.net/acf.html (missing 7). This in GEM_PATHS is troubling but may be a red-herring since...
jonforums (Jon Forums)
09:27 AM Feature #7427: Update Rubygems
set and ruby -v: http://paste.segment7.net/ace.html
gem env: http://paste.segment.net/acf.html
drbrain (Eric Hodel)
08:21 AM Feature #7427: Update Rubygems
Odd. On both my trunk (mingw-w64 gcc 4.7.2) and ruby_1_9_3 (mingw.org gcc 4.6.2) builds, HAVE_GCC_ATOMIC_BUILTINS is defined and all is well on 32bit Win7. I think something else is interferring.
I'm going to try to talk a friend int...
jonforums (Jon Forums)
07:39 AM Feature #7427: Update Rubygems
Filed #7485 drbrain (Eric Hodel)
07:35 AM Feature #7427: Update Rubygems
It seems that using rubyinstaller downloaded its own compiler, so I don't think it got in the way. Since configure doesn't check for these GCC builtins I will submit a patch to check for them momentarily. drbrain (Eric Hodel)
07:30 AM Feature #7427: Update Rubygems
drbrain (Eric Hodel) wrote:
> The RubyInstaller build tools are fantastic!
> ...
That is weird, mingw-w64 provides that, which is the compiler we have been using for Ruby 2.0 (GCC 4.7.2)
Perhaps your other mingw-inst-get installatio...
luislavena (Luis Lavena)
07:26 AM Feature #7427: Update Rubygems
The RubyInstaller build tools are fantastic!
Unfortunately I fail at exactly the same spot, undefined reference to __sync_val_compare_and_swap_4.
Looking closer, ruby_atomic.h checks HAVE_GCC_ATOMIC_BUILTINS and assumes the one I n...
drbrain (Eric Hodel)
07:00 AM Feature #7427: Update Rubygems
Don't worry about installing a toolchain and double check that you have a minimal PATH and clean env vars; no pointers to an existing cygwin or mingw install.
We've made the build recipes self-contained so you don't have to worry abou...
jonforums (Jon Forums)
06:36 AM Feature #7427: Update Rubygems
=begin
I have Windows XP running in VirtualBox. (I don't have a license for a newer version.) I believe I have it set up for 32bit operation, but I can't see how to check in VirtualBox or Windows.
I downloaded mingw-inst-get-201204...
drbrain (Eric Hodel)
06:07 AM Feature #7427: Update Rubygems
> r38074 was good. r38071 is fine. The message may not be completely correct, but without a windows environment it is difficult to tell. (I tried setting one up with MinGW this morning but failed.)
Eric, what windows version were you ...
jonforums (Jon Forums)
04:37 AM Feature #7427: Update Rubygems
Thank you for your assistance, usa!
I imported all these fixes and your RDoc fix.
r38074 was good. r38071 is fine. The message may not be completely correct, but without a windows environment it is difficult to tell. (I tried setti...
drbrain (Eric Hodel)
02:24 AM Feature #7427 (Closed): Update Rubygems
I hope... I've fixed... all problems on Windows... cause by rubygems.....
Eric, check these revisions and merge your tree:
r38064, r38065, r38066, r38071, r38074, r38075 and r37077
I'm uncertain about r38071 and r38074.
Eric, p...
usa (Usaku NAKAMURA)
12:19 PM Revision 095022cb (git): * test/ruby/test_backtrace.rb: add a test for
Thread::Backtrace::Location#inspect.
BTW, tests for `caller_locations' are not enough.
Any volunteers are welcome.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:09 PM Revision c906e879 (git): * vm_backtrace.c (location_inspect_m): add
Thread::Backtrace::Location#inspect.
It same as loc_obj.to_s.inspect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:24 AM Revision 01eb117b (git): io.c: recurse for the argument
* io.c (rb_io_puts): recurse for the argument itself, not converted
array elements. [ruby-core:42444] [Bug #5986]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:06 AM Revision af4ceeff (git): * misc: ignore pre-compiled emacs lisp files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:01 AM Revision 4f0c9b2b (git): marshal.c: private methods
* marshal.c (w_object, r_object0): call private marshal methods.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:52 AM Revision 4090ec10 (git): * lib/rubygems/commands/cleanup_command.rb: Fix cleanup command for
multiple gems. [ruby-trunk - #7481] by Kouhei Sutou
* test/rubygems/test_gem_commands_cleanup_command.rb: Test for above.
* lib/rubygems.rb: Autoload Gem::Source to prevent test failures
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
drbrain (Eric Hodel)
09:30 AM Revision 018d8261 (git): gc.c: suppress warnings
* gc.c (add_slot_local_freelist, slot_sweep, mark_locations_array):
suppress unused-value warnings, even with valgrind enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:17 AM Revision 9c1b3161 (git): complex.c, time.c: make marshal methods private
* complex.c (Init_Complex), time.c (Init_Time): make marshal methods
private. [Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:16 AM Revision 82ec3de0 (git): object.c: make remove_instance_variable public
* object.c (Init_Object): make remove_instance_variable public.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:16 AM Revision cf9d17a3 (git): vm_method.c: make initialize methods private
* id.c (Init_id), template/id.h.tmpl: add initialize_{copy,clone,dup}
and respond_to_missing?.
* vm_method.c (rb_method_entry_make): make above methods private.
[Feature #6539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3811...
nobu (Nobuyoshi Nakada)
09:15 AM Revision 0a8575c8 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:57 AM Feature #7486: Cutting through the issues with Refinements
Please disregard this issue. Something went wrong with the RD syntax, so I just created a new issue b/c I saw no way to edit, and thus fix this issue's text.
trans (Thomas Sawyer)
08:50 AM Feature #7486 (Rejected): Cutting through the issues with Refinements
=begin
In issue #4085, there has been a long somewhat contentious discussion about Refinements. While it seems that everyone agrees they have merit, no one seems to have a concrete idea about how they should actually work. There are all...
trans (Thomas Sawyer)
08:54 AM Bug #7197: Error: test_tls_v1_2(OpenSSL::TestSSL)
fwiw, I still get this on trunk with ubuntu 12.10
uname -a:
Linux ux31a 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:26:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
zzak (zzak _)
08:29 AM Revision 89ff44e2 (git): * test/ruby/test_thread.rb: move ConditionVariable related test
into test/thread/test_cv.rb.
* test/thread/test_cv.rb: new file.
* test/thread/test_cv.rb (test_condvar_empty_signal): new tests.
* test/thread/test_cv.rb (test_condvar_empty_broadcast): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
kosaki (Motohiro KOSAKI)
08:28 AM Revision afbbcd13 (git): * test/ruby/test_thread.rb (test_cv_wait_deadlock): enable
cv deadlock test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:28 AM Revision 1f1db611 (git): * lib/thread.rb (ConditionVariable): use hash instead of array for
@waiters.
* test/thread/test_queue.rb (test_sized_queue_and_wakeup): remove
a test because @waiters no longer have a chance to duplicated. Now it's
a hash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38109 b2dd03c8-39d4-4d8f-9...
kosaki (Motohiro KOSAKI)
08:17 AM Revision f9aef184 (git): ruby-electric.el: use kill-region
* misc/ruby-electric.el (ruby-electric-curlies): use kill-region
instead of interactive command delete-backward-char.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:13 AM Revision 5852d901 (git): inf-ruby.el: fix compilation-shell-minor-mode
* misc/inf-ruby.el (inferior-ruby-mode): fix the
compilation-shell-minor-mode configuration. a patch by
j2petkov (Jean-Christophe Petkovich) in [ruby-core:46518].
[Bug #6742]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3810...
nobu (Nobuyoshi Nakada)
08:08 AM Revision 214938f1 (git): * ChangeLog: fix a typo for r38075.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
06:38 AM Feature #7426 (Closed): Update Rdoc
drbrain (Eric Hodel)
06:05 AM Revision 0f37c951 (git): dir.c: use NAMLEN
* dir.c (glob_helper): use NAMLEN() to tell the length of d_name
instead of strlen(), which can access beyond the boundary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:48 AM Revision 6e46c048 (git): * lib/rubygems/specification.rb: Don't add default gems to $LOAD_PATH
as they are already there.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
04:41 AM Feature #4276: Allow use of quotes in symbol syntactic sugar for hashes
Sorry, this feature is too late for 2.0.0 drbrain (Eric Hodel)
02:31 AM Feature #4276: Allow use of quotes in symbol syntactic sugar for hashes
This would improve a lot of my code that's punctuated with `{ foo: bar, :'hoge' => piyo }`. Switching syntax is a mental and visual interruption.
I hope Ruby 2 supports this quoted-symbol syntax from the first day it's released, so ev...
bitsweat (Jeremy Daer)
04:23 AM Feature #6762: Control interrupt timing
OK. I see the logic in using the term "interrupt" if you are actually
trying to unify exceptions from other threads with handling of OS
signals. However, both of these are generally thought of as being
asynchronous events.

...
brent (Brent Roman)
03:58 AM Revision f593911d (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:57 AM Revision 946ab45d (git): markdown.rb: \r
* lib/rdoc/markdown.rb (RDoc::Markdown): use \r instead of raw control
code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:35 AM Revision bfd5921e (git): * re-added r38053 that is reverted by r38061. Problems by r38053
are resolved by r38096. r38096 removed GEM_SKIP configuration.
The below is ChangeLog of r38053:
* defs/default_gems: Add base directory column.
* tool/rbinstall.rb:
- Install .gemspecs of default gem to
#{GEM_HOME}/specificat...
Sutou Kouhei
03:30 AM Revision 3f50943b (git): test_gem_specification.rb: suppress warnings
* test/rubygems/test_gem_specification.rb (with_syck): we all know
that syck has been removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:39 AM Bug #7484 (Closed): Fiddle::Importer incompatibility with DL::Importer
As described in r38054, Fiddle::Importer is not compatible with DL::Importer about :stdcall.
I hope attached patch fixed the issue.
ngoto (Naohisa Goto)
02:28 AM Bug #7482: test_system_redirect_win(TestSystem) failure on Windows 8
Ah, I should check these Win8 tickets, but I have no time before the release
limit of preview 2.
Committers, please check the tickets and fix them (if you can) before the release...
usa (Usaku NAKAMURA)
02:13 AM Revision afb02bbe (git): * variable.c (rb_class_path_no_cache): add a function to get the class
path without caching the computed path. Some classes are frozen, and
will raise an exception without this.
* probes.d (cmethod-entry, cmethod-return): separate cmethods from
regular methods to match set trace func.
* probes_helper....
tenderlovemaking (Aaron Patterson)
02:02 AM Feature #6670: str.chars.last should be possible
duerst (Martin Dürst) wrote:
> For with_index in particular, wouldn't it make sense to either add it to Enumerable or deprecate it on Enumerator? That would eliminate one more difference.
If we add Enumerable#with_index, we could wri...
yhara (Yutaka HARA)
01:28 AM Feature #6670: str.chars.last should be possible
I often use StringIO as an IO substitute for tests. I would prefer matching behavior.
You can get the last line by stringio.string.lines.last. Is this acceptable?
drbrain (Eric Hodel)
01:57 AM Bug #7440 (Rejected): IO#lines etc. should return Array
This issue is now included in #6670. yhara (Yutaka HARA)
12:57 AM Bug #7483 (Closed): Fiddle::Function::STDCALL is never defined even on WIN32
This issue was solved with changeset r38073.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/fiddle/extconf.rb, ext/fiddle/function.c
(Fiddle::Func...
ngoto (Naohisa Goto)
12:44 AM Bug #7483 (Closed): Fiddle::Function::STDCALL is never defined even on WIN32
In ext/fiddle/function.c, Fiddle::Function::STDCALL is defined only when "#ifdef FFI_STDCALL" is true. However, in ffi.h, FFI_STDCALL is declared as an enumerated type, not a macro, and it is always false even on x86 WIN32. According to ... ngoto (Naohisa Goto)
12:49 AM Revision d3c6187a (git): * test/rdoc/test_rdoc_options.rb: Windows drive letters are
case-insensitive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:42 AM Revision 5db8f999 (git): * lib/rubygems.rb: Search for gem deps file up the directory tree.
* test/rubygems/test_gem.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:34 AM Revision 18a37744 (git): * test/runner.rb: Set GEM_HOME, GEM_PATH and GEM_SKIP to empty set.
With default_gem support in RubyGems GEM_SKIP prevents loading of
built-in gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)

11/30/2012

11:43 PM Feature #1586: Including a module already present in ancestors should not be ignored
As Clay said, I think the example I gave previously is not the way to go.
The important aspect is the ability to include a module at different levels in the hierarchy.
If C < B < A, we should be able to include a module M for each ...
marcandre (Marc-Andre Lafortune)
07:04 PM Feature #1586: Including a module already present in ancestors should not be ignored
This would cause compatibility issue, in some cases, when a module is
included twice but it expects it never get called twice or more by
super. Or, if a method of the module does not call super, the super
calls stops unexpectedly.
...
nobu (Nobuyoshi Nakada)
10:58 PM Bug #7482 (Closed): test_system_redirect_win(TestSystem) failure on Windows 8
I found the following test failure on Windows 8.
test_system_redirect_win(TestSystem) [c:/work/snapshot-mg64/test/ruby/test_system.rb:123]:
[ruby-talk:258939].
<false> expected but was
<true>.
I think the test_system_redirect_wi...
phasis68 (Heesob Park)
10:52 PM Bug #4911 (Closed): timer_thread_function() が thead unsafe
This issue was solved with changeset r38063.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_core.h (rb_vm_struct): add thread_destruct_lock field.
*...
kosaki (Motohiro KOSAKI)
10:51 PM Bug #7475: Unexpected behavior of Module#append_features on singleton class
Another quick set of observations from this morning:
class Baz
class << self
Const = 'Const'
@@foo = 'foo'
end
end
Baz.class_variables.inspect # => [:@@foo]
Baz.singleton_class.clas...
ernie (Ernie Miller)
10:56 AM Bug #7475 (Closed): Unexpected behavior of Module#append_features on singleton class
=begin
A more involved explanation is available at ((<URL:http://erniemiller.org/2012/11/29/ruby-tidbit-include-vs-extend-with-module-class-variables/>))
In short, the handling of class variables (and constants) when a module is exte...
ernie (Ernie Miller)
10:29 PM Revision 7c407e2a (git): * compile.c (ADD_CATCH_ENTRY): add a cast to fix SEGV with x64 mingw
on Windows 8. Without cast, 0 might be non zero value at higher bits
in rb_ary_new3().
[ruby-core:50258] [Bug #7456]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
09:46 PM Bug #7481 (Closed): gem cleanup が正常に完了しない
gem cleanup を実行すると先頭の gem のみ cleanup に成功し、以降の gem の cleanup に失敗してしまいます。
% yes | gem cleanup
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0.8.1)
WARN: Clearing out unresolved specs.
Please report a...
hsbt (Hiroshi SHIBATA)
08:53 PM Feature #4085: Refinements and nested methods
Em 29-11-2012 23:42, Yukihiro Matsumoto escreveu:
> | class C
> | def foo; p :C; end
> | end
> | module M1
> | refine String do def foo; p :M1; super; end; end
> | end
> | module M2
> | include M1
> | ...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:41 PM Feature #4085: Refinements and nested methods
> |* Performance expectations. Is performance being completely ignored here, or shall we set some goals for the implementation? I appreciate your desire to make Ruby more expressive, but that doesn't pay the bills at the end of the day ... jonforums (Jon Forums)
12:23 PM Feature #4085: Refinements and nested methods
Your mail seems to be failed to synced into bugs.ruby-lang.org, so I
reply by e-mail.

2012/11/30 Yukihiro Matsumoto <matz@ruby.or.jp>:
> |So, the current behavior of main.using need not be changed, right?
> |Technically, the curre...
shugo (Shugo Maeda)
11:23 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50357] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 11:02:10 +0900, "trans (Thomas Sawyer)" <transfire@gmail.com> writes:

|> I was thinking of M2->M1->C, but M2->...
Anonymous
11:23 AM Feature #4085: Refinements and nested methods
Hi,

In message "Re: [ruby-core:50355] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 10:43:04 +0900, "trans (Thomas Sawyer)" <transfire@gmail.com> writes:

|Then I'd say they refined the ...
Anonymous
11:04 AM Feature #4085: Refinements and nested methods
headius (Charles Nutter) wrote:
> By stacking, I assume you mean something like this:
> ...
I guess your idea is similar to ko1's idea using prepend to implement refinements.
What happens when refinements are used in a different order...
shugo (Shugo Maeda)
10:58 AM Feature #4085: Refinements and nested methods
> |What happens if the same class is refined both in a module and another module included into that module?
> ...
This can't be b/c then you can't refine a previous refinement. Thus it breaks modularity (black box) principle. E.g. if I ...
trans (Thomas Sawyer)
10:42 AM Feature #4085: Refinements and nested methods
=begin
@matz
> It makes refinement decoration quite unpredictable. For example,
>
> module M
> refine Integer do
> def /(n); self / n.to_f; end
> end
> end
> using M
> 1 / 2 # => you expect 0.5
>
> Bu...
trans (Thomas Sawyer)
10:23 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50338] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 04:05:15 +0900, "headius (Charles Nutter)" <headius@headius.com> writes:

|> Any more questions?
|
|Yes, lots! ...
Anonymous
10:00 AM Feature #4085: Refinements and nested methods
Thanks for your answering my questions. I understand your intention.
matz wrote:
> In message "Re: [ruby-core:50299] [ruby-trunk - Feature #4085] Refinements and nested methods"
> ...
So, the current behavior of main.using need not...
shugo (Shugo Maeda)
06:23 AM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50338] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Fri, 30 Nov 2012 04:05:15 +0900, "headius (Charles Nutter)" <headius@headius.com> writes:

|I assume this is so that refinement ...
Anonymous
04:35 AM Feature #4085: Refinements and nested methods
As headius wants substantive questions, here are some
* What is the plan to make sure, that this feature is compatible to future versions? You introduce a behavior now which depends on 'using' being at the beginning of every file, whi...
Gibheer (Stefan Radomski)
04:05 AM Feature #4085: Refinements and nested methods
Anonymous wrote:
> In message "Re: [ruby-core:50299] [ruby-trunk - Feature #4085] Refinements and nested methods"
> ...
I assume this is so that refinement methods will see each other, yes?
module X
refine String do
def foo;...
headius (Charles Nutter)
01:53 AM Feature #4085: Refinements and nested methods
On Nov 29, 2012, at 4:56, "steveklabnik (Steve Klabnik)" <steve@steveklabnik.com> wrote:

> Wasn't a 'feature freeze' declared on October 24th? Why are major additions to the language being modified post-freeze, so close to the deadli...
drbrain (Eric Hodel)
01:09 AM Feature #4085: Refinements and nested methods
@rosenfeld -- yeah, that sounds like it would work fine, as long as there wasn't a perf impact just by having the code there in MRI w/ it turned off. myronmarston (Myron Marston)
01:05 AM Feature #4085: Refinements and nested methods
Myron, congrats for the lead maintainer position in RSpec. You're really doing a great job there.
With regards to your suggestion, I think I've read another comment suggesting something like you want but most probably more doable for ...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:42 AM Feature #4085: Refinements and nested methods
=begin
@headius Your idea of having refinements in class hierarchy is very interesting. It is remarkably similar to Cuts. If you are not familiar with cuts see http://rubyworks.github.com/cuts/rcr.html (yea an RCR, remember those!). In f...
trans (Thomas Sawyer)
12:41 AM Feature #4085: Refinements and nested methods
I find refinements to be a _very_ interesting idea, but, as with many others, it concerns me that there aren't rubyspecs behind it, there's still undefined edge cases, the main language maintainers are still discussing how it should work... myronmarston (Myron Marston)
08:13 PM Revision 1b6c1cb6 (git): * Fixed commit reference for r38083
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
07:59 PM Bug #7443 (Closed): Method redefinition from Fiddle is causing a test failure (MinGW)
This issue was solved with changeset r38055.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ChangeLog: mention to ML and ticket: [ruby-core:50194] [Bug #7443]
usa (Usaku NAKAMURA)
07:59 PM Feature #5174 (Feedback): Export ruby_init_prelude()
I don't think exporting it is a nice idea.
What's wrong with ruby_options(0, 0)?
nobu (Nobuyoshi Nakada)
07:30 PM Feature #7427: Update Rubygems
drbrain, good work!
The current trunk seems to work on many platforms [1], but unfortunately, usa told me that it does not work on windows [2].
[1] http://rubyci.org/
[2] http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/317...
mame (Yusuke Endoh)
07:23 PM Feature #6762: Control interrupt timing
(2012/11/30 18:59), Brent Roman wrote:
> Koichi,
>
> Sorry about misspelling your name in my previous post. :-(

Kosaki-san is also a member of this discussion.

> In reference to:
> ----------------
> * thraed.c: a...
ko1 (Koichi Sasada)
07:23 PM Feature #6762: Control interrupt timing
How about:

Thread.allow_exception(RuntimeError => :on_blocking){
while true
...

- brent

--
Posted via http://www.ruby-forum.com/.
brent (Brent Roman)
07:23 PM Feature #6762: Control interrupt timing
Koichi,

Sorry about misspelling your name in my previous post. :-(

In reference to:
----------------
* thraed.c: add Thread.async_interrupted?.
This method check any defered async interrupts.

Ah, I want to say...
brent (Brent Roman)
06:31 PM Feature #6762 (Feedback): Control interrupt timing
I renamed it as [ruby-core:50147] says.
and I also remove/add method:
* thread.c: remove Thread.check_interrupt.
This method is difficult to understand by name.
* thraed.c: add Thread.async_interrupted?.
This method ch...
ko1 (Koichi Sasada)
06:29 PM Feature #6762: Control interrupt timing
I like this proposal.
It looks very similar to one I made five years ago on this thread:

www.ruby-forum.com/topic/135822

The key, of course, is to associate a (hidden) queue with each thread
for incoming exceptions from ot...
brent (Brent Roman)
06:28 PM Feature #6762 (Closed): Control interrupt timing
This issue was solved with changeset r38046.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c: rename Thread.control_interrupt
to Thread.async_i...
ko1 (Koichi Sasada)
05:53 PM Feature #6762: Control interrupt timing
(2012/11/26 13:53), kosaki (Motohiro KOSAKI) wrote:
> Ko1 suggested me defer_async_interrupt or async_interrupt_timing(...){...}.
> Both looks acceptable to me.
>
> async_interrupt_timing(X => :immediate)
> async_interrupt_t...
ko1 (Koichi Sasada)
07:10 PM Revision b1920c03 (git): * parse.y (parser.utf8): remove unused property.
* parse.y (UTF8_ENC): remove unused macro.
* parse.y (parser_tokadd_utf8): use rb_utf8_encoding() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:10 PM Revision b1b7c389 (git): suppress warnings: uninitialized variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:10 PM Revision 9207474f (git): suppress warnings: unused variables
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:10 PM Revision 8539a917 (git): Use RUBYOPT to overwrite original RUBYOPT ENV
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:05 PM Bug #7480 (Closed): tracepoint deadlock on exception without :raise
=begin
to reproduce
TracePoint.new { |tp| p [tp.lineno, tp.event, tp.raised_exception] }.enable { 0 / 0 }
=end
zzak (zzak _)
06:55 PM Revision c62ec3ae (git): * lib/sync.rb (Sync_m#sync_synchronize): add Thread.async_interrupt_timing
for protecting from async interrupt.
* lib/sync.rb (Sync_m#sync_lock): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:55 PM Revision 028ca79f (git): * lib/thread.rb (ConditionVariable#broadcast): s/RuntimeError/StandardError/
* lib/thread.rb (ConditionVariable#signal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
06:55 PM Revision 3357d88a (git): * lib/thread.rb (SizedQueue#pop): rewrite by using ConditionVariable.
* lib/thread.rb (SizedQueue#push): ditto.
* lib/thread.rb (SizedQueue#max): ditto.
* lib/thread.rb (Queue#pop): ditto.
* lib/thread.rb (Queue#push): ditto.
* lib/thread.rb (SizedQueue#num_waiting): adopt the above changes.
* lib/thread....
kosaki (Motohiro KOSAKI)
06:47 PM Revision e742a446 (git): * thread.c (Thread.async_interrupt_timing): fix RDoc.
:never is not used any more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:44 PM Bug #7479 (Third Party's Issue): undefined symbol: rb_thread_blocking_region_begin
on linux
[root@localhost ~]# ruby -v
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
[root@localhost ~]# ruby binlog.rb
ruby: symbol lookup error: /usr/local/rvm/gems/ruby-1.9.3-p327/gems/ruby-binlog-0.1.8/lib/binlog.so...
kevinbin (hong bin)
06:28 PM Bug #4285 (Closed): Ruby don't have asynchrounous exception safe syntax and It should have.
This issue was solved with changeset r38046.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* thread.c: rename Thread.control_interrupt
to Thread.async_i...
ko1 (Koichi Sasada)
06:25 PM Feature #6895 (Closed): TracePoint API
This issue was solved with changeset r38045.
Koichi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_trace.c: Documentation for TracePoint API
[ruby-core:472...
zzak (zzak _)
01:22 AM Feature #6895 (Assigned): TracePoint API
I didn't receive your comment from ruby-core.
trans (Thomas Sawyer) wrote:
> > I can't get points.
> ...
tp.event has always symbol or raise an exception.
> > caller or caller_locations is not enough?
> ...
I understand your poi...
ko1 (Koichi Sasada)
06:08 PM Feature #6670: str.chars.last should be possible
knu (Akinori MUSHA) wrote:
> Here's a patch to deprecate #lines, #bytes, #chars and #codepoints of IO-likes.
Maybe we can change StringIO#lines to return Array now because it does not have problems like IO and ARGF.
(problems = retu...
yhara (Yutaka HARA)
06:02 PM Revision 5697f69b (git): * iseq.c: add RubyVM::InstructionSequence (ISeq) inspection methods.
* ISeq#path returns path of this ISeq written.
* ISeq#absolute_path returns absolute path.
* ISeq#label returns label (method name and so on).
* ISeq#base_label returns base label (see Thread::Backtrace::Location).
* ISeq#first_lineno re...
ko1 (Koichi Sasada)
05:59 PM Revision 57a83c4c (git): * include/ruby/ruby.h (rb_event_flag_t): Maintain integer precision
for clang error (VALUE aka unsigned long vs unsigned int)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:54 PM Revision 646eeab1 (git): * test/rubygems/test_gem_dependency_installer.rb: Use Gem.read_binary
instead of File.binread for ruby 1.8 compatibility in the rubygems
source repository. Updates r38071
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:43 PM Bug #7342 (Closed): String#<=> checks for a #to_str method on other but never uses it?
This issue was solved with changeset r38044.
Joshua, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
string.c: compare with to_str
* string.c (rb_str_cmp_m): try t...
nobu (Nobuyoshi Nakada)
05:43 PM Bug #7478 (Rejected): Do not include vararg.h - always include stdarg.h
Cause : https://gist.github.com/4172330
It seems that stdarg.h is included in many separate C files unconditionally:
array.c, class.c, error.c, sprintf.c, include/ruby/ruby.h, include/ruby/encoding.h - all includes stdarg.h without c...
funny_falcon (Yura Sokolov)
05:39 PM Revision a113ab64 (git): * thread.c (rb_threadptr_interrupt_mask, async_interrupt_timing_func):
merge into them into rb_thread_s_async_interrupt_timing.
* thread.c (rb_thread_s_async_interrupt_timing): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:39 PM Revision 279cd29b (git): * thread.c (rb_threadptr_interrupt_mask): add argument check.
* thread.c (async_interrupt_timing_arg_check_i): helper function
for the above.
* test/ruby/test_thread.rb (test_async_interrupt_timing_invalid_argument):
test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38081 b...
kosaki (Motohiro KOSAKI)
05:39 PM Revision 6ca32179 (git): * lib/thread.rb (ConditionVariable#broadcast): protect from
async interrupt by using Thread.async_interrupt_timing.
* lib/thread.rb (ConditionVariable#signal): ditto.
* lib/thread.rb (ConditionVariable#wait): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38080 b2dd03c8-39d4-4d8f-98ff-...
kosaki (Motohiro KOSAKI)
05:14 PM Revision a1d837cc (git): * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): raise if assert_in_out_err misused.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:14 PM Revision 8f9b451d (git): assert_in_out_err with block ignores test_stdout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:11 PM Revision ad01ea42 (git): * test/rdoc/test_rdoc_rubygems_hook.rb
(TestRDocRubygemsHook#test_setup_unwritable): 1. check the existance
of the file(directory) before touch it. 2. remove test
file(directory) after the test. see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
U.Nakamura
05:00 PM Revision 12f2f737 (git): [EXPERIMENTAL]
* iseq.c: add following two methods.
* ISeq#line_trace_all returns all line traces (line numbers)
* ISeq#line_trace_specify(pos, set) set `pos'th line event to
specified_line event (if set is true).
These features are introduced for ...
ko1 (Koichi Sasada)
04:51 PM Revision 60317fa8 (git): * test/rubygems/test_gem_dependency_installler.rb: gems are of course
binary files, so use a binary reading method when reading it.
see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:27 PM Revision 952beb5f (git): * lib/rubygems/command.rb (Gem::Command#get_all_gem_names_and_versions):
who assumes that the pathname of a gem never contains ':' ?
yes, on Unixen pathnames can contain ':', and on Windows they almost
certainly contain ':'. see [ruby-core:50388].
* lib/rubygems/requirement.rb (Gem::Requirement::PATTERN...
U.Nakamura
03:57 PM Revision 4bb1bfa0 (git): * ext/fiddle/extconf.rb, ext/fiddle/function.c
(Fiddle::Function::STDCALL): FFI_STDCALL is not a macro, but an enumeration. [ruby-core:50398] [Bug #7483]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
03:25 PM Feature #7476 (Closed): missing "IP_TRANSPARENT" constant for IP sockets.
There is a missing constant for IP_TRANSPARENT on linux.
to set the TPROXY on a socket I use:
s.setsockopt(Socket::SOL_IP, 19, 1)
The 19 suppose to be as a constant named: IP_TRANSPARENT or Socket::IP_TRANSPARENT.
elico (Eliezer Croitoru)
03:16 PM Revision 7c1a19b6 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:11 PM Revision a847bedb (git): * test/rubygems/test_gem_installer.rb
(TestGemInstaller#test_check_executable_overwrite_other_non_gem):
on Windows, rubygems always generate a wrapper .bat file when
installing a file into bin, so testing no-overwrite a wrapper file
and a non-wrapper file is nonsence. ...
U.Nakamura
03:07 PM Revision b688029a (git): * ChangeLog: remove duplicated lines for r38042-r38044.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:05 PM Revision ed13a84a (git): * 2012-12-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 PM Revision b20e7eb9 (git): * ChangeLog: fix a typo for r38064.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:05 PM Revision f125ec9a (git): * ChangeLog: fix a typo for r38063.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:43 PM Revision ec7d935c (git): * test/rubygems/test_gem_installer.rb
(TestGemInstaller#test_check_executable_overwrite_default_bin_dir):
if the executable to be overwritten was generated by rubygems, the
error messsage differs from the only copied one's.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
U.Nakamura
02:29 PM Revision 053ca25f (git): * test/rubygems/test_gem_ext_ext_conf_builder.rb
(TestGemExtExtConfBuilder::test_class_make): reading with binary mode
of course introduce \r on Windows. see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:15 PM Revision bcef7159 (git): * lib/rubygems/specification.rb
(Gem::Specification.validate_permissions): don't check executablity
of the source on Windows. they will be wrapped to .bat files when
installing. see [ruby-core:50388].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38064 b2dd...
U.Nakamura
02:06 PM Bug #7465 (Closed): Rdoc for CGI (html generation example)
This issue was solved with changeset r38033.
Marcus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi.rb: CGI example for HTML generation
Patch by Marcus...
zzak (zzak _)
01:53 PM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/30 10:25), sam.saffron (Sam Saffron) wrote:
> @ko1 will try to write some tests next week.

Thank you so much.

> On first go I got a segfault:

Cool!
Reproduce code?

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
10:23 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
@ko1 will try to write some tests next week.
On first go I got a segfault:
(pry):1: [BUG] backtrace_collect: unreachable
ruby 2.0.0dev (2012-11-30) [i686-linux]
-- Control frame information -----------------------------------...
sam.saffron (Sam Saffron)
01:53 PM Bug #7326 (Closed): Time.c doc improvements
This issue was solved with changeset r38032.
Bernd, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* time.c: Documentation improvements, grammar and formatting
P...
zzak (zzak _)
01:52 PM Revision 15b25acd (git): * vm_core.h (rb_vm_struct): add thread_destruct_lock field.
* thread.c (Init_Thread): ditto.
* thread.c (rb_vm_gvl_destroy): ditto.
* thread.c (thread_start_func_2): make sure vm->running_thread
don't point to dead thread.
* thread.c (timer_thread_function): close a race against thead
destru...
kosaki (Motohiro KOSAKI)
01:52 PM Revision 2e72d1c3 (git): revert r35486 (add rb_thread_t#yeiling field). because it doesn't help
to close a race.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
01:02 PM Bug #7471 (Open): character class has duplicated range warning for "" =~ /[\w\W]/
While I worked around this, the warning itself looks like a bug in our regexp engine (Onigmo?). knu (Akinori MUSHA)
01:01 PM Bug #7471 (Closed): character class has duplicated range warning for "" =~ /[\w\W]/
This issue was solved with changeset r38028.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Stop using a regexp that causes a false warning.
* lib/abbrev.rb...
knu (Akinori MUSHA)
08:06 AM Bug #7471 (Closed): character class has duplicated range warning for "" =~ /[\w\W]/
=begin
The warning seems bogus, \w and \W do not overlap.
$ cat test.rb
$-w = true
""=~/[\w\W]/
$ make runruby
/Users/drbrain/Work/svn/ruby/trunk/test.rb:3: warning: character class has duplicated range: /[\w\W]/
...
drbrain (Eric Hodel)
01:00 PM Revision 5d33dad1 (git): * revert r38053 because it causes too many test failures.
if you've already installed r38053 or later, remove the installed
lib/ruby/gems/2.0.0 directory and reinstall this revision or later.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:50 PM Revision 759619ca (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:27 PM Feature #7472: Add a mechanism to remove objects from the GC cycle
@charlie looking at the code and the heap design I think there is very little cheating we could do here.
I vote to close for now.
Perhaps some mechanism for optimising the freelist could give the GC a boost:
Something like reo...
sam.saffron (Sam Saffron)
11:48 AM Feature #7472: Add a mechanism to remove objects from the GC cycle
What happens if an object in the 'permanent' objectspace references an object in the ephemeral objectspace?
Now this essentially becomes a generational GC and brings along all the implementation problems of one.
Anonymous
10:57 AM Feature #7472: Add a mechanism to remove objects from the GC cycle
> if you mean "move to a different memory address" this will cause crashes.
no, not at all, leave it exactly where it is, just have objectspace partitioned in 2. the refs that are "skipped" don't get scanned in the lazy sweep.
sam.saffron (Sam Saffron)
09:59 AM Feature #7472: Add a mechanism to remove objects from the GC cycle
sam.saffron (Sam Saffron) wrote:
> How about we add.
> ...
What do you mean by "copy"?
If you mean "move to a different memory address" this will cause crashes. If a C extension has a reference to the object and you move it you will...
drbrain (Eric Hodel)
08:47 AM Feature #7472 (Rejected): Add a mechanism to remove objects from the GC cycle
For typical rails apps there is a huge largely static object graph in memory. Requests come in, some objects are added, and the GC runs.
The blocking nature of the GC introduces a jitter that stops all execution.
In our typicalis...
sam.saffron (Sam Saffron)
12:09 PM Revision d07346a1 (git): * lib/test/unit/parallel.rb (Test::Unit::Worker.run): wrap LoadError
because it's Gem::LoadError sometimes. see [Bug #6882]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:54 AM Bug #7469 (Assigned): WEBrick "Could not determine content-length of response body. Set content-length of the response..." even when content-length is set
=begin
I cannot reproduce it with the example code given or by removing (({response.body = ''})), (({response.content_length = 0})) or both lines with latest trunk.
=end
drbrain (Eric Hodel)
10:41 AM Bug #7469: WEBrick "Could not determine content-length of response body. Set content-length of the response..." even when content-length is set
We were seeing this as well when using webrick with Rails. However, putting
gem 'webrick', '= 1.3.1'
in the Gemfile seemed to fix it, which is strange, since the standard library one is also v1.3.1. Is it possible that the gem is...
steveklabnik (Steve Klabnik)
05:01 AM Bug #7469 (Closed): WEBrick "Could not determine content-length of response body. Set content-length of the response..." even when content-length is set
Minimal demonstration code:
########
require 'webrick'
class BugDemonstrator < WEBrick::HTTPServlet::AbstractServlet
def do_GET(request, response)
response.body = ''
response.status = 204
response.content_length ...
meta (mathew murphy)
11:50 AM Revision bb4410a2 (git): * thread.c: TracePoint#self returns invoking/exitting thread object
at thread_begin/end event.
* test/ruby/test_settracefunc.rb: fix test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
11:22 AM Revision d0a4fecf (git): * test/ruby/memory_status.rb (Memory::Win32): sorry, ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:15 AM Revision 88201504 (git): * test/ruby/memory_status.rb (Memory::Win32): rescue non libffi user, such as ko1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
10:59 AM Revision 7ca1927a (git): * ChangeLog: mention to ML and ticket: [ruby-core:50194] [Bug #7443]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
10:57 AM Revision 77df72a6 (git): * test/ruby/memory_status.rb (Memory::Win32): use fiddle instead of dl,
but I doubt fiddle is not compatible with dl. (if you are interested,
see the diff.)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:45 AM Revision f807e1b8 (git): * defs/default_gems: Add base directory column.
* tool/rbinstall.rb:
- Install .gemspecs of default gem to
#{GEM_HOME}/specifications/default/.
- Update files parameter of .gemspecs by relative path from
library directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
Sutou Kouhei
10:29 AM Revision 57540a49 (git): * vm_trace.c:
tracepoint_attr_return_value (TracePoint#return_value):
include `:b_return` for method doc
tracepoint_enable_m, tracepoint_disable_m (#enable/#disable):
don't have block argument, document block scope
git-svn-id: svn+ssh://ci...
zzak (zzak _)
10:28 AM Bug #7474 (Rejected): I am getting undefined symbol: rb_enable_interrupt when running event machine
I would like to cross report
https://github.com/eventmachine/eventmachine/issues/389
Clearly this breakage could be "on purpose" not sure who should be fixing it.
sam.saffron (Sam Saffron)
10:08 AM Revision 5a82fca5 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
09:55 AM Revision 6df1b3a9 (git): * vm_trace.c (tracepoint_disable_m, tracepoint_enable_m):
fix block parameter.
No arugment should be given to a block which is passed
to TracePoint#enable (and disable).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:50 AM Revision fcd4ecd5 (git): vm_backtrace.c: suppress warning
* vm_backtrace.c (rb_debug_inspector_open): suppress
uninitialized-variable warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:50 AM Revision ed0aa14f (git): zlib.c: suppress warning
* ext/zlib/zlib.c (zstream_run): suppress unused-but-set-variable
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:50 AM Revision 578deb65 (git): zlib.c: suppress warning
* ext/zlib/zlib.c (zlib_mem_alloc): suppress unused-value warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:28 AM Revision 719e0cd5 (git): * thread.c: rename Thread.control_interrupt
to Thread.async_interrupt_timing.
The option name `:never' is also changed to `:defer'.
[ruby-core:50375] [ruby-trunk - Feature #6762]
* thread.c: remove Thread.check_interrupt.
This method is difficult to understand by name.
* th...
ko1 (Koichi Sasada)
09:25 AM Revision f2fee844 (git): * vm_trace.c: Documentation for TracePoint API
[ruby-core:47243] [Feature #6895]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
09:02 AM Feature #7473 (Closed): new events for TracePoint thread_begin/end, b_call/b_end
On the trunk, there are new 4 events for TracePoint.
* vm_trace.c: add events
* :thread_begin - hook at thread beggining.
* :thead_end - hook at thread ending.
* :b_call - hook at block enter.
* :b_return - hook at bl...
ko1 (Koichi Sasada)
08:43 AM Revision 020cc0ad (git): string.c: compare with to_str
* string.c (rb_str_cmp_m): try to compare with to_str result if
possible before calling <=> method. [ruby-core:49279] [Bug #7342]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:43 AM Revision c08785a3 (git): string.c: use rb_check_funcall
* string.c (rb_str_cmp_m): use rb_check_funcall instead of respond_to
and call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:43 AM Revision 1dbc720c (git): string.c: always fixed value
* string.c (rb_str_cmp_m): return fixed value, one of -1,0,+1 always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:19 AM Revision 981f9c52 (git): vm_dump.c: no methods in segv handler
* vm_dump.c (rb_vm_bugreport): get rid of calling methods in sigsegv
handler. based on a patch by charliesome (Charlie Somerville)
[ruby-core:49573] [Bug #7402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38041 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
07:06 AM Revision b5d8a0b3 (git): * NEWS: Added RubyGems 2.0.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
06:24 AM Revision 8e2839ba (git): parse.y: false usage of local variable
* parse.y (parser_yylex): fix false usage of local variable, it cannot
appear in fname state [ruby-core:49659] [Bug #7408]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 AM Revision 69690434 (git): * lib/rubygems/package.rb: Load YAML for building gems.
* test/rubygems/test_gem_commands_contents_command.rb: Sort expected
output of default gem contents. Re-fixes r38004 and r38005.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
06:15 AM Revision 0d672c18 (git): * vm_trace.c (set_trace_func): Formatting of params and events
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
05:45 AM Revision 421d4f62 (git): * lib/net/http.rb: Net::HTTP::Patch to list of HTTP Request Classes
Patch by Ryunosuke SATO [Fixes #217 on github]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
05:42 AM Revision 25b0a58b (git): parse.y: LVAR_USED
* parse.y (LVAR_USED): use MSB of ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:41 AM Revision 7e42e55e (git): parse.y: IS_lex_state_for
* parse.y (IS_lex_state_for): new macro similar to IS_lex_state() but
for arbitrary variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:06 AM Revision 90d43225 (git): * lib/cgi.rb: CGI example for HTML generation
Patch by Marcus Stollsteimer [ruby-core:50303] [Bug #7465]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:53 AM Revision 088b04e8 (git): * time.c: Documentation improvements, grammar and formatting
Patch by Bernd Homuth [ruby-core:49203] [Bug #7326]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
04:48 AM Revision 24c0d076 (git): * lib/rdoc.rb: Set version to 4.0.0.preview2
* lib/rubygems.rb: Set version to 2.0.0.preview2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
04:32 AM Revision 368d99b3 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:30 AM Revision 42968fe6 (git): * lib/rubygems/commands/setup_command.rb: Remove old files on install
of RubyGems. (not by rbinstall.rb).
* test/rubygems/test_gem_commands_setup_command.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
04:01 AM Revision 3c4633a3 (git): Stop using a regexp that causes a false warning.
* lib/abbrev.rb (Abbrev#abbrev): Stop using a regexp that causes a
false warning. [Bug #7471]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
03:56 AM Revision 4078d42b (git): Fix a line matching problem in Abbrev.abbrev(words, "prefix").
* lib/abbrev.rb (Abbrev#abbrev): A fixed string prefix pattern
should only match the beginning of each word, not the beginning
of every line in it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38027 b2dd03c8-39d4-4d8f-98ff-823f...
Akinori MUSHA
03:56 AM Revision aac52e2b (git): Improve test data in test_abbrev.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:35 AM Revision 06c3b413 (git): Add tests for lib/abbrev.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:28 AM Revision aee295fc (git): * lib/rubygems/spec_fetcher.rb: Allow prerelease spec fetching to fail
for bundler.
* test/rubygems/test_gem_spec_fetcher.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
03:21 AM Revision 8137152e (git): * lib/rake/backtrace.rb: Removed duplication in
Rake::Backtrace::SUPPRESSED_PATHS
* test/rake/test_rake_backtrace.rb: Skip tests when tmpdir is in the
suppressed pattern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
02:35 AM Bug #7466 (Closed): Hashの大きさによってHash#keysでvalueが返ることがある
This issue was solved with changeset r38000.
Shin-ichiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (compile_array_): refix r37991 remove assertio...
naruse (Yui NARUSE)
01:09 AM Bug #7466 (Assigned): Hashの大きさによってHash#keysでvalueが返ることがある
naruse (Yui NARUSE)
02:11 AM Revision 9e449748 (git): * revert r37993 to avoid SEGV in tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
01:39 AM Revision 696ebcd8 (git): * lib/rdoc/ri/driver.rb: Relaxed matching for pages to be more
user-friendly.
* test/rdoc/test_rdoc_ri_driver.rb: Test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:35 AM Revision e553663c (git): value.rb: adjust indent
* ext/fiddle/lib/fiddle/value.rb (Fiddle::ValueUtil#wrap_arg): adjust
indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 1459cabe (git): value.rb: remove DL
* ext/fiddle/lib/fiddle/value.rb (Fiddle::ValueUtil#wrap_arg): remove
deprecated require.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:29 AM Revision d8da36dd (git): Refix r38002: capture_subprocess_io also doesn't fork
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:01 AM Revision 96748600 (git): * lib/rdoc/markdown.rb: Fixed warnings with -w
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
12:54 AM Revision b479ca0c (git): Use capture_subprocess_io instead of capture_io. fix r38002
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:38 AM Revision 4f451ddd (git): vm_backtrace.c: RB_GC_GUARD
* include/ruby/ruby.h (RB_GC_GUARD_PTR): add note.
* vm_backtrace.c (backtrace_to_str_ary): use RB_GC_GUARD() instead of
RB_GC_GUARD_PTR() which has no effect.
(backtrace_to_location_ary): ditto.
(vm_backtrace_to_ary): ditto.
git-...
nobu (Nobuyoshi Nakada)
12:23 AM Revision 82e6c75d (git): * lib/rubygems/commands/contents_command.rb: Sort output from command.
Replaces r38004, r38005
* test/rubygems/test_gem_commands_contents_command.rb: ditto.
* lib/rubygems/defaults.rb: Use Gem.path_separator for jruby support.
* lib/rubygems/path_support.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.or...
drbrain (Eric Hodel)

11/29/2012

11:34 PM Revision 09af9d7f (git): * lib/rdoc/generator/darkfish.rb: Silenced warning
* test/rdoc/test_rdoc_rdoc.rb: ditto
* lib/rdoc/markup/parser.rb: Use byteslice when available for
performance
* test/rdoc/test_rdoc_markup_parser.rb: Test for above
* lib/rdoc/test_case.rb: ditto
...
drbrain (Eric Hodel)
11:23 PM Feature #4085: Refinements and nested methods
In message "Re: [ruby-core:50299] [ruby-trunk - Feature #4085] Refinements and nested methods"
on Thu, 29 Nov 2012 15:02:03 +0900, "shugo (Shugo Maeda)" <redmine@ruby-lang.org> writes:

|> * refinements are file scope
|> * o...
Anonymous
09:56 PM Feature #4085: Refinements and nested methods
=begin
Sorry, I didn't realize that the form was submitted because redmine is being a bit slow today. This comment was a duplicate of my previous one, please ignore this one.
=end
steveklabnik (Steve Klabnik)
09:56 PM Feature #4085: Refinements and nested methods
Wasn't a 'feature freeze' declared on October 24th? Why are major additions to the language being modified post-freeze, so close to the deadline for an actual release? steveklabnik (Steve Klabnik)
08:43 PM Feature #4085: Refinements and nested methods
Yeah, "using" at file scope will mean a bit of boilerplate to specify it across several files, but since there are no leaking abstractions I think new proposal answers all concerns about debugging and readability.
And in future releas...
brainopia (Ravil Bayramgalin)
08:19 PM Feature #4085: Refinements and nested methods
@matz, I like the suggestion of "using" being file scoped, although I don't understand why you want it to be applied to top-level object only... Would you mind in explaining why you think this is more interesting or would simplify things? rosenfeld (Rodrigo Rosenfeld Rosas)
06:59 PM Feature #4085: Refinements and nested methods
@trans I am thinking of combination of require and using, but I don't want to put half baked idea into Ruby 2.0.
So I leave it to the future.
Matz.
matz (Yukihiro Matsumoto)
06:31 PM Feature #4085: Refinements and nested methods
=begin
> refinements are file scope
That's a very interesting and significant recalibration of refinements. On one hand it certainly simplifies the whole scoping issue. On the other, would it mean we would have to reiterate `using` f...
trans (Thomas Sawyer)
06:09 PM Feature #4085: Refinements and nested methods
Hello,
I followed the discussion of refinements not as close as most others commenting here, but the state I saw till now was a bit disturbing. As I understand it, there are some definition, implementation and performance problems in ...
Gibheer (Stefan Radomski)
05:43 PM Feature #4085: Refinements and nested methods
The last two comments here again confirm my view that we should not add refinements to Ruby 2.0. Apparently it is not even clear to the people developing Ruby itself what the feature means. If there is ambiguity and questions like this h... dbussink (Dirkjan Bussink)
03:02 PM Feature #4085: Refinements and nested methods
matz (Yukihiro Matsumoto) wrote:
> Since there still remain undefined corner case behavior in refinements, and the time is running out, I decided not to introduce full refinement for Ruby 2.0. The limited Ruby 2.0 refinement spec will b...
shugo (Shugo Maeda)
01:56 PM Feature #4085: Refinements and nested methods
Since there still remain undefined corner case behavior in refinements, and the time is running out, I decided not to introduce full refinement for Ruby 2.0. The limited Ruby 2.0 refinement spec will be:
* refinements are file scope
...
matz (Yukihiro Matsumoto)
11:14 PM Bug #5353: TLS v1.0 and less - Attack on CBC mode
=begin
This could be an option:
Index: test/openssl/test_ssl.rb
===================================================================
--- test/openssl/test_ssl.rb (revision 37996)
+++ test/openssl/test_ssl.rb (working copy)
@@...
nahi (Hiroshi Nakamura)
11:10 PM Revision a22bb18e (git): * gc.c : remove a unused function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
11:02 PM Revision 6b627e6c (git): fix a revisited typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
10:56 PM Revision 59770bf9 (git): * gc.c (rb_objspace_call_finalizer): finalize_deferred may free up
a object which is reachable from a part after this function,
e.g. ruby_vm_destruct(). [ruby-dev:46647] [Bug #7452]
* test/ruby/test_gc.rb (test_finalizing_main_thread): add a test
for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
authorNari (Narihiro Nakamura)
10:54 PM Bug #7463 (Closed): OpenSSL::TestSSL#test_npn_* fail with "string contains null byte" on big-endian machines
This issue was solved with changeset r37996.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/ossl_ssl.c (ssl_npn_encode_protocol_i): fix byte...
ngoto (Naohisa Goto)
12:29 PM Bug #7463 (Closed): OpenSSL::TestSSL#test_npn_* fail with "string contains null byte" on big-endian machines
On Solaris10 running in sparc64 CPU, during make test-all, the following 4 tests raise "ArgumentError: string contains null byte". Patch attached fix the bug.
OpenSSL::TestSSL#test_npn_protocol_selection_ary = 0.05 s = E
OpenSSL::T...
ngoto (Naohisa Goto)
10:44 PM Revision c8637940 (git): * thread.c (rb_thread_interrupted): avoid warning of
implicit conversion.
* thread.c (rb_threadptr_execute_interrupts): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
10:35 PM Bug #6141 (Feedback): rails-3.2.2+1.9.3p125 の環境で SEGV が発生
すいません、私にassignしたばっかりに放置されてしまいました。。。で、今見てもさっぱりわからないので、再現したらまた教えてください。 nahi (Hiroshi Nakamura)
10:35 PM Revision 0c3f23ae (git): * vm_backtrace.c: add GC guards.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:28 PM Revision 4db83403 (git): [EXPERIMENTAL: NEED DISCUSS]
* vm_trace.c: add events
* :thread_begin - hook at thread beggining.
* :thead_end - hook at thread ending.
* :b_call - hook at block enter.
* :b_return - hook at block leave.
This change slow down block invocation.
Please try and giv...
ko1 (Koichi Sasada)
10:28 PM Bug #4408 (Third Party's Issue): Net::SSH connections are subject to plaintext recovery due to lack of CTR mode
Indeed. Closing this as TPI. Added CTR test at r37994 for making sure we can use CTR. nahi (Hiroshi Nakamura)
10:20 PM Bug #4332 (Third Party's Issue): Some seemingly random segfaults
Thanks for the confirmation. Closing. nahi (Hiroshi Nakamura)
10:05 PM Bug #4418: OpenSSL::PKey::DH#public_key
I like to keep ext/openssl just reflects OpenSSL API but we already have some exceptions in API for ease of use.
I postponed this to "next minor" but as we talked at RubyConf, we can try it at openssl gem (vaporgem ATM.)
nahi (Hiroshi Nakamura)
10:02 PM Revision 2dc5e625 (git): Imported minitest 4.3.2 (r8027)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
09:53 PM Bug #3817: current ruby-openssl impl wrongly utilizes CRYPTO_EX_DATA in X509_STORE
Postpone this issue again. Let us (nahi and emboss) know if you seem to be bitten by this. nahi (Hiroshi Nakamura)
08:48 PM Revision 213ba524 (git): Fix typo of r38004
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:34 PM Revision e818b24c (git): Sort th result to compare multiple lines
The order of the lines is depend on Dir.glob's result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:16 PM Revision d1d4490a (git): * lib/rake/*: Updated to rake 0.9.5
* test/rake/*: ditto.
* NEWS: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:15 PM Bug #7466 (Closed): Hashの大きさによってHash#keysでvalueが返ることがある
This issue was solved with changeset r37991.
Shin-ichiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
compile.c: hash must be paired
* compile.c (compile_array...
nobu (Nobuyoshi Nakada)
04:23 PM Bug #7466 (Closed): Hashの大きさによってHash#keysでvalueが返ることがある
=begin
jpmobileのRuby 2.0対応をやっていてわかったのですが、添付のようなHashでkeysの戻り値が途中でvalueになってしまい、それ以降valueが返るようになります。
% ruby -v
ruby 2.0.0dev (2012-11-29 trunk 37974) [x86_64-linux]
% ruby google.rb
[1040450,
(snip)
1041201...
conceal_rs (Shin-ichiro OGAWA)
07:07 PM Bug #7467: lib/mkmf.rb merge_lib fails on larger sets of libraries
here is a link to a working patch: https://github.com/tokaido/tokaido-build/blob/master/patches/darwin/1.9.3-p327/fix_merge_libs.patch mpapis (Michal Papis)
05:42 PM Bug #7467 (Closed): lib/mkmf.rb merge_lib fails on larger sets of libraries
running:
merge_libs(["-lncurses", "-ltinfo", "-lssl", "-lcrypto", "-lz", "-lreadline", "-ltermcap", "-lyaml"],["-lcrypto", "-lssl", "-lcrypto", "-lz"],[])
fails with an exception
I have tried a bit and it works fine with a lot s...
mpapis (Michal Papis)
06:22 PM Revision 40bae2f6 (git): Run another process to avoid failure when objspace is already loaded
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:55 PM Revision 97094484 (git): * vm.c: add a return hook when a method raises an exception.
* probes_helper.h: look up klass and method if none are provided.
* eval.c: update macro usage.
* vm_eval.c: ditto.
* vm_insnhelper.c: ditto.
* test/dtrace/test_function_entry.rb: test for change.
git-svn-id: svn+ssh://ci.ruby-lang....
tenderlovemaking (Aaron Patterson)
05:50 PM Feature #6823: Where/how should ruby-mode issues be reported?
vote to remove ruby-mode.el. nobu (Nobuyoshi Nakada)
05:45 PM Bug #7190 (Closed): warning: already initialized constant の書式
This issue was solved with changeset r37990.
Tsuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
variable.c: show namespace
* variable.c (rb_const_set): show...
nobu (Nobuyoshi Nakada)
05:35 PM Revision 4556a9ec (git): * compile.c (compile_array_): refix r37991 remove assertion:
it is true only if type == COMPILE_ARRAY_TYPE_HASH.
[ruby-dev:46658] [Bug #7466]
* vm.c (m_core_hash_from_ary): add assertion instead of above.
* vm.c (m_core_hash_merge_ary): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
naruse (Yui NARUSE)
05:15 PM Bug #7449 (Closed): Rdoc for obj.object_id
This issue was solved with changeset r37987.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: Documentation for GC, GC::Profiler, ObjectSpace, and
...
zzak (zzak _)
10:12 AM Bug #7449: Rdoc for obj.object_id
"return a fixnum" is not a specification of #object_id so the more generic "integer" is better. drbrain (Eric Hodel)
05:18 AM Bug #7449: Rdoc for obj.object_id
eric, you mean Fixnum right?
Or change rb_obj_id implementation to return INT2NUM((SIGNED_VALUE)obj);
zzak (zzak _)
05:12 PM Feature #6670: str.chars.last should be possible
We don't have much time left before 2.0 to decide how to change IO#lines, #chars, etc. .
Can we deprecate them for now as a first step as proposed above?
knu (Akinori MUSHA)
02:13 PM Feature #6670: str.chars.last should be possible
yhara (Yutaka HARA) wrote:
> For String, the impact will be limited.
> ...
For with_index in particular, wouldn't it make sense to either add it to Enumerable or deprecate it on Enumerator? That would eliminate one more difference.
duerst (Martin Dürst)
05:11 PM Bug #7420 (Closed): Writeable pipe and timeout tests are failing (MinGW)
This issue was solved with changeset r37984.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
test_io_wait.rb: Bug #7420
* test/io/wait/test_io_wait.rb (TestI...
nobu (Nobuyoshi Nakada)
05:07 PM Bug #5350: WeakRef で謎の NoMethodError
Could someone help me understand WeakMap?
I'm looking for a good example, or use-case for it to use in documentation.
Thank you!
zzak (zzak _)
05:05 PM Revision 0e0a8244 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:55 PM Revision 6a631b7b (git): * 2012-11-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:55 PM Revision 584e0526 (git): fix indent and typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:04 PM Bug #7465 (Closed): Rdoc for CGI (html generation example)
I "modernized" the example for HTML generation a little,
it now produces HTML4 Strict, validated with the W3C validator
(there only remain warnings for missing charset information;
an ACTION attribute and a <p> element had to be added...
stomar (Marcus Stollsteimer)
03:54 PM Bug #7464 (Closed): minitest 4.3.2 in r37967 breaks RDoc tests
drbrain (Eric Hodel)
03:53 PM Bug #7464: minitest 4.3.2 in r37967 breaks RDoc tests
Fixed by r37974 thank you naruse drbrain (Eric Hodel)
01:10 PM Bug #7464 (Closed): minitest 4.3.2 in r37967 breaks RDoc tests
=begin
With r37966:
$ svnversion
37966
$ make all test-all TESTS='minitest rdoc'
[…]
Finished tests in 7.686270s, 279.0690 tests/s, 677.8320 assertions/s.
2145 tests, 5210 assertions, 0 failures, 0 errors,...
drbrain (Eric Hodel)
02:10 PM Feature #7457 (Closed): GC.stat to return "allocated object count" and "freed object count"
Finally, I introduce two keys.
* total_allocated_object: total allocated object number.
* total_freed_object: total freed object number.
I remove "heap_" prefix because this information is not about current "heap_".
Give ...
ko1 (Koichi Sasada)
01:59 PM Feature #7457: GC.stat to return "allocated object count" and "freed object count"
(2012/11/29 5:06), bitsweat (Jeremy Kemper) wrote:
> The ruby-prof gem supports object allocation profiling for 1.8.x (REE patches). The REE patches provide rb_os_allocated_objects and ObjectSpace.allocated_objects. Ideally, we would ...
ko1 (Koichi Sasada)
08:53 AM Feature #7457: GC.stat to return "allocated object count" and "freed object count"
Could you commit it?

Thanks!
authorNari (Narihiro Nakamura)
05:06 AM Feature #7457: GC.stat to return "allocated object count" and "freed object count"
Yes!! A million times yes. Tracking *total* allocations makes it possible to profile Ruby code by object creation instead of time. This is very useful, often more so than profiling process time, because reducing excessive object creation... bitsweat (Jeremy Daer)
04:31 AM Feature #7457 (Closed): GC.stat to return "allocated object count" and "freed object count"
How about to return "allocated object count" and "freed object count"?
The following patch enable to show "total allocated object number"
and "total freed (deallocated) object number".
pp GC.stat #=>
{:count=>0,
:heap_used=>12,...
ko1 (Koichi Sasada)
01:54 PM Revision 36c40166 (git): * ext/openssl/ossl_ssl.c (ssl_npn_encode_protocol_i): fix byte order
issue on big-endian architecture [ruby-core:50292] [Bug #7463]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
01:25 PM Revision 40a44254 (git): Add issue ref to the previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Hiroshi Nakamura
01:24 PM Revision 361f6b25 (git): * test/openssl/test_cipher.rb (test_ctr_if_exists): add CTR mode test
if underlying OpenSSL supports it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Hiroshi Nakamura
12:50 PM Revision 421314cf (git): * vm_method.c (rb_method_entry_make): add a method entry with
VM_METHOD_TYPE_REFINED to the class refined by the refinement if
the target module is a refinement. When a method entry with
VM_METHOD_TYPE_UNDEF is invoked by vm_call_method(), a method with
the same name is searched in refinemen...
shugo (Shugo Maeda)
12:44 PM Bug #7462 (Closed): x86_64-linux build failure after r37951
It seems make distclean fixed it.
https://twitter.com/tenderlove/status/273990942866931712
zzak (zzak _)
11:56 AM Bug #7462 (Closed): x86_64-linux build failure after r37951
I can only produce this in my working svn clone, here is the make log:
https://gist.github.com/4166280
re: r37951
zzak (zzak _)
12:25 PM Bug #7442 (Closed): StringScanner#charpos vs StringScanner#pos
I think so. We can keep it unless any serious problem is reported after preview2. Thanks for your quick action!
I'm slightly worried about its very inefficient implementation, but I don't know whether it matters because I understand...
mame (Yusuke Endoh)
09:23 AM Bug #7442: StringScanner#charpos vs StringScanner#pos
No objections (yet)... can this be merged to 2.0 branch for next preview release? zenspider (Ryan Davis)
11:53 AM Bug #7461 (Closed): Deadlock
fixed at r37964 kosaki (Motohiro KOSAKI)
11:49 AM Bug #7461: Deadlock
"minimal" reproduction:
require 'minitest/metametameta'
class TestMiniTestUnit < MetaMetaMetaTestCase
parallelize_me!
end
thanks to ko1 for the reduction.
zenspider (Ryan Davis)
10:45 AM Bug #7461: Deadlock
Sorry. No. 37921 is the first bad. 37920 runs clean. zenspider (Ryan Davis)
10:43 AM Bug #7461: Deadlock
I double checked and r37921 runs clean. zenspider (Ryan Davis)
10:37 AM Bug #7461 (Closed): Deadlock
When I try to update minitest in trunk and run my tests I get the following error:
% ./miniruby -I./lib ./tool/runruby.rb --extout=.ext -- -Itest test/minitest/test_minitest_unit.rb
Run options: --seed 61066
# Running tests:
....
zenspider (Ryan Davis)
11:09 AM Revision bda0aca2 (git): Revert r37991 "compile.c: hash must be paired"
DO BUILD BEFORE COMMIT !
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:15 AM Revision 399a32df (git): compile.c: hash must be paired
* compile.c (compile_array_): hash elements must be paired even for
literal elements. [ruby-dev:46658] [Bug #7466]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:03 AM Bug #7460 (Assigned): メインスレッド終了後のサブスレッド終了待ち処理においてデッドロック検知が動作していない
kosaki (Motohiro KOSAKI)
10:02 AM Bug #7460 (Closed): メインスレッド終了後のサブスレッド終了待ち処理においてデッドロック検知が動作していない
[Bug #5368] からの派生なんですが、
Thread.new do
begin
p "sleep1"
sleep
p "sleep2"
ensure
p "stop1"
Thread.stop
p "stop2"
end
end
このスクリプトでデッドロック検知が動かないのはおかしいと思います。
要するに thread_terminate_all() でも vm->sl...
kosaki (Motohiro KOSAKI)
09:56 AM Bug #7459 (Closed): at_exit { Thread.new {} } broken in r37921
fixed at r37958
kosaki (Motohiro KOSAKI)
09:44 AM Bug #7459: at_exit { Thread.new {} } broken in r37921
This is blocking my merge of minitest to trunk for 2.0 preview. zenspider (Ryan Davis)
09:40 AM Bug #7459: at_exit { Thread.new {} } broken in r37921
I don't think main thread should be marked dead until after at_exit is done:
% multiruby -e 'p Thread.current; at_exit { p Thread.current }'
VERSION = mri_trunk
CMD = ~/.multiruby/install/mri_trunk/bin/ruby -e p Thread.current...
zenspider (Ryan Davis)
09:19 AM Bug #7459 (Closed): at_exit { Thread.new {} } broken in r37921
ruby -e 'p Thread.current; at_exit { p Thread.current; [Thread.new {}].map(&:join) }'
outputs:
#<Thread:0x007feeb28b0fa8 run>
#<Thread:0x007feeb28b0fa8 dead>
-e:1:in `new': can't alloc thread (ThreadError)
from -e:1:in `block i...
zenspider (Ryan Davis)
09:23 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/28 6:08), sam.saffron (Sam Saffron) wrote:
> I think either 1) or 3-1), works ok.

I committed (3-1).

Could you check it?
Also I'm very happy if you write tests for it.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
09:12 AM Feature #7434 (Closed): Allow caller_locations and backtrace_locations to receive negative params
This issue was solved with changeset r37957.
Sam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_backtrace.c (vm_backtrace_to_ary): support range argument
l...
ko1 (Koichi Sasada)
04:53 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
(2012/11/28 6:08), sam.saffron (Sam Saffron) wrote:
> Though there is an issue with accepting ranges: caller(1..-6, 8) becomes a bit weird cause you are defining the length in two spots.

It should be error.

See:

[][0.....
ko1 (Koichi Sasada)
08:49 AM Feature #5481: Gemifying Ruby standard library
@vo.x Don't count your eggs before they hatch ;) I think the exceptions will be pretty well defined, basically anything RubyGems requires --isn't that going to be the case regardless of which way it's done? I thought packaged gems would ... trans (Thomas Sawyer)
07:22 AM Feature #5481: Gemifying Ruby standard library
@trans You know how it is with exceptions. They tend to become rules and justification for another exceptions. I believe that my proposal is the best solution, because it will be almost like shipping already preinstalled gems, which you ... vo.x (Vit Ondruch)
06:23 AM Feature #5481: Gemifying Ruby standard library
@vo.x Psych would have to be an exception. And really, with the inclusion of libyaml, YAML is becoming more and more an integral aspect of Ruby. trans (Thomas Sawyer)
06:17 AM Feature #5481: Gemifying Ruby standard library
@sdaubert That shouldn't be a problem in this case. All the necessary gems would be distributed with the Ruby source (it would sort of act like it's own miniature gem server, figuratively speaking).
trans (Thomas Sawyer)
04:30 AM Feature #5481: Gemifying Ruby standard library
trans (Thomas Sawyer) wrote:
> Why keep the source code in the Ruby repository at all? Development occurs at the library's repository anyway, so why waste time with copying the files into Ruby repository for each release. Instead, just ...
sdaubert (Sylvain Daubert)
08:45 AM Revision f77c97a8 (git): variable.c: show namespace
* variable.c (rb_const_set): show namespace in warning messages.
[Feature #7190]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:34 AM Revision 5cab66cb (git): * lib/rubygems.rb (Gem.load_yaml): return if Kernel#gem is not defined
yet. This causes crash if test-all requires libraries in a certain
order. A simple reproducible code is
ruby --disable-gem -e'require"yaml";require"minitest/autorun"'
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37989 b2dd03c8-...
naruse (Yui NARUSE)
08:22 AM Revision 88f5a4ff (git): * lib/tracer.rb: Updated to match removal of custom_require from
RubyGems.
* test/test_tracer.rb: ditto. Improved failure message if the test
fails
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:15 AM Revision 8baab38a (git): * gc.c: Documentation for GC, GC::Profiler, ObjectSpace, and
ObjectSpace::WeakMap [ruby-core:50245] [Bug #7449]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:13 AM Revision 8818a574 (git): helper.rb: try with sudo
* test/dtrace/helper.rb (DTrace::TestCase#trap_probe): try with $SUDO if set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:12 AM Revision d22ac50a (git): tool/vpath.rb
* tool/generic_erb.rb, tool/id2token.rb: add --path-separator option
for mingw where make and built ruby live in different world.
* tool/vpath.rb: extract from tool/instruction.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37...
nobu (Nobuyoshi Nakada)
08:11 AM Revision 2f80fdda (git): test_io_wait.rb: Bug #7420
* test/io/wait/test_io_wait.rb (TestIOWait#fill_pipe):
Errno::EWOULDBLOCK may not be the same as Errno::EAGAIN. patch by
phasis68 (Heesob Park) at [ruby-core:49894]. [Bug #7420]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3...
nobu (Nobuyoshi Nakada)
08:10 AM Revision cf1d6730 (git): remove trainling spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:04 AM Revision 0a7d24cc (git): * lib/rubygems/test_case.rb: Determine path to certificates to avoid
build-dir problems.
* test/rubygems/test_gem_security_signer.rb: Use predetermined paths
to avoid build-dir problems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:18 AM Revision d9422d87 (git): * lib/rubygems/test_case.rb: Disable loading of keys and certificates
outside rubygems or ruby tests as the files are not available (or
necessary).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:15 AM Revision e8af0046 (git): * vm_backtrace.c (rb_debug_inspector_open): use RARRAY_LENINT() for
int variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:05 AM Revision 585ac7f1 (git): * include/ruby/debug.h: add rb_debug_inspector_* APIs.
* vm_backtrace.c: ditto.
* common.mk: add dpendency from vm_backtrace.o to
include/ruby/debug.h.
* proc.c (rb_binding_new_with_cfp): constify.
* vm.c (rb_vm_get_ruby_level_next_cfp): consitify.
* vm_core.h, vm_trace.c: move decls.
g...
ko1 (Koichi Sasada)
07:01 AM Revision 07b10cd5 (git): * lib/rdoc/test_case.rb (RDoc::TestCase#verbose_capture_io):
defined for asserts of warnings.
* test/rdoc: use verbose_capture_io on asserts of warnings.
they failed when tests was run with RUBYOPT=-W0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:54 AM Revision a985c589 (git): * ext/psych/extconf.rb: added --enable-bundled-libyaml option. this
enforces using bundled libyaml.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
06:52 AM Revision 9694bb8c (git): * lib/rubygems*: Updated to RubyGems 2.0
* test/rubygems*: ditto.
* common.mk (prelude): Updated for RubyGems 2.0 source rearrangement.
* tool/change_maker.rb: Allow invalid UTF-8 characters in source
files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37976 b2dd0...
drbrain (Eric Hodel)
06:43 AM Revision 3f606b70 (git): * include/ruby/debug.h: provide rb_tracearg_*() APIs,
instead of rb_tracepoint_attr_*().
These APIs are for debuggers/profilers.
They will be explained in another docs somtime.
* vm_trace.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37975 b2dd03c8-39d4-4d8f-98ff-823fe6...
ko1 (Koichi Sasada)
06:19 AM Revision d81b5a4f (git): * test/minitest/test_minitest_unit.rb: restore orig_verbose only
if it is set. This broke rdoc's tests.
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20121129T050102Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:57 AM Revision 479e3961 (git): * vm_trace.c (rb_tracepoint_attr_method_id):
rename TracePoint#id to TracePoint#method_id.
* include/ruby/debug.h: ditto.
* test/ruby/test_settracefunc.rb: ditto,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:52 AM Revision 89c889d4 (git): * vm_trace.c (rb_tracepoint_attr_defined_class):
rename TracePoint#klass to TracePoint#defined_class.
[ruby-core:50187] Re: [ruby-trunk - Feature #6895]
* include/ruby/debug.h: ditto.
* test/ruby/test_settracefunc.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37972 ...
ko1 (Koichi Sasada)
05:29 AM Revision 502ab126 (git): * gc.c (gc_stat): prepre Symbol objects at first time
to make it fast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:21 AM Bug #7458 (Closed): Depending on value of BigDecimal::limit, addition can give inaccurate results
=begin
This bug is present in ruby-trunk and also in 1.8.7 and 1.9.3p125.
I apologize that I cannot figure out what exactly is going wrong and how to patch, but at least I have a small reproducible test case.
When adding very smal...
bpow (Bradford Powell)
05:05 AM Revision c512d6ac (git): * gc.c (gc_stat): GC.stat supports new information
* total_allocated_object: total allocated object number.
* total_freed_object: total freed object number.
Above two numbers are only accumulated and they will
overflow (return to 0). Please use them as a hint.
git-svn-id: svn+ssh:...
ko1 (Koichi Sasada)
04:53 AM Feature #7051: Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread.
(2012/11/27 9:02), SASADA Koichi wrote:
> (2012/09/23 15:43), sam.saffron (Sam Saffron) wrote:
>> Also it feels very tied to MRI returning RubyVM:::Backtrace::Location , Location seems to me in the wrong namespace. Is JRuby and Rubi...
ko1 (Koichi Sasada)
04:39 AM Revision 5bb12509 (git): * test/dtrace/helper.rb (DTrace::TestCase): check dtrace availability
once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Feature #7375: embedding libyaml in psych for Ruby 2.0
Aaron, you have to add the ticket in the message, like:
[Feature #7375]
zzak (zzak _)
03:26 AM Feature #7375 (Closed): embedding libyaml in psych for Ruby 2.0
I fixed this in r37919, but it didn't seem to close. I'm closing now. tenderlovemaking (Aaron Patterson)
03:24 AM Revision 0e515efd (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:23 AM Revision 81eb635f (git): Imported minitest 4.3.2 (r8026)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
02:58 AM Revision 304885cd (git): test/dl: no warnings
* test/dl/test_base.rb, test/dl/test_c_struct_entry.rb: deprecation
warnings make no sense here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:58 AM Revision ecaba0f2 (git): remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:50 AM Revision c058d821 (git): Revert r37956: thread.c (thread_start_func_2): small cleanups.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
02:30 AM Feature #5458: DL should be removed
DL is deprecated in trunk. To maintain backwards compatibility, I've moved some parts of DL to Fiddle. We should be able to remove `ext/dl` after 2.0 release. tenderlovemaking (Aaron Patterson)
02:09 AM Revision 989c529c (git): * thread.c (thread_start_func_2): remove unused code. When
th->safe_level == 4, th->errinfo never be thrown. So, to
create new exception makes no sense.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
01:30 AM Revision f22f1fbb (git): * vm_backtrace.c: same as a last patch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:26 AM Revision d7ab6820 (git): * vm_backtrace.c: use `long' for return values of `NUM2LONG()'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:11 AM Revision d1dfebc0 (git): Revert r37953: thread.c (thread_start_func_2): remove unused code. security
This sticks at bootstraptest/test_fork.rb:24 on FreeBSD and darwin.
http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20121128T230302Z.log.html.gz
http://a.mrkn.jp/~mrkn/chkbuild/sl/ruby-trunk-m64-gcc42-o0/log/20121128T235908Z.log.html.gz
g...
naruse (Yui NARUSE)
12:52 AM Revision e2779a53 (git): * thread.c (do_select): suppress warning (uninitialized value warning)
with UNINITIALIZED_VAR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:48 AM Revision 98ed344a (git): * eval.c (ruby_cleanup): delay THREAD_KILLED timing.
It should be located just before rb_thread_terminate_all().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
12:33 AM Bug #7356 (Feedback): ruby-2.0.0-preview1 で adlint-2.6.10 が性能劣化
横からすみません。adlint-benchmark 使わせていただきました。
git bisect で調べてみたのですが、r34948 で rb_ary_push_m() が
rb_ary_cat() を呼び出すように変更されているのが性能劣化の原因ではないでしょうか。
また、r37582 でその rb_ary_cat() の内容が変更されたため、再度性能が回復しているように見えます。
実験的に r34948 の関連する部分を revert するパッチと、r37...
wanabe (_ wanabe)
12:12 AM Revision 3d47e7b2 (git): * vm_backtrace.c (vm_backtrace_to_ary): support range argument
like Array#[].
[ruby-core:50092] [ruby-trunk - Feature #7434]
Test and document is not available. Please help us.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)

11/28/2012

11:41 PM Bug #7455 (Closed): Queue#popで待っている間にtrapに入りその時にQueue#pushされると、Queue#popから戻ってこなくなる。
This issue was solved with changeset r37944.
Masaya, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
add ticket ref: [ruby-dev:46654] [ruby-trunk - Bug #7455]
ko1 (Koichi Sasada)
10:47 PM Bug #7455: Queue#popで待っている間にtrapに入りその時にQueue#pushされると、Queue#popから戻ってこなくなる。
とりあえず原因を書いておくと
1. que.popで、mutex.sleepが呼ばれ、結局sleep_forever()が呼ばれる。ここで一旦 status = THREAD_STOPPED_FOREVERになる
2. Process.kill をうけて status = THREAD_RUNNABLEにしてトラップハンドラを実行はじめる
3. que.push を呼ぶが、main threadはすでに thread runnableなので何もおこらず
4....
kosaki (Motohiro KOSAKI)
10:36 PM Bug #7455 (Closed): Queue#popで待っている間にtrapに入りその時にQueue#pushされると、Queue#popから戻ってこなくなる。
以下スクリプトを実行すると期待したように終わらずに、deadlockしてしまいます。
ささださんよろしく。
--
require 'thread'
que = Queue.new
th = Thread.new{
sleep 0.1
Process.kill(:INT,$$)
sleep 0.1
que.push 2
}
Signal.trap :INT do
p :trap_task
123456**100...
tarui (Masaya Tarui)
11:30 PM Feature #5534: Redefine Range class and introduce RelativeNumeric and RelativeRange
=begin
I propose to disregard the second part of my proposal: about (({RelativeNumeric})) and
(({RelativeRange})). When i look back at it now, it looks quite crazy and not
particularly useful.
However, i still would have liked to se...
alexeymuranov (Alexey Muranov)
10:35 PM Bug #3351: stack overflow on super
shugo-san, do you know why Override#foo called only once?
ko1 (Koichi Sasada)
09:55 PM Revision b76b6b5c (git): * thread.c (thread_start_func_2): small cleanups.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
09:55 PM Revision 5e606aee (git): * thread.c (thread_start_func_2): remove unused code.
this function never be used for main thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:55 PM Revision fdda95ed (git): * thread.c (thread_start_func_2): remove unused code.
errinfo = th->errinfo; and errinfo = rb_errinfo(); are
the same.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
09:54 PM Revision 1d207fcf (git): * thread.c (thread_start_func_2): remove unused code. security
level is checked before rb_eSecurityError raises.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:30 PM Revision 2fa079b6 (git): * vm_backtrace.c (backtrace_to_str_ary2): rename to backtrace_to_str_ary.
* vm_backtrace.c (rb_backtrace_to_str_ary): use `backtrace_to_str_ary()'.
* vm_backtrace.c (backtrace_to_frame_ary): rename to
backtrace_to_location_ary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37952 b2dd03c8-39d4-4d8f-98f...
ko1 (Koichi Sasada)
08:20 PM Revision 4bdd9095 (git): * probes.d: Change function-entry probe to method-entry.
* insns.def: ditto
* probes_helper.h: ditto
* test/dtrace/test_function_entry.rb: ditto
* test/dtrace/test_singleton_function.rb: ditto
* vm.c: ditto
* vm_eval.c: ditto
* vm_insnhelper.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
tenderlovemaking (Aaron Patterson)
08:01 PM Bug #7445: strptime('%s %z') doesn't work
this is intentional behaviour.
`%s` cannot represent localtime with offset.
`%s` implies utc.
this is just odd as a date.
but, it's an option.
we may be able to adopt this feature on next major.
i'm not sure at the present time.
tadf (tadayoshi funaba)
07:46 PM Revision 0fe2051c (git): * vm_backtrace.c: rename Class name from
::RubyVM::Backtrace and ::RubyVM::Backtrace::Location
to ::Thread::Backtrace and ::Thread::Backtrace::Location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:09 PM Revision c5c1d8c2 (git): * ChangeLog: fix a typo for r37928.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:56 PM Revision c788b5f5 (git): * 2012-11-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:56 PM Revision af6decf8 (git): * ChangeLog: fix a typo for r37938.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:31 PM Bug #7450 (Closed): Thread#raise may override Thread#status unexpectedly
This issue was solved with changeset r37931.
Motohiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_core.h (enum rb_thread_status): remove THREAD_TO_KILL
* ...
kosaki (Motohiro KOSAKI)
02:10 PM Bug #7450 (Closed): Thread#raise may override Thread#status unexpectedly
test.rb
---------------------
ary = []
t = Thread.new {
begin
sleep
ensure
begin
ary << Thread.current.status
sleep
ensure
ary << Thread.current.status
end
end
}
sleep 0.01
t.ki...
kosaki (Motohiro KOSAKI)
05:01 PM Bug #4559 (Closed): Proc#== does not match the documented behaviour
This issue was solved with changeset r37929.
Adam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
add ticket number [Bug #4559]
ko1 (Koichi Sasada)
04:23 PM Bug #4559: Proc#== does not match the documented behaviour
(2012/11/28 16:10), matz (Yukihiro Matsumoto) wrote:
>
> @ko1 You've chosen the latter option, so it is natural conclusion.

Okay. I'll delete Proc#==.

--
// SASADA Koichi at atdot dot net
ko1 (Koichi Sasada)
04:10 PM Bug #4559: Proc#== does not match the documented behaviour
@ko1 You've chosen the latter option, so it is natural conclusion.
Matz.
matz (Yukihiro Matsumoto)
03:29 PM Bug #7451 (Closed): r37911 breaks build on non gcc or non IA-32 platforms
This issue was solved with changeset r37924.
Naohisa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in: revert r37911, r37906 and r37904 which break b...
ngoto (Naohisa Goto)
03:12 PM Bug #7451 (Closed): r37911 breaks build on non gcc or non IA-32 platforms
r37911 以降、__sync_val_compare_and_swap がリンク失敗したら必ず -march=i486 が付くため、
gccではないコンパイラ、またはIA-32ではない環境ではコンパイルに失敗します。
Sun(Oracle)の SolarisStudio 12.3 のccでは、-m はリンカに何かを渡すオプションらしく、
以下のようにminirubyのリンクに失敗します。Fujitsu C Compiler でも同様です。
cc -...
ngoto (Naohisa Goto)
02:55 PM Revision 7b6e26ae (git): * ext/fiddle/closure.c: cosmetic fix for rdoc comment. (fix for r37917)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
02:53 PM Revision 5c32aff1 (git): revert some part of r37942. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
02:41 PM Revision 36b21ada (git): add ticket ref: [ruby-dev:46654] [ruby-trunk - Bug #7455]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
02:40 PM Revision 09f9aa43 (git): * thread.c (rb_mutex_sleep): fix to allow spurious wakeup.
* NEWS: write about spurious wakeup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
02:37 PM Revision e59c7307 (git): * NEWS (Thread) remove incompatible changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Masaya Tarui
02:20 PM Bug #7449: Rdoc for obj.object_id
changing to Integer is fine with me. It seems to be a better type. drbrain (Eric Hodel)
02:05 PM Bug #7449: Rdoc for obj.object_id
zzak (Zachary Scott) wrote:
> Luis, can you confirm this on windows?
I don't think the Windows part is relevant but the documentation mistake.
You can confirm this here:
http://rubydoc.info/stdlib/core/Object:object_id
It sa...
luislavena (Luis Lavena)
01:53 PM Bug #7449: Rdoc for obj.object_id
Luis, can you confirm this on windows? zzak (zzak _)
01:46 PM Bug #7449 (Assigned): Rdoc for obj.object_id
luislavena (Luis Lavena)
01:45 PM Bug #7449 (Closed): Rdoc for obj.object_id
Documentation for return type of obj.object_id is wrong on Windows x64.
C:\Users\phasis>irb
irb(main):001:0> 0.1.object_id
=> -158526706883441454
irb(main):002:0> 0.1.object_id.class
=> Bignum
Here is a patch:
diff --git a/gc....
phasis68 (Heesob Park)
01:57 PM Revision bf442ed2 (git): * thread_win32.c: catch up latest change of BLOCKING_REGION.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:56 PM Revision ff2ca81b (git): * vm_insnhelper.c (vm_call_method): fix undefined behavior.
Should not access scope local variable from outer scope.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:44 PM Bug #7443: Method redefinition from Fiddle is causing a test failure (MinGW)
=begin
Thank you Aaron
This indeed improved the error, but now we are getting a different one:
http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/286/console
1) Failure:
test_modify_expand_memory_leak(Test_StringModif...
luislavena (Luis Lavena)
03:54 AM Bug #7443: Method redefinition from Fiddle is causing a test failure (MinGW)
I should probably mention the failures I saw were due to missing libffi headers, carry on! zzak (zzak _)
01:24 PM Revision c6557c6f (git): * test/ruby/test_thread.rb (test_thread_status_in_trap): change test for
thread status in trap. now can accept Thread#join and Thread#value in trap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
01:12 PM Bug #6531 (Closed): Increase Racc runtime versions
zzak (zzak _)
01:01 PM Bug #6416: Deadlock when calling Thread#join from signal interrupt context
kosaki (Motohiro KOSAKI) wrote:
> Nari,
> ...
I see, Thanks!
authorNari (Narihiro Nakamura)
11:46 AM Bug #6416: Deadlock when calling Thread#join from signal interrupt context
Nari,
In your case, main thread and trap handler uses the same mutex and it is racy and deadlockable. Even if I revert my change, it wouldn't work.
kosaki (Motohiro KOSAKI)
11:31 AM Bug #6416: Deadlock when calling Thread#join from signal interrupt context
Hello
I need sometimes to call Thread#join in Signal.trap when I want to implement safe termination in a server.
For instance: https://gist.github.com/4158509
Is it a wrong use case in the first place?
Thanks.
authorNari (Narihiro Nakamura)
01:01 PM Revision 9d0de48e (git): * include/ruby/thread.h (rb_thread_call_without_gvl2): change
meaning of function.
This function is called with same parameters of
`rb_thread_call_without_gvl()'.
However, if interrupts are detected, when return immediately.
* thread.c: implement `rb_thread_call_without_gvl2()'.
git-svn-id...
ko1 (Koichi Sasada)
12:34 PM Revision f5dc27aa (git): * thread.c (thread_join_sleep): check spurious wakeup by itself for
corresponding status change in trap context.
* vm_core.h (struct rb_thread_struct): add rb_thread_list_t and use as join_list for
reentry by trap context.
* thread.c (thread_start_func_2): ditto.
* thread....
Masaya Tarui
12:23 PM Revision ac93d931 (git): emitter.c: constify
* ext/psych/yaml/emitter.c (yaml_emitter_write_indicator): constify.
* ext/psych/yaml/emitter.c (yaml_emitter_write_block_scalar_hints):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:22 PM Revision 082a2716 (git): extconf.rb: mingw32
* ext/psych/extconf.rb: mingw32 also needs macros for win32, not
only mswin32.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:21 PM Revision d8da0faf (git): extconf.rb: VPATH
* ext/psych/extconf.rb: compile sources in the source directory
without copying by using VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:20 PM Feature #6670: str.chars.last should be possible
duerst (Martin Dürst) wrote:
> Instead of this proposal, what about adding some/most/all of the Array methods to Enumerator?
It is not easy to define behavior of Enumerator#[].
For example:
File.open(path){|f|
ls = f.lines...
yhara (Yutaka HARA)
09:38 AM Feature #6670: str.chars.last should be possible
Instead of this proposal, what about adding some/most/all of the Array methods to Enumerator?
E.g. like so:
module Enumerator
def [] (pos)
to_a[pos]
end
end
Of course, this is just the simplest case of [], and the si...
duerst (Martin Dürst)
01:32 AM Feature #6670: str.chars.last should be possible
trans (Thomas Sawyer) wrote:
> If I understand correctly, this is going to break a lot of code?
For String, the impact will be limited.
* String#lines returns Array, which has most of the methods defined in Enumerator.
* Except...
yhara (Yutaka HARA)
12:19 PM Revision a0f7f36a (git): mkmf.rb: each_compile_rules
* lib/mkmf.rb (MakeMakefile#each_compile_rules): splat $(*VPATH*) for
each VPATH elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:17 PM Revision 3baef1fc (git): unit.rb: remove unnecessary includes
* lib/test/unit.rb (Test::Unit::{GlobOption,LoadPathOption}): remove
unnecessary includes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:31 AM Bug #7442: StringScanner#charpos vs StringScanner#pos
Committed revision 37916.
Please beat up on it.
zenspider (Ryan Davis)
08:57 AM Bug #3022 (Closed): What are $. and ARGF.lineno ?
This issue was solved with changeset r37913.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/globals.rdoc: Add documentation file for magic global...
zzak (zzak _)
08:31 AM Revision 9cbf4732 (git): * vm_core.h (enum rb_thread_status): remove THREAD_TO_KILL
* vm_core.h (struct rb_thread_struct): add to_kill field
* thread.c (terminate_i): convert THREAD_TO_KILL to to_kill.
* thread.c (rb_threadptr_to_kill): ditto.
* thread.c (rb_thread_kill): ditto.
* thread.c (rb_thread_wakeup_alive): ditt...
kosaki (Motohiro KOSAKI)
08:30 AM Revision b8a1e362 (git): * thread.c (struct rb_mutex_struct): add allow_trap field.
* internal.h (rb_mutex_allow_trap): added.
* thread.c (rb_mutex_lock, rb_mutex_unlock): check mutex->allow_trap.
* thread.c (mutex_sleep): remove trap check because it uses
rb_mutex_lock and rb_mutex_unlock internally.
* thread.c (rb_m...
kosaki (Motohiro KOSAKI)
08:01 AM Revision fc57f2bf (git): add ticket number [Bug #4559]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:00 AM Revision 49ed2a75 (git): * proc.c: remove Proc#== and Proc#eql?.
Proc objects compared with thier object ids.
* test/ruby/test_proc.rb: remove related test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:41 AM Revision 45011d08 (git): * lib/rdoc/servlet.rb: Add support for serving documentation from a
subdirectory.
* lib/rdoc/generator/darkfish.rb: ditto
* test/rdoc/test_rdoc_servlet.rb: Test for above
* test/rdoc/test_rdoc_servlet.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
06:45 AM Revision 013521e5 (git): * configure.in: fix r37294: run only on i[3-6]86-linux.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:36 AM Revision e6ef313a (git): * io.c (FMODE_SYNCWRITE): removed unused macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
06:29 AM Revision 58b85730 (git): * configure.in: revert r37911, r37906 and r37904 which break build
with non-gcc and/or non-IA32 compilers, e.g. Solaris Studio,
Fujitsu C Compiler. [ruby-dev:46646] [Bug #7451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
06:08 AM Feature #7434: Allow caller_locations and backtrace_locations to receive negative params
I think either 1) or 3-1), works ok.
Though there is an issue with accepting ranges: caller(1..-6, 8) becomes a bit weird cause you are defining the length in two spots.
I can not find any other place with a similar api, anyone el...
sam.saffron (Sam Saffron)
05:59 AM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> headius (Charles Nutter) wrote:
> ...
The interaction between super chains and refinements bothers me.
A new idea...
Because we'd like refinements to act like they live in the class hierarchy...let's ...
headius (Charles Nutter)
05:52 AM Revision 1ff0a3d0 (git): * ext/psych/extconf.rb: copy sources into build directory,
not into srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:40 AM Revision 835d24f6 (git): * thread.c (rb_mutex_lock): moved trap context check from
rb_mutex_trylock because try_lock have no change to make
a deadlock.
* thread.c (rb_mutex_trylock): ditto.
* NEWS: news for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
04:43 AM Revision 8111b32d (git): * thread.c (thread_s_new): uses main_thread->status instead of
th->inhibit_thread_creation for preventing thread creation.
* vm_core.h (rb_vm_struct): remove inhibit_thread_creation field.
* thread.c (rb_thread_terminate_all): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37921 b2dd03c8-...
kosaki (Motohiro KOSAKI)
04:35 AM Revision d5c463b5 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:34 AM Revision 14099149 (git): * ext/psych/extconf.rb: use embedded libyaml if no system libyaml is
found. [ruby-core:49463]
* ext/psych/lib/psych.rb: updating to psych 2.0.0
* ext/psych/lib/psych/deprecated.rb: updated docs
* ext/psych/psych.gemspec: updated to psych 2.0.0
* ext/psych/psych.h: fixing header file include for rename
* e...
tenderlovemaking (Aaron Patterson)
04:09 AM Revision 694c7763 (git): * thread.c (thread_join): A trap handler check was moved from
thread_join_m because Thread#value should be raised an exception
too.
* thread.c (thread_join_m): remove trap handler check.
* test/ruby/test_thread.rb (test_thread_join_in_trap): add test
for thread#value.
* NEWS: documentation fix ...
kosaki (Motohiro KOSAKI)
03:14 AM Feature #5458: DL should be removed
I wrote a patch for the deprecation notice: https://gist.github.com/4155983 zzak (zzak _)
02:08 AM Revision 4ed6a88b (git): * ext/fiddle/closure.c: Documentation for Fiddle
* ext/fiddle/lib/fiddle/import.rb: ditto
* ext/fiddle/lib/fiddle/value.rb: ditto
* ext/fiddle/lib/fiddle/pack.rb: ditto
* ext/fiddle/lib/fiddle/cparser.rb: ditto
* ext/fiddle/lib/fiddle/struct.rb: ditto
* ext/fiddle/lib/fiddle/function.r...
zzak (zzak _)
02:08 AM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
> なお、#1952 ですでに指摘されているように Ctrl-c が押された時にサブスレッドを待たずに終了してしまうという案はSEGVを引き起こすのでNG。
もうちょっとまじめに書くと、SEGVを引き起こすのは終了処理でまじめに1つ1つリソース解放処理をしてるからで、いきなりexit()するという選択肢はあるだろう。しかしそれは当然MVMにしたときに問題を引き起こす。
SEGVしないように各所にNULLチェックを入れるという案については、pthread_cond...
kosaki (Motohiro KOSAKI)
12:53 AM Feature #5481: Gemifying Ruby standard library
trans (Thomas Sawyer) wrote:
> Why keep the source code in the Ruby repository at all? Development occurs at the library's repository anyway, so why waste time with copying the files into Ruby repository for each release. Instead, just ...
vo.x (Vit Ondruch)
12:19 AM Feature #5481: Gemifying Ruby standard library
Why keep the source code in the Ruby repository at all? Development occurs at the library's repository anyway, so why waste time with copying the files into Ruby repository for each release. Instead, just ship the .gem package with Ruby ... trans (Thomas Sawyer)
12:17 AM Revision 0700a911 (git): Added #charpos for multibyte string position.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
12:03 AM Revision db9fe59b (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:02 AM Revision 0713f899 (git): * ext/fiddle/fiddle.c: adding alignment constants for compatibility
with DL.
* ext/fiddle/fiddle.h: ditto
* ext/fiddle/lib/fiddle/cparser.rb: importing the C parser for DL
backwards compatibility.
* ext/fiddle/lib/fiddle/import.rb: importing the import DSL for DL
backwards compatibility.
* ext/fiddle...
tenderlovemaking (Aaron Patterson)
 

Also available in: Atom