Project

General

Profile

Activity

From 07/28/2012 to 08/03/2012

08/03/2012

08:30 PM Feature #3346: __DIR__ revisted
mame (Yusuke Endoh) wrote:
> Thomas Sawyer and Yutaka Hara,
> ...
Will __dir__ always be an absolute path, or just File.dirname(__FILE__)?
File.dirname(__FILE__) is relative (often ".") when __FILE__ is $0.
It would mean the path n...
Eregon (Benoit Daloze)
08:22 PM Feature #3346 (Assigned): __DIR__ revisted
This one is alive. shyouhei (Shyouhei Urabe)
08:05 PM Feature #3346 (Closed): __DIR__ revisted
matz (Yukihiro Matsumoto)
08:05 PM Feature #1961 (Closed): Kernel#__dir__
matz (Yukihiro Matsumoto)
07:33 PM Feature #1961: Kernel#__dir__
This ticket should be closed since discussion is continued to #3346 ("__DIR__ revisted"). yhara (Yutaka HARA)
07:53 PM Feature #6670: str.chars.last should be possible
> I'm happy to inform you that matz has accepted your proposal,
> ...
Thank you. I'm happy too :-)
I will make a patch in this weekend.
yhara (Yutaka HARA)
07:27 PM Bug #3351 (Closed): stack overflow on super
This issue was solved with changeset r36612.
Serge, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* insns.def (invokesuper): don't skip the same class. instead, ...
shugo (Shugo Maeda)
04:56 PM Revision 260d02d9 (git): vm_insnhelper.c: no recv
* vm_insnhelper.c (vm_search_normal_superclass): no longer needs
receiver, klass is always unique in the ancestors now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:54 PM Revision e421410e (git): test_super.rb: rename
* test/ruby/test_super.rb (TestSuper#test_double_include2): rename to
get rid of redefinition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:32 PM Revision 2e2245bf (git): * 2012-08-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:32 PM Revision 9bef3f05 (git): * insns.def (invokesuper): reverted r36612 so that super in an
aliased method will not call the same method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:08 PM Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
Oops I missed it; r36603 should fix it. naruse (Yui NARUSE)
11:56 AM Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
Even after running git clean -x -f, autoconf, ./configure and make again is not working for me. I'm on Mac OS X 10.7.4 using XCode 4.4.
As HG said --without-gcc does the trick.
spastorino (Santiago Pastorino)
06:34 AM Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
As the commit above shows, configure.in was edited. To pick up this change you must rebuild the configure script. Usually make detects this and automatically runs autoconf for you. You may need to run autoconf by hand to regenerate th... drbrain (Eric Hodel)
06:30 AM Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
"Hrm, autoconf was not re-run, does `make` do it?" No. But ./configure --without-gcc works fine. hg (HG Hoehne)
05:38 AM Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
Hrm, autoconf was not re-run, does `make` do it? drbrain (Eric Hodel)
12:15 AM Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
As in r36597 the default is still gcc.
./configure
checking build system type... x86_64-apple-darwin12.0.0
checking host system type... x86_64-apple-darwin12.0.0
checking target system type... x86_64-apple-darwin12.0.0
checking f...
hg (HG Hoehne)
11:45 AM Feature #6824: StopIteration gets a source method
=begin
You should use (({assert_same})) instead of (({assert_equal})), I think.
=end
nobu (Nobuyoshi Nakada)
10:27 AM Revision 2d3d8415 (git): * insns.def (invokesuper): don't skip the same class. instead, use
rb_method_entry_get_with_omod() to avoid infinite loop when
super is used with refinements. [ruby-core:30450] [Bug #3351]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
10:21 AM Revision bea3f0df (git): configure.in: use default compilers for non-darwin
* configure.in: use clang prior to gcc only when self-compiling on
darwin. search default compilers on other platforms. [Bug #6816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:27 AM Revision a713b376 (git): * configure.in: move RUBY_MINGW32 after AC_PROG_CC.
RUBY_MINGW32 uses AC_TRY_CPP and it sets CC and CPP. [Bug #6816]
* configure.in: don't use AC_PROG_CC in AS_CASE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:23 AM Revision 7ed6c4ee (git): un.rb: reduce duplication
* lib/un.rb (httpd): reduce duplicated code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:22 AM Revision a580c01d (git): un.rb: DocumentRoot
* lib/un.rb (httpd): document root is mandatory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:21 AM Revision 5b657b5d (git): runner.rb: no installed gems
* test/runner.rb: get rid of loading previously installed gems.
[ruby-dev:46025]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:46 AM Revision b2acc2d5 (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:41 AM Revision bb9fface (git): * .travis.yml (notifications): [experimental] IRC notificatoins.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
07:25 AM Revision e07bdafb (git): Revert "* configure.in: move RUBY_MINGW32 after AC_PROG_CC."
This reverts commit r36603.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:31 AM Bug #6825 (Open): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
drbrain (Eric Hodel)
05:48 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Switching `require 'active_record'` with `require 'mysql2'` still crashes the interpreter as long as required file is taken using gems mechanism. xentronium (Mark A)
05:45 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
> I can't reproduce on OS X 10.8 ruby 2.0.0dev (2012-08-03 trunk 36602) [x86_64-darwin12.0.0]
That seems right, 10.8 seems to be unaffected.
> ...
1.9.3p194 :002 > require 'active_record'
=> true
1.9.3p194 :003 > $LOADED_...
xentronium (Mark A)
05:36 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
=begin
I can't reproduce on OS X 10.8 ruby 2.0.0dev (2012-08-03 trunk 36602) [x86_64-darwin12.0.0]
I modified your script to remove require 'active_record' and altered the main thread to sleep forever. This ensures that mysql and ot...
drbrain (Eric Hodel)
05:23 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Another update: I opened up a file `active_record.rb` inside installed activerecord gem and completely commented it out (so that even ActiveRecord is not defined after require 'active_record'). Still crashes. I guess that takes care of g... xentronium (Mark A)
05:09 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Oh, it also reproduced on ruby 2.0.0.dev from current git, so I guess it is still not fixed. xentronium (Mark A)
05:08 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Update: I greatly simplified my test-case.
https://gist.github.com/47e48301aea114e7b1d3
If I remove sleeping threads on line 31 or require 'active_record' on line 1, bug stops reproducing.
Returning back to ruby-lang, as there i...
xentronium (Mark A)
03:22 AM Bug #6825 (Feedback): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
drbrain (Eric Hodel)
02:07 AM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
After some more fiddling it looks like it's mysql2 problem, not ruby's. Will duplicate issue there. xentronium (Mark A)
06:21 AM Revision 77ef86fe (git): * configure.in: move RUBY_MINGW32 after AC_PROG_CC.
RUBY_MINGW32 uses AC_TRY_CPP and it sets CC and CPP. [Bug #6816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:10 AM Feature #6808 (Feedback): Implicit index for enumerations
See rb_define_virtual_variable() and vm_svar_get()
drbrain (Eric Hodel)
03:48 AM Feature #6808: Implicit index for enumerations
> $~ and friends behave this way (thread and method local).
Hmmm... In that case, maybe it is worth trying, to see what the actual performance change would be. I'm willing to do it, and I basically know enough to work with a global vari...
trans (Thomas Sawyer)
03:15 AM Feature #6808 (Closed): Implicit index for enumerations
trans (Thomas Sawyer) wrote:
> > No matter which method is faster, what happens to this code:
> ...
$~ and friends behave this way (thread and method local).
> In any case, I think I will withdraw this request. Having to worry about...
drbrain (Eric Hodel)

08/02/2012

11:01 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Confirmed with another 10.6 / 1.9.3-p194. xentronium (Mark A)
10:29 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
OS X 10.8 seems to be unaffected. xentronium (Mark A)
09:31 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
ruby 2.0.0dev (2012-08-02 trunk 36596) [x86_64-darwin10.8.0] also does not crash. xentronium (Mark A)
08:59 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Ruby 1.9.2 doesn't crash either. xentronium (Mark A)
08:52 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Ubuntu 11.04 doesn't crash with 1.9 ruby either. xentronium (Mark A)
08:39 PM Bug #6825: forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
Also notably ruby 1.8.7 does not crash. xentronium (Mark A)
08:39 PM Bug #6825 (Closed): forking and pthread_cond_timedwait: Invalid argument (EINVAL) on OS X / 1.9.3-p194
https://gist.github.com/47e48301aea114e7b1d3 here is the gist with required setup to reproduce bug. Also crash log and stdout.
It seems that forking is essential for this setup to crash. Also, if you use database connection in some wa...
xentronium (Mark A)
11:00 PM Feature #6808: Implicit index for enumerations
=begin
> Are the times of these benchmarks dominated by object creation or iteration? What happens if you run a small number of trials across a large array? (n = 26, a = (0...1000000).to_a)
You are correct that the difference would be l...
trans (Thomas Sawyer)
08:41 PM Feature #4085: Refinements and nested methods
shugo (Shugo Maeda) wrote:
> Matz said the only problem is performance before, so I assign this issue to ko1.
I've committed refinements in r36596 with Matz's permission. However,
it's just an experimental feature, and may be rever...
shugo (Shugo Maeda)
06:45 PM Feature #6824 (Rejected): StopIteration gets a source method
=begin
I'd like to add a method to StopIteration that returns an instance of the enumerator which triggered this exception. Eg:
enum = [].each
begin
enum.next
rescue StopIteration => ex
puts "same" if ex.source == e...
jasiek (Jan Szumiec)
06:45 PM Revision e25baf1d (git): * 2012-08-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:45 PM Revision 0357f677 (git): add missing *
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:38 PM Revision ede12230 (git): * eval.c (rb_mod_refine): fix documentation.
Module#refine does not return self, but module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
02:03 PM Feature #6823 (Assigned): Where/how should ruby-mode issues be reported?
shyouhei (Shyouhei Urabe)
01:59 PM Feature #6823 (Closed): Where/how should ruby-mode issues be reported?
Hi!

I’ve previously reported a couple of issues with ruby-mode, namely

http://bugs.ruby-lang.org/issues/5356

and

http://bugs.ruby-lang.org/issues/5357

They’ve seen no progress.

Just to be clear, am I report...
now (Nikolai Weibull)
02:02 PM Bug #6822 (Assigned): Race Condition with Fiber and Process
shyouhei (Shyouhei Urabe)
10:38 AM Bug #6822 (Closed): Race Condition with Fiber and Process
If I run the following code
$stdout.sync = true
objects = [1, 2, 3]
fiber = Fiber.new do
loop do
objects.each { |obj| Fiber.yield(obj) }
end
end
def run(obj)
fork do
p...
MartinBosslet (Martin Bosslet)
01:57 PM Revision 9dc1a421 (git): * vm_insnhelper.c (rb_vm_using_modules): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:28 PM Bug #6816: Can't compile ruby 2.0.0dev on Mac OS X 10.8
On darwin12 (a.k.a. OS X 10.8 or Mountain Lion) with Xcode 4.4 CLI, `gcc` is llvm-gcc.
Its gcc extension Label as Values support is buggy and causes this bug.
You can avoid this by -O0 or specify OPT_DIRECT_THREADED_CODE 1 in vm_opts.h...
naruse (Yui NARUSE)
01:24 PM Bug #6816 (Closed): Can't compile ruby 2.0.0dev on Mac OS X 10.8
This issue was solved with changeset r36594.
HG, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (AC_PROG_CC): AC_PROG_CC tries clang at first on
d...
naruse (Yui NARUSE)
12:52 PM Revision 2af6b06f (git): * vm_insnhelper.c (vm_call_method): remove garbage spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:47 AM Bug #6821 (Closed): GC::Profiler.enabled? returns 0 when enabled
This issue was solved with changeset r36593.
Dirkjan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* gc.c: return true or false. Patch by Dirkjan Bussink. [Bug #...
authorNari (Narihiro Nakamura)
07:33 AM Bug #6821 (Assigned): GC::Profiler.enabled? returns 0 when enabled
nobu (Nobuyoshi Nakada)
06:24 AM Bug #6821 (Closed): GC::Profiler.enabled? returns 0 when enabled
GC::Profiler.enabled? returns 0 when GC::Profiler is enabled, contrary to the documentation that states it returns either true or false. Looking at the code, I think it's an oversight because objspace->profile.run isn't properly wrapped ... dbussink (Dirkjan Bussink)
11:36 AM Revision 98043aca (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:34 AM Revision 19ddfc24 (git): * eval.c (rb_mod_using): new method Module#using. [experimental]
* eval.c (rb_mod_refine): new method Module#refine. [experimental]
* eval.c (f_using): new method Kernel#using. [experimental]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
11:20 AM Feature #6361: Bitwise string operations
mame (Yusuke Endoh) wrote:
> Martin Bosslet and Joshua Ballanco,
> ...
No problem! It's very specific and I understand well that it certainly
adds complexity that is not needed often enough. I still believe that
having something like...
MartinBosslet (Martin Bosslet)
11:08 AM Revision 319088e9 (git): * class.c, insns.def, method.h, proc.c, vm.c, vm_core.h, vm_eval.c,
vm_insnhelper.c, vm_insnhelper.h, vm_method.c: add klass to
rb_control_frame_t to implement super correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
11:05 AM Feature #6819: OpenSSL::Digest.new should return an instance of the chosen subclass
drbrain (Eric Hodel) wrote:
> I agree. I have attached a patch to implement your suggestion.
Thanks to both of you!
MartinBosslet (Martin Bosslet)
10:58 AM Feature #6819 (Closed): OpenSSL::Digest.new should return an instance of the chosen subclass
This issue was solved with changeset r36592.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/lib/openssl/digest.rb
test/openssl/test_digest.rb...
Anonymous
07:30 AM Feature #6819: OpenSSL::Digest.new should return an instance of the chosen subclass
I agree. I have attached a patch to implement your suggestion. drbrain (Eric Hodel)
04:24 AM Revision 14bf66f2 (git): * configure.in (AC_PROG_CC): AC_PROG_CC tries clang at first on
darwin. [Bug #6816]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:22 AM Bug #6820 (Closed): Time#to_s on NEWS
=begin
The Time section on NEWS file says an encoding of Time#to_s respects Encoding.default_internal,
but r33094 says it is always US-ASCII. I guess NEWS file is incorrect.
See also #5226.
$ ruby -E:utf-8 -ve 'p Encoding.default_...
no6v (Nobuhiro IMAI)
02:47 AM Revision b79bf14f (git): * gc.c: return true or false. Patch by Dirkjan Bussink. [Bug #6821]
* test/ruby/test_gc.rb: add test-case for this bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
01:58 AM Revision df05bd2c (git): * ext/openssl/lib/openssl/digest.rb
test/openssl/test_digest.rb: Add Digest module function to OpenSSL
module and test it. Patch provided by Eric Hodel.
[ruby-core:46908][Feature #6819]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36592 b2dd03c8-39d4-4d8f-98ff-8...
MartinBosslet (Martin Bosslet)

08/01/2012

11:44 PM Feature #6503: Support for the NPN extension to TLS/SSL
igrigorik (Ilya Grigorik) wrote:
> Martin, let me know if you run into any questions or issues.. would love to see this working, sooner rather later. :-)
Thanks for the offer, I'll get back to you if I run into trouble :) I'll try to...
MartinBosslet (Martin Bosslet)
11:21 PM Feature #5453: Add gemspecs to auto-mode-alist for ruby-mode
Perhaps the copy in the ruby source should just point to the emacs version? (And a bug report filed with the emacs guys.)
pedz (Perry Smith)
10:44 PM Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String
duerst (Martin Dürst) wrote:
> Given that the string has only ASCII characters, an encoding of US-ASCII indeed seems best. Benoit, unless somebody objects soon, I think you should go ahead with your patch.
Thank you, I just did.
Eregon (Benoit Daloze)
10:30 PM Bug #6799 (Closed): Digest::*.hexdigest returns an ASCII-8BIT String
This issue was solved with changeset r36588.
Benoit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
ext/digest/digest.c (hexencode_str_new): return an ASCII string...
Eregon (Benoit Daloze)
10:29 PM Revision cc59a581 (git): test_framework.rb: show mkmf.log on failure
* test/mkmf/test_framework.rb (test_core_foundation_framework): show
mkmf.log on failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:29 PM Revision 5a832e1d (git): * 2012-08-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:29 PM Revision d28d075c (git): RB_TYPE_P BUILTIN_TYPE
* string.c, vm_insnhelper.c, vm_method.c: use RB_TYPE_P() and
BUILTIN_TYPE() if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:11 PM Feature #6819: OpenSSL::Digest.new should return an instance of the chosen subclass
=begin
--- drbrain (Eric Hodel) wrote:
I would like this changed so that it returns the specific subclass of OpenSSL::Digest:
digester = OpenSSL::Digest.new "SHA1"
digester.class #=> OpenSSL::Digest::SHA1
It sounds like...
nobu (Nobuyoshi Nakada)
12:27 PM Feature #6819 (Closed): OpenSSL::Digest.new should return an instance of the chosen subclass
=begin
(({OpenSSL::Digest.new})) allows you to create a digest given the digest name:
digester = OpenSSL::Digest.new "SHA1"
digester.update "hello"
# …
The digester returned is of class (({OpenSSL::Digest})) regardless of ...
drbrain (Eric Hodel)
01:30 PM Revision 61b624d1 (git): ext/digest/digest.c (hexencode_str_new): return an ASCII string
* test/digest: tests for all kind of digests encodings
[ruby-core:46792][Bug #6799]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
05:58 AM Bug #6813 (Closed): TestRubyOptions#test_encoding failure on Windows
This issue was solved with changeset r36587.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
test_rubyoptions.rb: fix test failure on Windows
* test/ruby/...
Anonymous

07/31/2012

08:58 PM Revision f52eefec (git): test_rubyoptions.rb: fix test failure on Windows
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_encoding):
Fix test_encoding failure on Windows.
With chcp 65001, 1252 and 437, test_encoding failed. Test result
depends on locale because LANG environment variable doesn't aff...
h.shirosaki (Hiroshi Shirosaki)
08:05 PM Feature #5583: Optionally typing
Maybe, as a form of typing, Ruby can somehow implement *contracts*, like in http://en.wikipedia.org/wiki/Design_by_contract ?
Some "contract description language" would need to be invented, and classes or methods would then have a possib...
alexeymuranov (Alexey Muranov)
07:15 PM Feature #6183: Enumerator::Lazy performance issue
Yusuke Endoh, thanks a lot for pointing out on this issue.
Fixed, please see new diff attached.
gregolsen (Innokenty Mikhailov)
06:05 PM Feature #6812: Refactor gc.c
shyouhei (Shyouhei Urabe) wrote:
> authorNari (Narihiro Nakamura) wrote:
> ...
アドバイスありがとうございます。そうですね。目的についてもう少し整理してから出なおしてきます。
authorNari (Narihiro Nakamura)
05:51 PM Feature #6812: Refactor gc.c
authorNari (Narihiro Nakamura) wrote:
> gc.cがごちゃごちゃしてきたので見通しがよくなるように
とありますが、真の狙いは違うのではないか、というふうに思います。見通しがよくなるように、でよければ、mark&sweepとか言わなくてもいいはずですよね。というか、言うまでもない。
本当にやりたいことを整理すると、適切な名前が見えてくるのかもしれないと思います(保証するわけではありませんが)。
shyouhei (Shyouhei Urabe)
05:26 PM Feature #6812: Refactor gc.c
shyouhei (Shyouhei Urabe) wrote:
> On 2012年07月31日 10:48, authorNari (Narihiro Nakamura) wrote:
> ...
上記の発言から読み取ると卜部さんがご指摘されているのは以下の2点と考えて
よろしいでしょうか?
* msは何の略かわからないので避けるべき
* そもそもmark_sweepをファイル名に出すのはよくない
* mark_sweepの別のgcを実装するとき...
authorNari (Narihiro Nakamura)
01:23 PM Feature #6812: Refactor gc.c
On 2012年07月31日 10:48, authorNari (Narihiro Nakamura) wrote:
>> 個人的には ms で mark & sweep 以外無いだろう,と思ったので,あまり違和感
>> が無かったのですが....

いくらなんでも2文字じゃあちょっと


> なるほど…。
>
> 個人的にはgc.c自体は変える気はなく、gc.cにincludeされるファイルの名前なのでアルゴリズム名もあり...
shyouhei (Shyouhei Urabe)
10:48 AM Feature #6812: Refactor gc.c
ko1 (Koichi Sasada) wrote:
> (2012/07/31 8:23), authorNari (Narihiro Nakamura) wrote:
> ...
なるほど…。
個人的にはgc.c自体は変える気はなく、gc.cにincludeされるファイルの名前なのでアルゴリズム名もありかと思っています。
アルゴリズムが変わったらファイル名も変えればいいかなと。
ですので、gc_mark_sweep.cあたりでどうでしょうか。
#...
authorNari (Narihiro Nakamura)
08:59 AM Feature #6812: Refactor gc.c
(2012/07/31 8:23), authorNari (Narihiro Nakamura) wrote:
> 上記、ありがとうございます。アルゴリズム名以外の名前…。gc_coreとかですかね。

core はやめたほうがいいです(と,vm_core.h という名前を付けた人が反省し
ています).

個人的には,gc.c -> objspace.c にして,objspace_gc.c,
objspace_gc_(mark|sweep...
ko1 (Koichi Sasada)
08:23 AM Feature #6812: Refactor gc.c
kosaki (Motohiro KOSAKI) wrote:
> (7/30/12 9:51 AM), Urabe Shyouhei wrote:
> ...
上記、ありがとうございます。アルゴリズム名以外の名前…。gc_coreとかですかね。
authorNari (Narihiro Nakamura)
08:21 AM Feature #6812: Refactor gc.c
ko1 (Koichi Sasada) wrote:
> パッチを細かく見てないんですが,確認させて下さい.
> ...
ファイル分割する都合で何個か関数を追加してますが、基本的には移動しただけです。
> > = パッチの簡単な解説
> ...
インタフェースとなる関数とかデータ構造がまとまってたほうが読みやすいかなと思ったんですが、いらないかもですね。
> > * gc_ms_heap.c
> ...
現在はheapの構造に依存しています。完全...
authorNari (Narihiro Nakamura)
12:53 AM Feature #6812: Refactor gc.c
(7/30/12 9:51 AM), Urabe Shyouhei wrote:
> On 2012年07月30日 17:07, authorNari (Narihiro Nakamura) wrote:
>> +-- gc_ms.[ch]
>
> すいませんがさすがにmsでmark&sweepの意味とは普通の人は分かりません、別の名前にしてください。
> 俺もわかんなかったので間違いないです。

一般論としてはアルゴリズムはあとから...
kosaki (Motohiro KOSAKI)
05:42 PM Bug #6818: Incorrect Date.parse results
Pissed off.
I hereby propose to deprecate this feature.
shyouhei (Shyouhei Urabe)
04:58 PM Bug #6818 (Rejected): Incorrect Date.parse results
Since this is a standard library and I couldn't find a dedicated page for the Date module
require 'time
> Date.parse '07/31/2012'
ArgumentError: invalid date
from (pry):3:in `parse'
In the United States, MM/DD/YYYY is perhaps ...
babak (Babak B)
04:16 PM Feature #6808: Implicit index for enumerations
trans (Thomas Sawyer) wrote:
> > I'm not clear why the #with_index method isn't adequate for your needs.
> ...
Are the times of these benchmarks dominated by object creation or iteration? What happens if you run a small number of trial...
drbrain (Eric Hodel)
02:20 PM Feature #6808: Implicit index for enumerations
=begin
> I'm not clear why the #with_index method isn't adequate for your needs.
Yes, functionally your are right. I was just thinking that the overall overhead would be less if enumerator wasn't used. I ran some benchmarks: https://gis...
trans (Thomas Sawyer)
08:23 AM Feature #6808: Implicit index for enumerations
On Jul 30, 2012, at 6:59 PM, trans (Thomas Sawyer) <transfire@gmail.com> wrote:

>
> Issue #6808 has been updated by trans (Thomas Sawyer).
>
>
>> There is no such index internal to Enumerator to make accessible.
>
> It not ...
Anonymous
07:59 AM Feature #6808: Implicit index for enumerations
> There is no such index internal to Enumerator to make accessible.
It not about Enumerator, its about #each itself. And there certainly is and index with #each method itself. e.g. https://github.com/ruby/ruby/blob/trunk/array.c#L1549...
trans (Thomas Sawyer)
06:37 AM Feature #6808: Implicit index for enumerations
There is no such index internal to Enumerator to make accessible.
each_with_index already exists to do this. The use of each_with_index is preferable to an implicit, lazy iteration count. The former is intention-revealing while the l...
drbrain (Eric Hodel)
06:09 AM Feature #6808: Implicit index for enumerations
@drbrain It's a fair point. But I imagine the index already exists under the hood. Probably the question is, can it be made accessible with little overhead?
Perhaps `it` could even be partially lazy, so full overhead doesn't even come ...
trans (Thomas Sawyer)
04:30 AM Feature #6808: Implicit index for enumerations
What about the overhead for an infinite enumerator that does not use the implicit index? Especially after a few days of CPU time for a frequently-used enumerator? drbrain (Eric Hodel)
03:38 PM Feature #6817 (Assigned): Partial application
I know that what I propose here is a significant change to Ruby, but it's part of my ongoing quest to get some more functional programming features into Ruby (see also #4539 and #6373).
I was wondering if it would make sense to maybe...
citizen428 (Michael Kohl)
03:33 PM Revision 59c13930 (git): * 2012-08-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:33 PM Revision b283d019 (git): class.c: fix duplication of prepended module
* class.c (include_class_new): fix duplication of prepended module.
since m_tbl of prepended module is always zero, copy from its
copy iclass of original.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36585 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
03:02 PM Bug #6816 (Closed): Can't compile ruby 2.0.0dev on Mac OS X 10.8
CC = gcc
LD = ld
LDSHARED = gcc -dynamic -bundle
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werro...
hg (HG Hoehne)
10:46 AM Bug #6814 (Assigned): Test failures in test_win32ole_variant.rb
usa (Usaku NAKAMURA)
10:45 AM Bug #6813: TestRubyOptions#test_encoding failure on Windows
Commit it, please. usa (Usaku NAKAMURA)
09:55 AM Bug #4163 (Closed): RubyGems uses deprecated API: YAML.quick_emit.
Only if psych is not available, so it is OK. drbrain (Eric Hodel)
09:22 AM Revision bc08bdc0 (git): variable.c: fix r36574
* variable.c (classname): tell if found name is permanent. search
tmp_classpath only if class id is set. [ruby-core:42865][Bug #6078]
* variable.c (rb_class_path): duplicate found temporary path.
* variable.c (rb_set_class_path_strin...
nobu (Nobuyoshi Nakada)
04:32 AM Feature #6806: Support functional programming: forbid instance/class variables for ModuleName::method_name, allow for ModuleName.method_name
This would break compatibility with much ruby code. drbrain (Eric Hodel)
01:37 AM Revision 30d957fc (git): * ext/psych/lib/psych.rb: updated to released version.
* ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
12:45 AM Revision c7c4e87a (git): * test/ruby/test_module.rb (TestModule#test_classpath): fix
typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

07/30/2012

11:57 PM Bug #6814 (Closed): Test failures in test_win32ole_variant.rb
Originally this was reported on RubyInstaller-list by dmajkic.
https://groups.google.com/d/msg/rubyinstaller/a4TS9XAsia0/NkZZOzG6n4wJ
Quote:
-------
This one is about 3 failures I have in "test_win32ole_variant.rb".
Those are: ...
h.shirosaki (Hiroshi Shirosaki)
11:36 PM Bug #6813 (Closed): TestRubyOptions#test_encoding failure on Windows
TestRubyOptions#test_encoding fails. This failure depends on cmd code page.
With chcp 932 the test passes, but with chcp 65001, 1252 and so on the test fails.
[ 9/38] TestRubyOptions#test_encoding = 0.04 s
1) Failure:
test_encodi...
h.shirosaki (Hiroshi Shirosaki)
09:18 PM Revision d604ac3f (git): * 2012-07-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:18 PM Revision b773a4f8 (git): * time.c (time_sec): Remove extra wording about leap seconds and refer
directly to Wikipedia's leap second page for further information.
[Bug #6749]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
05:53 PM Feature #6812: Refactor gc.c
パッチを細かく見てないんですが,確認させて下さい.

(2012/07/30 17:07), authorNari (Narihiro Nakamura) wrote:
> gc.cがごちゃごちゃしてきたので見通しがよくなるようにvm_xx.cみたいにファ
> イルを分割しました。この修正ではCやRubyレベルのAPIの変更はありません。
> # 2ヶ月前の開発会議で議論していた件です。
> # http://bugs.ruby-lang.or...
ko1 (Koichi Sasada)
05:07 PM Feature #6812 (Closed): Refactor gc.c
nariです。
gc.cがごちゃごちゃしてきたので見通しがよくなるようにvm_xx.cみたいにファ
イルを分割しました。この修正ではCやRubyレベルのAPIの変更はありません。
# 2ヶ月前の開発会議で議論していた件です。
# http://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20120601
変更内容は以下のURLで閲覧できます。
https://github.com/au...
authorNari (Narihiro Nakamura)
03:06 PM Bug #6799 (Assigned): Digest::*.hexdigest returns an ASCII-8BIT String
Given that the string has only ASCII characters, an encoding of US-ASCII indeed seems best. Benoit, unless somebody objects soon, I think you should go ahead with your patch. duerst (Martin Dürst)
02:24 PM Bug #6078 (Closed): The name of a module nested in an anonymous module depends on how it was created
This issue was solved with changeset r36574.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
variable.c: tmp_classpath
* variable.c: store anonymous class p...
nobu (Nobuyoshi Nakada)
02:04 PM Revision 0357ac8a (git): * lib/rubygems/platform.rb (Gem::Platform#initialize): Support pattern
like x86_64-netbsd6.99.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:04 PM Revision e62ee612 (git): On amd64, RUBY_PLATFORM is x86_64-netbsd6.99.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:00 PM Revision 0e15934d (git): variable.c: fix r36574
* variable.c (find_class_path): no retry when preferred is given.
* variable.c (classname): if classid is set try it to find full
qualified class path, and then try arbitrary class path. try
tmp_classpath at last even if enclosing n...
nobu (Nobuyoshi Nakada)
06:03 AM Revision e652ecfa (git): Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:59 AM Feature #2565: adding hooks for better tracing
On Sun, Jul 29, 2012 at 12:02:27PM +0900, SASADA Koichi wrote:
> Sorry for late response.
>
> (2012/07/19 3:52), tenderlovemaking (Aaron Patterson) wrote:
> > https://bugs.ruby-lang.org/projects/ruby/wiki/DTraceProbes
>
> my c...
Anonymous
05:53 AM Feature #2565: adding hooks for better tracing
On Sun, Jul 29, 2012 at 11:36:49AM +0900, SASADA Koichi wrote:
> Sorry for late response.
>
> (2012/07/03 13:26), vo.x (Vit Ondruch) wrote:
> > ko1 (Koichi Sasada) wrote:
> >> (but I can't understand sed script ^^; I prefer ruby...
Anonymous
04:23 AM Feature #2565: adding hooks for better tracing
Dne 29.7.2012 4:36, SASADA Koichi napsal(a):
> Sorry for late response.
>
> (2012/07/03 13:26), vo.x (Vit Ondruch) wrote:
>> ko1 (Koichi Sasada) wrote:
>>> (but I can't understand sed script ^^; I prefer ruby script :)
>>...
Anonymous
05:56 AM Revision 787e4009 (git): NetBSD's /proc/<pid>/task is broken.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:24 AM Revision 83940fc3 (git): variable.c: tmp_classpath
* variable.c: store anonymous class path in tmp_classpath but not in
classpath. [ruby-core:42865][Bug #6078]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:11 AM Revision 48d7aa4a (git): configure.in: deprecate -flat_namespace
* configure.in (DLDFLAGS): on Darwin, deprecate -flat_namespace to get
rid of huge imported symbols table.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:11 AM Revision a1855814 (git): configure.in: runnable if disable-shared
* configure.in (LIBRUBY_RELATIVE): libruby_so is not made when
disable-shared, so no absolute path is used for it and executable
file is runnable anywhere.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36572 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
03:42 AM Feature #6373: public #self
FWIW, I'm the one who suggested this method as an addition to Facets, mainly for the reason headius mentions above, it's the simplest filter available. I'm still torn on the name, but for some reason #self didn't seem right. For my own e... citizen428 (Michael Kohl)
03:29 AM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
On 29 July 2012 20:07, trans (Thomas Sawyer) <transfire@gmail.com> wrote:
> Sorry, it is if $DEBUG = true, not $VERBOSE.
>
> Here's the issue:
>
>> FileUtils.mkdir_p('a/b/c/d')
> Exception `Errno::ENOENT' at /home/trans/.loc...
Eregon (Benoit Daloze)
03:07 AM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
=begin
Sorry, it is if $DEBUG = true, not $VERBOSE.
Here's the issue:
> FileUtils.mkdir_p('a/b/c/d')
Exception `Errno::ENOENT' at /home/trans/.local/lib/ry/rubies/1.9.3-p125/lib/ruby/1.9.1/fileutils.rb:247 - No such file or directo...
trans (Thomas Sawyer)
12:26 AM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
prijutme4ty (Ilya Vorontsov) wrote:
> I found that often write
> ...
Bang methods are not usually used for that in Ruby core and stdlib.
I agree for the practical point of view of this though.
I'm unsure what a good name would be.
...
Eregon (Benoit Daloze)
01:31 AM Bug #6789 (Closed): parse.y compilation error due not updated id.h
This issue was solved with changeset r36571.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* common.mk: add a dependency. [ruby-core:46741] [Bug #6789]
nagachika (Tomoyuki Chikanaga)
12:40 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
If i express the rule for constant lookup as i have understood it, it seems that the lookup follows the code indentation from right to left, and in particular in
```ruby
module A
module B; N=1; end
module B::C
puts N # => ...
alexeymuranov (Alexey Muranov)

07/29/2012

11:52 PM Feature #6802: String#scan should have equivalent yielding MatchData
prijutme4ty (Ilya Vorontsov) wrote:
> Though I suggest that using a special method here is more clear.
> ...
I did indeed somewhat expected String#scan to yield a MatchData object, instead of $~.captures.
I'm in favor of String#each_m...
Eregon (Benoit Daloze)
10:28 PM Feature #6802: String#scan should have equivalent yielding MatchData
+1 I have definitely used this before (as Facets' #mscan). trans (Thomas Sawyer)
08:13 PM Feature #6802: String#scan should have equivalent yielding MatchData
Thank you for a solution! I always forgot about regexp global vars. Though I suggest that using a special method here is more clear. So what'd you say about String#each_match and Regexp#each_match
Yes, implementation is as simple as
cl...
prijutme4ty (Ilya Vorontsov)
11:49 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
Perry, totally agreed. The way this works and how constant name resolution works should be a well-covered topic. But traditionally it has not been very well documented. In particular the separation between constants and modules/classes i... fxn (Xavier Noria)
11:33 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
I agree with Alexey... I'm surprised.
His third example shows that the lookup of N is done at run time and starts from the inner scope of B, if no match, search A, if no match search globals. ... At least, that is how it appears to me...
pedz (Perry Smith)
10:27 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
I'll look at the video and think about this, thanks. alexeymuranov (Alexey Muranov)
09:38 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
They are very decoupled, name is the only bit mostly in common, set on constant assignment. May I link to a talk of mine, which covers this (content constrained by the 30min slot): http://www.youtube.com/watch?v=wCyTRdtKm98.
In particul...
fxn (Xavier Noria)
08:27 PM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
Thanks for the example. I do not see however that constants and modules be decoupled: there is `Module#name` method, so what would be wrong with deriving `Module::nesting` from the innermost module name? Can an anonymous module ever ap... alexeymuranov (Alexey Muranov)
05:09 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
I cannot tell you the ultimate rationale behind this, but I can tell you that with the current semantics that is not well-defined.
The problem is that nesting stores module objects, not constant names. Consider for example:
mod...
fxn (Xavier Noria)
04:24 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
Xavier, thanks for the explanation, i see now why it works this way, so this is not a bug. However, can anybody please explain to me why this is a desired behavior, i mean the way the nesting is calculated? Wouldn't it be easier if
...
alexeymuranov (Alexey Muranov)
04:10 AM Feature #6810: `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
Yes, this is expected.
The resolution algorithm first checks the modules in the nesting (in their very constants table, it ignores their ancestors), then the ancestors of the module the constants appears in (the first one in the nesting...
fxn (Xavier Noria)
03:55 AM Feature #6810 (Assigned): `module A::B; end` is not equivalent to `module A; module B; end; end` with respect to constant lookup (scope)
Is this the expected behavior? To me, it is rather surprising:
```ruby
N = 0
module A
module B
def self.f; N; end
end
N = 1
end
A::B.f # => 1
N = 0
A::B.f # => 0
A::N = 1
A::B.f # => 1
A::B::N = ...
alexeymuranov (Alexey Muranov)
10:32 PM Feature #6811: File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
At least for mkdir you can use mkdir_p, although it annoyingly warns about missing path if $VERBOSE=true (can we consider that a bug please?).
trans (Thomas Sawyer)
08:34 PM Feature #6811 (Assigned): File, Dir and FileUtils should have bang-versions of singleton methods that fails silently
I found that often write
Dir.mkdir(folder) unless Dir.exist? folder
and similar code for rm, rm_rf and so on
We can simply make bang-versions like
def Dir.mkdir!(folder, permissions=0744)
Dir.mkdir(folder, permissions) unless Dir...
prijutme4ty (Ilya Vorontsov)
07:43 PM Feature #6735: curses: support linking against pdcurses
I cannot account for the developer's failure to compile ncurses, since he's
never provided a bug report. However, it's trivial to cross-compile, so
perhaps some progress might be made in that area. I've put a zip-file with
current c...
ThomasDickey (Thomas dickey)
04:31 PM Revision 8800a83f (git): * common.mk: add a dependency. [ruby-core:46741] [Bug #6789]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
04:00 PM Revision 9cdf5548 (git): * thread.c (thread_create_core): hide th->async_errinfo_mask_stack from
ObjectSpace.each_object. refix of r36539.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:25 PM Revision b521dcb9 (git): * 2012-07-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:25 PM Revision 240dd36f (git): option.c: mingw64 only
* ext/socket/option.c (inet_ntop): something weird only on mingw64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:57 PM Revision dc401147 (git): option.c: use rb_w32_inet_ntop
* ext/socket/option.c (inet_ntop): use rb_w32_inet_ntop, instead of
inet_ntop directly, which is unavailable on older version Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:56 PM Revision f9368f65 (git): win32.c: rb_w32_inet_ntop should be const
* win32/win32.c (rb_w32_inet_ntop): type should be const.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:23 PM Feature #2565: adding hooks for better tracing
(2012/07/29 12:02), SASADA Koichi wrote:
>
>> > ruby:::line(filename, lineno);
> Your patch depends on the `trace' instruction. I plan to remove `trace'
> instruction on default (if I can implement it). It will conflicts with...
ko1 (Koichi Sasada)
12:23 PM Feature #2565: adding hooks for better tracing
Sorry for late response.

(2012/07/19 3:52), tenderlovemaking (Aaron Patterson) wrote:
> https://bugs.ruby-lang.org/projects/ruby/wiki/DTraceProbes

my comments:

> ruby:::function-entry(classname, methodname, filename, ...
ko1 (Koichi Sasada)
11:53 AM Feature #2565: adding hooks for better tracing
Sorry for late response.

(2012/07/03 13:26), vo.x (Vit Ondruch) wrote:
> ko1 (Koichi Sasada) wrote:
>> (but I can't understand sed script ^^; I prefer ruby script :)
>
> As I said, there are several conditions which shou...
ko1 (Koichi Sasada)
10:53 AM Bug #6799: Digest::*.hexdigest returns an ASCII-8BIT String
On Fri, Jul 27, 2012 at 07:34:30PM +0900, Eregon (Benoit Daloze) wrote:
>
> Issue #6799 has been updated by Eregon (Benoit Daloze).
>
>
> duerst (Martin Dürst) wrote:
> > So what should it return? [If you create a bug, saying w...
Anonymous
08:53 AM Feature #6808: Implicit index for enumerations
The inconsistency between operations over Arrays and Hashes isn't always avoidable, but consider:

h = Hash[1, 2, 3, 4, 5, 6]
a = [1, 2, 3, 4, 5, 6]

h[3]
=> 4
h.detect{|k, v| k == 3 }
#=> [3, 4]

a[3]
#=> 3
a.detect{|v| v =...
cjheath (Clifford Heath)
01:35 AM Feature #6808: Implicit index for enumerations
Ixnay on the global variable. It was just pointed out to me that it would be problem for nested iterations. Keyword could still work though b/c it would be block local.
trans (Thomas Sawyer)
01:11 AM Feature #6808 (Feedback): Implicit index for enumerations
=begin
One of the less lovely things about Ruby's otherwise elegant enumerables is the lack of ubiquitous access to the current index. Because of this, we end up with a bevy of extra methods that are little more than counter parts and c...
trans (Thomas Sawyer)
06:33 AM Bug #2729: `unexpected break' occurs when a proc is called in ensure
#5234 has been backported to 1.9.3 at least. lgierth (Lars Gierth)
06:31 AM Bug #2729: `unexpected break' occurs when a proc is called in ensure
=begin
This patch doesn't seem to have landed in 1.9.2 and 1.9.3. Can someone backport it?
$ git checkout trunk
$ git log --oneline | grep 33064
a09e713 * proc.c (proc_new): force to rewrite errinfo when calling Proc.new in ens...
lgierth (Lars Gierth)
05:28 AM Revision afde2e8d (git): * thread.c (Init_Thread): does not need to set klass
explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ktsj (Kazuki Tsujimoto)
04:48 AM Bug #6789: parse.y compilation error due not updated id.h
nagachika (Tomoyuki Chikanaga) wrote:
> Well, doesn't this patch fix this issue?
Yes, it did.
Can you commit it?
Thank you.
luislavena (Luis Lavena)
02:53 AM Bug #6789: parse.y compilation error due not updated id.h
Well, doesn't this patch fix this issue?
nagachika (Tomoyuki Chikanaga)
02:23 AM Revision 33d5c484 (git): merge revision(s) 36455: [Backport #6772]
* ext/curses/extconf.rb: support PDCurses. patched by Luis Lavena.
[ruby-core:46485] [Feature #6735]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:15 AM Bug #6809 (Closed): Deprecation of Config
I saw nobu removed Config (the old RbConfig) at r36330.
While I totally approve this (use the RbConfig constant instead of Config), I already noticed a few failures due to it.
The comment in lib/rbconfig/obsolete.rb says "compatibi...
Eregon (Benoit Daloze)

07/28/2012

11:29 PM Bug #6804 (Closed): test_generate_bin_bindir_with_user_install_warning(TestGemInstaller) fails on windows.
Thank you Oleg,
This issue has already been fixed in upstream RubyGems and will be part of release 1.8.25 (not yet released)
luislavena (Luis Lavena)
01:22 PM Bug #6804 (Closed): test_generate_bin_bindir_with_user_install_warning(TestGemInstaller) fails on windows.
The test fails on Windows with the following error:
--- expected
+++ actual
@@ -1 +1,3 @@
-""
+"WARNING: You don't have C:\\Windows in your PATH,
+\t gem executables will not run.
+"
The problem is incorrect test in Gem::Inst...
os97673 (Oleg Sukhodolsky)
10:37 PM Feature #6806: Support functional programming: forbid instance/class variables for ModuleName::method_name, allow for ModuleName.method_name
I think that if you tell a new person that `M::f` and `M.f` are the same in Ruby, they won't believe at first. So why keeping them the same?
I do not know how to be with the use of global variables in `M::f`. I imagine there are other...
alexeymuranov (Alexey Muranov)
10:26 PM Feature #6806 (Feedback): Support functional programming: forbid instance/class variables for ModuleName::method_name, allow for ModuleName.method_name
What would you say about this proposal? Is there a better alternative?
I suggest to support functional programming in Ruby by making module methods called with `ModuleName::method_name` syntax raise an exception if the method uses in...
alexeymuranov (Alexey Muranov)
09:41 PM Revision 21aad667 (git): win32/win32.c: suppress warning redeclared
* win32/win32.c: suppress warning redeclared on mingw64.
*_s functions are declared if MINGW_HAS_SECURE_API is defined.
Follow up r36556.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
h.shirosaki (Hiroshi Shirosaki)
07:32 PM Revision c30f4049 (git): merge revision(s) 34880:
* configure.in (ruby_pc): make configurable. [Bug #6051]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:32 PM Revision c5571692 (git): merge revision(s) 34716:
* template/ruby.pc.in: added rubylibprefix, {rubylib,vendor,site}dir
and {ruby,vendor,site}archdir. [ruby-core:42766][Feature #6052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36561 b2dd03c8-39d4-4d8f-98...
naruse (Yui NARUSE)
07:31 PM Revision 02385465 (git): merge revision(s) 36455:
* bignum.c: Added #include <strings.h> for ffs(). Patch by Perry
Smith. Thank you. [Bug #6748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:27 PM Bug #6794: x64 mingw: test_at(TestTime) failure
Thank you. Checked in.
> BTW, 32bit mingw doesn't have 64s() family?
It seems that gcc 4.6.1 (tdm gcc 32bit) doesn't have _localtime64_s.
gcc 4.6.3 (rubenvb-4.6.3) i686-w64-mingw32 (32bit) has _localtime64_s.
The following p...
h.shirosaki (Hiroshi Shirosaki)
04:36 PM Bug #6794 (Closed): x64 mingw: test_at(TestTime) failure
This issue was solved with changeset r36556.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
win32/win32.c: fix localtime_r() on x64-mingw
* win32/win32.c...
Anonymous
11:05 AM Bug #6794: x64 mingw: test_at(TestTime) failure
Seems working fine.
Please check in.
BTW, 32bit mingw doesn't have 64s() family?
nobu (Nobuyoshi Nakada)
09:02 AM Bug #6794 (Assigned): x64 mingw: test_at(TestTime) failure
=begin
Thank you Hiroshi,
I can confirm patch works:
Finished tests in 0.085005s, 764.6609 tests/s, 7411.3287 assertions/s.
65 tests, 630 assertions, 0 failures, 0 errors, 0 skips

ruby -v: ruby 2.0.0dev (2012-07-27 trunk 3...
luislavena (Luis Lavena)
05:10 PM Bug #6805: heroku connection failure
Thank you for your response.
Unclear how you could reproduce this issue without running os x 10.5.8.
Rereading it looks like the text at the beginning of the bug report didn't make it (the input box was blinking in and out Firefox 14.0...
openc (j g)
04:31 PM Bug #6805 (Feedback): heroku connection failure
How we can reproduce this issue?
See: https://bugs.ruby-lang.org/projects/ruby/wiki/HowToReport
And, I guessed your issue, seems you're using Apple's broken openssl.
install openssl and build ruby again.
rvm has a command to ...
sorah (Sorah Fukumori)
03:15 PM Bug #6805 (Rejected): heroku connection failure
=begin
-- Control frame information -----------------------------------------------
c:0026 p:---- s:0126 b:0126 l:000125 d:000125 CFUNC :connect
c:0025 p:0650 s:0123 b:0123 l:000122 d:000122 METHOD /Users/jg/.rvm/gems/ruby-1.9.3-p194...
openc (j g)
05:04 PM Revision 208e8db6 (git): variable.c: RB_TYPE_P
* variable.c: use RB_TYPE_P() and BUILTIN_TYPE().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:34 PM Revision 06fa3914 (git): * 2012-07-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:34 PM Revision 631b6d5a (git): * gc.c: remove unused initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
01:37 PM Feature #6503: Support for the NPN extension to TLS/SSL
Martin, let me know if you run into any questions or issues.. would love to see this working, sooner rather later. :-) igrigorik (Ilya Grigorik)
07:36 AM Revision ce2a1e10 (git): win32/win32.c: fix localtime_r() on x64-mingw
* win32/win32.c (gmtime_r): use _gmtime64_s() with x86_64-w64-mingw32.
* win32/win32.c (localtime_r): use _localtime64_s() with
x86_64-w64-mingw32. Since FileTimeToSystemTime() seems not work with
large value under x64. Mingw-w64 do...
h.shirosaki (Hiroshi Shirosaki)
02:15 AM Revision c1ef657b (git): insns.def: RB_TYPE_P
* insns.def (checkincludearray, defineclass, opt_regexpmatch2): use RB_TYPE_P().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 AM Revision dc54eecc (git): * 2012-07-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:14 AM Revision 485181e4 (git): ext/socket: suppress warnings on mingw64
* ext/socket/ancdata.c (nogvl_sendmsg_func): explicitly cast via VALUE
to suppress a warning on mingw64.
* ext/socket/option.c: declare inet_ntop() for mingw64 which has the
function but lacks arpa/inet.h.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
01:52 AM Feature #6801: String#~ for a here document
Alas %L was rejected :(
```ruby
str = %L|This
| is
| margin
| controlled.
```
trans (Thomas Sawyer)
 

Also available in: Atom