Project

General

Profile

Activity

From 05/25/2011 to 05/31/2011

05/31/2011

11:43 PM Bug #4799: M17N tests are too JP specific
This shold not be a JP specific bug, Japanese Windows's codepage is 932 and it is a variant of Shift-JIS, not EUC-JP.
Those errors seem problems because of the failure of automatic conversion from codepage to filesystem encoding,
but t...
naruse (Yui NARUSE)
11:24 PM Bug #3924: Performance bug (in require?)
Hello,
2011/5/31 Xavier Shay <xavier-list@rhnh.net>:
> Patches:      https://gist.github.com/58dbd6e72c1a1f47a415
Awesome!
> ...
Your patch still seems to use 8-space (1-tab) indent.
Yours:
+static VALUE
+rb_locate_fil...
mame (Yusuke Endoh)
09:13 PM Bug #3924: Performance bug (in require?)
Argh I mangled my benchmark table. Here is a picture that is easy to read:
https://img.skitch.com/20110531-qn7nukkyretiepysmytm8r1757.jpg
xaviershay (Xavier Shay)
09:08 PM Bug #3924: Performance bug (in require?)
Hello,
This is a long message, but I have tried to address most of the concerns with my patch. There are two sections: one for the technical detail of the patch, and one for benchmarks.
= The patch
I have split my patch up into a ...
xaviershay (Xavier Shay)
09:29 AM Bug #3924: Performance bug (in require?)
Hello,

2011/5/31 Xavier Shay <xavier-list@rhnh.net>:
>>> rb_ary_push( rb_gv_get( "$LOADED_FEATURES" ), require_name );
>>
> It seems that amalgalite is the only extension to do this in that search.
> While I realise that do...
mame (Yusuke Endoh)
07:23 AM Bug #3924: Performance bug (in require?)
On Mon, May 30, 2011 at 6:01 PM, Xavier Shay <xavier-list@rhnh.net> wrote:
>
>
> On 30/05/11 5:35 PM, Shyouhei Urabe wrote:
>>
>> * I'm not sure if your code is ready for case-insensitive filesystems
>>   like those in Windows. Â...
luislavena (Luis Lavena)
07:23 AM Bug #3924: Performance bug (in require?)
On Mon, May 30, 2011 at 6:00 PM, Xavier Shay <xavier-list@rhnh.net> wrote:
>
>> It is an impossible approach because some extension library can
>> modify $LOADED_FEATURES directly by rb_ary_push.
>> I found amalgalite to do so actua...
luislavena (Luis Lavena)
07:23 AM Bug #3924: Performance bug (in require?)
On 31/05/11 1:16 AM, Yusuke ENDOH wrote:
> Hello, Xavier
>
> http://rhnh.net/2011/05/28/speeding-up-rails-startup-time
>
> In the above article, you said that the bottleneck is to find
> $LOADED_FEATURES in linear, but I dou...
xaviershay (Xavier Shay)
07:23 AM Bug #3924: Performance bug (in require?)
On 30/05/11 5:35 PM, Shyouhei Urabe wrote:
> * I'm not sure if your code is ready for case-insensitive filesystems
> like those in Windows. I'm sure you know the problem so I should
> have missed something.
I don't have a...
xaviershay (Xavier Shay)
07:23 AM Bug #3924: Performance bug (in require?)
On 30/05/11 11:55 PM, Yusuke ENDOH wrote:
> Hello,
>
> 2011/5/30 Xavier Shay<xavier-list@rhnh.net>:
>>> - Please try to minimize a patch.
>>> - It would be good to use the existing code as possible as you can.
>> I realis...
xaviershay (Xavier Shay)
02:29 AM Bug #3924: Performance bug (in require?)
Hello,

I'd like to show a new benchmark on Ubuntu.

- trunk becomes as fast as 1.9.2p180 if r30789 is reverted
- 1.8.7 is slower than 1.9.2p180 on my environment

Sorry for my sending many mails in a short time.

...
mame (Yusuke Endoh)
01:59 AM Bug #3924: Performance bug (in require?)
Hello,

2011/5/31 Yusuke ENDOH <mame@tsg.ne.jp>:
> Hello, Xavier
>
> http://rhnh.net/2011/05/28/speeding-up-rails-startup-time
>
> In the above article, you said that the bottleneck is to find
> $LOADED_FEATURES in linea...
mame (Yusuke Endoh)
12:23 AM Bug #3924: Performance bug (in require?)
Hello, Xavier

http://rhnh.net/2011/05/28/speeding-up-rails-startup-time

In the above article, you said that the bottleneck is to find
$LOADED_FEATURES in linear, but I doubt it. If you are right,
1.8 should be also slow b...
mame (Yusuke Endoh)
11:23 PM Bug #4611: [BUG] Segementation fault reported
Just some additional info. I have a very similar issue.
I've got a very simple OmniAuth install. I've registered the app with
facebook and the login works fine. When Facebook runs it's callback
and tries to pull up localhost:3000/au...
PeterBell (Peter Bell)
11:23 PM Feature #4801: Shorthand Hash Syntax for Strings
On Tue, May 31, 2011 at 05:55:39AM +0900, Piotr Szotkowski wrote:
> Cezary:

First of all, thanks Piotr for taking the time to discuss this.
My original ideas for solving the problem or their descriptions
sucked, but I left your co...
Cezary (Cezary Baginski)
12:23 AM Feature #4801: Shorthand Hash Syntax for Strings
On Mon, May 30, 2011 at 11:24:29PM +0900, Michael Edgar wrote:
> On May 30, 2011, at 10:19 AM, Cezary wrote:
>
> > Symbols are recommended in favor of Strings for hashes anyway.
>
> Only for fixed key sets. Symbols aren't GC...
Cezary (Cezary Baginski)
11:19 PM Revision f4273e88 (git): Extra formatting and clarification of enumerator_feed [#4757]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
10:35 PM Revision f6809f61 (git): * hash.c (key_i): Change rdoc from "the first occurence" to "an
occurrence" since first occurrence is not a specification of
Hash#key. [Ruby 1.9 - Bug #4760]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:27 PM Revision 161cdee2 (git): * ext/pty/pty.c (pty_check): Restore "not reached" comment.
[Ruby 1.9 - Bug #4756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:25 PM Revision 290c4db6 (git): * ext/zlib/zlib.c: Fix document-method declarations for set_sync and
set_comment. [Ruby 1.9 - Bug #4695]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:18 PM Feature #1081: add File::write() convenience method
Hello,
2011/5/31 Shota Fukumori <sorah@tubusu.net>:
> Patch has updated, Now File.binwrite accepts Hash for specifying options:
> ...
Great! I tested your patch and noticed no problem.
Roger and rubyspec folks, could you also chec...
mame (Yusuke Endoh)
03:43 PM Feature #1081: add File::write() convenience method
Patch has updated, Now File.binwrite accepts Hash for specifying options:
https://gist.github.com/69c544ec245f3a07aabd
sorah (Sorah Fukumori)
09:56 PM Revision 9ce69e7c (git): * load.c (loaded_feature_path): cut nonsence loop execution to fix
performance bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masaya Tarui
09:44 PM Feature #4806 (Closed): A few Issues subjecting the Issue Tracker
a) I tried to get an overview of the development with the Roadmap, but it's not actual. Please update the roadmap.
b) Please provide a "Category" "Project", thus issues subjecting the project infrastructure can be categorized.
lazaridis.com (Lazaridis Ilias)
09:42 PM Feature #4805 (Closed): Add X509::Name#hash_old for 0.9.X compat
X509::Name#hash with OpenSSL 1.0.0 returns different value than with OpenSSL 0.9.X.
Attached patch adds X509::Name#hash_old when you need MD5 based same X509_NAME_hash value as OpenSSL 0.9.X.
Martin, how do you think about adding it?
nahi (Hiroshi Nakamura)
04:42 PM Bug #4804 (Closed): IO.pipeとNEWLINE_DECORATOR
IO.pipeで生成されるIOはDEAFULT_TEXTMODE、すなわちWindowsにおいては
FMODE_TEXTMODEに設定されますが、実際には改行コード変換が行われません。
どうもecflagsにNEWLINE_DECORATOR類を指定するパスが存在しないのでは
ないかと思われるのですが、この辺のコードが複雑すぎて直し方までは
わかりませんでした。
なおこれが原因で、test/test_open3.rbでFailureが起きています。
...
usa (Usaku NAKAMURA)
04:23 PM Revision 867fa454 (git): * ChangeLog: adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:16 PM Revision 604fe33b (git): * class.c (rb_mix_module): implement Module#mix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:15 PM Revision fcc86b0f (git): * io.c (io_encoding_set): should honor already set ecflags since it
might be set by mode option. fixed #4804
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:36 PM Revision 10c0604a (git): * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): remove unused
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
03:33 PM Revision 678b6820 (git): * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): support instantiation from
a Float through Rational.
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): ditto.
* test/bigdecimal/test_bigdecimal.rb (test_global_new_float): add a test for
the above changes.
* test/bigdecimal/test_bigdecimal.rb (test_new_with_float)...
Kenta Murata
03:13 PM Revision 8f9ff461 (git): * ChangeLog: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:09 PM Revision d7058e10 (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support coerce with a
Rational. The precision used for instantiate a BigDecimal from the
given Rational is obtained from the receiver BigDecimal.
* test/bigdecimal/test_bigdecimal.rb (test_coerce): add a test for the
above change.
git-svn-id: svn+ssh://...
Kenta Murata
03:05 PM Revision 8b709310 (git): * 2011-06-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:05 PM Revision a010ea9a (git): no space inside parens
* io.c: remove spaces before closing parens.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:53 PM Revision 6a158e05 (git): * ext/date/date_core.c (offset_to_sec): fixed invalid validation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
02:43 PM Revision 100931ac (git): * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): replace the algorithm for
coercing from a Rational to stop requiring "bigecimal/util.rb".
[ruby-core:34318]
* ext/bigdecimal/bigdecimal.c (GetVpValue): refactoring.
* ext/bigdecimal/bigdecimal.c (BigDecimal_new): support instantiation from a
Rational.
* test/...
Kenta Murata
01:53 PM Bug #4683: [PATCH] io.c: copy_stream execute interrupts and retry
Akira Tanaka <akr@fsij.org> wrote:
> As far as I remember, io.c should not use vm_core.h and rb_thread_t.
> ko1 dislikes it.

