Project

General

Profile

Activity

From 03/02/2013 to 03/08/2013

03/08/2013

11:54 PM Revision 1b714330 (git): load.c: move loop invariant condition
* load.c (rb_feature_p): move this_feature_index condition which is
loop invariant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:37 PM Revision 8237581a (git): load.c: reduce indexes arrays
* load.c (features_index_add_single, rb_feature_p): store single index
as Fixnum to reduce the number of arrays for the indexes. based on
the patch by tmm1 (Aman Gupta) in [ruby-core:53216] [Bug #8048].
git-svn-id: svn+ssh://ci.rub...
nobu (Nobuyoshi Nakada)
11:24 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
> First of all, current Ruby/Tk cannot support Tcl/Tk8.6. Please see [ruby-talk:395829].
> ...
Nagai-san: thanks for the info. FYI, while it's not really relevant to Ed's Arch issue, I'm running Tcl/Tk8.6 on Win7 32bit on `ruby 1.9.3p39...
jonforums (Jon Forums)
05:55 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
Now that I've tried a few more ruby/tk scripts, I see that only a limited subset of tk works on 32-bit under Tk8.6. But in case it's still useful, I've attached a backtrace from gdb using ruby1.9.3p392/tcl8.6/tk8.6 with debug info on 64-... edmccard (Ed McCardell)
04:25 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
Jon: I've just posted to Newbie Corner on the Arch forums. The only other place on the internet that I've seen this is in the forums for the Coursera Programming languages class I'm taking, where several other users have reported it. I'l... edmccard (Ed McCardell)
02:08 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
First of all, current Ruby/Tk cannot support Tcl/Tk8.6. Please see [ruby-talk:395829].
But, I don't know whether this trouble belongs to the "tailcall" problem or not.
Does the same trouble occur with Tcl/Tk8.5 ? If so, tcltklib may no...
nagai (Hidetoshi Nagai)
07:45 AM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
One of the committers please assign this to Hidetoshi NAGAI.
Too bad tcltklib.so is stripped and the bt is weak. I bet no one on ruby-core has an Arch x64 system to try to repro/debug the issue, so we need to get better debug info. (O...
jonforums (Jon Forums)
10:45 PM Bug #8017 (Rejected): Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
Immature ancient version. nobu (Nobuyoshi Nakada)
10:21 PM Bug #8017: Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
experiencing the same issue.
clang -v
Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix
defsprite (Christoph Sassenberg)
09:25 PM Feature #8015: [patch] tuneable HEAP_GROWTH_FACTOR
I agree this patch. I'll merge it few days later, if there are no objections.
Thank you!
authorNari (Narihiro Nakamura)
04:01 PM Feature #8015: [patch] tuneable HEAP_GROWTH_FACTOR
Are there any objections to this patch? tmm1 (Aman Karmani)
09:22 PM Feature #8050: struct stat to VALUE should be accessable from the C-API
:+1: nobu (Nobuyoshi Nakada)
05:30 PM Feature #8050 (Closed): struct stat to VALUE should be accessable from the C-API
filc.c has methods to turn an struct stat into an File::Stat, the problem is that this methods are not accessable from the outside, and cant me mimiced my coping into the c-Ext code.
so it would be good if there where a VALUE rb_stat_...
Hanmac (Hans Mackowiak)
09:19 PM Feature #8046: allow Object#extend to take a block
Without a module, it'd not be #extend but #singleton_class_eval. nobu (Nobuyoshi Nakada)
04:27 PM Feature #8046: allow Object#extend to take a block
david_macmahon (David MacMahon) wrote:
> Which raises another question: what would be the order of extending if
> ...
That's the order Facets uses: https://github.com/rubyworks/facets/blob/master/lib/core/facets/kernel/extend.rb
> O...
phluid61 (Matthew Kerwin)
03:53 PM Feature #8046: allow Object#extend to take a block
On Mar 7, 2013, at 6:53 PM, charliesome (Charlie Somerville) wrote:

> There are two ways to do this
>
> def extend(&bk)
> singleton_class.class_eval(&bk)
> end
>
> or
>
> def extend(&bk)
> singleton_cla...
david_macmahon (David MacMahon)
01:05 PM Feature #8046: allow Object#extend to take a block
charliesome (Charlie Somerville) wrote:
> There are two ways to do this - make the extend block execute in the
> ...
I'd think more like the former, as that doesn't inject a new anonymous Module into the singleton_class's #ancestors.
...
phluid61 (Matthew Kerwin)
11:53 AM Feature #8046: allow Object#extend to take a block
=begin
There are two ways to do this - make the extend block execute in the context of the receiver's singleton class, or make it execute in the context of a new module to be mixed in to the receiver's singleton class.
For example:
...
Anonymous
11:48 AM Feature #8046 (Open): allow Object#extend to take a block
=begin
In #8038 david_macmahon proposed:
How about allowing Object#extend to take a block that would be executed with the context such that methods defined therein would become singleton methods of the object receiving #extend?
Fo...
phluid61 (Matthew Kerwin)
08:15 PM Bug #8006: Dir.glob behaves differently on 1.9.3 and 2.0
=begin
After some more experimenting, it seems that the '**' operator doesn't act the same like in 1.9.3:
With Ruby 2.0.0-p0:
2.0.0p0 :017 > Dir.glob('data/webgen/basic_website_template/*/*', File::FNM_DOTMATCH|File::FNM_CASEF...
gettalong (Thomas Leitner)
07:51 PM Bug #8051 (Third Party's Issue): linux_iocparm_len in io.c is ifdef __linux__, but uses glibc specifics
_IOC_SIZE is glibc specific, thus compilation fails with musl libc. aep (Arvid Picciani)
06:36 PM Feature #7854: New method Symbol[string]
Why does it have -1 arity?
And I don't think it's harmful if the method allows a Smbol too.
nobu (Nobuyoshi Nakada)
08:48 AM Feature #7854: New method Symbol[string]
nobu (Nobuyoshi Nakada) wrote:
> To obtain existing symbol, rb_check_id() is already available, so you don't have to add new extern function.
Thank you for the feedback. With that in mind, I've made a less invasive version which onl...
phluid61 (Matthew Kerwin)
05:10 PM Bug #8049 (Rejected): Compiling error on Ruby 2.0 with OpenSSL
Trying to compile Ruby 2.0 with newest OpenSSL installed (tried even OpenSSL 1.0.1c 10 May 2012). Getting errors, see attached image. Fallen_Zen (Piotr Panasewicz)
04:59 PM Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
2013/3/8 drbrain (Eric Hodel) <drbrain@segment7.net>:

> Feature #8042: Add Addrinfo#socket to create a socket that is not connected or bound
> https://bugs.ruby-lang.org/issues/8042

> This adds a socket method to Addrinfo to...
akr (Akira Tanaka)
08:35 AM Feature #8042 (Assigned): Add Addrinfo#socket to create a socket that is not connected or bound
This adds a socket method to Addrinfo to get a socket that has not been bound or connected to any address for connectionless operation. drbrain (Eric Hodel)
04:45 PM Feature #8027: add the possibility to raise an exception in #included, #extended, #prepended, #inherited and break the calling feature
ah good to know, but not the best way. What if i want that a Module is extendable but not includable? Then append_features may not what i want Hanmac (Hans Mackowiak)
08:50 AM Feature #8027: add the possibility to raise an exception in #included, #extended, #prepended, #inherited and break the calling feature
I think you are looking for Module.append_features:
module A
def self.append_features(mod)
raise "dont include me"
super
end
end
module E
begin
include A
rescue
end
end
p E.ancestors #=>[E]
If ...
semaperepelitsa (Simon Perepelitsa)
04:34 PM Bug #8041: Marshal incompatibility with prepend
=begin
To be honest, I haven't considered about marshaling prepended objects at all.
How could we represent it?
(1) add new type, (({TYPE_PREEXTEND})) for example.
(2) allow the current dumped format and treat the class in extending mod...
nobu (Nobuyoshi Nakada)
08:13 AM Bug #8041 (Closed): Marshal incompatibility with prepend
=begin
Marshal doesn't work for objects with prepended modules:
o = Object.new
o.singleton_class.send :include, Enumerable
Marshal.load(Marshal.dump(o)) # => ok
o = Object.new
o.singleton_class.send :prepend...
marcandre (Marc-Andre Lafortune)
03:26 PM Revision 28d7cd10 (git): * 2013-03-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:26 PM Revision 0316cf2e (git): marshal.c: prepended objects
* marshal.c (r_object0): load prepended objects. treat the class of
extended object in the included modules as prepended singleton
class. [ruby-core:53202] [Bug #8041]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39642 b2dd03c...
nobu (Nobuyoshi Nakada)
03:26 PM Revision e14095ff (git): marshaltestlib.rb: descriptive assertions
* test/ruby/marshaltestlib.rb (MarshalTestLib#test_string_ivar)
(MarshalTestLib#test_string_subclass_cycle): use more descriptive
assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:48 PM Feature #8047 (Assigned): IPAddr makes host address with netmask
現状のIPAddrはネットマスク付きの場合、
```
IPAddr.new("192.168.1.99/24")
=> #<IPAddr: IPv4:192.168.1.0/255.255.255.0>
```
のようにネットワークアドレスとして生成されますが、
マスク付きの場合にマスクされないホストとして生成する
モードを提案します
(=ホストのIPアドレスとどのネットワークかを把握したい)
ex.
```
IPAddr.new(...
nori_nori (Tadanori Kojima)
11:52 AM Feature #8038: Keyword `object` to be used instead of `class <<`
matz (Yukihiro Matsumoto) wrote:
> Introducing a new keyword would break a lot of existing programs. We don't want to do unless there's strong requirement.
> ...
I'm interested in this discussion, including Facets' interpretation. I ...
phluid61 (Matthew Kerwin)
11:16 AM Revision 6f59a8b4 (git): * man/rake.1, man/ruby.1: Use the Pa macro to make URLs stand out.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
10:41 AM Bug #7977: rails 4 crashes ruby 2.0 on Solaris
I'm not able to reproduce the core with the latest ruby on github
ruby 2.1.0dev (2013-03-08 trunk 39630) [x86_64-solaris2.11]
John
groenveld@acm.org
groenveld@acm.org (John Groenveld)
09:57 AM Bug #8045 (Closed): Object#singleton_methods incompatible with prepend
Similar to #8044, although implementation is independent:
o=Object.new
def o.foo; end
o.singleton_methods(false) # => [:foo], ok
o.singleton_class.send :prepend, Enumerable
o.singleton_methods(false) # => [], s...
marcandre (Marc-Andre Lafortune)
09:55 AM Bug #8044: Object#methods incompatible with prepend
{public|protected|private}_methods have the same problem, since they all call class_instance_method_list marcandre (Marc-Andre Lafortune)
09:49 AM Bug #8044 (Closed): Object#methods incompatible with prepend
Object#methods incompatible with prepend:
o = Object.new
def o.foo; end
o.methods(false) # => [:foo], ok
o.singleton_class.send :prepend, Enumerable
o.methods(false) # => [], should be [:foo]
marcandre (Marc-Andre Lafortune)
07:09 AM Revision 1a633537 (git): assertions.rb: split lines
* lib/test/unit/assertions.rb (Test::Unit::Assertions#message): split
msg and default procs by period and newline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:02 AM Revision 3d881966 (git): assertions.rb: allow proc
* lib/test/unit/assertions.rb (Test::Unit::Assertions#message):
convert msg by call if it is a proc, as well as assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:47 AM Revision 4a3970c2 (git): load.c: reorder conditions
* load.c (loaded_feature_path): reorder conditions so simple
comparision comes first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:24 AM Revision d415f2ab (git): configure.in: suppress error messages
* configure.in: suppress error messages, rm: cannot remove
'conftest.dSYM', from AC_EGREP_CPP with CFLAGS=-g on Darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:24 AM Revision 5ebffacf (git): * tool/rbuninstall.rb: remove symlinks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:21 AM Revision 7d183dab (git): * ext/pathname/pathname.c (path_f_pathname): rdoc for Pathname()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:01 AM Revision df9d847e (git): * man/rake.1: Document ENVIRONMENT variables on RAKE(1) manpage
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
02:54 AM Feature #8035 (Closed): singleton class should be included in ancestors
This issue was solved with changeset r39628.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* class.c (rb_mod_ancestors): Include singleton_class in an...
marcandre (Marc-Andre Lafortune)
02:17 AM Feature #7791: Let symbols be garbage collected
Of course the params are verified and there is no risk of SQL injection in my case either. I'm joining the same table multiple times at least once for each condition in the search query request that contains a reference to some field. Th... rosenfeld (Rodrigo Rosenfeld Rosas)
02:02 AM Feature #7791: Let symbols be garbage collected
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> Jeremy, I don't understand how #to_existing_sym could avoid the issue. Take your gem "sequel" for instance. In my application there is a class that will generate dynamic queries based on the ...
jeremyevans0 (Jeremy Evans)
01:52 AM Feature #7791: Let symbols be garbage collected
Jeremy, I don't understand how #to_existing_sym could avoid the issue. Take your gem "sequel" for instance. In my application there is a class that will generate dynamic queries based on the user params. Sequel will always convert those ... rosenfeld (Rodrigo Rosenfeld Rosas)
01:19 AM Feature #7791: Let symbols be garbage collected
I don't think there is any way to implement GC-able symbols via an extension library. Significant changes to the interpreter will be required to implement them.
Personally, I think the String#to_existing_sym and/or Symbol[string] pro...
jeremyevans0 (Jeremy Evans)
01:58 AM Bug #8036: Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5
Ruby 2.0's configure normally selects clang.
You seems set CC as gcc.
naruse (Yui NARUSE)
01:23 AM Bug #8036: Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5
> gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-...
ericdp (Eric Peterson)
01:23 AM Bug #8036: Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5
nobu (Nobuyoshi Nakada) wrote:
> You don't use clang, but /usr/bin/gcc.
> ...
CC = /usr/bin/gcc
LD = ld
LDSHARED = /usr/bin/gcc -dynamic -bundle
ericdp (Eric Peterson)
01:46 AM Revision 9c1fbec8 (git): * lib/webrick/httpproxy.rb: Fix typos in HTTPProxyServer [Bug #8013]
Patch by Nobuhiro IMAI [ruby-core:53127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
01:21 AM Revision 0003ac99 (git): Remove very obsolete test code
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune

03/07/2013

10:32 PM Feature #7791: Let symbols be garbage collected
@jeremyevans0 Thanks for clarifying these limitations.
So, how far might this be remedied if it is made a C extension? For instance, it is not possible to make SafeSymbol a subclass of Symbol in pure Ruby, but I suspect it could be m...
trans (Thomas Sawyer)
12:30 PM Feature #7791: Let symbols be garbage collected
trans (Thomas Sawyer) wrote:
> Would something like this do the trick? http://github.com/rubyworks/safe_symbol
No.
:a != SafeSymbol('a')
Even if you fixed that, Symbols are immediates in ruby's C API, and passing a SafeSymbol ...
jeremyevans0 (Jeremy Evans)
10:08 AM Feature #7791: Let symbols be garbage collected
Would something like this do the trick? http://github.com/rubyworks/safe_symbol
trans (Thomas Sawyer)
10:19 PM Feature #8035: singleton class should be included in ancestors
Agreed. I will accept it unless any other compatibility problem raises.
Matz.
matz (Yukihiro Matsumoto)
04:21 AM Feature #8035: singleton class should be included in ancestors
Singleton class it the same thing as metaclass, right? I feel it would be better to keep it invisible, and maybe in the future to remove it completely and to allow objects to keep their singleton methods themselves. alexeymuranov (Alexey Muranov)
01:51 AM Feature #8035 (Closed): singleton class should be included in ancestors
I feel it would be consistent if:
k.ancestors.include?(k) #=> always true if k.is_a?(Class)
This is currently the case except for singleton classes:
class << ""; include Enumerable; end.ancestors
# => [Enumerable, S...
marcandre (Marc-Andre Lafortune)
10:01 PM Bug #8036 (Rejected): Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5
You don't use clang, but /usr/bin/gcc. nobu (Nobuyoshi Nakada)
05:56 AM Bug #8036 (Rejected): Unable to compile Ruby 2.0.0p20 on Mac OSX 10.7.5
> svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_2_0_0/ ruby2
...
> ...
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.o...
ericdp (Eric Peterson)
09:50 PM Feature #7854: New method Symbol[string]
To obtain existing symbol, rb_check_id() is already available, so you don't have to add new extern function. nobu (Nobuyoshi Nakada)
03:03 PM Feature #7854: New method Symbol[string]
:)
Student (Nathan Zook)
12:50 PM Feature #7854: New method Symbol[string]
=begin
I've attached a patch that defines ((%Symbol[str]%)). If ((|str|)) is a string and there exists a symbol such that (({symbol.to_s == str})), it returns that symbol. Otherwise it returns ((|nil|)). Raises a TypeError if ((|str|...
phluid61 (Matthew Kerwin)
08:04 PM Bug #6479 (Closed): ipaddr.rbの受け付ける書式が、プラットフォームによって異なる
本件を修正して様子を見るうちに2.0.0が正式リリースとなったので、すみませんが旧シリーズとなった1.9ではこのままとしたいと思います。
報告ありがとうございました。
knu (Akinori MUSHA)
06:17 PM Revision 7afb2ead (git): Update ChangeLog for r39628
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:54 PM Revision 131fa91f (git): * 2013-03-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:54 PM Revision dfde34cb (git): * class.c (rb_mod_ancestors): Include singleton_class in ancestors list
[Feature #8035]
* test/ruby/test_module.rb (class): test for above
* test/ruby/marshaltestlib.rb (module): adapt test
* NEWS: list change
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:01 PM Feature #8038: Keyword `object` to be used instead of `class <<`
@alexey I sympathize. I tend to avoid `class << foo` too b/c it "reads" so poorly.
@david Facets extends #extend to do that actually, but it does not add the the methods directly. Instead it creates an anonymous module which it includ...
trans (Thomas Sawyer)
03:26 PM Feature #8038 (Rejected): Keyword `object` to be used instead of `class <<`
Introducing a new keyword would break a lot of existing programs. We don't want to do unless there's strong requirement.
Making Object#extend to take a block is interesting idea. We will discuss later if it's submitted.
Matz.
matz (Yukihiro Matsumoto)
03:23 PM Feature #8038: Keyword `object` to be used instead of `class <<`
As an alternative, how about allowing Object#extend to take a block that would be executed with the context such that methods defined therein would become singleton methods of the object receiving #extend?

Your example would then bec...
david_macmahon (David MacMahon)
02:59 PM Feature #8038 (Rejected): Keyword `object` to be used instead of `class <<`
=begin
I propose to introduce a new keyword (({object})) and to use it instead of the mysterious (({class <<})):
object foo
def bar
# ...
end
def baz
# ...
end
end
instead of
foo = Objec...
alexeymuranov (Alexey Muranov)
04:47 PM Bug #8039 (Closed): DRB/dRuby server throws an exception when probed on its port
I am not sure if this is a bug or a feature ...
When I use nmap to probe the port that the DRB server is listening on, it throws an exception.
Should the server be more resilient to this and/or have an option to restart itself aut...
kimptoc (Chris Kimpton)
12:28 PM Feature #8024: Lazy sweep を on/off するための機能
> SEGVが発生するかしないかの切り分けのため
これは正確な表現ではなく、本当の動機は「SEGVを回避するため」です。
> ...
そうですね。
> それ以外の用途
ありません〜
mrkn (Kenta Murata)
11:14 AM Feature #8024: Lazy sweep を on/off するための機能
このメソッドや環境変数を追加する動機が「SEGVが発生するかしないかの切り分けのため」なので、その用途だけでメソッド追加などをするのはやり過ぎかな、と思いました。
SEGVが直ったら用済みになっちゃうかもしれないですよね…。
それ以外の用途がなにかあれば教えてもらえると助かります。
authorNari (Narihiro Nakamura)
10:42 AM Feature #8024: Lazy sweep を on/off するための機能
> むらけんさんの好みに合わないなら
この件に関しては好みを主張できるほど詳しくないので、メソッド名から要/不要まで nari3 にすべての決めて頂こうと考えてました。
私は真偽値を与えて on/off を制御する方式でも問題ないと思ってます〜
mrkn (Kenta Murata)
04:52 AM Feature #8024: Lazy sweep を on/off するための機能
bool 値化同意します。 sorah (Sorah Fukumori)
12:54 AM Feature #8024: Lazy sweep を on/off するための機能
今後なにかあるたびに、GCにメソッドが2つづつ増えるのは非生産的なので、対称性だけが目的なら GC.enableにbool引数追加して、GC.enable_lazy_sweepもそうするってのが私の好みかなあ。すでにstressはboolean値のようだし。
ただの好みなのでむらけんさんの好みに合わないならこれ以上はプッシュしません
では。
kosaki (Motohiro KOSAKI)
10:42 AM Bug #7956: Install fail with RVM
=begin
I have just rechecked both with and without RVM and I can not reproduce this problem, make sure to update RVM: (({rvm get head})) - there are two things you could check:
(1) problem with compiler - check this https://github.com/w...
mpapis (Michal Papis)
10:08 AM Bug #8037 (Rejected): rdoc issues preventing docs generating after ruby was compiled
I have reported two issues for rdoc but there was no response, forwarding here as ruby is involved:
- https://github.com/rdoc/rdoc/issues/193
- https://github.com/rdoc/rdoc/issues/194
Thanks, Michal
mpapis (Michal Papis)
10:05 AM Feature #7849: Symbol#to_str
Symbol's not anything like a Proc either, but we have Symbol#to_proc.
Put that in your pipe and smoke it ;-)
trans (Thomas Sawyer)
08:33 AM Feature #7795: Symbol.defined? and/or to_existing_symbol
phluid61 (Matthew Kerwin) wrote:
> matz (Yukihiro Matsumoto) wrote:
> ...
I agree with Matz that the names are problematic. What about Symbol[] ? (#7854)
Student (Nathan Zook)
06:59 AM Feature #7795: Symbol.defined? and/or to_existing_symbol
matz (Yukihiro Matsumoto) wrote:
> I agree with the basic concept of the proposal.
> ...
My ruby core abilities are somewhat limited as yet, but in experimentation on a local fork I have implemented "foo".to_existing_sym (which raises ...
phluid61 (Matthew Kerwin)
05:21 AM Revision 221f2a1d (git): compile.c: zsuper keyword args
* compile.c (iseq_compile_each): pass keyword arguments to zsuper,
with current values. [ruby-core:53114] [Bug #8008]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:17 AM Revision 8a689839 (git): compile.c: nd_line(node)
* compile.c (iseq_compile_each): keep nd_line(node) in a local
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:17 AM Revision fedf4c22 (git): compile.c: calc in int
* compile.c (iseq_compile_each): calculate argc as int, not as Fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:38 AM Revision 3016b65a (git): .gdbinit: initialize color sequences
* .gdbinit (hook-run): initialize color sequences for each runs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:38 AM Revision 94daa860 (git): iseq.c: keyword arguments
* iseq.c (rb_iseq_disasm): fix keyword arguments index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:06 AM Revision 9926b16d (git): * ChangeLog:
* lib/rubygems/commands/setup_command.rb (class Gem):
* lib/rubygems/commands/setup_command.rb (TEXT):
* lib/rubygems/spec_fetcher.rb (class Gem):
* lib/rubygems/test_utilities.rb (class Gem):
* lib/rubyge...
drbrain (Eric Hodel)
04:01 AM Revision 105361d9 (git): * ChangeLog:
* lib/rubygems/commands/setup_command.rb (class Gem):
* lib/rubygems/commands/setup_command.rb (TEXT):
* lib/rubygems/spec_fetcher.rb (class Gem):
* lib/rubygems/test_utilities.rb (class Gem):
* lib/rubyge...
drbrain (Eric Hodel)
01:39 AM Revision 3d4d9377 (git): * 2013-03-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:39 AM Revision 1a71b871 (git): rbinstall.rb: gem subdirectories
* tool/rbinstall.rb (gem): Gem.ensure_gem_subdirectories now has mode
option since r39607. refix of r38870.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:39 AM Revision e4e82e50 (git): common.mk: reinstall target
* common.mk (reinstall): new target.
* defs/gmake.mk (install, uninstall): can't run parallel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/06/2013

11:08 PM Bug #8029 (Rejected): M-p and M-n don't work in irb
Hello, artagnon.
Thank you for your investigation. I'll close this ticket.
nagachika (Tomoyuki Chikanaga)
07:35 PM Bug #8029: M-p and M-n don't work in irb
I'm sorry, but I seem to have misunderstood the non-incremental-reverse-search-history and non-incremental-forward-search-history functions of readline. I expected it to work like in ZSH (which uses zle, not readline). Anonymous
05:50 PM Bug #8029: M-p and M-n don't work in irb
Okay, it seems to be a bug in readline, not irb. Anonymous
05:39 PM Bug #8029 (Rejected): M-p and M-n don't work in irb
irb is supposed to use readline and M-a, M-e are bound to beginning-of-line and end-of-line respectively. However, M-p and M-n don't have the same effect as up-arrow and down-arrow. Why is this? Anonymous
10:43 PM Bug #8034 (Closed): File.expand_path('something', '~') do not include home path
=begin
Next code works correctly only on ruby <= 1.9.3p362.
Tested on Windows XP, Windows 2008 with ruby 1.9.3p194 (works properly), ruby 1.9.3p362 (bug), ruby 2.0.0p0 (bug).
(({File.expand_path('something', '~') #=> "C:/path/to/cur...
rap-kasta (Pavel Manylov)
08:24 PM Feature #8024: Lazy sweep を on/off するための機能
> GC.disable_lazy_sweepも有り難みがよくわかりませんでした。
rspec が spec ファイル群をロードするだけで10分以上かかる場合があるので、
プロセスの起動時〜specファイルロード完了までは lazy sweep は有効であって欲しくて、
begin(:suite) で GC.disable_lazy_sweep することにしています。
ですから、私の個人的なユースケースでは GC.enable_lazy_sweep は使...
mrkn (Kenta Murata)
11:09 AM Feature #8024: Lazy sweep を on/off するための機能
えーと、一般論としてチューニングパラメータはdisable_hogehoge とかいう否定形は好ましくないよ。間違えるから。
環境変数は RUBY_GC_ENABLE_LAZY_SWEEP のほうがよいんじゃないかな。
GC.disable_lazy_sweepも有り難みがよくわかりませんでした。
kosaki (Motohiro KOSAKI)
10:50 AM Feature #8024 (Closed): Lazy sweep を on/off するための機能
Lazy sweep を on/off する機能を追加するパッチを作りました。
このパッチは環境変数1つと GC のモジュール関数2つを追加します。
環境変数は RUBY_GC_DISABLE_LAZY_SWEEP です。
これに 0 以外の整数を設定して ruby を実行すると、
lazy sweep が off の状態で実行されます。
GC に追加されるモジュール関数は disable_lazy_sweep と enable_lazy_sweep ...
mrkn (Kenta Murata)
06:31 PM Bug #7212: "stack level too deep" in Fiber much earlier in new versions of 1.9.3
ko1 (Koichi Sasada) wrote:
> Do you use same compiler and compile option on each environments?
Yes, it was compiled with rvm with no options specified.
I'm sorry for the late answer, for some reason I didn't get any mail notif...
fiddur (Fredrik Liljegren)
05:31 PM Bug #8028 (Rejected): Shellwords.escape works incorrect under windows
Shellwords.escape works incorrect under windows (tested for Windows 7
x64), here is example:
Actual result:
```
irb(main):001:0> require 'shellwords'
=> true
irb(main):002:0> `echo #{Shellwords.escape( '123>' )} test` # shoul...
Shagabutdinov (Leonid Shagabutdinov)
05:26 PM Feature #8027 (Feedback): add the possibility to raise an exception in #included, #extended, #prepended, #inherited and break the calling feature
imo an exception in this hook methods should be possible to prevent the adding in the ancestor chain
module A
def self.included(mod)
raise "dont include me"
end
end
module E
include A
end
##>> RuntimeError: dont include me...
Hanmac (Hans Mackowiak)
01:24 PM Revision 5f5d9155 (git): iseq.c: keyword arguments
* iseq.c (rb_iseq_disasm): show keyword arguments info, in format
"keyword: NUM@LIDX".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:14 PM Revision 22e2bfc6 (git): merge revision(s) 39297: [Backport #8032]
mkconfig.rb: clear exec_prefix
* tool/mkconfig.rb: clear exec_prefix which may differ from prefix,
before expanding rubyarchdir to remove prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39616 b2dd03c8-...
nagachika (Tomoyuki Chikanaga)
12:40 PM Feature #8026 (Feedback): Need Module#prepended_modules
We should have a way to get the list of prepended modules of a class or module.
module Mixin
end
module Outer
prepend Mixin
end
Mixin.prepended_modules #=> []
Outer.prepended_modules #=> [Mi...
marcandre (Marc-Andre Lafortune)
11:59 AM Revision 5c1af05e (git): defs/gmake.mk: serialize test targets.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:22 AM Revision 0af37bf0 (git): configure.in: fix unexpand_shvar
* configure.in (unexpand_shvar): remove guarding quotes at last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:45 AM Bug #7949 (Closed): Gem::Ext::Builder removes dependency to directory creation task
Seems fixed by Nobu's patches, so I will close this. drbrain (Eric Hodel)
06:30 AM Revision 63324158 (git): GNUmakefile.in: new template
* template/GNUmakefile.in: split from configure.in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:30 AM Revision 6f4d00e5 (git): process.c: fix error message
* process.c (check_exec_redirect_fd): fix error message for unknown
symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:30 AM Revision 2d1c94a1 (git): prefix global symbols
* iseq.c (rb_insn_operand_intern): prefix global symbols.
* numeric.c (ruby_num_interval_step_size): ditto.
* vm_backtrace.c (rb_vm_backtrace_str_ary),
(rb_vm_backtrace_location_ary, rb_vm_thread_backtrace),
(rb_vm_thread_backtrace...
nobu (Nobuyoshi Nakada)
06:29 AM Revision 4f59a115 (git): intern.h: macro rb_check_arity
* include/ruby/intern.h (rb_check_arity): same name macro for backward
compatibility checking by ifdef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:25 AM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
All packages are installed via packman
/usr/lib/libtcl8.6.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x31a66c5d6eacb77f2a9a220bff2e78a88821167e, not stripped
/usr/lib/libtk8.6.so: ELF ...
ponimas (Alexander Ponimaskin)
04:14 AM Revision d1e3c632 (git): * test/rubygems/test_gem_spec_fetcher.rb: Removed unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
02:49 AM Bug #6151: ArgumentError of lambda shows wrong location
I agree, @trans, this is a very surprising behavior. I was expecting instance_eval to call the block I passed to it without any args. Since self is already implicitly available from the block, I just don't understand why instance_eval wo... TylerRick (Tyler Rick)
02:48 AM Bug #8018 (Closed): Typo in Class: Encoding documentation. Encoding::UTF-8 instead of Encoding::UTF_8
Already fixed by r39575, see https://github.com/ruby/ruby/pull/255 marcandre (Marc-Andre Lafortune)
02:39 AM Feature #7836: Need a way to get Method and UnboundMethod objects to methods overridden by prepended modules
nobu: Patch looks good, but I would go further and have `String.instance_method(:object_id, false)` also raise a NameError, for consistency with `String.instance_methods(false).include? :object_id # => false`.
Did Matz confirm any of ...
marcandre (Marc-Andre Lafortune)
02:38 AM Feature #7836: Need a way to get Method and UnboundMethod objects to methods overridden by prepended modules
banister (john mair) wrote:
> @ marcandre. Another possible approach is to provide `UnboundMethod#super`.
Not a bad idea, for Method also, although I'm not sure if it would be useful to many. You might want to make another feature re...
marcandre (Marc-Andre Lafortune)
02:21 AM Bug #7968: Poor UDPSocket#send performance in ruby 2.0.0 on windows
Hello, Alan.
I re-open this ticket because it was accidentally closed by wrong commit message.
This issue is not fixed yet.
BTW, in socketsendtest.rb UDPSocket#bind and #connect receive different port number. Is it right?
On my e...
nagachika (Tomoyuki Chikanaga)
02:02 AM Bug #7968: Poor UDPSocket#send performance in ruby 2.0.0 on windows
I see the %Done went up to 100 and back down to zero. Is this fixed or not now?
Thanks
Alan.
cs96and (Alan Davies)
12:35 AM Bug #8017: Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
nobu (Nobuyoshi Nakada) wrote:
> What's the clang version?
$ clang -v
Apple clang version 1.6 (tags/Apple/clang-70)
Target: x86_64-apple-darwin10
Thread model: posix
adantel (Alex Filatau)

03/05/2013

11:11 PM Revision 48d5694f (git): * test/rubygems/test_require.rb: Fix tests when 'a.rb' exists.
[ruby-trunk - Bug #7749]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:02 PM Revision 6e48ce9c (git): * lib/rubygems.rb: Allow specification of directory permissions.
[ruby-trunk - Bug #7713]
* test/rubygems/test_gem.rb: Test for the above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:40 PM Revision 7a88ad0a (git): * lib/rubygems/commands/query_command.rb: Only fetch remote specs when
showing details. [ruby-trunk - Bug #8019] RubyGems bug #487
* lib/rubygems/remote_fetcher.rb: ditto.
* lib/rubygems/security/policy.rb: ditto.
* test/rubygems/test_gem_commands_query_command.rb: Test for the
above.
* lib/rubygems...
drbrain (Eric Hodel)
08:29 PM Bug #7988 (Closed): Module#prepend(Module) and instance_method causes Segmentation fault
This issue was solved with changeset r39599.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
proc.c: revert r39224
* proc.c (mnew): revert r39224. [ruby...
nobu (Nobuyoshi Nakada)
05:13 PM Bug #8018 (Closed): Typo in Class: Encoding documentation. Encoding::UTF-8 instead of Encoding::UTF_8
Hi, there's a typo in the Encoding Class documentation. http://ruby-doc.org/core-2.0/Encoding.html
In the Changing an encoding section, in the example says
string.force_encoding(Encoding::UTF-8)
instead of
string.force_encodin...
eljojo (Jose Tomas Albornoz)
05:06 PM Bug #8017 (Feedback): Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
What's the clang version?
nobu (Nobuyoshi Nakada)
02:52 PM Bug #8017 (Third Party's Issue): Got segmentation fault on attempt to install ruby 2.0.0-p0 on Mac 10.6.8 via RVM
Mac OS 10.6.8
rvm rvm 1.18.15 (master)
$ sudo rvm install 2.0.0
Password:
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.6/i386/ruby-2.0.0-p0.
Continuing with compilation. Please re...
adantel (Alex Filatau)
04:31 PM Revision 32fa37f5 (git): * 2013-03-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:31 PM Revision dbec401c (git): use INT2FIX(0) instead of INT2NUM(0).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:54 PM Bug #7881: Windows でパスに日本語を含むスクリプトからの require が失敗する
=begin
たとえば、下記のようなコードを書いたときに、current directoryのパスが日本語を含んでいても
Encoding::CompatibilityError にならずに動く、という利点はあるのではないでしょうか。
expand_pathの結果がfilesystem encodingに変わる可能性があれば、日本語の引数に.encode('filesystem')をつけるなどしておかないといけません。
# coding: euc-...
h.shirosaki (Hiroshi Shirosaki)
01:48 PM Revision 6520da62 (git): * ChanageLog: fix ticket ref in r39597.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
12:50 PM Revision 1d82ffd8 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:41 PM Feature #8016 (Assigned): Alias __FILE__ and __LINE__ as methods
naruse (Yui NARUSE)
12:16 PM Feature #8016 (Assigned): Alias __FILE__ and __LINE__ as methods
=begin
All of the previous issues discussing the new (({Kernel#__dir__})) method (#1961, #3346, #7975), never came to any conclusion regarding the naming inconsistency between the likes of (({__dir__})) and (({__method__})), and the key...
wardrop (Tom Wardrop)
12:38 PM Feature #8015: [patch] tuneable HEAP_GROWTH_FACTOR
Thanks for the review. How about this?
@@ -3366,10 +3535,11 @@ rb_gc_set_params(void)

growth_factor_ptr = getenv("RUBY_HEAP_SLOTS_GROWTH_FACTOR");
if (growth_factor_ptr != NULL) {
- double growth_factor_f = atof(...
tmm1 (Aman Karmani)
10:53 AM Feature #8015: [patch] tuneable HEAP_GROWTH_FACTOR
The idea seems good.

> + growth_factor_ptr = getenv("RUBY_HEAP_SLOTS_GROWTH_FACTOR");
> + if (growth_factor_ptr != NULL) {
> + double growth_factor_f = atof(growth_factor_ptr);

atof() don't have proper error ch...
kosaki (Motohiro KOSAKI)
10:17 AM Feature #8015 (Closed): [patch] tuneable HEAP_GROWTH_FACTOR
diff --git a/gc.c b/gc.c
index 925e496..71f509f 100644
--- a/gc.c
+++ b/gc.c
@@ -71,11 +71,13 @@
#endif
#define HEAP_MIN_SLOTS 10000
#define FREE_MIN 4096
+#define HEAP_GROWTH_FACTOR 1.8

typedef struct {
unsigned i...
tmm1 (Aman Karmani)
12:36 PM Revision f113ab55 (git): class.c: check redefinition
* class.c (rb_prepend_module): check redefinition of built-in opimized
methods. [ruby-dev:47124] [Bug #7983]
* vm.c (rb_vm_check_redefinition_by_prepend): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39601 b2dd03c8-39d4-...
nobu (Nobuyoshi Nakada)
12:30 PM Revision 00a8203b (git): test_method.rb: reduce iteration
* test/ruby/test_method.rb (TestMethod#test_bound_method_entry):
reduce iteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:29 AM Revision 2ff56cc9 (git): proc.c: revert r39224
* proc.c (mnew): revert r39224. [ruby-core:53038] [Bug #7988]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:23 AM Revision 708df44e (git): intern.h: inline function rb_check_arity
* include/ruby/intern.h (rb_check_arity): make a static inline
function so it can be used as an expression and argc would be
evaulated only once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39598 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
11:02 AM Feature #2837: Compile-time constant for HEAP_GROWTH_FACTOR (patch attached)
This patch contains not only the subject but also the accessors.
It isn't acceptable and you should separate them, I think.
nobu (Nobuyoshi Nakada)
10:20 AM Bug #8010 (Closed): Enumerator#with_index(large_number)
This issue was solved with changeset r39594.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
enumerator.c: allow Bignum for with_index
* enumerator.c (en...
nobu (Nobuyoshi Nakada)
06:16 AM Feature #5373: SMTP - new method
Since Aoki-san was listed as neutral last I asked, I will apply this sometime next week. drbrain (Eric Hodel)
03:31 AM Revision 85164e55 (git): * lib/rubygems.rb: Bump version to 2.0.1 for upcoming bugfix release
* lib/rubygems/ext/ext_conf_builder.rb: Restore ruby 1.8 compatibility
for [Bug #9698]
* test/rubygems/test_gem_installer.rb: Ditto.
* lib/rubygems/package.rb: Restore ruby 1.8 compatibility.
* test/rubygems/test_gem_dependency_in...
drbrain (Eric Hodel)
03:25 AM Revision 6c77ae07 (git): * enumerator.c (enumerator_with_index): Restore handling of a nil memo
from r39594.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:40 AM Revision b4a117f8 (git): objspace.c: newly added nodes
* ext/objspace/objspace.c (count_nodes): count also newly added nodes,
and fix key for unknown node. patch by tmm1 (Aman Gupta) in
[ruby-core:53130] [Bug #8014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39595 b2dd03c8-39d4-...
nobu (Nobuyoshi Nakada)
01:20 AM Revision 4a429c11 (git): enumerator.c: allow Bignum for with_index
* enumerator.c (enumerator_with_index_i): allow Bignum as offset, to
get rid of conversion exception and integer overflow.
[ruby-dev:47131] [Bug #8010]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39594 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
01:18 AM Revision ce357ef1 (git): numeric.c: optimize for Bignum
* numeric.c (rb_int_succ, rb_int_pred): shortcut optimization for
Bignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:06 AM Revision 66867b0a (git): ext_conf_builder.rb: clear DESTDIR
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
clear DESTDIR so RUBYARCHDIR and RUBYLIBDIR are not be overrdden.
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39592 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
01:02 AM Revision 001e06ed (git): * 2013-03-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:02 AM Revision f2d3cd1c (git): ext_conf_builder.rb: clear DESTDIR
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
clear DESTDIR so RUBYARCHDIR and RUBYLIBDIR are not be overrdden.
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39590 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
12:57 AM Bug #8012 (Closed): Performance degradation in 2.0.0p0
$ ruby -v
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
I'm running a simple CPU intensive benchmark:
puts (0..11).to_a.permutation.inject(0) { |m, _| m += 1 }
This takes around 158s with 1.9.3 and 200s with 2.0.0p0 w...
ram (Munagala Ramanath)

03/04/2013

08:18 PM Bug #8010 (Closed): Enumerator#with_index(large_number)
Enumerator#with_index の引数で大きな数を指定するとマイナスになったり例外になったりするのはバグでしょうか?
% ruby -ve 'p 3.times.with_index(1<<61).to_a'
ruby 2.1.0dev (2013-03-04 trunk 39580) [x86_64-linux]
[[0, 2305843009213693952], [1, 2305843009213693953], [2, 2305843009...
znz (Kazuhiro NISHIYAMA)
04:22 PM Revision 3c8784c2 (git): merge revision(s) 39358:
* tool/merger.rb: add interaction when only ChangeLog is modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:04 PM Revision dab8d82d (git): merge revision(s) 39349,39374: [Backport #7886]
* file.c (rb_group_member): get rid of NGROUPS dependency.
[Bug #7886] [ruby-core:52537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:50 PM Revision bec0f1a6 (git): merge revision(s) 39329: [Backport #8011]
enumerator.c: suppress warnings
* enumerator.c (lazy_zip_arrays_func, lazy_zip_func, lazy_take_func),
(lazy_drop_func, lazy_drop_while_func): suppress uninitialized
instance vriable warnings.
git-svn-id: svn+ssh://ci.ruby-l...
nagachika (Tomoyuki Chikanaga)
03:38 PM Revision b025b119 (git): merge revision(s) 39322:
* array.c: Fix typo in class documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:35 PM Revision 8f94d406 (git): merge revision(s) 39317 partially:
* ChangeLog: fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:17 PM Revision b2a8c2f3 (git): merge revision(s) 39309,39310: [Backport #7551]
* ext/openssl/ossl.c (class OpenSSL): Fixed ExtensionFactory example.
Patch by Richard Bradley. [ruby-trunk - Bug #7551]
* ext/openssl/ossl.c (class OpenSSL): Use only inner parenthesis in
create_extension...
nagachika (Tomoyuki Chikanaga)
02:54 PM Revision 2fbe19cc (git): merge revision(s) 39291:
* configure.in: remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:49 PM Bug #8000: "require 'tk'" segfaults on 64-bit linux with Tk 8.6
Did you build tcltk, or install binaries via pacman? This seems wacky if you used pacman, but does `file` prove /usr/lib/libtcl8.6.so and /usr/lib/libtk8.6.so are 64bit?
Since it crashes so easily, fire up gdb via something like
...
jonforums (Jon Forums)
02:43 PM Revision 7a730fe1 (git): merge revision(s) 39286,39287:
* ext/psych/lib/psych/y.rb: Document Kernel#y by Adam Stankiewicz
[Github tenderlove/psych#118]
[Github tenderlove/psych#127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39582 b2dd03c8-39d4-4d8f-...
nagachika (Tomoyuki Chikanaga)
02:37 PM Revision b501eda4 (git): merge revision(s) 39284: [Backport #7860]
* tool/mkconfig.rb: remove prefix from rubyarchdir.
r39267 expands variables, it changes expansion timing,
breaks RbConfig::CONFIG["includedir"] and building
extension libraries with installed ruby.
git-sv...
nagachika (Tomoyuki Chikanaga)
08:05 AM Revision dbb6526e (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:03 AM Bug #7956 (Open): Install fail with RVM
Re-opening.
I also sent an email to Michal Papis.
It might be best to open this issue on rvm's side and if Michal finds a problem that ruby-core can solve he could submit that?
marcandre (Marc-Andre Lafortune)
06:11 AM Bug #7956: Install fail with RVM
I'm still getting the error when trying to build.
What other information can I provide that would help you to track down the issue?
nstoker (Neil Stoker Stoker)
06:33 AM Revision a95a87c0 (git): ext_conf_builder.rb: install via temporary directory
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
fix for unusal cases again. install to a temporary directory once
and move instaled files to the destination directory, if it is same
as the current director...
nobu (Nobuyoshi Nakada)
05:23 AM Feature #7998: "def" should return a value (the symbol of the method name) instead of nil
=begin
It has been suggested long long ago. Probably more than once. Here is a link to one: #3753.
Once we start looking at code like that for a while will we then start to think, why not just:
public foo()
...
end
p...
trans (Thomas Sawyer)
04:13 AM Feature #7998: "def" should return a value (the symbol of the method name) instead of nil
+1
While the proposed usage is good, I immediately thought about this:
new_meth_name = module_eval <<-RUBY
def prefix_#{val}_postfix
...
end
RUBY
Student (Nathan Zook)
05:13 AM Revision a5a49630 (git): Makefile.in: move MAINLIBC after objects
* Makefile.in (miniruby, ruby): move MAINLIBC because linker arguments
must appear after object files with newer versions of gcc. patch by
tmm1 (Aman Gupta) in [ruby-core:53121] [Bug #8009]
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
nobu (Nobuyoshi Nakada)
01:27 AM Revision 14cc02fb (git): ChangeLog: fix commit miss
* ChangeLog: remove duplicated entry by commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:24 AM Revision 56348e18 (git): * 2013-03-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:24 AM Revision d4d14c19 (git): * encoding.c: Typo in Encoding overview by Tom Wardrop [GH fixes #255]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)

03/03/2013

10:49 PM Bug #7881: Windows でパスに日本語を含むスクリプトからの require が失敗する
素朴にバグかと思っていたのですが、File.expand_path の今現在の挙動のほうが望ましい場面っていうのは考えられるんでしょうか。 nagachika (Tomoyuki Chikanaga)
12:17 PM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
This issue was solved with changeset r39572.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: remove circular dependency in install-so
*...
nobu (Nobuyoshi Nakada)
10:28 AM Bug #7698 (Assigned): RubyGems 2.0 has an incompatibility about installation of extension libraries
nobu (Nobuyoshi Nakada)
01:17 AM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
This issue was solved with changeset r39560.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: hack for obsolete sytle gems
* lib/rubygem...
nobu (Nobuyoshi Nakada)
01:16 AM Bug #7698 (Assigned): RubyGems 2.0 has an incompatibility about installation of extension libraries
nobu (Nobuyoshi Nakada)
01:16 AM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
This issue was solved with changeset r39559.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: use RUBYOPT
* lib/rubygems/ext/ext_conf_bu...
nobu (Nobuyoshi Nakada)
01:15 AM Bug #7698 (Assigned): RubyGems 2.0 has an incompatibility about installation of extension libraries
nobu (Nobuyoshi Nakada)
01:14 AM Bug #7698 (Closed): RubyGems 2.0 has an incompatibility about installation of extension libraries
This issue was solved with changeset r39558.
Kenta, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext_conf_builder.rb: build in the source directory
* lib/rubyge...
nobu (Nobuyoshi Nakada)
04:15 AM Revision d71177fe (git): mkmf.rb: libpath_env
* lib/mkmf.rb (MakeMakefile#libpath_env): ignore empty LIBPATHENV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:35 AM Revision bb2551b4 (git): mkmf.rb: libpath_env
* lib/mkmf.rb (MakeMakefile#libpath_env): set runtime library path for
the case rpath is disabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:17 AM Revision a7a0b3ad (git): ext_conf_builder.rb: remove circular dependency in install-so
* lib/rubygems/ext/ext_conf_builder.rb
(Gem::Ext::ExtConfBuilder.hack_for_obsolete_style_gems): remove
circular dependencies in install-so too. [ruby-core:52882]
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3957...
nobu (Nobuyoshi Nakada)
12:44 AM Bug #7979 (Rejected): File.foreach splits on 'r' in windows
The second argument is a line separator to split the input. nobu (Nobuyoshi Nakada)
12:11 AM Bug #8006 (Closed): Dir.glob behaves differently on 1.9.3 and 2.0
=begin
While testing an application of mine with Ruby 2.0 I came across the following problem with Dir.glob where the pattern `FOO/BAR/**/*` does not match the directory `FOO/BAR` anymore because the implicit directories '.' and '..' do...
gettalong (Thomas Leitner)

03/02/2013

10:49 PM Bug #7960 (Closed): Ruby fails to build static under mswin linker error: multiple definitions of _Init_ext
This issue was solved with changeset r39552.
Benjamin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Makefile.sub: static-linked-ext
* win32/Makefile.sub (EXTOBJ...
nobu (Nobuyoshi Nakada)
06:00 PM Bug #7960: Ruby fails to build static under mswin linker error: multiple definitions of _Init_ext
infact I think I'm right, it's right here in the 2.0 change log
ext/extmk.rb (command_output): dmyext is needed as DLDOBJS if no static linked extensions.
this would seem to imply that if there were statically linked extensions it is ...
Ryexander (Benjamin Powers)
10:34 PM Revision 2a5b45dd (git): * ext/socket/tcpserver.c: Grammar for TCPServer.new from r39554
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
09:04 PM Bug #8004: spawn does not honor its passed PATH
Did some more digging, it seems to be a bug in Process.spawn:
```
#!/bin/sh
cat script.rb
# >> File.write 'my_bin', 'echo "WORKS"'
# >> File.chmod 0755, 'my_bin'
# >>
# >> puts "CWD: #{Dir.pwd}"
# >> Process.spawn({...
josh.cheek (Josh Cheek)
08:19 PM Bug #8004 (Closed): spawn does not honor its passed PATH
```
#!/bin/sh
# make an executable
echo '#!/usr/bin/env ruby' > my_bin
echo 'puts "omg"' >> my_bin
chmod +x my_bin
# run it in 1.9
ruby1.9 -v
# >> ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-dar...
josh.cheek (Josh Cheek)
05:59 PM Revision 3e23e2dd (git): merge revision(s) 39283:
* .gdbinit (iseq): rename dummy_gdb_enums to ruby_dummy_gdb_enums.
This is follow up to changes in r24407.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:45 PM Revision 2925654b (git): merge revision(s) 39282: [Backport #8007]
* vm.c (ENV_IN_HEAP_P): fix off-by-one error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:39 PM Revision cdac7f43 (git): merge revision(s) 39277:
* test/ruby/test_thread.rb: fixed typo
patched by Hiroki Matsue via https://github.com/ruby/ruby/pull/248
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:36 PM Bug #7100 (Closed): WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される
This issue was solved with changeset r39551.
Sho, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/utils.rb: use Socket.tcp_server_sockets to create se...
akr (Akira Tanaka)
05:28 PM Revision 7af9573b (git): merge revision(s) 39253:
win32.c: style
* win32/win32.c (rb_w32_fd_is_text): adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:24 PM Revision e8237c5b (git): merge revision(s) 39236: [Backport #7841]
* class.c (include_modules_at): detect cyclic prepend with original
method table. [ruby-core:52205] [Bug #7841]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:17 PM Revision 362f70c3 (git): merge revision(s) 39234,39235: [Backport #7843]
* vm_method.c: call method_removed hook on called class, not on
prepending iclass.
prepending iclass. [ruby-core:52207] [Bug #7843]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39565 b2dd03c8-39d...
nagachika (Tomoyuki Chikanaga)
04:59 PM Revision 00ded5b2 (git): merge revision(s) 39214,39221: [Backport #7830]
configure.in: Werror-implicit-function-declaration
* configure.in (warnflags): -Werror-implicit-function-declaration
haven't been used as-is, but always replaced with -Werror= or -W.
* configure.in (warnflags): disable...
nagachika (Tomoyuki Chikanaga)
04:46 PM Revision 69ac3b4d (git): merge revision(s) 39184:
add doc. for IO#close_on_exec=.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
04:33 PM Revision da56b059 (git): fix typos in r39560
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:33 PM Revision 59e66b10 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:17 PM Revision 32458a01 (git): ext_conf_builder.rb: hack for obsolete sytle gems
* lib/rubygems/ext/ext_conf_builder.rb
(Gem::Ext::ExtConfBuilder.hack_for_obsolete_sytle_gems): remove
circular dependencies for old style gems which locate extconf.rb on
the toplevel. [ruby-core:53059] [ruby-trunk - Bug #7698]
...
nobu (Nobuyoshi Nakada)
04:16 PM Revision 9b79ed12 (git): ext_conf_builder.rb: use RUBYOPT
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
use RUBYOPT instead of -r option, and revert some tests. [Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:14 PM Revision c0c72c9b (git): ext_conf_builder.rb: build in the source directory
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
revert use of temporary directory for build, to work some buggy
extconf.rb which cannot build outside the source directory.
[ruby-core:53056] [Bug #7698]
gi...
nobu (Nobuyoshi Nakada)
03:31 PM Revision ee01561b (git): * ChangeLog: fix a typo in r39552.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:04 PM Revision 77324855 (git): mswin: static-linked-ext
* enc/depend (CPPFLAGS), lib/mkmf.rb (MakeMakefile#create_makefile):
define RUBY_EXPORT for static-linked-ext mswin. [Bug #7960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:01 PM Revision 248aa54c (git): * 2013-03-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision fa063055 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:43 PM Bug #8000 (Closed): "require 'tk'" segfaults on 64-bit linux with Tk 8.6
Using ruby 1.9.3p392 and Tk 8.6.0 on 64-bit Arch Linux, attempting to "require 'tk'" causes a segfault.
To reproduce:
ruby -e "require 'tk'"
The crash log is in the attached file.
Notes:
- I've heard from a Gentoo user who...
edmccard (Ed McCardell)
01:50 PM Revision d613f283 (git): Makefile.sub: MAKEDIRS
* win32/Makefile.sub (config.status): set MAKEDIRS to use
makedirs.bat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:49 PM Revision 2250b195 (git): Makefile.sub: static-linked-ext
* win32/Makefile.sub (EXTOBJS, EXTOBJS, config.h): definitions for
static-linked-ext. [Bug #7960]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:36 AM Revision b1f493dc (git): * lib/webrick/utils.rb: use Socket.tcp_server_sockets to create server
sockets.
fix [Bug #7100] https://bugs.ruby-lang.org/issues/7100
reported by sho-h (Sho Hashimoto).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
05:59 AM Feature #7986: Custom case statement comparison method
=begin
> "It is puzzling that you must always super first, then if unhandled execute the case expression, but do nothing if the object is unknown. It seems very error prone."
Why? That's not uncommon. In this particular case you don't "...
trans (Thomas Sawyer)
05:43 AM Feature #7986: Custom case statement comparison method
=begin
It is puzzling that you must always super first, then if unhandled execute the case expression, but do nothing if the object is unknown. It seems very error prone.
Why not execute the subclass case expression first, then supe...
drbrain (Eric Hodel)
05:34 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
I don't have a locale set, so I don't think that that could be the problem.
And even so, how would that affect a tight loop?
jcole1989 (James Coleman)
04:52 AM Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
=begin
Even with irb:
$ irb -rbenchmark
irb(main):001:0> RUBY_DESCRIPTION
=> "ruby 2.0.0p0 (2013-02-24 revision 39473) [x86_64-darwin12.2.1]"
irb(main):002:0> Benchmark.measure { 50000000.times { Object.new } }
=> #<B...
drbrain (Eric Hodel)
05:30 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
Ok, i see. alexeymuranov (Alexey Muranov)
05:02 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
> I also do not see right away an incompatibility introduced by my second proposal (about the original one you are right).
#before
[[1,2]].each{|a, b| p a, b} # => 1, then 2
# after
[[1,2]].each{|a, b| p a, b} # => [1, 2], ...
marcandre (Marc-Andre Lafortune)
04:45 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
Marc-Andre, thanks for the idea, i did not realize that `each_with_index` works with all enumerables.
However i was hoping that something like `unless iteration.first?` could be some day optimized away by a compiler to not check on ever...
alexeymuranov (Alexey Muranov)
04:31 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
Please think about the number of incompatibilities this would bring... not all enumerables are sequences of single items.
Just use `each_with_index` and `index.zero?` instead of `iteration.first?`
marcandre (Marc-Andre Lafortune)
04:27 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
=begin
Ok, then i make a last try: what about adding it in the end of parameter list as an optional parameter?
items.each do |item, iteration|
unless iteration.first?
# do something that is not applicable to the first iter...
alexeymuranov (Alexey Muranov)
03:48 AM Feature #7994 (Rejected): Make iterators pass an implicit named parameter `iteration` to the executed block
Nice idea.
But I reject the idea for Ruby for two reasons:
* I personally don't like implicit parameters
* That might cause incompatibility by conflicting with existing local variable name
Maybe good for a new language without ...
matz (Yukihiro Matsumoto)
12:55 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
regularfry (Alex Young) wrote:
> On 01/03/13 15:21, alexeymuranov (Alexey Muranov) wrote:
> ...
Sorry, i didn't understand, how do you plan to use this?
alexeymuranov (Alexey Muranov)
12:53 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
On 01/03/13 15:21, alexeymuranov (Alexey Muranov) wrote:
>
> Issue #7994 has been reported by alexeymuranov (Alexey Muranov).

What advantages does this have over:

items.drop(1).each do |item|

or

items[1..-1...
regularfry (Alex Young)
12:30 AM Feature #7994: Make iterators pass an implicit named parameter `iteration` to the executed block
=begin
As a use case, i wanted to create a pagination navigation element on a web page in ((*Haml*)) template. What i ended up with looks redundant to me. With the suggested feature, i would be able to do:
%nav.pagination
- [page_...
alexeymuranov (Alexey Muranov)
12:21 AM Feature #7994 (Rejected): Make iterators pass an implicit named parameter `iteration` to the executed block
=begin
I think it would be nice to be able to write something like this:
items.each do |item|
unless iteration.first?
# do something that is not applicable to the first iteration
end
# do whatever is to be don...
alexeymuranov (Alexey Muranov)
04:27 AM Feature #7998 (Closed): "def" should return a value (the symbol of the method name) instead of nil
The C code that implements Ruby method definitions already creates a symbol corresponding to the method name.
I propose that the "def... end" block returns this symbol.
This would allow the following elegant Ruby code:
protected...
pmarreck (Peter Marreck)
03:29 AM Bug #7331: Set the precedence of unary `-` equal to the precedence `-`, same for `+`
After some thinking, i want to add my last word on this :). I have not seen any "official" rule on parsing "- 2 * 3" (unless i was taught this in elementary school but not sure). However, i'll try to explain my reasons for believing th... alexeymuranov (Alexey Muranov)
02:41 AM Bug #7993: owner of methods defined after using Module#prepend
Agreed. I described this in [ruby-core:52261], part of issue #7842. marcandre (Marc-Andre Lafortune)
12:01 AM Bug #7993 (Closed): owner of methods defined after using Module#prepend
The owner of methods defined after using Module#prepend seems to be incorrect.
```ruby
RUBY_DESCRIPTION # => "ruby 2.1.0dev (2013-03-01 trunk 39546) [x86_64-linux]"
class C
attr_reader :a
prepend Module.new
attr_reader :b...
no6v (Nobuhiro IMAI)
01:48 AM Feature #7978: boolean to_i
phluid61 (Matthew Kerwin) wrote:
>
> ...
If some event is going to happen with probability 1, it is almost surely true that it will happen. If it is going to happen with probability 0, it is almost surely false that it will happen.
alexeymuranov (Alexey Muranov)
01:44 AM Bug #7995 (Closed): RubyVM::InstructionSequence to_a not working for blocks
Hello,
I try to convert this code into an array via RubyVM::InstructionSequence:
-----
def test
yield
end
test do
puts "hi there"
end
-----
then read it back via "iseq_s_load".
This causes an error that there is no blo...
mmeltner (Michael Meltner)
12:43 AM Bug #7968 (Open): Poor UDPSocket#send performance in ruby 2.0.0 on windows
nagachika (Tomoyuki Chikanaga)
12:06 AM Feature #3944: Add Fiber#root? method
Julien please see ruby-core:45849 and also read up on the wiki: http://bugs.ruby-lang.org/projects/ruby/wiki/HowToRequestFeatures zzak (zzak _)
 

Also available in: Atom