Project

General

Profile

Activity

From 05/14/2013 to 05/20/2013

05/20/2013

10:19 PM Bug #8037: rdoc issues preventing docs generating after ruby was compiled
it's fixed in rdoc but not in ruby, ruby-2.0.0-p195 is still shipped with the broken rdoc 4.0.0 mpapis (Michal Papis)
08:52 PM Bug #8037 (Closed): rdoc issues preventing docs generating after ruby was compiled
These issues seemed to have been resolved in the RDoc tracker, please update the ticket there if you still experience this issue. Thank you! zzak (zzak _)
07:23 PM Feature #8426: Implement class hierarchy method caching
On Monday, 20 May 2013 at 7:39 PM, SASADA Koichi wrote:
> Is it huge performance bottleneck? I think branch on inline cache should be removed
>
>

This helps a lot when Ruby programs are starting up because the full class hi...
Anonymous
07:10 PM Feature #8426: Implement class hierarchy method caching
ko1 (Koichi Sasada) wrote:
> (2013/05/20 18:21), Charlie Somerville wrote:
> ...
"sparse array" uses 32bit keys for being as small and CPU cache friendly as possible.
So that, it could not store 64bit pointers :-(
I have an idea of...
funny_falcon (Yura Sokolov)
06:53 PM Feature #8426: Implement class hierarchy method caching
(2013/05/20 18:21), Charlie Somerville wrote:
> funny_falcon explained this well. It's significantly faster in this case
> when compared to st_table.

Thanks guys, I understand. Maybe it is used to implement weak reference
fro...
ko1 (Koichi Sasada)
06:29 PM Feature #8426: Implement class hierarchy method caching
(2013/05/20 16:23), funny_falcon (Yura Sokolov) wrote:
> "sparse array" - is a lightweight hash structure which maps 32bit integers to st_data_t values.
> It is more compact and faster replacement for st_table for integers (aka st_i...
ko1 (Koichi Sasada)
06:23 PM Feature #8426: Implement class hierarchy method caching
On Monday, 20 May 2013 at 1:35 PM, SASADA Koichi wrote:
> Could you explain the data stracture? Patch seems to introduce new data
> structure `sparse array'. What is this and how to use it on this patch?
>
>

funny_falcon ...
Anonymous
06:23 PM Feature #8426: Implement class hierarchy method caching
On Monday, 20 May 2013 at 5:28 PM, funny_falcon (Yura Sokolov) wrote:
> Charlie, why sa_index_t is uint64_t ? it really should be 32bit for better CPU cache locality.
> Yes, it will limits ID to 32bit values, but ID should not incre...
Anonymous
04:28 PM Feature #8426: Implement class hierarchy method caching
Charlie, why sa_index_t is uint64_t ? it really should be 32bit for better CPU cache locality.
Yes, it will limits ID to 32bit values, but ID should not increase to greater values,
otherwise it is a memory leak.
funny_falcon (Yura Sokolov)
04:23 PM Feature #8426: Implement class hierarchy method caching
Good day, Koichi
"sparse array" - is a lightweight hash structure which maps 32bit integers to st_data_t values.
It is more compact and faster replacement for st_table for integers (aka st_init_numtable).
It is CPU cache friendly on...
funny_falcon (Yura Sokolov)
12:53 PM Feature #8426: Implement class hierarchy method caching
Great work!

Could you explain the data stracture? Patch seems to introduce new data
structure `sparse array'. What is this and how to use it on this patch?


And another consern is verification mechanism of the result. Comp...
ko1 (Koichi Sasada)
11:22 AM Feature #8426: Implement class hierarchy method caching
Here are some raw benches comparing Ruby-Head with KclassCache
TLDR;
Noticeable improvement over head.
Discourse topic list page: 69 median -> 65 median , 78.3 mean -> 67.4 mean
Discourse topic page: 51 median -> 48 median , 5...
sam.saffron (Sam Saffron)
10:23 AM Feature #8426: Implement class hierarchy method caching
Hello Charlie,

This sounds very promising, as it should make Ruby faster. Any idea how
much faster? And are there cases where it might be slower, or other
disadvantages?

Regards, Martin.

On 2013/05/19 19:44, char...
duerst (Martin Dürst)
06:11 PM Revision 1891b60f (git): dir.c: compose HFS file names
* dir.c (dir_each): compose HFS file names from
UTF8-MAC. [ruby-core:48745] [Bug #7267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:10 PM Revision a7092270 (git): test_dir_m17n.rb: assert_separately
* test/ruby/test_dir_m17n.rb: prefer assert_separately over
assert_ruby_status for more descriptive messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:08 PM Revision 80db7cc4 (git): envutil.rb: envutil in child
* test/ruby/envutil.rb (assert_separately): require envutil in the
child process too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:07 PM Revision cbab48f7 (git): * 2013-05-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:07 PM Revision c4a8d40c (git): string.c: infect
* string.c (rb_str_conv_enc_opts): should infect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:29 PM Revision c2496683 (git): reapply r40839 [Fixes GH-313]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
01:41 PM Revision 8fb4108b (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): add NameWidth option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:41 PM Revision 31c2e85e (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): use TABLE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:41 PM Revision b6f42822 (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): set charset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:41 PM Revision 83fa035d (git): * lib/webrick/httpservlet/filehandler.rb (set_dir_list): share title and h1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:33 PM Revision 57d8faea (git): Revert r40839 for demo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
01:28 PM Revision dcb4ceea (git): * lib/set.rb (Set#delete_if, Set#keep_if): Avoid blockless call of
proc, which is not portable to JRuby. Replace &method() with
faster and simpler literal blocks while at it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
01:20 PM Bug #8425: webrick show local filesystem charset bug
@nobu,
webrick\httputils.rb
def _unescape(str, regex)
str = str.b
str.gsub!(regex) {$1.hex.chr}
# encoding of %-unescaped string is unknown
str
end
_unescape return ASCII-8BIT str, may be impr...
windwiny (wind winy)
10:40 AM Bug #8425 (Closed): webrick show local filesystem charset bug
This issue was solved with changeset r40848.
wind, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
webrick: fix non-ascii escape bugs
* lib/webrick/htmlutils.rb (W...
nobu (Nobuyoshi Nakada)
01:01 PM Revision b416c661 (git): * lib/e2mmap.rb: Format of E2MM documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
12:42 PM Revision c09172f3 (git): * ext/extmk.rb: nodoc this file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:44 AM Revision 275eb63b (git): * lib/cmath.rb: Remove duplicate RDoc heading from overview
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:37 AM Revision e3436d29 (git): * lib/securerandom.rb: Update position of overview for RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
10:35 AM Revision 46cb75db (git): * math.c: improve and fix documentation of sin, tan and log
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
10:35 AM Revision 3786bd60 (git): * lib/logger.rb (Logger::Application): show namespace in documentation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
10:22 AM Bug #8358: TestSprintf#test_float test failure
As I wrote in #8299, up to nobu.
Our choice will be one of the following:
* add _control87(_PC_53, _MCW_PC) (or inline assembler) to some functions
* add _control87(_PC_53, _MCW_PC) to Init_Numeric
* remove the test
naruse (Yui NARUSE)
03:26 AM Bug #8358 (Assigned): TestSprintf#test_float test failure
naruse: Can we commit the patch? luislavena (Luis Lavena)
10:16 AM Bug #8427: gets method truncates strings longer than 255 characters in Windows 7
This bug is caused by changesets r28035, r29980 and r30280.
Here is a possible workaround patch:
diff --git a/win32.c b/win32.c.new
index 318af2f..b821cd4 100644
--- a/win32.c
+++ b/win32.c.new
@@ -6058,6 +6058,10 @@ rb_w32_rea...
phasis68 (Heesob Park)
07:46 AM Bug #8427 (Closed): gets method truncates strings longer than 255 characters in Windows 7
When using the gets method from a Windows 7 command line (or XP according to other users), long input strings are truncated to 255 characters. Here is an example of code:
puts "Enter long string"
long_string = gets
puts "...
jen (Jen Marsh)
08:03 AM Bug #8428 (Closed): Date#to_time yields incorrect value for Julian dates
=begin
Date instances with Julian day values that precede the calendar reform start day (i.e. #julian? == true), return Time objects which do not correspond to the chronological Julian day which the Date instances represent.
d = Da...
teleological (Riley Lynch)
07:59 AM Feature #5458: DL should be removed
The Win32 stuff is largely undocumented, but I remember ngoto-san
moved a lot of it to Fiddle already?
zzak (zzak _)
03:32 AM Feature #5458: DL should be removed
tenderlovemaking (Aaron Patterson) wrote:
> DL is deprecated in trunk. To maintain backwards compatibility, I've moved some parts of DL to Fiddle. We should be able to remove `ext/dl` after 2.0 release.
What parts of DL remain to b...
luislavena (Luis Lavena)
07:37 AM Bug #8182 (Assigned): XMLRPC request fails with "Wrong size. Was 31564, should be 1501"
I've attached Duncan's patch from github, so we can close the pull request. zzak (zzak _)
04:59 AM Bug #8392 (Closed): stdlib's 'forwardable' documentation has a bad example
This issue was solved with changeset r40839.
Joe, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/forwardable.rb: Forwardable examples in overview were broken...
zzak (zzak _)
03:44 AM Bug #7807 (Assigned): [PATCH] Remove duplicated load paths when empty version string is configured
luislavena (Luis Lavena)
03:40 AM Bug #8159: Build failure introduced by Rinda changes
Rinda failure now seems to be related to ifindex() being missing:
http://ci.rubyinstaller.org/job/ruby-trunk-x86-test-all/lastFailedBuild/console
luislavena (Luis Lavena)
02:52 AM Revision a3672d4b (git): * lib/pp.rb: Revert part of r40834 and nodoc PP::ObjectMixin
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
02:22 AM Revision 596cecb0 (git): test_objectspace.rb: run test_each_object separately
* test/ruby/test_objectspace.rb (TestObjectSpace#test_each_object):
run separately.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:40 AM Revision 88bcccd4 (git): webrick: fix non-ascii escape bugs
* lib/webrick/htmlutils.rb (WEBrick::HTMLUtils#escape): replace HTML
meta chars even in non-ascii string. [Bug #8425] [ruby-core:55052]
* lib/webrick/httputils.rb (WEBrick::HTTPUtils#{_escape,_unescape}):
fix %-escape encodings. [B...
nobu (Nobuyoshi Nakada)
12:53 AM Revision bcddf032 (git): filehandler.rb: revert r20152
* lib/webrick/httpservlet/filehandler.rb (set_dir_list): revert r20152
partially and fix misuse of bytesize and regexp repetition operator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:43 AM Revision eb9cd6b1 (git): * ChangeLog: fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:02 AM Feature #8324: Net::Telnet.new のオプション
そうなるとキーワード引数でも受け付けるのはどうか、という議論も出てきそうですね。 ayumin (Ayumu AIZAWA)

05/19/2013

11:04 PM Revision fdfc5215 (git): * lib/profiler.rb: Document Profiler__ methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
11:03 PM Revision caca17a8 (git): * lib/tempfile.rb: nodoc Tempfile#inspect
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
10:57 PM Revision 7e53569b (git): * ChangeLog: update patchlevel
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
10:49 PM Revision e87c6b19 (git): * ext/stringio/stringio.c: Correct position of method rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
10:29 PM Revision c1f17697 (git): * math.c: RDoc formatting of Math core docs with domains and codomains
Patch by @eLobato [Fixes GH-309]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
10:20 PM Bug #8320 (Third Party's Issue): Ruby interpreter crashes when running pcaprub
Hello,
It seems that pcaprub contains an extension library and Segmentation fault was occurred inside it.
Please report this issue to pcaprub project.
Thanks,
nagachika (Tomoyuki Chikanaga)
09:00 PM Revision 2439bc9e (git): * ext/bigdecimal/bigdecimal.c: Formatting for BigMath [Fixes GH-306]
Based on a patch by @eLobato.
* ext/bigdecimal/lib/bigdecimal/math.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:58 PM Revision dbefdb43 (git): * lib/forwardable.rb: Forwardable examples in overview were broken
Based on patch by @joem [Fixes GH-303] [Bug #8392]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
07:44 PM Feature #8426 (Closed): Implement class hierarchy method caching
=begin
This patch adds class hierarchy method caching to CRuby. This is the algorithm used by JRuby and Rubinius.
Currently, Ruby's method caches can only be expired globally. This means libraries that dynamically define methods or e...
Anonymous
07:01 PM Revision 4c678b4e (git): * 2013-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:01 PM Revision 4f8094d2 (git): * lib/yaml.rb: YAML documentation from #8344 [Bug #8355]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:36 PM Revision ba84738d (git): * lib/optparse.rb: nodoc Object::Version and SPLAT_PROC
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
06:21 PM Revision d6d45737 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:17 PM Revision 18ffba64 (git): * lib/pp.rb: Document PP::ObjectMixin [Fixes GH-312]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e zzak (zzak _)
03:44 PM Revision df425a01 (git): Default script encoding is now UTF-8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:01 PM Revision 4fb73c8f (git): * 2013-05-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision 64431b9c (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:58 PM Revision a920927a (git): * test/webrick/test_htmlutils.rb: add test for WEBrick::HTMLUtils.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
02:50 PM Revision c54733e1 (git): fix typos inspired by r40825
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:15 PM Revision 66795c47 (git): * encoding.c: document fix, change default script encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
11:34 AM Bug #8425 (Closed): webrick show local filesystem charset bug
Shell command
ruby -run -e httpd Dir1
run a webrick http server, can not show no 8bit-ascii directory/file name.
this patch can fix this problem, can review it?
patch file
or github
https://github.com/windwiny...
windwiny (wind winy)
08:33 AM Revision 11c7566a (git): * lib/set.rb (Set#delete_if, Set#keep_if): Add comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
03:11 AM Revision b4795cdb (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:10 AM Revision edb98f8b (git): fix typos. Patch by k_takata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
02:42 AM Revision 67964f29 (git): * ext/fiddle/extconf.rb: ignore rc version of libffi to fix build failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:41 AM Revision 0687ed1e (git): * misc/ruby-electric.el (ruby-electric-delete-backward-char): Use
delete-char instead of delete-backward-char, which is an
interactive function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
12:40 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
> The warning could happen at initialization, but if a constant inside the module is added, IMO it should be inherited.
You can't inherit a constant which is not defined at that time yet.
Even if same name constant is defined later, ...
nobu (Nobuyoshi Nakada)

05/18/2013

11:31 PM Feature #8422: add Enumerable#reverse_sort and Enumerable#reverse_sort_by
matz (Yukihiro Matsumoto) wrote:
> It can be done by `a.sort{|a,b| b<=>a}`.
That will typically be much slower though.
Currently, the best way to do a reverse sort, performance-wise, is `a.sort.reverse!`
For a random 100 numbe...
marcandre (Marc-Andre Lafortune)
06:46 PM Feature #8422 (Feedback): add Enumerable#reverse_sort and Enumerable#reverse_sort_by
It can be done by `a.sort{|a,b| b<=>a}`. Do we really need to define new methods?
Matz.
matz (Yukihiro Matsumoto)
05:09 PM Feature #8422 (Feedback): add Enumerable#reverse_sort and Enumerable#reverse_sort_by
they are better when you want descending order,
enum.sort.reverse
does work too, but it is to slow because it needs to build that result array twice
they both can be defined just like #sort and #sort_by but negates the result of t...
Hanmac (Hans Mackowiak)
09:23 PM Revision 30f813dd (git): * object.c (rb_inspect): fix typo and error message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eregon (Benoit Daloze)
08:16 PM Feature #8414 (Closed): String#scrub!
This issue was solved with changeset r40810.
Yui, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (str_scrub_bang): add String#scrub!. [Feature #8414]
naruse (Yui NARUSE)
07:49 AM Feature #8414: String#scrub!
いいんじゃないでしょうか。
Matz.
matz (Yukihiro Matsumoto)
07:00 PM Revision 42b8654b (git): * string.c (str_scrub0): added for refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:58 PM Revision 53fdb30e (git): * lib/uri/common.rb (URI.decode_www_form): scrub string if decoded
bytes are invalid for the encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:53 PM Feature #8421 (Feedback): add Enumerable#find_map and Enumerable#find_all_map
Could you tell me a concrete use-case of your find_map and find_all_map?
Usually a block for find/find_all gives boolean so that I personally have never wanted the return value from it.
Matz.
matz (Yukihiro Matsumoto)
05:03 PM Feature #8421 (Feedback): add Enumerable#find_map and Enumerable#find_all_map
currently if you have an Enumerable and you want to return the return value of #find you need eigther:
(o = enum.find(block) && block.call(o)) || nil
or
enum.inject(nil) {|ret,el| ret || block.call(el)}
neigher of them may be b...
Hanmac (Hans Mackowiak)
05:48 PM Revision 2849ee5d (git): * lib/set.rb (Set#delete_if, Set#keep_if): Make Set#delete_if and
Set#keep_if more space and time efficient by avoiding to_a.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:38 PM Revision 04122401 (git): * misc/ruby-electric.el (ruby-electric-setup-keymap): Make
backquotes electric as well. It was listed in
ruby-electric-expand-delimiters-list but not activated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:38 PM Revision 616084fd (git): * misc/ruby-electric.el (ruby-electric-delete-backward-char):
Introduce electric DEL that deletes what the previous electric
command has input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:38 PM Revision 30034b55 (git): * misc/ruby-electric.el (ruby-electric-matching-char): Make
electric quotes work again at the end of buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:21 PM Feature #6721: Object#yield_self
I have checked if by any chance Haskell had it, apparently it doesn't: http://stackoverflow.com/questions/4090168/is-there-an-inverse-of-the-haskell-operator
I have found that in Alonzo Church's "The calculi of lambda-conversion", he ...
alexeymuranov (Alexey Muranov)
05:41 AM Feature #6721: Object#yield_self
nobu (Nobuyoshi Nakada) wrote:
> I'm not against the feature itself, but don't like the name.
+1 to this opinion
Anonymous
04:40 PM Revision 54fef602 (git): * 2013-05-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:40 PM Revision 9c0ff0c1 (git): configure.in: setjmpex
* configure.in (setjmp-type): check if setjmpex() is really available.
workaround for i686-w64-mingw32 which declares it but lacks its
definition.
* include/ruby/defines.h: include setjmpex.h only if also setjmpex()
is available.
...
nobu (Nobuyoshi Nakada)
02:57 PM Revision 344db69c (git): configure.in: setjmpex
* configure.in (setjmp-type): use setjmpex() on w64-mingw32 to get rid
of -Wclobbered warnings.
* include/ruby/defines.h: include setjmpex.h here becase setjmp.h is
included from win32.h via intrin.h, winnt.h, and so on.
git-svn-id:...
nobu (Nobuyoshi Nakada)
02:55 PM Revision eca9bf61 (git): merge revision(s) 39384,39509,39511: [Backport #7961]
* lib/rexml/document.rb (REXML::Document.entity_expansion_text_limit):
new attribute to read/write entity expansion text limit. the default
limit is 10Kb.
* lib/rexml/text.rb (REXML::Text.unnormalize): check...
shyouhei (Shyouhei Urabe)
11:28 AM Revision 9cc1cc20 (git): * ext/socket/mkconstants.rb (INTEGER2NUM): Make less comparisons.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:16 AM Revision 05c0a228 (git): * string.c (str_scrub_bang): add String#scrub!. [Feature #8414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
11:07 AM Bug #8417: assert_in_epsilon(-1, -1) failed
> It is a test-unit gem bug.
> ...
I noticed that just now.. Thanks in advance!
no6v (Nobuhiro IMAI)
11:01 AM Bug #8417: assert_in_epsilon(-1, -1) failed
Oh, I'm verry sorry, but I used test-unit external gem (2.5.4).
After removing it, the test-unit default gem (2.0.0.0) works fine.
Would you please to close this (or mark as 3rd patry's) issue? Thanks.
no6v (Nobuhiro IMAI)
10:58 AM Bug #8417 (Rejected): assert_in_epsilon(-1, -1) failed
It is a test-unit gem bug.
I'll fix it in test-unit gem!
kou (Kouhei Sutou)
09:59 AM Bug #8417 (Feedback): assert_in_epsilon(-1, -1) failed
I can't reproduce it.
And that failure message seems different.
What version of test/unit are you using?
nobu (Nobuyoshi Nakada)
06:53 AM Bug #8417: assert_in_epsilon(-1, -1) failed
=begin
Oops, I forgot to show the result.
require "minitest/unit"
MiniTest::Unit::TestCase.new(?-).assert_in_epsilon(-1, -1) # => true
=end
no6v (Nobuhiro IMAI)
06:46 AM Bug #8417 (Rejected): assert_in_epsilon(-1, -1) failed
=begin
assert_in_epsilon(-1, -1) failed as below:
require "test/unit"
class AssertInEpsilonTest < Test::Unit::TestCase
def test_plus
assert_in_epsilon(1, 1)
end
def test_minus
assert_in_epsilon(-1, -1)
...
no6v (Nobuhiro IMAI)
10:01 AM Bug #8418 (Rejected): when all params are optional, named arg hash maps to the first available param
That's the reason that keyword argument is introduced. nobu (Nobuyoshi Nakada)
08:29 AM Bug #8418: when all params are optional, named arg hash maps to the first available param
that would also make it correspond to the new syntax
irb(main):034:0> def foo(arg = 1, **options); {arg: arg, options: options}; end; foo(a: 1)
=> {:arg=>1, :options=>{:a=>1}}
rits (First Last)
08:20 AM Bug #8418 (Rejected): when all params are optional, named arg hash maps to the first available param
irb(main):028:0> def foo(arg = 1, options = {}); {arg: arg, options: options}; end; foo(a: 1)
=> {:arg=>{:a=>1}, :options=>{}}
since positional args can't follow the named hash, perhaps the named hash should map to the last possible ...
rits (First Last)
08:17 AM Revision bfec5ad4 (git): * ext/socket/mkconstants.rb (INTEGER2NUM): Renamed from INTEGER2VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
07:58 AM Revision 2c7c4b2e (git): * ext/socket/mkconstants.rb (INTEGER2VALUE): Suppress a warning:
comparison between signed and unsigned integer expressions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:38 AM Revision e38a2399 (git): compile.c: forward kwrest
* compile.c (iseq_compile_each): forward anonymous and first keyword
rest argument one. [ruby-core:55033] [Bug #8416].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:49 AM Revision 3e8bba2f (git): vm_core.h: move jmpbuf between tag and prev
* vm_core.h (rb_vm_tag): move jmpbuf between tag and prev so ensure to
be accessible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:49 AM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
=begin
You can use (({rb_funcall2()})) instead here.
- return rb_funcall(p->argv[0], rb_intern("sleep"), p->argc-1, p->argv+1);
+ return rb_funcall(p->argv[0], rb_intern("sleep"), p->argc-1, p->argv[1]); /* (2) */
=end
nobu (Nobuyoshi Nakada)
03:11 AM Feature #6183: Enumerator::Lazy performance issue
Sure, feel free to clean old files. Thanks! gregolsen (Innokenty Mikhailov)
02:05 AM Revision 8a28e97a (git): enumerator.c: use VALUE
* enumerator.c (inspect_enumerator): use VALUE instead of mere char*
by using rb_sprintf() and rb_id2str().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:03 AM Revision 6b6ca889 (git): enumerator.c: append_method
* enumerator.c (append_method): extract from inspect_enumerator().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:58 AM Revision 15b88811 (git): enumerator.c: fix style
* enumerator.c (enumerator_initialize): no cuddle up else.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:01 AM Revision 94dfc14e (git): * ext/socket/mkconstants.rb (INTEGER2VALUE): Use LONG2FIX if possible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)

05/17/2013

11:19 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
Here is benchmark results.
I used the code same as [ruby-core:45871].
( https://raw.github.com/panaggio/rubysoc-2010/master/benchmarks/queue.rb )
trunk (r40799):
user system total real
Q#push ...
Glass_saga (Masaki Matsushita)
10:59 PM Feature #3620: Add Queue, SIzedQueue and ConditionVariable implementations in C in addition to ruby ones
I fixed some bugs:
(1) blocking forever bug pointed out by ko1 in [ruby-core:45950]
(2) SEGV in do_sleep()
(3) SizedQueue's bug which is similar to (1)
Now, the C implementation passes test-all.
Following diff is from final_queue_...
Glass_saga (Masaki Matsushita)
09:42 PM Feature #6183: Enumerator::Lazy performance issue
@gregolsen Thank you! I will try to review this soon, before you have to rebase again ;)
Mind if I delete the old patches? It might confuse someone looking at the ticket.
zzak (zzak _)
05:48 AM Feature #6183: Enumerator::Lazy performance issue
Finally managed to merge. Please see latest diff attached. gregolsen (Innokenty Mikhailov)
09:39 PM Bug #8412: Small Documentation Fix for Fiddle Module
Hi Steven, What typo are you referring to?
Please provide a link to the document, like on ruby-doc.org, or github, a patch would also be nice!
If you have any questions, feel free!
zzak (zzak _)
05:53 PM Feature #6721: Object#yield_self
(13/05/17 17:01), aleph1 (Elias Levy) wrote:
> map may be the best choice, as its already used in enumerables and this is a natural equivalent for single objects. That said, it may lead to unnoticed bugs if someone thinks they are ap...
nobu (Nobuyoshi Nakada)
05:01 PM Feature #6721: Object#yield_self
nobu (Nobuyoshi Nakada) wrote:
> I'm not against the feature itself, but don't like the name.
At its core this feature relates to method chaining and transforming the object, something that cannot be done with Object#tap.
Some s...
aleph1 (Elias Levy)
04:38 PM Feature #8414 (Closed): String#scrub!
r40390 [Feature #6752] で で追加した String#scrub ですが、破壊的メソッド版も追加していいでしょうか。
lib/uri/common.rb いじっていて、欲しくなったので。
naruse (Yui NARUSE)
03:40 PM Revision e0a45976 (git): * 2013-05-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:39 PM Revision a7acc991 (git): * ext/socket/mkconstants.rb: Convert integer constants bigger than int
correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:25 PM Bug #8358: TestSprintf#test_float test failure
The author describes that it is necessary to specify double-precision (53-bit) rounding precision before invoking strtod or dtoa.
https://github.com/ruby/ruby/blob/trunk/util.c#L526
So that I created a patch to set _PC_53 temporally ...
h.shirosaki (Hiroshi Shirosaki)
01:04 PM Revision 9d099423 (git): * ext/socket/ifaddr.c: Use unsigned LONG_LONG to represent flags
because SunOS 5.11 (OpenIndiana) defines ifa_flags as uint64_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:50 PM Bug #8347 (Closed): Couldn't find file to include 'lib/rake/doc/README.rdoc' from ../lib/rake/version.rb
Fixed by r40535, looked like it wasn't working in ri because of excess whitespace before readme starts when using "ri Rake" zzak (zzak _)
12:49 PM Revision 24acab65 (git): * cont.c: Typo in constant MAX_MACHINE_STACK_CACHE from '..MAHINE..'
patch by @schmurfy [Fixes GH-307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
10:27 AM Revision 53fa01d0 (git): * misc/ruby-electric.el (ruby-electric-matching-char): Do not put
a closing quote when the quote typed does not start a string, as
in $', ?\' or ?\".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
09:10 AM Revision fbe45fdf (git): * configure.in: Consider error messages to find out version option of
C compiler.
The C compiler of Sun Studio C emits "Warning: Option -qversion
passed to ld, if ld is invoked, ignored otherwise" and exit
successfully.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40796 b2dd03c8-39d4-4d8f-98ff...
akr (Akira Tanaka)
08:35 AM Revision baa65ad1 (git): gc.c: rb_gc_guarded_ptr
* gc.c (rb_gc_guarded_ptr): unoptimize on other compilers than gcc and
msvc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:39 AM Revision 4621799d (git): vm.c: narrow variable scope
* vm.c (vm_exec): move escape_ep into exception block, since it is
updated every time entering the block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:11 AM Revision d05010f6 (git): Enable the document for Socket::Ifaddr#ifindex.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:07 AM Revision 37659d8f (git): * 2013-05-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:07 AM Revision f7624d98 (git): eval_intern.h: jmpbuf must be accessible
* eval_intern.h (TH_PUSH_TAG): ensure jmpbuf to be accessible before
pushing tag to get rid of unaccessible tag by stack overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

05/16/2013

07:26 PM Bug #8412 (Closed): Small Documentation Fix for Fiddle Module
Just correcting a typo in the Fiddle module. It is in the intro to the module and makes it look untidy. sjc (Steven Cook)
07:01 PM Feature #8394 (Assigned): use String#b instead of dup.force_encoding("ASCII-8BIT")
xibbar (Takeyuki FUJIOKA)
07:01 PM Feature #8394 (Closed): use String#b instead of dup.force_encoding("ASCII-8BIT")
This issue was solved with changeset r40786.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/cgi/util.rb: Use String#b instead of dup.force_encoding...
xibbar (Takeyuki FUJIOKA)
06:30 PM Bug #8182: XMLRPC request fails with "Wrong size. Was 31564, should be 1501"
I sent a pull request about this bug: https://github.com/ruby/ruby/pull/308 duncan (Duncan Mac-Vicar P.)
01:35 PM Revision de03518c (git): * template/verconf.h.in: unexpand exec_prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:38 AM Feature #5458: DL should be removed
@ngoto Looking from the target, seems like this will be removed on 2.1.0 (next minor) sikachu (Prem Sichanugrist)
11:28 AM Feature #5458: DL should be removed
When DL is removed? ngoto (Naohisa Goto)
10:29 AM Revision 8416b579 (git): Fix a dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:26 AM Revision 612143dd (git): * lib/cgi/util.rb: Constant parameter is faster and economy than
string parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
10:14 AM Revision 75cbab7f (git): * lib/cgi/core.rb: Constant parameter is faster and economy than
string parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
10:01 AM Revision 2829cbac (git): * lib/cgi/util.rb: Use String#b instead of dup.force_encoding("ASCII-8BIT")
[Feature #8394]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Takeyuki FUJIOKA
08:29 AM Bug #8411 (Rejected): Wrong value returned when arity called on a method created through define_method with default arguments
def foo(bizz=:bizz, baz=:baz, buzz=:buzz)
end

Object.send(:define_method, :bar) do |bizz=:bizz, baz=:baz, buzz=:buzz|
end

puts method(:foo).arity
puts method(:bar).arity
Expected:
-1
-1
Actual:
-1
0
JFlash (John Amicangelo)
08:17 AM Revision 940a99ac (git): * vm_eval.c (rb_catch_obj): add volatile to tag to prevent crash
experimentally.
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130515T133500Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:54 AM Revision 67f562a4 (git): Makefile.in: loadpath from loadpath.c
* Makefile.in (loadpath): $LOAD_PATH in miniruby is empty by default
now.
* win32/Makefile.sub (loadpath): separate for quirky cmd.exe syntax.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:51 AM Bug #8410 (Closed): Syntax error in yaml_tree warn message
Should be fixed in r40776
Thanks Santiago!
tenderlovemaking (Aaron Patterson)
05:09 AM Bug #8410 (Closed): Syntax error in yaml_tree warn message
Fix: https://github.com/spastorino/ruby/commit/6c1ae148b5d9e714ba1c91c40991dd508ff6f4dc spastorino (Santiago Pastorino)
07:20 AM Revision 87e352c5 (git): win32/Makefile.sub: fix verconf
* win32/Makefile.sub (verconf.in): no longer used.
* win32/Makefile.sub (config.status): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:15 AM Revision 49d37e6e (git): verconf.h: fix for default prefix
* configure.in, template/verconf.h.in (RUBY_EXEC_PREFIX): fix for
default prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:15 AM Revision f13a0a4d (git): * template/verconf.h.in: not typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:59 AM Revision d5cb6900 (git): * template/verconf.h.in: typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:13 AM Revision 434f0abd (git): verconf.h.in: template for verconf.h
* template/verconf.h.in: generate verconf.h from the template and
rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:13 AM Revision ae9dbb6c (git): generic_erb.rb: --source option
* tool/generic_erb.rb: -x, --source option for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:13 AM Revision 7b5a8193 (git): common.mk: verconf.h for parallel build
* common.mk (verconf.h): depend on the timestamp file instead of
rbconfig.rb, for parallel build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:16 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
This error showed up in a Rails app, on my code I had two different files (ProxyAPI::Resource and ProxyAPI::BMC < Resource), and somehow there was a separated Resource class defined by a loaded gem. Then ProxyAPI::BMC was inheriting from... eLobato (Daniel Lobato Garcia)

05/15/2013

10:21 PM Bug #8407: *args in method_missing not typing variables correctly
Yes, I clearly did. And now, this morning, my error stands out like a sore thumb.
Sorry to waste time.
rcastro (Ryan Castro)
09:24 AM Bug #8407 (Rejected): *args in method_missing not typing variables correctly
As, Matthew said, you misunderstand how '*' works.
Matz.
matz (Yukihiro Matsumoto)
07:55 AM Bug #8407: *args in method_missing not typing variables correctly
=begin
Why do you keep referring to (({*args[0]})) in your code? I suspect the following is what you meant:
class Klass
def method_missing(sym, *args, &block)
puts args[0].inspect
puts args[0].class
mystring = args[...
phluid61 (Matthew Kerwin)
07:38 AM Bug #8407 (Rejected): *args in method_missing not typing variables correctly
When setting a variable with *args, it will not cast my string to a string type. But when used directly, it casts it as a String without issue.
I would expect it to operate like a normally array does, as demonstrated at the end of the...
rcastro (Ryan Castro)
09:59 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
Hi,

In <519344E0.7020208@atdot.net>
"[ruby-core:55004] Re: [ruby-trunk - Bug #8399] Remove usage of RARRAY_PTR in C extensions when not needed" on Wed, 15 May 2013 17:18:40 +0900,
SASADA Koichi <ko1@atdot.net> wrote:

>...
kou (Kouhei Sutou)
09:17 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
ko1 (Koichi Sasada) wrote:
> (2013/05/15 14:38), dbussink (Dirkjan Bussink) wrote:
> ...
How does this guarantee that the expression doesn't for example calls something that GC's? In that case, having to scan the whole array for pointe...
dbussink (Dirkjan Bussink)
09:14 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
Hanmac (Hans Mackowiak) wrote:
> hm i dont know if i like that, i use RARRAY_PTR for fast array access (like when i need to turn an Ruby Array into an wxImageList), and i do not know if rb_ary_entry is slower than the other
I have ne...
dbussink (Dirkjan Bussink)
05:23 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
(2013/05/15 14:38), dbussink (Dirkjan Bussink) wrote:
> If we're changing something anyway, it makes far more sense to change to either RARRAY_AREF or rb_ary_entry in extensions. I also discussed this on irc (#ruby-core) with ko1 and ...
ko1 (Koichi Sasada)
04:44 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
hm i dont know if i like that, i use RARRAY_PTR for fast array access (like when i need to turn an Ruby Array into an wxImageList), and i do not know if rb_ary_entry is slower than the other Hanmac (Hans Mackowiak)
02:38 PM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
normalperson (Eric Wong) wrote:
> Perhaps RARRAY_PTR_RO can be introduced to declare read-only access on
> ...
If we're changing something anyway, it makes far more sense to change to either RARRAY_AREF or rb_ary_entry in extensions...
dbussink (Dirkjan Bussink)
08:48 PM Revision a1cc022e (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: fix syntax error.
Thanks @spastorino! [ruby-core:55011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
06:07 PM Revision e213a722 (git): * gc.c (rb_node_newnode): use newobj_of() instead of rb_newobj().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
05:37 PM Revision 0f3206c6 (git): * ChangeLog: revert the line accidentally removed at r40763.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:04 PM Revision a84c2941 (git): * ext/socket/depend: Add a dependency for ifaddr.o.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:51 PM Revision ad6ae1db (git): yaml_tree.rb: fix warning message
* ext/psych/lib/psych/visitors/yaml_tree.rb: fix warning message.
Class.create does not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:50 PM Revision 04198615 (git): common.mk: verconf.h dependency
* common.mk (verconf.h): no needs to update always unless rbconfig.rb
is updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:44 PM Revision fa827c8b (git): common.mk, Makefile.sub: fix build failure on mswin
* common.mk (verconf.h): $< cannot be used in explicit rules with
nmake.
* win32/Makefile.sub (CONFIG_H): create verconf.in instead of
verconf.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40770 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
04:25 PM Revision 4616913d (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: only emit warnings when
-w is enabled.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
04:08 PM Revision dec4e1cd (git): * 2013-05-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:08 PM Revision 83b1c8da (git): revert r40760
* vm.c (vm_invoke_proc): revert r40760 partially, which causes timeout
in test/ruby/test_thread.rb:test_stack_size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:41 PM Revision 99035ca2 (git): * include/ruby/intern.h: should include sys/time.h for struct timeval
if it exists. [ruby-list:49363]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:41 PM Bug #8409: Having issues compiling 2.0.0 p195
Newbie error
compiling ruby with --prefix set to pwd leads to this mess. it should probably fail the build earlier instead of this rather hard to debug issue.
sam.saffron (Sam Saffron)
12:16 PM Bug #8409 (Closed): Having issues compiling 2.0.0 p195
sam@ubuntu:~/.rbenv/versions/2.0.0-p195$ uname -a
Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
sam@ubuntu:~/.rbenv/versions/2.0.0-p195$ gcc --version
gcc (Ubuntu/Linaro 4.7...
sam.saffron (Sam Saffron)
11:54 AM Bug #8408 (Closed): minitest's test may fail randomly
test/minitest/test_minitest_spec.rb may fail as following:
http://c5664.rubyci.org/~chkbuild/ruby-trunk/log/20130515T013301Z.log.html.gz
9) Failure:
TestMeta#test_structure_subclasses [/home/chkbuild/build/20130515T013301Z/ruby/te...
naruse (Yui NARUSE)
10:31 AM Revision 85ed9ca7 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:26 AM Revision f1ccdf98 (git): * gc.c (newobj): rename to `newobj_of' and accept additional
three parameters v1, v2, v3. newobj_of() do OBJSETUP() and
fill values with v1, v2, v3.
* gc.c (rb_data_object_alloc, rb_data_typed_object_alloc):
use newobj_of().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40764 b2dd03c8-3...
ko1 (Koichi Sasada)
08:56 AM Revision 1ad7cbbf (git): configure.in: move RUBY_PLATFORM to config.h
* configure.in (RUBY_PLATFORM): move to config.h as needed by
version.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:09 AM Revision 5780d881 (git): * common.mk (verconf.h): fix dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:07 AM Revision 4a9ec306 (git): * gc.c: add an additional RGENGC_PROFILE mode (2).
Profiling result can be check by GC.stat.
* gc.c (type_name): separate from obj_type_name().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:06 AM Revision 17bce7d0 (git): vm.c: suppress warnings
* vm.c (vm_invoke_proc, vm_exec), vm_eval.c (rb_eval_cmd): add
volatile to suppress -Wclobbered warnings by gcc 4.9.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:06 AM Revision d780d49b (git): vm_eval.c: suppress warning
* vm_eval.c (eval_string_with_cref): narrow a variable scope into the
EXEC_TAG block to suppress -Wclobberd warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:58 AM Revision b38e3f95 (git): configure.in: shvar_to_cpp in ruby
* configure.in: save configured load path values into verconf.in.
* common.mk (verconf.h): create from verconf.in with shvar_to_cpp.rb.
* tool/shvar_to_cpp.rb: turn shell variables into C macros.
[Bug #7959]
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
07:56 AM Revision 57531305 (git): loadpath.c: split
* loadpath.c: split load path staffs from version.c.
* dmyloadpath.c: miniruby has no builtin load paths, so verconf.h is
not needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:52 AM Revision 4425e213 (git): configure.in: escape
* configure.in (unexpand_shvar): escape $.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:51 AM Revision 262529fd (git): ifchange: --keep option
* tool/ifchange (--keep=suffix): new option for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:05 AM Revision 3c82aea9 (git): * Makefile.in (miniruby): 1.9.3 doesn't have POSTLINK macro.
reported by Takahiro Kambe at [ruby-list:49362].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:16 AM Bug #8405 (Assigned): CSV module - improper regexp for escaping special characters
nobu (Nobuyoshi Nakada)
12:27 AM Bug #8405 (Closed): CSV module - improper regexp for escaping special characters
=begin
There seems to be bug in csv.rb module. If you would like to use some special characters like (({|})) as a quote_char (passed as a parameter to CSV methods like read), program terminates with (({CSV::MalformedCSVError: Missing or...
dunric (David Unric)

05/14/2013

11:22 PM Bug #8400: skip `Rinda::TestRingFinger` tests on platforms not implementing `getifaddrs()`
Related, should windows-specific implementation for this issue be moved from win32.c to a networking specific
file (win32/net.c ?) and the build scripts updated similar to what Shirosaki-san did for win32/file.c?
win32.c is a 150k, 6...
jonforums (Jon Forums)
01:08 PM Bug #8400: skip `Rinda::TestRingFinger` tests on platforms not implementing `getifaddrs()`
usa, below is the quick patch I needed in order to build on win7 32bit with mingw-w64 gcc 4.7.4. The patch solved the `make test-all`
failures and `make test` still passed.
### `make test-all` results
...
[11522/13375] TestSp...
jonforums (Jon Forums)
03:07 AM Bug #8400: skip `Rinda::TestRingFinger` tests on platforms not implementing `getifaddrs()`
test file build results with 32bit compilers => cl, mingw.org 4.2.6, mingw-w64 4.7.2, mingw-w64 4.8.0
https://gist.github.com/jonforums/5570163
jonforums (Jon Forums)
12:38 AM Bug #8400: skip `Rinda::TestRingFinger` tests on platforms not implementing `getifaddrs()`
@usa, nice...just scanning r40693 :) :)
Looks like NET_LUID redef when using mingw-w64 headers is cause of this fail
http://ci.rubyinstaller.org/view/Ruby%20Trunk/job/ruby-trunk-x86-build/1514/console
Mingw-w64 headers do this...
jonforums (Jon Forums)
11:05 PM Bug #8320: Ruby interpreter crashes when running pcaprub
Still present in
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
crondaemon (Dario Lombardo)
09:19 PM Feature #8404 (Open): virtual, hooked or read only global variabels for ruby only code too
currently pure virtual or hooked global variables can only be defined with cFunctions like rb_define_virtual_variable
i think it would be cool if this would be possible in Ruby code too
Hanmac (Hans Mackowiak)
06:57 PM Revision 3f51cff4 (git): * ext/psych/lib/psych/visitors/yaml_tree.rb: adding backwards
compatible YAMLTree.new method
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
06:45 PM Bug #8384: Cannot build ruby against OpenSSL build with "no-ec2m"
So I made the patch pass the test suite. The test suite is now querying OpenSSL for built-in curves, instead of explicitly enumerating just some of them. vo.x (Vit Ondruch)
06:28 PM Revision 9ecdb321 (git): * ChangeLog: remove incorret lines of r40668.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:30 PM Revision 1a38b37d (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:26 PM Revision 7ceafcbd (git): * ext/psych/lib/psych.rb: Adding Psych.safe_load for loading a user
defined, restricted subset of Ruby object types.
* ext/psych/lib/psych/class_loader.rb: A class loader for
encapsulating the logic for which objects are allowed to be
deserialized.
* ext/psych/lib/psych/deprecated.rb: Changes to use ...
tenderlovemaking (Aaron Patterson)
05:07 PM Revision d7f06a66 (git): * test/psych/helper.rb: envutil is not available outside Ruby, so
port the functions from envutil to the test helper.
* test/psych/test_deprecated.rb: ditto
* test/psych/test_encoding.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
04:58 PM Revision 0b8f727d (git): changing variable name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tenderlovemaking (Aaron Patterson)
04:08 PM Revision 4baa00dc (git): * include/ruby/intern.h: should include sys/time.h for struct timeval
if it exists.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:53 PM Revision a6df3a98 (git): * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:44 PM Revision 50146213 (git): * 2013-05-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:44 PM Revision ccf07bde (git): * signal.c: need to include unistd.h for write(2).
unistd.h is now included via ruby/defines.h, but should implicitly
include here. (suggested by kosaki)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:26 PM Revision a5ed0865 (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...
U.Nakamura
03:22 PM Revision 19061851 (git): * signal.c: need to include unistd.h for write(2).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
02:48 PM Revision 1e5a6426 (git): * ext/socket/.document: Add ifaddr.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:27 PM Revision d70a806a (git): ruby.h: fix typo
* include/ruby/ruby.h (ruby_check_sizeof_long_long): fix typo of
availablity macro. [ruby-dev:47341]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:24 PM Revision 5ec5c6d5 (git): socket: fix build error and warnings on mingw
* ext/socket/extconf.rb: check for if_nametoindex() for
i686-w64-mingw32, and check for declarations of if_indextoname() and
if_nametoindex().
* ext/socket/ifaddr.c (ifaddr_ifindex): not-implement unless
if_nametoindex() is availab...
nobu (Nobuyoshi Nakada)
11:35 AM Revision b6decf28 (git): Update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:27 AM Revision bede15ac (git): merge revision(s) 40728:
* ext/dl/lib/dl/func.rb (DL::Function#call): check tainted when
$SAFE > 0.
* ext/fiddle/function.c (function_call): check tainted when $SAFE > 0.
* test/fiddle/test_func.rb (module Fiddle): add test for above....
U.Nakamura
11:23 AM Revision 6ff931d6 (git): merge revision(s) 39491: [Backport #8403]
* lib/rubygems/config_file.rb: Lazily load .gem/credentials to only
check permissions when necessary. RubyGems bug #465
* test/rubygems/test_gem_config_file.rb: Test for the above.
* test/rubygems/test_gem_...
nagachika (Tomoyuki Chikanaga)
11:13 AM Revision 19f08523 (git): merge revision(s) 40728:
* ext/dl/lib/dl/func.rb (DL::Function#call): check tainted when
$SAFE > 0.
* ext/fiddle/function.c (function_call): check tainted when $SAFE > 0.
* test/fiddle/test_func.rb (module Fiddle): add test for above....
nagachika (Tomoyuki Chikanaga)
11:06 AM Revision c7d7ff45 (git): * ext/dl/lib/dl/func.rb (DL::Function#call): check tainted when
$SAFE > 0.
* ext/fiddle/function.c (function_call): check tainted when $SAFE > 0.
* test/fiddle/test_func.rb (module Fiddle): add test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:00 AM Feature #8393: A class who's parent class is in a module can go wrong if files are required in the wrong order
One idea I'm thinking now is warning when a constant already introduced from the top-level is assigned. nobu (Nobuyoshi Nakada)
10:32 AM Revision 1b1fdc3c (git): * ChangeLog: fixed typo. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
09:45 AM Bug #8402 (Closed): Segfault when precompiling rails assets
Duplicate of #8100
Please try it with ruby-trunk.
zzak (zzak _)
03:44 AM Bug #8402 (Closed): Segfault when precompiling rails assets
This bug appears when I run rake assets:precompile, but not every time. I tuned up ulimit max open files, I have enough memory, but still failing sometimes. It fails about 6 times per 10 runs. I have RoR 3.2.13.
# rake assets:precompi...
kolashtov (And Ko)
09:23 AM Bug #8401: BigDecimal.new("2").power(1e20) is zero.
2013/5/14 mrkn (Kenta Murata) <muraken@gmail.com>:
>
> 1.9.3p392 では -Infinity になるから、2.0.0p0 で導入されたバグですねぇ。

こっちの Debian GNU/Linux では 1.9.3p392 でも 0.0 ですねぇ。
そちらの環境は書いてありませんが、環境依存でしょうか。

% ruby-1.9.3p392 -v -rbigdecimal -e 'p...
akr (Akira Tanaka)
09:13 AM Bug #8401: BigDecimal.new("2").power(1e20) is zero.
1.9.3p392 では -Infinity になるから、2.0.0p0 で導入されたバグですねぇ。 mrkn (Kenta Murata)
12:14 AM Bug #8401 (Closed): BigDecimal.new("2").power(1e20) is zero.
ふと見つけたのですが、BigDecimal.new("2").power(1e20) が 0.0 になります。
% ./ruby -v -rbigdecimal -e 'puts BigDecimal.new("2").power(1e20)'
ruby 2.1.0dev (2013-05-13 trunk 40697) [x86_64-linux]
0.0
以下のように、power の引数が
1e1 や 1e2 なら値が出てきて、
1e10 ならエ...
akr (Akira Tanaka)
09:15 AM Revision 912c16db (git): fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:42 AM Revision c3f45986 (git): Add NEWS about Kernel#singleton_method r40684 [Feature #8391]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:24 AM Revision cd916545 (git): iphlpapi is unavailable with older VC
* include/ruby/win32.h, win32/Makefile.sub, win32/win32.c: iphlpapi is
not available with older Visual C. works with VC9 or later at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:24 AM Revision e6589b2b (git): parse.y: fix argument type
* parse.y (is_global_name_punct): fix argument type, to get rid of
implicit promotion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:24 AM Feature #8377: Deprecate :: for method calls in 2.1
On 05/14 04:01, Magnus Holm wrote:
> On Sat, May 11, 2013 at 7:11 PM, jeremyevans0 (Jeremy Evans) <
> > I'm against removing it, since I think there are places where the syntax
> > looks nicer with :: (constructors such as Sequel:...
jeremyevans (Jeremy Evans)
04:23 AM Feature #8377: Deprecate :: for method calls in 2.1
On Sat, May 11, 2013 at 7:11 PM, jeremyevans0 (Jeremy Evans) <
merch-redmine@jeremyevans.net> wrote:

>
> Issue #8377 has been updated by jeremyevans0 (Jeremy Evans).
>
>
> jballanc (Joshua Ballanco) wrote:
> > If we rem...
judofyr (Magnus Holm)
05:52 AM Revision f83c42d9 (git): win32.h: fix for VC9
* include/ruby/win32.h (INTPTR_MAX, INTPTR_MIN, UINTPTR_MAX): split
from intptr_t and uintptr_t, since VC9 defines the latters only in
crtdefs.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40722 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
05:29 AM Bug #8399: Remove usage of RARRAY_PTR in C extensions when not needed
"dbussink (Dirkjan Bussink)" <d.bussink@gmail.com> wrote:
> We don't want to expose GC managed memory like this directly to a C
> extension, that is on concern and why we copy. Even if we would
> directly expose it, it would still...
normalperson (Eric Wong)
03:22 AM Revision 77753bd9 (git): * win32/win32.c (NET_LUID): mingw may have NET_LUID and not defined
_IFDEF_.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:00 AM Revision e00d0451 (git): * test/ruby/test_time.rb: fixed merge misstake in r40711 and r40719.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
02:58 AM Revision 9c81308b (git): * test/ruby/test_time.rb: fixed merge misstake in r40711.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
02:36 AM Revision 2bfe339a (git): merge revision(s) 40419: [Backport #8281]
* lib/net/imap.rb (getacl_response): parse the mailbox of an ACL
response correctly. [ruby-core:54365] [Bug #8281]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:35 AM Revision 5db522e5 (git): merge revision(s) 40304: [Backport #8267]
* ext/openssl/ossl_ssl.c: Correct shutdown behavior w.r.t GC.
* test/openssl/test_ssl.rb: Add tests to verify correct behavior.
[Bug #8240] Patch provided by Shugo Maeda. Thanks!
git-svn-id: svn+ssh://ci.ruby-lang.org/...
U.Nakamura
02:23 AM Revision fd9c5580 (git): merge revision(s) 40163: [Backport #8228]
* configure.in (AC_CHECK_HEADERS): atomic.h for Solaris atomic_ops.
* ruby_atomic.h: Skip using Solaris10 atomic_ops on Solaris 9 or
earlier if atomic.h is not available. [ruby-dev:47229] [Bug #8228]
git-svn-id: svn+...
U.Nakamura
02:20 AM Revision 3ba9e467 (git): merge revision(s) 39958,39989: [Backport #8216]
* lib/mkmf.rb (MAIN_DOES_NOTHING): force to refer symbols for tests
to be preserved. [ruby-core:53745] [Bug #8169]
* lib/mkmf.rb (MAIN_DOES_NOTHING): ensure symbols for tests to be
preserved. [ruby-core:537...
U.Nakamura
01:54 AM Revision bb5212d3 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:41 AM Revision e8905e10 (git): * regexec.c (onig_search): fix problem with optimization of \z.
[Backport #8210]
patched by k_tanaka at [ruby-core:54251].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:33 AM Revision 95d36502 (git): merge revision(s) 40014: [Backport #8198]
Document the default Net timeout values by @toolmantim [GH fixes #269]
* lib/net/{ftp,http,pop,smtp}.rb: added documentation for default values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@40712 b2dd03c8-39d4-4d8...
U.Nakamura
12:50 AM Revision 9d5681ad (git): merge revision(s) 39766,39769: [Backport #8101]
* time.c (GetTimeval): check if already initialized instance.
* time.c (GetNewTimeval): check if newly created instance.
* time.c (time_init_0, time_init_1, time_init_copy, time_mload): must
be newly created i...
U.Nakamura
12:37 AM Revision b4d0f635 (git): fix a typo and remove "file (func):" only duplicated of upper entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
 

Also available in: Atom