I think we can work around it by making more API methods public.

I have an old issue open to expo...
normalperson (Eric Wong)
01:45 PM Revision b54141bb (git): * ext/bigdecimal/bigdecimal.c (BigDecimal_new): support instantiation a
BigDecimal object from an Integer.
* test/bigdecimal/test_bigdecimal.rb (test_new_with_integer):
add for testing the above change.
* ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): replace its body
with a BigDecimal_new call.
* ...
Kenta Murata
01:28 PM Revision 899d2c14 (git): * ext/date/date_core.c: use simple/complex mode instead of light/right mode.
* test/date/*.rb: followed the above changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
12:29 PM Revision 3b3cf875 (git): * test/ruby/test_signal.rb (TestSignal#test_signal_requiring):
initialize SIGINT handler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:38 AM Bug #3927 (Feedback): Ruby can't interprete rmagick library
yugui (Yuki Sonoda)
11:37 AM Bug #3927: Ruby can't interprete rmagick library
Is it still reproducible with Ruby 1.9.2-p180? yugui (Yuki Sonoda)
10:31 AM Bug #4634 (Rejected): Segmentation fault on marshal_dump
yugui (Yuki Sonoda)
08:10 AM Revision b219a56c (git): * lib/net/http.rb, lib/net/protocol.rb: Allow to configure to wait
server returning '100 continue' response befor sending HTTP request
body. See NEWS for more detail. See #3622.
Original patch is made by Eric Hodel <drbrain@segment7.net>.
* test/net/http/test_http.rb: test it.
* NEWS: Add new feat...
Hiroshi Nakamura
05:21 AM Revision da1db8b4 (git): * io.c (rb_io_s_pipe): potential bug. the mode of read IO is set as
DEFAULT_TEXTMODE in call of io_set_encoding(), and of write IO is
also set as it in call of io_new_instance() via rb_protect().
so, if DEFAULT_TEXTMODE is not 0, we should check the result of
extract_binmode() and avoid crush of de...
U.Nakamura
03:59 AM Revision 8fa30bbd (git): * strftime.c (rb_strftime_with_timespec): improved style consistency.
constified some variables.
* test/test_time.rb (TestTime#test_huge_precision): test for #4456.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:54 AM Revision 69dcd163 (git): * test/io/wait/test_io_wait.rb (TestIOWait#{test_nread,test_ready?,
test_wait}: give system some time to process the written data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:46 AM Revision dd0f22f9 (git): merges r30629 and r30630 from trunk into ruby_1_9_2.
--
* ext/psych/lib/psych/visitors/to_ruby.rb: merge keys are actually
part of YAML 1.1, so they should be supported. Remove warning and
merge keys to parent. [ruby-core:34679]
* test/psych/test_merge_keys.rb: test for merge keys
--...
yugui (Yuki Sonoda)
03:43 AM Revision c5324d7e (git): * test/ruby/test_io.rb (TestIO#test_open_mode): MUST release resources
explicitly. fix problem of r31671
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:18 AM Revision e9faf5ff (git): merges r28643 from trunk into ruby_1_9_2. Fixes #3570.
--
* time.c (localtime_with_gmtoff_zone): renamed from
localtime_with_gmtoff and return the timezone abbreviation name.
(guess_local_offset): return the isdst and timezone abbreviation name.
(localtimew): use the returned isdst and...
yugui (Yuki Sonoda)
03:18 AM Revision 1ff0d08b (git): merges r29851 from trunk into ruby_1_9_2.
--
* time.c (time_zone): use rb_locale_str_new_cstr to set encoding
as locale and convert its content to internal encoding.
[ruby-core:33278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31853 b2dd03c8-39d4-4d8f-9...
yugui (Yuki Sonoda)
03:18 AM Revision 60d976b3 (git): merges r30542 from trunk into ruby_1_9_2. Fixes #4279.
--
* pack.c (pack_unpack): the resulted string of unpack('M') must have
ASCII-8BIT encoding (and ENC_CODERANGE_VALID). [ruby-core:34482]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31852 b2dd03c8-39d4-4d8f-98ff-823...
yugui (Yuki Sonoda)
02:28 AM Revision 72b489a5 (git): merges r30798 from trunk into ruby_1_9_2.
--
* lib/test/unit/assertions.rb (assert_block): move from
test/fileutils/fileasserts.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:28 AM Revision a4dba495 (git): merges r30364 from trunk into ruby_1_9_2. Fixes #4377.
--
* io.c (pipe_open): Added rb_thread_atfork(). We must reinitialize
GVL at new process creation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:12 AM Revision eece2be9 (git): merges r30789 from trunk into ruby_1_9_2. Fixes #4446.
--
* load.c (rb_get_expanded_load_path): always expand load paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:12 AM Revision 0771e527 (git): Fixes a mistake in merge of r31812.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
02:12 AM Revision 5a37afe8 (git): Imported ext/-test-/string from trunk to ruby_1_9_2. Fixes #4540.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e yugui (Yuki Sonoda)
02:08 AM Revision 70c97ec8 (git): * vm_exec.c: remove conditions for clang
because clang version 3.0 (trunk 132165) doesn't need them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:49 AM Revision d96b56b3 (git): merges r28557 from trunk into ruby_1_9_2. Fixes #4506.
--
* io.c (nogvl_copy_stream_sendfile): jump to retry_sendfile directly
to avoid select() on a socket which TCP state is CLOSED.
patch by Eric Wong. [ruby-core:31053]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@...
yugui (Yuki Sonoda)
01:26 AM Bug #4141: Tk extension is not accepting any type of parameter combination
Hidetoshi Nagai, thank you, It is now possible to compile Tcl/Tk with MinGW without issues.
I've open a backport request so this get merged back into 1.9.2:
http://redmine.ruby-lang.org/issues/4802
On a sidenote I'm going to che...
luislavena (Luis Lavena)
12:53 AM Bug #4798: test_process and test_signal errors and halts on Windows
On Mon, May 30, 2011 at 7:08 AM, KOSAKI Motohiro
<kosaki.motohiro@gmail.com> wrote:
>
> Because, following line has typo.
>
>    skip "limitation of GenerateConsoleCtrlEvent()" if /mswin|mignw/
>
luislavena (Luis Lavena)
12:13 AM Revision 031d624b (git): merges r31822 and r31823 from trunk into ruby_1_9_2.
--
* insns.def (opt_mult): as r31805, volatile it.
Without this, clang -O fails calculation.
* numeric.c (fix_mul): ditto.
* rational.c (f_imul): ditto.
--
Fix mixed declarations in r31822.
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
yugui (Yuki Sonoda)
12:13 AM Revision a6cafde2 (git): merges r31805 from trunk into ruby_1_9_2.
--
* numeric.c (int_pow): make sure to assign the result of x * z.
If xz is optimized out, the value won't overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:13 AM Revision d7170216 (git): merges r31778 from trunk into ruby_1_9_2.
--
* numeric.c (flo_round): fix for negative value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:13 AM Revision d5009084 (git): merges r31747 and r31758 from trunk into ruby_1_9_2.
--
* io.c (fill_cbuf): finish reading at EOF.
--
* io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:12 AM Revision 3cefaf62 (git): merges r31744 and r31745 from trunk into ruby_1_9_2.
--
prevent an error when passing a frozen string to REXML::Text.new
dup the string passed in instead of cloning so that it's frozen state is ignored
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
--
ChangeLog for it
git-svn-i...
yugui (Yuki Sonoda)
12:12 AM Revision cb4feba9 (git): merges r31678 from trunk into ruby_1_9_2.
--
* test/openssl/test_pkey_dsa.rb: Add tests for sign/verify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:12 AM Revision 246df6f7 (git): merges r31640 from trunk into ruby_1_9_2.
--
* test/openssl/test_pkey_rsa.rb: Add tests for sign/verify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:12 AM Revision 67cf90f6 (git): merges r31623 from trunk into ruby_1_9_2.
--
* lib/timeout.rb (Timeout#timeout): don't leak "execution expired"
exception. [Bug #4283] [ruby-core:34534].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:12 AM Revision 0c9c99ab (git): merges r31614 from trunk into ruby_1_9_2.
--
* test/test_singleton.rb: Add tests from lib/singleton.rb. Patch by
Pete Higgins. [Ruby 1.9 - Bug #4715]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:12 AM Revision bd9588cd (git): merges r31609 from trunk into ruby_1_9_2.
--
* vm_core.h (rb_thread_struct): add volatile to
transition_for_lock because it is not protected by lock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:12 AM Revision fffe09dd (git): merges r31577 from trunk into ruby_1_9_2.
--
* cont.c (cont_init): clear macihne_stack_start/end of saved thread to
prevent mark machine stack of GC'ed Thread. root Fiber is not initialized by
fiber_init(). based on a patch by Serge Balyuk [ruby-core:35891] fixes #4612
*...
yugui (Yuki Sonoda)
12:11 AM Revision 31dc2ea2 (git): merges r31507 from trunk into ruby_1_9_2.
--
* lib/forwardable.rb: support 'delegate :foo => :bar' for to meet
by specification of RDOC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:11 AM Revision d3398c19 (git): merges r31482 from trunk into ruby_1_9_2.
--
* thread_pthread.c (native_cond_timedwait): add to care EINTR.
* thread_pthread.c (thread_timer): remove EINTR check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:11 AM Revision eff01662 (git): merges r31441,r31442 and r31443 from trunk into ruby_1_9_2.
--
YAML.load time correctly parse usecs smaller than 1 fixes #4571
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
--
ChangeLog for it
--
* ext/syck/rubyext.c (mktime_do): avoid buffer overrun, by
silently ignoring lesser sign...
yugui (Yuki Sonoda)
12:11 AM Revision ffafcd96 (git): merges r31436 and r31437 from trunk into ruby_1_9_2.
--
* eval.c (frame_func_id): __method__ return different name from
methods defined by Module#define_method with a same block.
[ruby-core:35386] fixes #4606
* eval (method_entry_of_iseq): new helper function. search control
...
yugui (Yuki Sonoda)
12:11 AM Revision d3818d6b (git): merges r31405 from trunk into ruby_1_9_2.
--
* ext/socket/init.c (rsock_connect): add to care EINTR. based
on a patch from Eric Wong at [ruby-core:35621][Bug #4555]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)

05/30/2011

11:23 PM Feature #4801: Shorthand Hash Syntax for Strings
On Mon, May 30, 2011 at 09:05:04PM +0900, Michael Edgar wrote:
> Since :"#{abc}" is allowed in Ruby, I imagine that any such
> substitute syntax would preserve that property.
>
> I disagree strongly that Hash, the base class, s...
Cezary (Cezary Baginski)
09:23 PM Feature #4801: Shorthand Hash Syntax for Strings
Em 30-05-2011 09:05, Michael Edgar escreveu:
> Since :"#{abc}" is allowed in Ruby, I imagine that any such substitute syntax would preserve that property.
>
> I disagree strongly that Hash, the base class, should special-case the ...
rosenfeld (Rodrigo Rosenfeld Rosas)
08:59 PM Feature #4801: Shorthand Hash Syntax for Strings
Em 30-05-2011 07:58, Cezary escreveu:
> On Mon, May 30, 2011 at 04:21:32PM +0900, Yukihiro Matsumoto wrote:
>> Hi,
>>
>> In message "Re: [ruby-core:36571] Re: [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings"
...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:59 PM Feature #4801: Shorthand Hash Syntax for Strings
On Mon, May 30, 2011 at 04:21:32PM +0900, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:36571] Re: [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings"
> on Mon, 30 May 2011 16:12:35 +0900, An...
Cezary (Cezary Baginski)
04:53 PM Feature #4801: Shorthand Hash Syntax for Strings
> |> Iff  {'key': 'value'} means {:key yeban (Anurag Priyam)
04:23 PM Feature #4801: Shorthand Hash Syntax for Strings
Hi,

In message "Re: [ruby-core:36571] Re: [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings"
on Mon, 30 May 2011 16:12:35 +0900, Anurag Priyam <anurag08priyam@gmail.com> writes:

|> Iff  {'key': 'value'} means...
matz (Yukihiro Matsumoto)
04:23 PM Feature #4801: Shorthand Hash Syntax for Strings
I would find that misleading. +1 for {'a': 'b'} rkh (Konstantin Haase)
04:23 PM Feature #4801: Shorthand Hash Syntax for Strings
> Iff  {'key': 'value'} means {:key yeban (Anurag Priyam)
09:53 AM Feature #4801: Shorthand Hash Syntax for Strings
Hi,

In message "Re: [ruby-core:36559] [Ruby 1.9 - Feature #4801][Open] Shorthand Hash Syntax for Strings"
on Mon, 30 May 2011 09:44:35 +0900, Tom Wardrop <tom@tomwardrop.com> writes:

|Assuming there's no technical limita...
matz (Yukihiro Matsumoto)
09:44 AM Feature #4801 (Rejected): Shorthand Hash Syntax for Strings
Assuming there's no technical limitation or ambiguities, I suggest that the shorthand syntax for symbol's in the context of an array, be applied to strings also.
E.g. {'key': 'value'}
I don't believe there are any syntax ambiguous ...
wardrop (Tom Wardrop)
11:11 PM Revision b4bc8239 (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:59 PM Bug #3924: Performance bug (in require?)
Hello,

2011/5/30 Xavier Shay <xavier-list@rhnh.net>:
>> - Please try to minimize a patch.
>>   - It would be good to use the existing code as possible as you can.
> I realise this would be ideal, but I can't figure out how it wor...
mame (Yusuke Endoh)
04:33 PM Bug #3924: Performance bug (in require?)
=begin
Hi Xavier. I'm also reading your patch.
* Though the patch is big, after applying it's super readable than the
original. Fairly good.
* I also like your writing static function declarations.
* Style things are alr...
shyouhei (Shyouhei Urabe)
07:42 AM Bug #3924: Performance bug (in require?)
Yusuke Endoh wrote:
> Hello, Xavier
> ...
I will do this.
>
> ...
I realise this would be ideal, but I can't figure out how it works, or whether it would be compatible with the new algorithm.
> - It would be good not to chang...
xaviershay (Xavier Shay)
12:53 AM Bug #3924: Performance bug (in require?)
Em 29-05-2011 12:23, Rodrigo Rosenfeld Rosas escreveu:
> Em 28-05-2011 18:38, Xavier Shay escreveu:
>> Issue #3924 has been updated by Xavier Shay.
>>
>>
>> Rodrigo: Please try the latest version of rvm: rvm get head.
>> Ot...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:29 AM Bug #3924: Performance bug (in require?)
Em 28-05-2011 18:38, Xavier Shay escreveu:
> Issue #3924 has been updated by Xavier Shay.
>
>
> Rodrigo: Please try the latest version of rvm: rvm get head. Otherwise let me know what platform you are on.

Hi Xavier, I'm alw...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:53 PM Feature #1081: add File::write() convenience method
Hello,

2011/5/30 Shota Fukumori <sorah@tubusu.net>:
> My Implementation has been completed File.write, binwrite.

Good work.

But File.binwrite does not accept an optional hash while write does.

$ rm -f /tmp/x && ....
mame (Yusuke Endoh)
10:57 AM Feature #1081: add File::write() convenience method
Hi,
My Implementation has been completed File.write, binwrite.
Patch is attached.
RDocs in patch and test is copied from previous patches.
sorah (Sorah Fukumori)
09:47 PM Revision c50a3040 (git): * 2011-05-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:47 PM Revision 8b3e21b2 (git): Tue Jun 30 06:45:21 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* ext/openssl/ossl_pkey_rsa.c: Complete documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
08:23 PM Bug #4798 (Closed): test_process and test_signal errors and halts on Windows
This issue was solved with changeset r31824.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/ruby/test_signal.rb (TestSignal#test_signal_requiring): sm...
usa (Usaku NAKAMURA)
08:23 PM Bug #4798: test_process and test_signal errors and halts on Windows
> C:/Users/Luis/Projects/oss/ruby/test/ruby/test_signal.rb:205: warning: cannot close fd before spawn
>
> And the second one stalls there until Ctrl+C is been hit, aborting the execution of other tests.
>
> test_signal.rb:205 (t...
kosaki (Motohiro KOSAKI)
07:24 PM Feature #3375: --disable-libedit to disable libedit
Shyouhei Urabe wrote:
> もともとif ... else ... endだったんですが、それではうまくいかなくて、true/falseのほかにnilが来るパターンがあって、
> ...
そんな雰囲気は漂っていたのでその辺は察しました。
> enable_configの戻り値ってどうなってるんですっけ
--enable-libedit => true
--disable-libedit => false
無指定 => nil
の...
naruse (Yui NARUSE)
12:06 PM Feature #3375: --disable-libedit to disable libedit
あれ、いや、自信なくなってきたなあ。
もともとif ... else ... endだったんですが、それではうまくいかなくて、true/falseのほかにnilが来るパターンがあって、それに対応するためにtrue/fase/nilでcaseで分岐するようにしたように記憶してるんですが、ちがったっけな
enable_configの戻り値ってどうなってるんですっけ
shyouhei (Shyouhei Urabe)
04:32 AM Feature #3375: --disable-libedit to disable libedit
r31265 で上記のパッチは適用されていますが、
このパッチの when nil って誤りで、when false が正しいと思うんですが
naruse (Yui NARUSE)
03:53 PM Bug #4803 (Assigned): RCLASS_SUPER won't compile for C extensions as of revision 31627
matz (Yukihiro Matsumoto)
03:53 PM Bug #4803: RCLASS_SUPER won't compile for C extensions as of revision 31627
Hi,

In message "Re: [ruby-core:36566] [Ruby 1.9 - Bug #4803] RCLASS_SUPER won't compile for C extensions as of revision 31627"
on Mon, 30 May 2011 14:53:13 +0900, Daniel Azuma <dazuma@gmail.com> writes:
|
|Can anyone expl...
matz (Yukihiro Matsumoto)
02:53 PM Bug #4803: RCLASS_SUPER won't compile for C extensions as of revision 31627
Can anyone explain to me the rationale behind moving the rb_classext_t definition into internal.h, and what I should do in 1.9.3 to access the functionality of RCLASS_SUPER? I need to access *and* set the direct superclass, even if it's ... dazuma (Daniel Azuma)
02:34 PM Bug #4803 (Closed): RCLASS_SUPER won't compile for C extensions as of revision 31627
The RCLASS_SUPER macro (defined in ruby.h) no longer compiles for C extensions because the required rb_classext_t type has been made opaque as of svn revision 31627. This is breaking certain gems that rely on RCLASS_SUPER to hack the cla... dazuma (Daniel Azuma)
03:37 PM Feature #3622: Net::HTTP does not wait to send request body with Expect: 100-continue
Merged the update from Eric Hodel. Thanks Eric, and I'm sorry for posting the patch which does not include full changes. Can't remember why I thought the tests I added run correctly...
I'll commit this.
https://github.com/nahi/ruby/c...
nahi (Hiroshi Nakamura)
01:30 PM Revision 34913093 (git): * test/ruby/test_signal.rb (TestSignal#test_signal_requiring): don't
close stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:23 AM Revision 36cad2f9 (git): * test/ruby/test_signal.rb (TestSignal#test_signal_requiring): small
but critical typo of r31642. sorry...
[Bug #4798] [ruby-core:36550]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:28 AM Revision 13e644cb (git): Fix mixed declarations in r31822.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:53 AM Revision 1d543137 (git): * insns.def (opt_mult): as r31805, volatile it.
Without this, clang -O fails calculation.
* numeric.c (fix_mul): ditto.
* rational.c (f_imul): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:50 AM Feature #4788: resolv.rb refactoring
とりあえず思いつかなかったのでパッチでは each_resource_ という名前にしてしまいましたが、fetch_resource という名前でどうでしょうか。 metanest (Makoto Kishimoto)
06:09 AM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
Yui NARUSE wrote:
> Lazaridis Ilias wrote:
[...]
> ...
[...]
> Usually people found Encoding::ConverterNotFoundError when people use encoding conversion.
[...]
> ...
[...]
> This scenario doesn't happen other than people who uses...
lazaridis.com (Lazaridis Ilias)
12:47 AM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
Lazaridis Ilias wrote:
> Yui NARUSE wrote:
> ...
This problem is from missing converters even if Windows needs it.
It is not good thing to say about general message of exception based on special case.
> > Or such message is associa...
naruse (Yui NARUSE)
04:45 AM Revision 766c32ad (git): merges r31389 and r31398 from trunk into ruby_1_9_2.
--
* test/io/wait/test_io_wait.rb: New. for testing ext/io/wait.
the patch was written by Eric Wong. [Feature #4531]
--
fix commit mistake of r31389.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31821 b2dd03c8-39d4-...
yugui (Yuki Sonoda)
04:45 AM Revision f9a973ad (git): merges r31371 from trunk into ruby_1_9_2.
--
* test/dl/test_base.rb (DL::LIBC_SO): its always msvc*.dll on
mswin/mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:45 AM Revision c1e6116a (git): merges r31365 from trunk into ruby_1_9_2.
--
* configure.in (STRIP): use proper toolchain. based on a patch
from Jon Forums at [ruby-core:35909]. fixes #4617
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:44 AM Revision b3498ae6 (git): merges r31353 from trunk into ruby_1_9_2.
--
* transcode.c (econv_init): fix rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:44 AM Revision 475907ec (git): merges r31351 and r31352 from trunk into ruby_1_9_2.
--
* include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
versions on mingw are useless because they use int32_t. fixes #4564
--
* file.c (rb_file_truncate): fix function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
yugui (Yuki Sonoda)
04:44 AM Revision 1049a5df (git): merges r31346 from trunk into ruby_1_9_2.
--
* ext/openssl/extconf.rb: Should check SSLv2_*method.
openssl compiled with "no-ssl2" the extconf don't fail
when running `make' having this compilation errors.
Patched by Laurent Arnoud. fixes #4562, #4556
git-svn-id: svn+ssh:...
yugui (Yuki Sonoda)
04:44 AM Revision 30f0aca4 (git): merges r31344 and r31345 from trunk into ruby_1_9_2.
--
* win32/win32.c (kill): accept 0 as pid, fixes #4596
--
* win32/win32.c (kill): accept 0 only sig is SIGINT #4596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:44 AM Revision c214c628 (git): merges r31344 from trunk into ruby_1_9_2.
--
* win32/win32.c (kill): accept 0 as pid, fixes #4596
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:44 AM Revision 43be6769 (git): merges a part of r31319 from trunk into ruby_1_9_2.
--
* lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:43 AM Revision dc70f82c (git): merges r31317 from trunk into ruby_1_9_2.
--
* ext/psych/parser.c (parse): strings from psych have proper taint
markings.
* test/psych/test_tainted.rb: test for string taint
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31812 b2dd03c8-39d4-4d8f-98ff-823fe69b...
yugui (Yuki Sonoda)
04:43 AM Revision 86692258 (git): merges r31314 from trunk into ruby_1_9_2.
--
* win32/win32.c (CreateChild): maximum length of lpCommandLine is
32,768 characters, including the Unicode terminating null character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31811 b2dd03c8-3...
yugui (Yuki Sonoda)
04:43 AM Revision b79b4492 (git): merges r29431 from trunk into ruby_1_9_2.
--
* configure.in (RSHIFT): quote to get rid of argument expansion
for autoconf 2.68.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:43 AM Revision 69e5d34b (git): merges r31310 from trunk into ruby_1_9_2.
--
* string.c (rb_str_each_line): check string's length when compare
separator and string. [ruby-core:35815] fixes #4586
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:43 AM Revision ac899ff9 (git): merges r31304 from trunk into ruby_1_9_2.
--
* test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
avoid float error. [ruby-core:35804]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:09 AM Revision fbb389a0 (git): * 2011-05-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@31807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:08 AM Revision 1a8ea0fc (git): * lib/logger.rb (Logger::ProgName): do not depend on subversion
keyword ($Id$). ProgName with revision number was written in the
header line of each logfile for ease of tracking what version user
is using in troubleshooting. Logger is already stable enough.
I commit this on confirmation from Sh...
Hiroshi Nakamura
01:28 AM Revision 4e4649e1 (git): * numeric.c (int_pow): make sure to assign the result of x * z.
If xz is optimized out, the value won't overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:54 AM Bug #4716: Ripper orders rescue_mod subnodes inconsistently [PATCH]
Could I get an update on this? Given the potential for a 1.9.3 release, I'd like to see as few Ripper bugs remaining by the time that comes. adgar (Michael Edgar)
12:04 AM Bug #4799 (Closed): M17N tests are too JP specific
Hello,
While attempting to successfully run 'test-all' on Windows, I found receiving several M17N tests errors due the nature of not been running on a JP codepage or configuration:
1) Error:
test_filename_bytes_euc_jp(TestDir_M1...
luislavena (Luis Lavena)

05/29/2011

11:55 PM Bug #4798 (Closed): test_process and test_signal errors and halts on Windows
Hello,
I'm trying to complete a run of tests against trunk (r31779) and find myself with several errors that halt the execution of test-all
There are two weird ones showing up on the tests:
C:/Users/Luis/Projects/oss/ruby/test/r...
luislavena (Luis Lavena)
11:45 PM Bug #4680 (Assigned): [PATCH] io.c: fix busy wait with sendfile()
naruse (Yui NARUSE)
11:32 PM Feature #1081: add File::write() convenience method
Hi, I'm implementing this feature in C.
I've been completed File.write, I'll complete implementation of File.binwrite in C.
--sora_h
sorah (Sorah Fukumori)
11:24 PM Bug #4685 (Assigned): WEBrick::HTTPServlet::ERBHandler should allow ERB documents to set content_type
It seems reasonable, please commit it unless anyone object to this. naruse (Yui NARUSE)
11:18 PM Bug #4781 (Closed): Engrish in comment in Regexp#=~
This issue was solved with changeset r31781.
Tsuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* re.c (rb_reg_match): fix rdoc of Regexp#=~.
patched by Ts...
naruse (Yui NARUSE)
11:14 PM Bug #4773 (Closed): require 'webrick/https' すると WEBrick::HTTPRequest#parse_uri が public になってしまう
This issue was solved with changeset r31780.
okkez, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/https.rb (WEBrick::HTTPRequest#parse_uri):
keep ...
naruse (Yui NARUSE)
10:50 PM Revision bc5aeb98 (git): merges r31288 and r31289 from trunk into ruby_1_9_2.
--
* lib/uri/generic.rb (#route_from_path): Fix a bug where
URI('http://h/b/').route_to('http://h/b') wrongly returned './'
(should be '../b'). [Bug #4476]
--
Add some more tests for the previous fix.
git-svn-id: svn+ssh://ci.ruby-l...
yugui (Yuki Sonoda)
10:50 PM Revision f0de89f8 (git): merges r31286 from trunk into ruby_1_9_2.
--
* numeric.c (ruby_float_step): wrong loop condition.
fixes [ruby-core:35753], reported by Joey Zhou.
* test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
test above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
yugui (Yuki Sonoda)
10:50 PM Revision f13e0ec8 (git): merges r31278 from trunk into ruby_1_9_2.
--
* include/ruby/win32.h (frexp, modf): wrongly declared as pure in
mingw math.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:49 PM Revision 49ed59fd (git): merges r31277 from trunk into ruby_1_9_2.
--
* include/ruby/win32.h (ftruncate, truncate): mingw64 misses
prototypes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:49 PM Revision 48a3fa90 (git): merges r31272 from trunk into ruby_1_9_2.
--
* io.c (rb_f_syscall): reduce warning: "HAVE___SYSCALL" is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:49 PM Revision ca0ac3e3 (git): merges r31266 from trunk into ruby_1_9_2.
--
* lib/uri/common.rb: avoid race condition. fixes #4572
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:49 PM Revision d4e840bf (git): merges r31262 and r31264 from trunk into ruby_1_9_2.
--
Evaluate truncate, ftruncate and ftello existence
This corrects mingw-w64 compilation.
--
* include/ruby/win32.h: VC doesn't have ftruncate() and others, but
ruby needs HAVE_ macros to use our emulation functions.
(fix the proble...
yugui (Yuki Sonoda)
10:49 PM Revision 7ffffab2 (git): merges r31248 from trunk into ruby_1_9_2.
--
* ext/stringio/stringio.c (strio_getline): check whether str is
a string when str and lim are given.
https://twitter.com/watson1978/status/56225052152168449
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31797 b2...
yugui (Yuki Sonoda)
10:49 PM Revision 61ce0127 (git): merges r31244 from trunk into ruby_1_9_2.
--
* ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize):
pop pushed error after each try of reading. fixes #4550
* ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
* ext/openssl/ossl_pkey_ec.c (ossl_ec_initialize): ditto.
git-...
yugui (Yuki Sonoda)
10:49 PM Revision 1dd5d8e4 (git): merges r31242 from trunk into ruby_1_9_2.
--
* ext/openssl/ossl_pkey_rsa.c (ossl_rsa_initialize):
pop pushed error after each try of reading. fixes #4550
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:48 PM Revision e9514443 (git): merges r31237 from trunk into ruby_1_9_2.
--
* io.c (rb_io_syswrite): While local FS writes are usually
buffered, the buffers can be full or the file opened with
O_SYNC. IO#syswrite can also be used on blocking IOs
(pipe/socket) just like IO#write.
The patch is written b...
yugui (Yuki Sonoda)
10:48 PM Revision 5b66b692 (git): merges r31177,r31178 and r31179 from trunk into ruby_1_9_2.
--
Use LOG_PID instead of LOG_PERROR in Syslog.open test
LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms
that don't define it. Solaris 9 and 10 are examples of this.
Use LOG_PID instead.
Signed-off-by: Ben Walton...
yugui (Yuki Sonoda)
10:48 PM Revision a7fb5151 (git): merges r31164 from trunk into ruby_1_9_2.
--
* ext/openssl/ossl_x509name.c: id_aref's type is ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:48 PM Revision cbb9603f (git): merges r31162 from trunk into ruby_1_9_2.
--
* ext/openssl/ossl_ocsp.c (ossl_ocspreq_verify): flags is VALUE,
so it should use NUM2INT.
* ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31791 b2dd03c8-39d...
yugui (Yuki Sonoda)
10:48 PM Revision c1014362 (git): merges r31158 from trunk into ruby_1_9_2.
--
* numeric.c (flo_round): fix inaccurate results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:48 PM Revision cca6b1d3 (git): merges r31152 and r31154 from trunk into ruby_1_9_2.
--
* win32/win32.c: wait process real termination after reading
exit code. fixes #4518
--
* win32/win32.c: fix r31152 (dup line)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:06 PM Revision 3b58e17d (git): revert r31783.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:18 PM Bug #3924: Performance bug (in require?)
Hello, Xavier
Thank you for your contribution. Your patch seems to attempt a good
thing, but it is tremendously big and complex (for me) to review.
Can you separate a sequence of small patches? Note that "git log"
is not what is ...
mame (Yusuke Endoh)
06:39 AM Bug #3924: Performance bug (in require?)
Actually Luis I just read your gist, my numbers match up with ruby 1.9.3dev (2011-05-28 trunk 31761) [i386-mingw32], I never saw it as bad as 52s for r31496. xaviershay (Xavier Shay)
06:37 AM Bug #3924: Performance bug (in require?)
Rodrigo: Please try the latest version of rvm: rvm get head. Otherwise let me know what platform you are on.
Luis: Sorry I'm not sure what versions I ran my benchmarks against. Poor form on my part, though there was a recent commit on M...
xaviershay (Xavier Shay)
01:57 AM Bug #3924: Performance bug (in require?)
Jon Forums wrote:
> @Luis, if you have time, would you add results to your gist using a patched ruby_1_9_2 build?
> ...
Patch doesn't apply against 1.9.2:
C:\Users\Luis\Projects\oss\ruby>git apply require-performance-fix-r31758.patc...
luislavena (Luis Lavena)
01:53 AM Bug #3924: Performance bug (in require?)
@Luis, if you have time, would you add results to your gist using a patched ruby_1_9_2 build?
Your 1.9.3dev results on mingw32 are amazing...it would be great to see if the Xavier's patch makes sense to backport before Yugui releases ...
jonforums (Jon Forums)
01:23 AM Bug #3924: Performance bug (in require?)
On Fri, May 27, 2011 at 9:11 PM, Xavier Shay <xavier-list@rhnh.net> wrote:
>
> My last problem was related to the build system pushing things into $" and bypassing require.
>
> I now have a patch that I woud like to submit for consi...
luislavena (Luis Lavena)
05:04 PM Bug #4797 (Rejected): 'make test-all' on Fedora15 cause a lot of http test error
I'm sorry. This is Linux bug. The kernel community think this is regression and
Dave already reverted the commit. I'd expect the revert commit will backport to
fedora soon.
see https://bugzilla.kernel.org/show_bug.cgi?id=32832
...
kosaki (Motohiro KOSAKI)
04:37 PM Bug #4797 (Rejected): 'make test-all' on Fedora15 cause a lot of http test error
Currently, 'make test-all' on Fedora15 cause 66 errors. because
1) recent linux kernel doesn't allow port reuse even if using SO_REUSEADDR.
2) test/net/http doesn't have proper nil check when http server was failed to spawn.
r3176...
kosaki (Motohiro KOSAKI)
05:01 PM Revision 4de27b35 (git): NetBSD also denies to set sticky bit against regular file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:49 PM Revision e524bb98 (git): try and catch for the test of setenv(3).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:49 PM Revision 818cb970 (git): * 2011-05-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:49 PM Revision 0d6c5910 (git): * bignum.c (bigmul1_toom3): remove unused variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:37 PM Feature #4796: Coverage should be restartable
> You are talking about second (or later) calls to Coverage.start, right?
Yes, that would be fine.
> ...
It's not required, it just would of made my life easier. I was trying to integrate with the `parallel` and `SimpleCov` gems, and...
xaviershay (Xavier Shay)
01:51 PM Feature #4796 (Assigned): Coverage should be restartable
Hello.
As a maintainer of ext/coverage, I like to approve this feature unless
there is objection. But I'd like to confirm some points.
2011/5/29 Xavier Shay <xavier-list@rhnh.net>:
> The problem is that `Coverage.start` doesn'...
mame (Yusuke Endoh)
12:41 PM Feature #4796 (Closed): Coverage should be restartable
I would like a way to be able to make the following test past:
require "test/unit"
require "coverage"
require 'tmpdir'
class TestCoverage < Test::Unit::TestCase
def test_restarting_coverage
Dir.mkt...
xaviershay (Xavier Shay)
02:22 PM Revision 7c99a7df (git): * numeric.c (flo_round): use absolute value as divisor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:21 PM Revision 2ceceb8f (git): * test/date/test_switch_hitter.rb: properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:18 PM Revision f7b04698 (git): * re.c (rb_reg_match): fix rdoc of Regexp#=~.
patched by Tsuyoshi Sawada. [Bug #4781]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:14 PM Revision d5a775f5 (git): * lib/webrick/https.rb (WEBrick::HTTPRequest#parse_uri):
keep parse_uri as private. patched by okkez. [Bug #4773]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:26 PM Bug #4683: [PATCH] io.c: copy_stream execute interrupts and retry
As far as I remember, io.c should not use vm_core.h and rb_thread_t.
ko1 dislikes it.
akr (Akira Tanaka)
07:10 AM Bug #4683: [PATCH] io.c: copy_stream execute interrupts and retry
Hm. rb_thread_interrupted() is safe to call from blocking region. akr (Akira Tanaka)
08:55 AM Revision 4173fb0c (git): * numeric.c: add #include "interna.h" for rb_big_uminus() prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
06:09 AM Revision a3ffe969 (git): * numeric.c (flo_round): fix for negative value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:23 AM Bug #4795: Nested classes don't seem to resolve correctly when another class exists with the same name
`class Foo::Bar::Baz` does *not* open the Foo::Bar scope. `class
Foo::Bar; class Baz` does however.
// Magnus Holm



On Sat, May 28, 2011 at 16:51, John Feminella <johnf@bitsbuilder.com> wrote:
>
> Issue #4795 has been updated ...
judofyr (Magnus Holm)

05/28/2011

11:51 PM Bug #4795: Nested classes don't seem to resolve correctly when another class exists with the same name
But isn't Baz defined at the immediate Foo::Bar scope? Why does it keep going up the chain? jxfruby (John Feminella)
11:05 PM Bug #4795: Nested classes don't seem to resolve correctly when another class exists with the same name
The call to 'Baz' in method 'x' will look up the ancestor chain and find the Baz constant defined for Object(because of class Baz) and uses it. However, if you qualify the call to Baz like this:
def x
Foo::Bar::Baz.new.say
end
...
andhapp (Anuj Dutta)
10:39 PM Bug #4795 (Rejected): Nested classes don't seem to resolve correctly when another class exists with the same name
# in /tmp/foo.rb
module Foo
end
module Foo::Bar
class Baz; end
end
class Baz
def say
"::Baz"
end
end
class Foo::Bar::Baz
def say
"::Foo::Bar::Baz"
end
def x
Baz.new.say
end
end
...
jxfruby (John Feminella)
11:32 PM Revision 8cd1c4dd (git): merges r31113 from trunk into ruby_1_9_2.
--
* ext/openssl/lib/openssl/buffering.rb (module OpenSSL): #flush should
not change sync mode on exception.
* test/openssl/test_buffering.rb: added
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9...
yugui (Yuki Sonoda)
11:32 PM Revision b337563f (git): merges r31101 from trunk into ruby_1_9_2.
--
* lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe
is true. Patch by Masaki Matsushita (Glass_saga). [ruby-dev:43337]
* test/test_pstore.rb: Test for above.
Patch by Masaki Matsushita (Glass_saga) [ruby-dev:43...
yugui (Yuki Sonoda)
11:32 PM Revision 0642b2a5 (git): merges r31086 from trunk into ruby_1_9_2.
--
* parse.y (parser_encode_length): add exception as UTF8-MAC for
magic comment's emacs newline specifier
patched by James M. Lawrence [ruby-core:35476] fixes #4489
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31...
yugui (Yuki Sonoda)
11:32 PM Revision 9eb4b2e5 (git): merges r31085 from trunk into ruby_1_9_2.
--
* parse.y (parser_encode_length): fix typo: the length of
"-dos" and "-mac" is not 5 but 4.
patched by James M. Lawrence [ruby-core:35476] fixes #4489
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31774 b2dd03c8...
yugui (Yuki Sonoda)
11:32 PM Revision 394c7da4 (git): merges r31050 from trunk into ruby_1_9_2.
--
* lib/pstore.rb: Delete variable @transaction and fix #4474. Patch by
Masaki Matsushita (Glass_saga).
* test/test_pstore.rb(test_thread_safe): Add test for #4474.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@317...
yugui (Yuki Sonoda)
11:32 PM Revision fee12c7f (git): merges r31028 from trunk into ruby_1_9_2.
--
* include/ruby/intern.h: fix a typo of prototype declaration.
rb_mutex_try_lock -> rb_mutex_trylock [ruby-dev:43213]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
11:31 PM Revision ce79ff70 (git): merges r31016 from trunk into ruby_1_9_2.
--
* test/ruby/test_process.rb (test_execopts_redirect): redirecting fd
>= 3 is not supported on Windows, so should not specify such options
when calling spawn or others.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9...
yugui (Yuki Sonoda)
11:31 PM Revision 6b47d60e (git): * strftime.c (STRFTIME): return 0 and ERANGE when precision is too
large. [ruby-dev:43284] fixes #4456
based on r31011.
* test/test_time.rb (TestTime#test_huge_precision): test for #4456.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
11:31 PM Revision aed90c7c (git): merges r30957 from trunk into ruby_1_9_2.
--
* ext/psych/lib/psych/scalar_scanner.rb: fix parsing timezone's whose
whose format is (+/-)hhmm. Thanks Gonçalo Silva!
* test/psych/test_scalar_scanner.rb: test for bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1...
yugui (Yuki Sonoda)
11:31 PM Revision cb5c87b7 (git): merges r30975 from trunk into ruby_1_9_2.
--
* lib/tempfile.rb: Fix example file paths in docs for tempfile.
https://github.com/ruby/ruby/pull/5
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
11:31 PM Revision 137c52d9 (git): merges a part of r30931 from trunk into ruby_1_9_2.
--
* ext/psych/lib/psych/json/stream.rb: do not emit custom tags in maps
or sequences when emitting JSON.
* ext/psych/lib/psych/json/tree_builder.rb: do not emit custom tags in
sequences when emitting JSON.
* test/psych/json/test_str...
yugui (Yuki Sonoda)
11:18 PM Revision b0db8f0b (git): * 2011-05-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:18 PM Revision 1c0add85 (git): merges r30922 and r30924 from trunk into ruby_1_9_2.
--
* prevent temporary objects from GC, and should not use
RSTRING_PTR() for function calls since it evaluates the argument
a couple of times.
--
* thread.c (exec_recursive): prevent temporary objects from GC.
git-svn-id: svn+ssh://...
yugui (Yuki Sonoda)
10:23 PM Bug #3924: Performance bug (in require?)
Great work, Xavier!

I would like to try it but my RVM installation seems to be broken somehow:

rvm install ruby-head --patch /tmp/require-performance-fix.patch

Installing Ruby from source to:
/home/rodrigo/.rvm/rubies/...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:11 AM Bug #3924: Performance bug (in require?)
My last problem was related to the build system pushing things into $" and bypassing require.
I now have a patch that I woud like to submit for consideration:
https://gist.github.com/996418
I am going to try and get some more eyeb...
xaviershay (Xavier Shay)
05:40 PM Bug #4794 (Closed): Improving documenation for const_missing
I added another example to const_missing's documentation to make it a little more obvious. andhapp (Anuj Dutta)
05:17 PM Revision e15b3c83 (git): * test/net/http/utils.rb (TestNetHTTPUtils#teardown): add nil check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
04:15 PM Bug #4683: [PATCH] io.c: copy_stream execute interrupts and retry
I think this is subtle but interesting issue. Thank you.
I'm not sure rb_thread_interrupted() is callable without GVL.
kosaki pointed mutual exclusion issue with interrupt_flag.
http://redmine.ruby-lang.org/issues/4770
Since the...
akr (Akira Tanaka)
04:04 PM Bug #1157: missing zlib.rb?
The error is due to zlib1g-dev is not installed by default. In ubuntu, to solve it:
1. sudo apt-get install zlib1g-dev # to install the dependent zlib
2. cd <ruby-src>/ext/zlib # go to ext/zlib in ruby source directory
2. ruby extconf...
weigui (wei gui)
03:26 PM Bug #4793 (Closed): 特定のSyntaxErrorでirbが落ちる
=begin
以下のコードでirbが落ちます。
$ ./ruby -Ilib bin/irb
irb(main):001:0> next
SyntaxError: (irb):1: Can't escape from eval with next
/home/k_tsj/work/ruby-trunk/lib/irb/workspace.rb:100:in `sub!': can't modify frozen String (RuntimeErr...
ktsj (Kazuki Tsujimoto)
03:24 PM Revision 25925517 (git): * 2011-05-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:24 PM Revision bde7a62f (git): * process.c (before_exec, after_exec): change from macro to function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
02:50 PM Feature #1081: add File::write() convenience method
Hello,
The status of this feature request is considered as "accepted".
If anyone writes a patch (in C) for this feature by the implementation deadline (the end of June) and if there is no objection to the patch, it will be imported i...
mame (Yusuke Endoh)
01:52 PM Revision ed02c412 (git): * process.c (before_exec, after_exec): change SIGPIPE handler to SIG_DFL
before calling execve(). Because r31760 reintroduced an issue that
system() may hang up (i.e. [ruby-dev:12261]).
* process.c (save_sigpipe, restore_sigpipe): new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31761 b2dd03c8-39d4...
kosaki (Motohiro KOSAKI)
08:47 AM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
=begin
Yui NARUSE wrote:
> > The basic action would be to extend the error message "Encoding::ConverterNotFoundError" like this:
> ...
This is not exactly true.
* I did something (filed issue #4738), and my problem was solved.
...
lazaridis.com (Lazaridis Ilias)
08:22 AM Bug #4791 (Closed): Doc: Clarification on allowed timeout values
This patch clarifies what is an acceptable timeout value in Net::HTTP and Timeout::timeout. The existing documentation does not clearly indicate that fractional seconds may be specified, leaving the reader to guess whether only integer v... amikula (Alf Mikula)
07:59 AM Bug #4776: DateTime.new! has been disabled
On Wed, May 25, 2011 at 09:26:10AM +0900, Aaron Patterson wrote:
>
> Issue #4776 has been reported by Aaron Patterson.
>
> ----------------------------------------
> Bug #4776: DateTime.new! has been disabled
> http://redmine.ru...
tenderlovemaking (Aaron Patterson)
07:11 AM Revision e39b50d4 (git): * signal.c (Init_signal, default_handler): change default SIGPIPE handler
from empty function to SIG_IGN. [ruby-dev:43215]
* signal.c (sigpipe): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:24 AM Bug #4789: rb_str_bytesize() should use LONG2NUM()
Indeed. I've commited this.
Thank you!
kosaki (Motohiro KOSAKI)
02:23 AM Bug #4789 (Closed): rb_str_bytesize() should use LONG2NUM()
This issue was solved with changeset r31756.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_bytesize): rb_str_bytesize() should use LON...
kosaki (Motohiro KOSAKI)
01:41 AM Bug #4522 (Rejected): Net::HTTP persistent connections
Recommended use of Net::HTTP is like:
Net::HTTP.start("www.terra.com.br") do |h|
h.get("/")
end
So if a code is against this, it has some intention like the connection is one time connection.
On this recognition, current be...
naruse (Yui NARUSE)
01:20 AM Bug #4790 (Closed): [rdoc] attempt to clarify IO rdocs
As per some confusion over options for File.open [1], here is a patch to attempt to clarify.
[1] http://www.ruby-forum.com/topic/1731075
rogerdpack (Roger Pack)
01:06 AM Bug #4179 (Closed): OpenStruct#method_missing handles #[]= wrongly
Thanks for the patch.
It was modified so that:
- s[] also raises an error
- s[1]=2 states that "[]=" is the missing method (not "[]")
Applied as r31753, RubySpec updated as 9d36c78
marcandre (Marc-Andre Lafortune)

05/27/2011

11:45 PM Revision aede5b39 (git): update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:39 PM Bug #4789 (Closed): rb_str_bytesize() should use LONG2NUM()
RSTRING_LEN() is a long, so LONG2NUM() should be used, not INT2NUM(). now (Nikolai Weibull)
10:46 PM Feature #4784 (Closed): Import the JSON library
This issue was solved with changeset r31749.
Lazaridis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* tool/rbinstall.rb (gem): install gemspec of json. fixed #...
nobu (Nobuyoshi Nakada)
10:26 PM Feature #4784 (Assigned): Import the JSON library
Current ext/json is not recognized as gem by RubyGems.
Nobu, please hack it :D
naruse (Yui NARUSE)
10:45 PM Bug #4732 (Closed): mingw no longer writes files with "\r\n" by default, presumably unexpectedly
This issue was solved with changeset r31748.
Roger, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (validate_enc_binmode): do not clear textmode flag if
d...
nobu (Nobuyoshi Nakada)
10:28 PM Feature #4780 (Assigned): String#split with a block
naruse (Yui NARUSE)
10:20 PM Feature #4065 (Rejected): Rename or alias module#append_features to module#include_module
marcandre (Marc-Andre Lafortune)
08:26 PM Feature #4783: REXML::Text.new 引数がfreezeされていたとき
ありがとうございます! kou (Kouhei Sutou)
11:36 AM Feature #4783 (Closed): REXML::Text.new 引数がfreezeされていたとき
pullしておきました。 shyouhei (Shyouhei Urabe)
08:22 PM Bug #4522: Net::HTTP persistent connections
And if it's used like in example #1, and then there's an exception (which is rescued in user code), and then a new request is issued - would it still use Keep-Alive? Because if it will, then at least the bug can be worked-around... romanbsd (Roman Shterenzon)
06:06 PM Revision 9efb5a9d (git): * io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:25 PM Revision 412e9ba1 (git): email addr fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:23 PM Revision 724b1c60 (git): * string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM().
Patch by Nikolai Weibull. [Bug #4789] [ruby-core:36511]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
05:09 PM Revision 78271e8c (git): * io.c (fill_cbuf): Fix test-all crash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
05:01 PM Feature #4788 (Closed): resolv.rb refactoring
このようなモンキーパッチが(私のコードではありませんが)
https://github.com/ioquatix/rubydns/blob/master/lib/rubydns/resolv.rb
#3835 ( [ruby-core:32407] )の結果、動かなくなっていたのでパッチを検討していたわけですが、
結論としてresolv.rbに以下のようなリファクタリングを施すのがいいのではないかと考えました。
パッチを添付します。
----
dif...
metanest (Makoto Kishimoto)
04:22 PM Feature #4786: RCR new Feature: Numeric#grouped
Ruby doesn't include Locale depended features on current policy.
So it should be done by ICU or ActiveSupport or something.
naruse (Yui NARUSE)
08:53 AM Feature #4786: RCR new Feature: Numeric#grouped
Hi,

At Fri, 27 May 2011 08:17:52 +0900,
Nobuyoshi Nakada wrote in [ruby-core:36495]:
> And not all locales use 3-digits separation.

According to
<http://en.wikipedia.org/wiki/Indian_numbering_system>, it's
more complic...
nobu (Nobuyoshi Nakada)
08:50 AM Feature #4786: RCR new Feature: Numeric#grouped
P.S. POSIX does specify printf("%'d"), but this does not define _how_ the numbers are grouped, because of course, by theory they cannot. shyouhei (Shyouhei Urabe)
08:46 AM Feature #4786: RCR new Feature: Numeric#grouped
-1.
As nobu said numbering system depends on locales. So far ruby has been strictly avoiding locale-dependent features. It is too careless to introduce such feature.
shyouhei (Shyouhei Urabe)
08:23 AM Feature #4786: RCR new Feature: Numeric#grouped
Hi,

At Fri, 27 May 2011 07:22:37 +0900,
Roger Pack wrote in [ruby-core:36494]:
> Background:
> Currently in ruby you can enter large numbers with digit grouping:
> a = 1_000_000_000
>
> however there is no convenient w...
nobu (Nobuyoshi Nakada)
07:18 AM Feature #4786 (Rejected): RCR new Feature: Numeric#grouped
Hello all.
As discussed in http://www.ruby-forum.com/topic/1060694#new with apparently no objection, this is a request for an easy way to get comma separated string values from numeric types.
Background:
Currently in ruby you can ...
rogerdpack (Roger Pack)
03:59 PM Revision 8858722d (git): * 2011-05-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:59 PM Revision a50bdcd6 (git): * lib/ostruct.rb (method_missing): Handle [] and []= correctly.
Based on a patch by Caius Durling, bug #4179 [ruby-core:33792]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
02:57 PM Revision 40e7d793 (git): * test/rexml/test_core.rb (Tester::test_text_frozen): split frozen
string test. refs #4783
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
01:55 PM Revision 7bb29d4b (git): * proc.c: Rdoc formatting, clarification & example fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
01:55 PM Revision ffd86054 (git): * object.c (rb_mod_attr_accessor, rb_mod_const_set): made rdoc
more precise by specifying Object can searched for Modules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
01:53 PM Feature #4787: Integer#each_modulo(n)
Hi,

I believe I've sent the following feature request to ruby-core,
but I sent to ruby-dev by mistake.

--
Kenta Murata
Sent with Sparrow (http://www.sparrowmailapp.com)

Forwarded Message:

> From: Kenta Murata <muraken@gm...
mrkn (Kenta Murata)
01:18 PM Feature #4787 (Closed): Integer#each_modulo(n)
I suggest a new feature of Integer to enumerate by iterated Integer#modulo.
An example implementation in Ruby is the following code:
```ruby
class Integer
def each_modulo(n)
raise ArgumentError, "argument must be an Integer"...
mrkn (Kenta Murata)
01:46 PM Revision c5719d9a (git): * tool/rbinstall.rb (gem): install gemspec of json. fixed #4784
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:45 PM Revision b5bc09d2 (git): * io.c (validate_enc_binmode): do not clear textmode flag if
default. fixed #4732
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:38 PM Revision 9909c675 (git): * io.c (fill_cbuf): finish reading at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:37 PM Revision faaf8ea8 (git): * test/ruby/test_io.rb (TestIO#test_ungetc2): get rid of busy loop.
* test/ruby/test_signal.rb (TestSignal#test_signal2): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:36 AM Bug #4141 (Closed): Tk extension is not accepting any type of parameter combination
This issue was solved with changeset r31742.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/tk/lib/tk.rb: hang-up at exit before calling Tk.mainloop.
...
nagai (Hidetoshi Nagai)
02:34 AM Revision 83e216b6 (git): ChangeLog for it
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
02:34 AM Revision 42f704a8 (git): prevent an error when passing a frozen string to REXML::Text.new
dup the string passed in instead of cloning so that it's frozen state is ignored
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
01:01 AM Feature #4774: User Friendly Handling of "Encoding::ConverterNotFoundError"
> The basic action would be to extend the error message "Encoding::ConverterNotFoundError" like this:
In current situation, users can do nothing, so such message is useless.
Or such message is associated with the rdoc of the method w...
naruse (Yui NARUSE)

05/26/2011

11:55 PM Bug #4027 (Rejected): Signal.trap で busy loop に陥る
シグナルマスクに関しては #4765 に分離されました。
signal_buff の競合状態は、新しめの gcc や Windows だと ATOMIC_INC/ATOMIC_DEC がロックつきになることと、
#4765 でシグナルハンドラの実行がタイマースレッドに限定されれば発生しなくなるはずなのでこちらは閉じます。
nagachika (Tomoyuki Chikanaga)
11:48 PM Revision e65e24bd (git): * thread.c (ppoll): typo bug fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
11:36 PM Revision 542190ce (git): * ext/tk/lib/tk.rb: hang-up at exit before calling Tk.mainloop.
* ext/tk/lib/tk/extconf.rb: cannot make on MinGW [Ruby 1.9 - Bug #4141].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagai (Hidetoshi Nagai)
11:24 PM Feature #4783: REXML::Text.new 引数がfreezeされていたとき
引数の文字列オブジェクトに興味があるのではなくて、文字列の中身だけに興味があると思うので、freezeは落としちゃう方向でよいと思います。なので、取り込みたいと思うのですが、pullってもらってよいでしょうか?
テストは直したほうがよいと思うので、取り込んでもらった後に修正します。
kou (Kouhei Sutou)
03:16 PM Feature #4783 (Closed): REXML::Text.new 引数がfreezeされていたとき
lib/rexmlのメンテナの須藤さん:
pull requestが来ています。パッチ自体は妥当かなという気がしますので、そもそも現状が意図された状態なのか、それともこれはバグってことにするのか、その辺ご判断いただければと。よろしくおねがいします。
https://github.com/ruby/ruby/pull/22
shyouhei (Shyouhei Urabe)
10:32 PM Bug #4785 (Closed): CSV Documentation
This issue was solved with changeset r31739.
Ysiad, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/csv.rb: Documentation improvements from Ysiad Ferreiras.
...
JEG2 (James Gray)
04:52 PM Bug #4785 (Closed): CSV Documentation
Documentation updates only:
1. Specified that fastercsv was new as of 1.9, as "New" could be ambiguous.
2. Fixed a couple of minor typos.
ysiadf (Ysiad Ferreiras)
05:23 PM Feature #4784: Import the JSON library
RubyGems ! rkh (Konstantin Haase)
04:56 PM Feature #4784: Import the JSON library
Sakuro OZAWA wrote:
> $ ls path-to/ruby/1.9.1/json*
> ...
Actually this means that although ruby 1.9 *could* resolve the requirement, it does not do so.
Solution could be:
* Either ruby should signal "I have json code similar to...
lazaridis.com (Lazaridis Ilias)
04:23 PM Feature #4784: Import the JSON library
Ah, you again. That's a dm-serializer issue then, as their gemspec specifies the json gem as a dependency. Libraries imported to stdlib are not gems. There has been a discussion about shipping ruby with standard gems rather than putting... rkh (Konstantin Haase)
04:22 PM Feature #4784: Import the JSON library
$ ls path-to/ruby/1.9.1/json*
path-to/ruby/1.9.1/json.rb

path-to/ruby/1.9.1/json:
add/ common.rb ext.rb version.rb
>dm-serializer requires json 1.4.6
this means dm-serializer uses JSON *gem* for JSON parsing so it can ...
sakuro (Sakuro OZAWA)
04:13 PM Feature #4784: Import the JSON library
Shota Fukumori wrote:
> It has already included in ruby 1.9.
> ...
How can I test the version that you have included?
(I've ruby 1.9.2/180)
example:
gem install dm-serializer
ERROR: Error installing dm-serializer:
...
lazaridis.com (Lazaridis Ilias)
03:46 PM Feature #4784 (Rejected): Import the JSON library
It has already included in ruby 1.9.
is our including json gem not equal to yours?
sorah (Sorah Fukumori)
03:20 PM Feature #4784 (Closed): Import the JSON library
I've personally lost several hours with the JSON gem (and was still not able to resolve the problem in a way that is acceptable for end-users).
The JSON library is an important library.
It should be included into ruby 1.9, thus it ...
lazaridis.com (Lazaridis Ilias)
03:35 PM Revision 4aaea4c9 (git): * 2011-05-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:35 PM Revision a9c056f1 (git): * lib/csv.rb: Enhance each() to support Enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e James Edward Gray II
01:32 PM Revision b74f5dee (git): * lib/csv.rb: Documentation improvements from Ysiad Ferreiras.
[Ruby 1.9 - Bug #4785]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
James Edward Gray II
11:52 AM Bug #921: autoload is not thread-safe
FYI: shyouhei is working for the fix. Here's commits for ruby_1_8 branch.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=31732&view=revision
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?revision=31734&view=revision
And a little m...
nahi (Hiroshi Nakamura)
06:46 AM Revision db0f21e9 (git): ChangeLog for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
06:44 AM Revision b1524728 (git): * 2011-05-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:44 AM Revision c0f09a8a (git): * lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect
* test/xmlrpc/parser.rb: test for the above
Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
04:23 AM Feature #4772: Hash#add_keys
On Wed, May 25, 2011 at 3:20 PM, Joey Zhou <yimutang@gmail.com> wrote:

> 1) hash = Hash.new {|h,k| k.succ }
> 2) hash = Hash.new {|h,k| h[k] = k.succ }
>
> 1) and 2) are different, 2) will actually create any key/value pair t...
aprescott (Adam Prescott)
02:25 AM Bug #4762: Adding documentation for mathn
You're right. I did not include the original patch. Sorry about that.
I am adding both the patches now. The second one is just correcting spelling errors on my part.
Just ignore the first file from 5/21 :: 0001-Fixed-typos-on-mathn-d...
anilv (Anil V)
01:02 AM Bug #4781 (Closed): Engrish in comment in Regexp#=~
I see the following grammatical mistakes in ruby-doc, probably reflecting the comments in the source:
Regexp#=~
wrong: The assignment is not occur if the regexp is not a literal.
correct: The assignment does not occur if the reg...
sawa (Tsuyoshi Sawada)
12:05 AM Feature #4778: IO#each_chomped
Yes, I was confused by the fact that puts already chomps the argument... rosenfeld (Rodrigo Rosenfeld Rosas)

05/25/2011

11:43 PM Feature #4778: IO#each_chomped
Rodrigo Rosenfeld Rosas wrote:
> I wouldn't say this is about laziness, but about code readability. I agree this is a common use, but doesn't each_line already do that?
No, #each_line is just a synonym of #each.
yimutang (Joey Zhou)
11:11 PM Feature #4778: IO#each_chomped
I wouldn't say this is about laziness, but about code readability. I agree this is a common use, but doesn't each_line already do that? rosenfeld (Rodrigo Rosenfeld Rosas)
11:06 PM Feature #4778 (Rejected): IO#each_chomped
When manipulating text files, mostly, the input record separator(saying "\n") is scrap and will be chomped.
I suggest a method IO#each_chomped directly yielding the record with input record separator chomped.
Laziness is a virtue.....
yimutang (Joey Zhou)
11:41 PM Feature #4780 (Closed): String#split with a block
Mentioned before, in another (rejected) issue thread: http://redmine.ruby-lang.org/issues/4615
There are a few methods, which return an array without a trailing block, or also can be iterated with a block.
Such as `String#scan`.
...
yimutang (Joey Zhou)
11:23 PM Feature #4772: Hash#add_keys
Em 25-05-2011 10:54, Yusuke ENDOH escreveu:
> Hello,
>
> 2011/5/25 Rodrigo Rosenfeld Rosas<rr.rosas@gmail.com>:
>> Actually, as already noticed here, this could be just:
>>
>> ['a', 'b', 'c'].each {|k| hash[k]} # You don't n...
rosenfeld (Rodrigo Rosenfeld Rosas)
11:20 PM Feature #4772: Hash#add_keys
Rodrigo Rosenfeld Rosas wrote:
> Actually, as already noticed here, this could be just:
> ...
Well, it is very obscure here, easy to be confused.
1) hash = Hash.new {|h,k| k.succ }
2) hash = Hash.new {|h,k| h[k] = k.succ }
1) an...
yimutang (Joey Zhou)
10:59 PM Feature #4772: Hash#add_keys
Hello,

2011/5/25 Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com>:
> Actually, as already noticed here, this could be just:
>
> ['a', 'b', 'c'].each {|k| hash[k]} # You don't need to assign to it.


The assignment is needed...
mame (Yusuke Endoh)
10:44 PM Feature #4772: Hash#add_keys
> In recent version, if I want to do the same thing, the code may be:
> ...
Actually, as already noticed here, this could be just:
['a', 'b', 'c'].each {|k| hash[k]} # You don't need to assign to it.
But I like your suggestion any...
rosenfeld (Rodrigo Rosenfeld Rosas)
10:38 PM Feature #4772: Hash#add_keys
Adam Prescott wrote:
> On Tue, May 24, 2011 at 9:36 AM, Joey Zhou <yimutang@gmail.com> wrote:
> ...
This doesn't create the actual key/value pair, the way seems not explicit, I'm afraid.
yimutang (Joey Zhou)
10:35 PM Feature #4772: Hash#add_keys
Yukihiro Matsumoto wrote:
> I see no reason to add a method to generate keys only. Hash is a set of key-value pairs, right? Can you elaborate why you want this method?
> ...
Maybe the method name leads to misunderstanding. What I mea...
yimutang (Joey Zhou)
06:29 PM Feature #4772: Hash#add_keys
On Tue, May 24, 2011 at 9:36 AM, Joey Zhou <yimutang@gmail.com> wrote:

> hash = Hash.new {|h,k| k.to_s + "foo" }
> hash.add_keys("a","b","c") # the value is hash's default obj or proc value
>

If there's a default proc, I c...
aprescott (Adam Prescott)
01:30 AM Feature #4772: Hash#add_keys
I see no reason to add a method to generate keys only. Hash is a set of key-value pairs, right? Can you elaborate why you want this method?
matz.
matz (Yukihiro Matsumoto)
10:13 PM Bug #4695 (Open): documentation updates: Zlib is 100%
And, set_comment, set_sync :-) mame (Yusuke Endoh)
09:19 AM Bug #4695 (Closed): documentation updates: Zlib is 100%
This issue was solved with changeset r31726.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/zlib/zlib.c: Fix Document-method declarations. Improve...
drbrain (Eric Hodel)
07:17 PM Bug #4777 (Feedback): Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
Unfortunately, we are not ESPer. Please consider to make reproducer.
Now we have no way to digging your issue.
kosaki (Motohiro KOSAKI)
11:29 AM Bug #4777: Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
Could you produce `ruby -v` ? (Like ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux])
And we don't think this issue "Urgent", however you thought "Urgent".
sorah (Sorah Fukumori)
10:30 AM Bug #4777 (Third Party's Issue): Ruby 1.9.2-p180 ignoring INT, TERM, and QUIT until it receives CONT
We're having an intermittent but fairly frequent issue with a resque worker process that we're daemonizing with daemontools on Ubuntu 10.04 LTS
When we send a QUIT or TERM signal to the process, it is not handled.
When we send a CONT...
nathansobo (Nathan Sobo)
03:26 PM Bug #4711: documentation updates: Net::POP3 and Net::Telnet are 100%
> What is the on_connect method for? Net::HTTP has an empty on_connect method also, is it for subclasses of Net::HTTP and Net::POP3?
I guess so.
usa (Usaku NAKAMURA)
09:31 AM Bug #4711: documentation updates: Net::POP3 and Net::Telnet are 100%
What is the on_connect method for? Net::HTTP has an empty on_connect method also, is it for subclasses of Net::HTTP and Net::POP3? drbrain (Eric Hodel)
09:30 AM Bug #4711 (Closed): documentation updates: Net::POP3 and Net::Telnet are 100%
This issue was solved with changeset r31728.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/pop.rb: Hide implementation details from RDoc.
[...
drbrain (Eric Hodel)
02:46 PM Revision 6e7544f1 (git): * lib/csv.rb: Improved stray quoting error message (patch by Edvard Majakari).
* lib/csv.rb: Remove debugging prints.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
James Edward Gray II
11:54 AM Bug #4748 (Closed): documentation updates: Curses and friends are 100% documented
This issue was solved with changeset r31731.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/curses/curses.c: Remove color constants block.
[Ruby...
drbrain (Eric Hodel)
09:57 AM Bug #4747 (Closed): documentation updates: Curses and friends are 76% documented
This issue was solved with changeset r31730.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/curses/curses.c: Add missing documentation for button s...
drbrain (Eric Hodel)
09:44 AM Revision 25be3930 (git): * variable.c (rb_const_get_0): Fix previous change. There were
possibilities when an autoload-specified library lacks
definition of the constant it was bound to. Once after such
library had already beed loaded, the autoload engine shall not
reload it. Instead the interpre...
shyouhei (Shyouhei Urabe)
09:40 AM Bug #4726: [doc] benchmark.rb
If the details of the yielded object are a specification we should document them, but the benchmark maintainer needs to agree first. drbrain (Eric Hodel)
09:38 AM Bug #4726 (Closed): [doc] benchmark.rb
This issue was solved with changeset r31729.
Sandor, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/benchmark.rb: Restore nodoc for Benchmark::Job and
Be...
drbrain (Eric Hodel)
07:46 AM Bug #4726: [doc] benchmark.rb
Hello,
Yusuke Endoh wrote:
> Hello,
> ...
I must agree, opening the internals would make harder sensible internal changes.
However, with :nodoc:, it is unclear which methods are available on the yielded object in Benchmark#{benchma...
Eregon (Benoit Daloze)
09:26 AM Bug #4710 (Closed): documentation updates: Net::FTP is 100%
This issue was solved with changeset r31727.
Vincent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/ftp.rb: Add :nodoc: for private methods.
[Ruby 1...
drbrain (Eric Hodel)
09:26 AM Bug #4776 (Rejected): DateTime.new! has been disabled
After r31668, `DateTime.new!` no longer works. Is there a replacement? Or is this a mistake?
This code works before r31668, but breaks after 31668:
irb(main):001:0> require 'date'
=> true
irb(main):002:0> DateTime.new!
NoMetho...
tenderlovemaking (Aaron Patterson)
08:29 AM Bug #4694: ERB::Compiler documentation
I have hidden ERB::Compiler from documentation.
I am not always sure which things should be documented for users and which for developers, in this case I made a mistake.
In other areas I'm not sure if the current lack of documentat...
drbrain (Eric Hodel)
08:22 AM Bug #4694 (Closed): ERB::Compiler documentation
This issue was solved with changeset r31724.
Simon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/erb.rb: Hide documentation for implementation details of ...
drbrain (Eric Hodel)
05:42 AM Bug #4775 (Closed): lib/cgi/*
Completed CGI documentation to be 100% kubaf (Kuba Fietkiewicz)
05:36 AM Revision 4f684149 (git): * 2011-05-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:36 AM Revision 74dcc22c (git): * variable.c (rb_autoload_load): There is a race condition while
autoloading. When two or more threads touch a single autoloaded
constant at a time, one of them does the require, but others
behave oddly. To fix this situation we now refrain from
deleting the autoload table while so...
shyouhei (Shyouhei Urabe)
02:54 AM Revision ce9d84a9 (git): * ext/curses/curses.c: Remove color constants block.
[Ruby 1.9 - Bug #4748]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:57 AM Feature #4774 (Closed): User Friendly Handling of "Encoding::ConverterNotFoundError"
Based on my own (user) experience with issue [#4738] (which was solved), I suggest the following enhancement.
=== 1st Step - Minimum ===
The basic action would be to extend the error message "Encoding::ConverterNotFoundError" like ...
lazaridis.com (Lazaridis Ilias)
01:42 AM Bug #4757 (Open): Attempt to make Enumerator docs more clear (patch included)
Hello,
- * p e.next #=> 1
- * p e.next #=> 2
- * p e.next #=> 3
- * p e.next #raises StopIteration
+ * puts e.next # => 1
+ * puts e.next # => 2
+ * puts e.next # => 3
+ * puts e.next # raises St...
mame (Yusuke Endoh)
12:57 AM Revision eab12253 (git): * ext/curses/curses.c: Add missing documentation for button state, MIN
and MAX comments. Add Curses. to TABSIZE= and ESCDELAY= methods.
[Ruby 1.9 - Bug #4747]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:55 AM Bug #4760 (Open): Some documentation improvements for Hash#key
Hello,
> Returns the key of the first occurrence of a given value.
Is this really guaranteed?
Writing a rdoc means deciding a spec.
Do not decide a spec without discussion.
Eric, please be careful to review a document patch.
...
mame (Yusuke Endoh)
12:38 AM Revision 5bf1c145 (git): * lib/benchmark.rb: Restore nodoc for Benchmark::Job and
Benchmark::Report. [Ruby 1.9 - Bug #4726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:30 AM Revision 0441079b (git): * lib/net/pop.rb: Hide implementation details from RDoc.
[Ruby 1.9 - Bug #4711]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:26 AM Revision 9c711c0b (git): * lib/net/ftp.rb: Add :nodoc: for private methods.
[Ruby 1.9 - Bug #4710]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:19 AM Revision 9af99106 (git): * ext/zlib/zlib.c: Fix Document-method declarations. Improve
Zlib::GzipFile's method catalog. [Ruby 1.9 - Bug #4695]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
 

Also available in: Atom