Project

General

Profile

Activity

From 04/07/2012 to 04/13/2012

04/13/2012

11:45 PM Revision da39d32f (git): * encoding.c (rb_enc_codepoint_len): Use UNREACHABLE to avoid "control
reaches end of non-void function" warnings. [ruby-trunk - Bug #6066]
* re.c (name_to_backref_number): ditto.
* object.c (rb_Float): ditto.
* io.c (io_readpartial): ditto.
* io.c (io_read_nonblock): ditto.
* pack.c (rb_uv_to_utf8): ...
drbrain (Eric Hodel)
11:07 PM Bug #6288 (Feedback): Change error message for thread block to be less misleading
Is "possible deadlock detected" better?
Please elaborate "a more complex scenario" with small example.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
06:51 PM Bug #6288 (Closed): Change error message for thread block to be less misleading
Test case:
11:50:07 ~$ ruby19 -r thread -e 'q=SizedQueue.new 10;1_000_000.times {|i| p i;q.enq i}'
0
1
2
3
4
5
6
7
8
9
10
/opt/lib/ruby/1.9.1/thread.rb:301:in `sleep': deadlock detected (fatal)
from /opt/lib/ruby/...
rklemme (Robert Klemme)
10:58 PM Feature #6287 (Assigned): nested method should only be visible by nesting/enclosing method
Hello,
There is a similar proposal #4085 based on more general idea.
Below is my personal opinion.
Ruby's def statement is not a static definition, but a dynamic
execution that defines a method in the context. This design
a...
mame (Yusuke Endoh)
05:34 PM Feature #6287: nested method should only be visible by nesting/enclosing method
I know what you mean, but I think this is a limitation of Ruby's OOP nature. In Ruby, everything belongs to an object. So a method must belong to an object, not another method. shyouhei (Shyouhei Urabe)
04:55 PM Feature #6287 (Closed): nested method should only be visible by nesting/enclosing method
> def test1
def test2
p "i am test2"
end
test2
end

> ...
"i am test2" # ok
> test2
"i am test2" # not ok (imho), this should fail; ie test2 should only be visible by test1, not by outside.
botp (bot pena)
08:51 PM Feature #5663: Combined map/select method
+1 rosenfeld (Rodrigo Rosenfeld Rosas)
11:21 AM Feature #5663: Combined map/select method
matz (Yukihiro Matsumoto) wrote:
> I am OK with the original map_select behavior, but I don't like the name #map_select.
> ...
I think filter should be a simple alias of select.
# Otherwise, we can't complain about Scala's collect:p
...
shugo (Shugo Maeda)
05:58 PM Feature #6286: Add Exception#format method
It is actually surprising that the formatting of exception is not provided by the Exception class. I realise that it is probably due to some historic reasons, but once the Exception has its #format method, it could be used in place of er... vo.x (Vit Ondruch)
05:40 PM Feature #6286: Add Exception#format method
nobu (Nobuyoshi Nakada) wrote:
> Why and how would it be nice?
I'm trying to develop Ruby support for ABRT [1]. The idea is, that I will provide at_exit handler and in this handler, I need to report the backtrace. I'd like to repor...
vo.x (Vit Ondruch)
05:10 PM Feature #6286 (Feedback): Add Exception#format method
vo.x (Vit Ondruch) wrote:
> It would be nice if Exception class could be extended by #format method (or method with some more suitable name), which would provide the same formatting as is standard output of Ruby exception, e.g.
Why ...
nobu (Nobuyoshi Nakada)
04:53 PM Feature #6286 (Closed): Add Exception#format method
It would be nice if Exception class could be extended by #format method (or method with some more suitable name), which would provide the same formatting as is standard output of Ruby exception, e.g.
boomtest.rb:18:in `go': boom (Run...
vo.x (Vit Ondruch)
05:53 PM Feature #6236: WEBrick::HTTPServer swallows Exception
On 13/04/12 09:01, naruse (Yui NARUSE) wrote:
>
> Issue #6236 has been updated by naruse (Yui NARUSE).
>
> Status changed from Assigned to Closed
>
> This ticket looks intended to allow ^C shutting down the server.
> So current c...
regularfry (Alex Young)
05:01 PM Feature #6236 (Closed): WEBrick::HTTPServer swallows Exception
This ticket looks intended to allow ^C shutting down the server.
So current change to shutdown other than StandardError is too wide, it should be only Interrupt.
drbrain (Eric Hodel) wrote:
> I misunderstood the intended use of star...
naruse (Yui NARUSE)
05:25 AM Feature #6236: WEBrick::HTTPServer swallows Exception
=begin
I misunderstood the intended use of start/stop/shutdown, so I think your patch should be applied.
I assumed you could start the server again after stopping it like:
start -> stop -> start -> stop -> shutdown
since sto...
drbrain (Eric Hodel)
03:34 PM Revision d377a6ff (git): * 2012-04-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:34 PM Revision 24476c0c (git): * eval_error.c (error_print): use RB_TYPE_P instead of TYPE.
* error.c (rb_check_backtrace): ditto.
* error.c (name_err_mesg_to_str): compare immediate values
directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:56 PM Feature #6284: Add composition for procs
What about `#*` for composing traditionally (right to left) and `#|` for piping (left to right)? In mathematics, depending of the area and the subject, both ways are used, and some argue that "piping" is more natural than "precomposing".... alexeymuranov (Alexey Muranov)
08:59 AM Feature #6284: Add composition for procs
aprescott (Adam Prescott) wrote:
> See also: http://web.archive.org/web/20101228224741/http://drmcawesome.com/FunctionCompositionInRuby
Maybe `#|` could be a possibility. (Without implementing `#>` or `#<`).
But I find the artic...
pabloh (Pablo Herrero)
07:53 AM Feature #6284 (Assigned): Add composition for procs
mame (Yusuke Endoh)
06:53 AM Feature #6284: Add composition for procs
See also:
http://web.archive.org/web/20101228224741/http://drmcawesome.com/FunctionCompositionInRuby
aprescott (Adam Prescott)
06:26 AM Feature #6284: Add composition for procs
I would vote for `#*`. I think `#<<` is usually changing the left argument (in place). alexeymuranov (Alexey Muranov)
02:02 AM Feature #6284: Add composition for procs
trans (Thomas Sawyer) wrote:
> Also, I think `#+` is better.
I saw facets has some similar feature that uses `#*` instead, maybe because it looks a bit closer to Haskell's composition syntax. Nevertheless, I still like `#<<` better, ...
pabloh (Pablo Herrero)
11:30 AM Revision 723bfaba (git): * hash.c (no_new_key): moved test to raise outside.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:57 AM Bug #6283: Segmentation fault pg_ext.bundle
This ticket has roughly the same stack trace as #6281 drbrain (Eric Hodel)
09:25 AM Feature #4969 (Rejected): Subtle issue with require
If you still need this, please make the issue clear and refine the proposal, then reopen this or file a new ticket. nobu (Nobuyoshi Nakada)
08:39 AM Revision 99d38f82 (git): * hash.c (inspect_i): keep string's coderange.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:54 AM Feature #6277 (Assigned): Hash#convert_key
mame (Yusuke Endoh)
06:26 AM Revision 2d74f3e6 (git): * hash.c (rb_hash_aset, rb_hash_update, rb_hash_update_by): use
st_update() to reduce evaluation of hash values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:21 AM Revision deb0519a (git): * lib/webrick/server.rb (WEBrick::GenericServer#stop): fix r35303;
this method is to deny new connections, not shutdown yet.
* lib/webrick/server.rb (WEBrick::GenericServer#start):
re-raise exception only when the exception is Interrupt (^C).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35315 b...
naruse (Yui NARUSE)
06:03 AM Bug #6285 (Assigned): Documents of IO#read, IO#readpartial, etc. should describe how they are executed when second argument is not empty String
drbrain (Eric Hodel)
02:47 AM Bug #6285 (Closed): Documents of IO#read, IO#readpartial, etc. should describe how they are executed when second argument is not empty String
IO#read, IO#readpartial, IO#read_nonblock, and IO#sysread methods can receive a String object as second argument ((|outbuf|)). If it is present, it will receive the data. This is documented.
So, when I pass the empty String object t...
nobuoka (yu nobuoka)
05:27 AM Feature #6225: Hash#+
How about `Hash#|` for `Hash#reverse_merge`, and `Hash#|=` for `Hash#reverse_merge!` from *Rails*? (Instead of `#+` for `#merge`.)
I would like to give an algebraic counterpart to Matz's objection: `#merge` is not *injective* in the...
alexeymuranov (Alexey Muranov)
04:00 AM Feature #6225: Hash#+
Martin, _in math_, it is common to use `*` for both commutative and non-commutative operations but `+` for only commutative.
But i am more in favor of Matz's argument, because i didn't bother myself about the fact that string addition...
alexeymuranov (Alexey Muranov)
02:51 AM Revision d2e69f85 (git): * 2012-04-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:51 AM Revision bb844620 (git): * gc.c (obj_free): show entire flags too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:10 AM Bug #6282: strptime and fractions of seconds
Great!. Thanks. lparra (Luis Parravicini)
12:27 AM Bug #6282: strptime and fractions of seconds
lparra (Luis Parravicini) wrote:
> I know, but where on the docs say so?
r35312 adds the doc.
naruse (Yui NARUSE)

04/12/2012

11:36 PM Feature #6225: Hash#+
@jacksonwillis `#<<` makes sense as an alias for `#update`, not `#merge`. However I use `Hash#<<` with this meaning:
~~~ruby
def <<(array)
raise if array.size != 2
self[array.first] = array.last
end
~~~
There are historica...
trans (Thomas Sawyer)
11:28 PM Feature #6284: Add composition for procs
Also, I think `#+` is better. trans (Thomas Sawyer)
11:25 PM Feature #6284: Add composition for procs
Or
```ruby
format_as_title = ->{ |val| add_header[to_camel[val.strip]] }
```
trans (Thomas Sawyer)
03:21 PM Feature #6284 (Closed): Add composition for procs
It would be nice to be able to compose procs like functions in functional programming languages:
```ruby
to_camel = :capitalize.to_proc
add_header = ->val {"Title: " + val}
format_as_title = add_header << to_camel << :strip
```
...
pabloh (Pablo Herrero)
08:48 PM Bug #6282: strptime and fractions of seconds
I know, but where on the docs say so? lparra (Luis Parravicini)
07:35 PM Bug #6282 (Rejected): strptime and fractions of seconds
strptime does not support such an extension. tadf (tadayoshi funaba)
10:12 AM Bug #6282 (Assigned): strptime and fractions of seconds
naruse (Yui NARUSE)
05:57 AM Bug #6282 (Rejected): strptime and fractions of seconds
=begin
DateTime::strptime refers us to #strftime to check the format to use.
DateTime#strftime says fractions of seconds can be specified with %N, %3N, %6N, %9N and %12N but strptime only recognizes %N.
> d = DateTime.strptime("...
lparra (Luis Parravicini)
07:00 PM Bug #982: stack level too deep for long Array initialization
前田です。
ko1 (Koichi Sasada) wrote:
> なおしました.
> ...
内容はぜんぜん追っていないのですが、r35306のcommitから以下のような警告が出るようになっているようです。
compile.c: 関数 ‘iseq_compile_each’ 内:
compile.c:4363:8: 警告: 変数 ‘size’ が設定されましたが使用されていません [-Wunused-but-set-variable]
...
shugo (Shugo Maeda)
10:51 AM Bug #982 (Closed): stack level too deep for long Array initialization
なおしました.
命令をいじるのではなく,core メソッドを呼ぶようにしてみました.
ちょっと,余計な配列が増えちゃうのが良くないかも....
誰か性能評価してくれると助かります.
ko1 (Koichi Sasada)
06:23 PM Feature #6236: WEBrick::HTTPServer swallows Exception
On 11/04/12 21:31, drbrain (Eric Hodel) wrote:
>
> Issue #6236 has been updated by drbrain (Eric Hodel).
>
> Target version set to 2.0.0
>
> I extended Alex's patch to include safe shutdown and to allow ^C to work from withi...
regularfry (Alex Young)
10:53 AM Feature #6236 (Assigned): WEBrick::HTTPServer swallows Exception
r35303 looks buggy.
WERBrick::GenericServer#stop's is a method to deny a new connection.
Even if the method is called, the server is still alive.
To kill the server, calling shutdown is required.
In other words, the status of a s...
naruse (Yui NARUSE)
07:53 AM Feature #6236: WEBrick::HTTPServer swallows Exception
Oops, sorry. Nahi-san, could you please review drbrain's commit (r35303) ?


2012/4/12 nahi (Hiroshi Nakamura) <nakahiro@gmail.com>:
>
> Issue #6236 has been updated by nahi (Hiroshi Nakamura).
>
> Assignee changed from d...
mame (Yusuke Endoh)
06:00 AM Feature #6236: WEBrick::HTTPServer swallows Exception
WEBrick has a maintainer now :) nahi (Hiroshi Nakamura)
05:31 AM Feature #6236: WEBrick::HTTPServer swallows Exception
I extended Alex's patch to include safe shutdown and to allow ^C to work from within accept_client.
Since each connection is handled in a separate thread, my concern about exception-tollerance was not founded.
drbrain (Eric Hodel)
05:28 AM Feature #6236 (Closed): WEBrick::HTTPServer swallows Exception
This issue was solved with changeset r35303.
Alex, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/server.rb (module WEBrick::GenericServer): A serve...
drbrain (Eric Hodel)
04:49 PM Bug #5258: SizedQueueにBug #5195と同様のバグ
Hi again,
mame (Yusuke Endoh) wrote:
> 2012/4/11 rklemme (Robert Klemme) <shortcutter@googlemail.com>:
> ...
I was lucky because I was just sensitized by Eric's recent article about signal handling in Ruby. :-)
> But I'm not en...
rklemme (Robert Klemme)
12:29 AM Bug #5258: SizedQueueにBug #5195と同様のバグ
Hello,

2012/4/11 rklemme (Robert Klemme) <shortcutter@googlemail.com>:
> nobu (Nobuyoshi Nakada) wrote:
>> It seems natural because the only thread is about to sleep.
>
> I would expect the thread to block indefinitely. Signallin...
mame (Yusuke Endoh)
02:36 PM Bug #6283 (Feedback): Segmentation fault pg_ext.bundle
What is "a Rails project" ?
Anyway it seems Third Party's Issue.
naruse (Yui NARUSE)
01:42 PM Bug #6283 (Closed): Segmentation fault pg_ext.bundle
*Steps to reproduce:*
1. rvm reinstall 1.9.3 --with-openssl-dir=/usr/local
2. Install a Rails project that uses 1.9.3
3. rake -T
*Result of ruby -v:*
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.3.0]
*Expecte...
patrickberkeley (Patrick Berkeley)
11:19 AM Bug #6281 (Feedback): 1.9.3-p125 crashes when using therubyracer 0.9.10
I can't reproduce it.
I think you should reinstall therubyracer.
Anyone can do?
naruse (Yui NARUSE)
12:52 AM Bug #6281 (Rejected): 1.9.3-p125 crashes when using therubyracer 0.9.10
I'm on Mac OS X 10.7.3, and I'm unable to run 1.9.3-p125 when I require therubyracer 0.9.10. Note that ruby 1.9.3-p0 works just fine.
Reproducing code:
#!/home/directory/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
require 'v8'
puts...
benson88 (Ben Rogers)
10:52 AM Revision 3a71da58 (git): * ext/date/date_core.c: added some notes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:42 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
Feel free. nobu (Nobuyoshi Nakada)
06:35 AM Bug #6066: Fix "control may reach end of non-void function" warnings for clang
Nobu, may I commit this? drbrain (Eric Hodel)
07:16 AM Revision 2417bd10 (git): * test/ruby/test_autoload.rb: clear autoloaded paths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:11 AM Feature #4551 (Closed): uri.set_scheme should downcase schemes
This issue was solved with changeset r35305.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/uri/generic.rb (module URI): URI now downcases the scheme ...
drbrain (Eric Hodel)
06:20 AM Feature #6088 (Closed): Add Net::ReadTimeout to distinguish which operation failed
This issue was solved with changeset r35304.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/protocol.rb (module Net): Added ReadTimeout to match
...
drbrain (Eric Hodel)
06:10 AM Revision 871cd27c (git): * gc.c (GET_HEAP_HEADER, NUM_IN_SLOT): parenthesise macro parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:10 AM Revision e2aaf978 (git): * hash.c: use RHASH_ITER_LEV(), not iter_leve directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:28 AM Bug #6203: Array#values_at does not handle ranges with end index past the end of the array
naruse (Yui NARUSE) wrote:
> marcandre (Marc-Andre Lafortune) wrote:
> ...
It has been 2 weeks since the last update. Has this issue been forgotten?
ferrous26 (Mark Rada)
02:51 AM Revision 1d6d4d24 (git): r35304 changes the exception.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:47 AM Revision 45b3509c (git): Add a ticket number for last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
01:33 AM Revision ee7f8d48 (git): * compile.c (compile_array, compile_array_):
Divide big array (or hash) literals into several blocks and
concatetene them. There was a problem that a big array (hash)
literal causes SystemStackError exception (stack overflow)
because VM push all contents of the literal onto ...
ko1 (Koichi Sasada)

04/11/2012

11:37 PM Bug #5258: SizedQueueにBug #5195と同様のバグ
nobu (Nobuyoshi Nakada) wrote:
> It seems natural because the only thread is about to sleep.
I would expect the thread to block indefinitely. Signalling an error here seems to try to be too smart. Even in absence of other threads I...
rklemme (Robert Klemme)
08:09 PM Bug #5258: SizedQueueにBug #5195と同様のバグ
It seems natural because the only thread is about to sleep. nobu (Nobuyoshi Nakada)
07:43 PM Bug #5258: SizedQueueにBug #5195と同様のバグ
This is also present in 1.9.3 and there is an even simpler test case:
$ ruby19 -r thread -e 'q=SizedQueue.new 10;1_000_000.times {|i| p i;q.enq i}'
0
1
2
3
4
5
6
7
8
9
10
/opt/lib/ruby/1.9.1/thread.rb:301:in `sleep': deadl...
rklemme (Robert Klemme)
10:11 PM Revision 65573857 (git): * lib/uri/generic.rb (module URI): URI now downcases the scheme to
follow RFC 2396 section 3.1. [ruby-trunk - Feature #4551]
* test/uri/test_generic.rb (class URI): Test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:20 PM Revision ea9b6997 (git): * lib/net/protocol.rb (module Net): Added ReadTimeout to match
OpenTimeout. ReadTimeout is now raised by rbuf_fill instead of
Timeout::Error to help users distinguish what type of timeout
occurred. [ruby-trunk - Feature #6088]
* lib/net/pop.rb (module Net): Updated documentation for ReadTimeo...
drbrain (Eric Hodel)
09:05 PM Bug #6271 (Closed): textmode File#read on CRLF
This issue was solved with changeset r35296.
riskwa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (rb_io_eof): use eof() instead of io_fillbuf(). It's bec...
Anonymous
08:28 PM Revision 8c5c5a22 (git): * lib/webrick/server.rb (module WEBrick::GenericServer): A server
will now continue only when a StandardError subclass is raised. For
other exception types the error will be logged at the fatal level and
the server will safely stop. Based on a patch by Alex Young.
[ruby-trunk - Feature #6236]
*...
drbrain (Eric Hodel)
06:55 PM Revision 2fe9d464 (git): * 2012-04-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:55 PM Revision ce0223b1 (git): * lib/test/unit.rb (Test::Unit:Runner::Worker#_run_suites):
call GC.start before running the test suites.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:34 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
I've attached a new patch -- this implements the same functionality but refers to it as `all_values` and reverts the old changes to `values_at`. This is fundamentally the same functionality as `values_at` with the overridden functionalit... erikh (Erik Hollensbe)
03:57 PM Bug #6223 (Closed): Strange crash in GC while thread creation - 1.9.2 only
naruse (Yui NARUSE)
03:49 PM Bug #6223: Strange crash in GC while thread creation - 1.9.2 only
Ok, with 1.9.3p125 works.
zhum (Sergey Zhumatiy)
01:31 PM Revision db5265a8 (git): * parse.y (rb_check_id_cstr): new function to check if ID is
registered with NUL-terminated C string.
* sprintf.c (rb_str_format): avoid inadvertent symbol creation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:01 PM Revision a5d1da5d (git): * sprintf.c (rb_str_format): fix exception message encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:01 PM Revision 51f2207f (git): * test/ruby/test_sprintf.rb (test_named_untyped, test_named_typed):
split and add assertions for exception when named parameter after
unnumbered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:43 PM Revision 23ba7541 (git): * sprintf.c (rb_str_format): fix error message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:05 PM Revision 2f7290d4 (git): * io.c (rb_io_eof): use eof() instead of io_fillbuf(). It's because
io_unread() doesn't work properly when reading CRLF with read(length)
and mode 'r'.
[ruby-core:44189][Bug #6271]
* test/ruby/test_io_m17n.rb (TestIO_M17N#test_read_crlf_and_eof):
test for above.
git-svn-id: svn+ssh://ci.ruby-lang...
h.shirosaki (Hiroshi Shirosaki)
11:19 AM Feature #6276: to_h as explicit conversion to Hash
Great.
I'll do it with pleasure, expect a slight delay as I'm going in vacation for 10 days.
Thanks
marcandre (Marc-Andre Lafortune)
09:40 AM Feature #6276: to_h as explicit conversion to Hash
OK, accepted, include adding nil.to_h.
Marc, could you make patch and check in?
Matz.
matz (Yukihiro Matsumoto)
12:06 AM Feature #6276 (Closed): to_h as explicit conversion to Hash
Dear Matz.
We should establish #to_h as the method for explicit conversion to Hash:
1) Add Hash#to_h: returns `self` for Hash, or a Hash for subclasses of Hash
2) Add Struct#to_h: as requested in Feature #4862 under the wrong name...
marcandre (Marc-Andre Lafortune)
07:56 AM Feature #6130: inspect using to_s is pain
Eregon (Benoit Daloze) wrote:
> I've been working on this and wondered what to do if there is no instance variable. Should it call (dynamically) #to_s? or always use Kernel#to_s which gives the class name and pointer (which would be cal...
Eregon (Benoit Daloze)
07:34 AM Feature #5219 (Closed): Array#pack should warn (or raise) if an invalid pack string is given
This issue was solved with changeset r35292.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* pack.c (pack_pack): Warn when an invalid character is found in...
drbrain (Eric Hodel)
07:22 AM Revision ffc3114c (git): * ext/-test-/add_suffix/bug.c (ruby_add_suffix): no static
declaration. [ruby-core:44277][Bug #6279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:31 AM Bug #6278: in `join': deadlock detected (fatal)
I'm the one who originally came across this issue and wrote the program that triggers this bug (the poorly-named cpu_bench.rb). I tried numerous times to reproduce it without Sequel, but I was unable to. Sequel is pure-ruby code (no C ... jeremyevans0 (Jeremy Evans)
06:01 AM Bug #6278: in `join': deadlock detected (fatal)
Thank you for your analysis.
Because I can't understand this situation yet, I'll check it later.
# Can I reproduce this issue without 'sequel'?
# Is it difficult?
ko1 (Koichi Sasada)
03:48 AM Bug #6278 (Closed): in `join': deadlock detected (fatal)
There is a race condition between native_sleep(), thread_start_func_2() where thread_start_func_2() holds the gvl lock, then in this bit of code:
514 /* wake up joining threads */
515 join_th = th->join_list_h...
kurt@intricatesoftware.com (Kurt Miller)
06:11 AM Bug #6161 (Closed): Document interpretation of backslashes in string transliterations
This issue was solved with changeset r35291.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_tr): Documented use of \ to escape characters...
drbrain (Eric Hodel)
05:15 AM Bug #6107 (Closed): Documentation Abbrev (stdlib) confusing
This issue was solved with changeset r35290.
siep, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/abbrev.rb: Clarified that Abbrev.abbrev returns a Hash ins...
drbrain (Eric Hodel)
05:09 AM Bug #6211: Ripper lexes :on_rbrace when it should find :on_embexpr_end
Hooray! Thank you! turboladen (Steve Loveless)
03:46 AM Bug #953: 深い入れ子の配列の取り扱いで落ちる
わたしの FreeBSD 9.0 amd64 や Ubuntu 10.04 x64 では再現しますね naruse (Yui NARUSE)
03:30 AM Bug #6174: Fix collision of ConditionVariable#wait timeout and #signal (+ other cosmetic changes)
Hi Yura,
If nobody reviews months, I'll reveiw this. The description is completely sane. :)
kosaki (Motohiro KOSAKI)
02:51 AM Feature #5555: rename #include? to #includes?
Thanks for the explanation, i didn't know about "key?". alexeymuranov (Alexey Muranov)
01:15 AM Revision 3e130812 (git): Set $VERBOSE=false in case of ruby -w.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:12 AM Feature #6277 (Assigned): Hash#convert_key
=begin
Many times a hash with uniform keys is needed (or is at least preferable) for a particular usecase. To this end I propose ((%Hash#convert_key%)).
h = {}
h.convert_key{ |k| k.to_sym }
h['a'] = 1
h.update('b'=>2)
h...
trans (Thomas Sawyer)

04/10/2012

10:41 PM Revision bab146b6 (git): * ext/digest/sha2/lib/sha2.rb (Digest#block_length): Fixed method name
in documentation examples. Patch by naleski via
https://github.com/ruby/ruby/pull/115
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:33 PM Revision 6ba4bd58 (git): * pack.c (pack_pack): Warn when an invalid character is found in the
format string when $VERBOSE is true. [ruby-trunk - Feature #5219]
* pack.c (pack_unpack): ditto
* test/ruby/test_pack.rb (class TestPack): Test for warnings on
invalid format characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
drbrain (Eric Hodel)
10:31 PM Feature #6130: inspect using to_s is pain
mame (Yusuke Endoh) wrote:
> I'm not sure if it is trivial to fix this issue.
> ...
I've been working on this and wondered what to do if there is no instance variable. Should it call (dynamically) #to_s? or always use Kernel#to_s which...
Eregon (Benoit Daloze)
10:25 PM Feature #6265: Remove 'useless' 'concatenation' syntax
trans (Thomas Sawyer) wrote:
> The only time I have found it useful is with `\` for multi-line string, for things like entry in Ruby based-config file. E.g.
> ...
trans (Thomas Sawyer)
10:24 PM Feature #6265: Remove 'useless' 'concatenation' syntax
The only time I have found it useful is with `\` for multi-line string, for things like entry in Ruby based-config file. E.g.
self.description = 'This is a multi-line ' \
'description of something.'
trans (Thomas Sawyer)
05:40 PM Feature #6265: Remove 'useless' 'concatenation' syntax
I think it is nice to have a syntax to concatenate strings in compile time. I do not think that missing commas are hard to notice. alexeymuranov (Alexey Muranov)
09:49 AM Feature #6265: Remove 'useless' 'concatenation' syntax
ko1 (Koichi Sasada) wrote:
> I prefer current behavior because it is same as C and it is easy to
> ...
It is more important in C because it can help with macros (#define). Fortunately, we don't have macros in Ruby, so it's less impo...
duerst (Martin Dürst)
07:23 AM Feature #6265: Remove 'useless' 'concatenation' syntax
(2012/04/10 7:01), Rodrigo Rosenfeld Rosas wrote:
> Hi Koichi, I created this issue because I did have this problem.
>
> I've hit some key by mistake in my Vim editor and it deleted the comma
> separating two string arguments a...
ko1 (Koichi Sasada)
07:23 AM Feature #6265: Remove 'useless' 'concatenation' syntax
Em 09-04-2012 16:06, SASADA Koichi escreveu:
> (2012/04/09 14:19), Yukihiro Matsumoto wrote:
>> I agree with making it deprecated. It is up to you to make it warn or
>> not.
> I prefer current behavior because it is same as C a...
rosenfeld (Rodrigo Rosenfeld Rosas)
04:23 AM Feature #6265: Remove 'useless' 'concatenation' syntax
(2012/04/09 14:19), Yukihiro Matsumoto wrote:
> I agree with making it deprecated. It is up to you to make it warn or
> not.

I prefer current behavior because it is same as C and it is easy to
remember.

Why you remove i...
ko1 (Koichi Sasada)
01:23 AM Feature #6265: Remove 'useless' 'concatenation' syntax
Em 09-04-2012 12:53, Nobuyoshi Nakada escreveu:
> Hi,
>
> (12/04/09 22:46), rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
>> Also, while on the subject, don't you think that Ruby specs should
>> state that ("some " + "string") wo...
rosenfeld (Rodrigo Rosenfeld Rosas)
12:59 AM Feature #6265: Remove 'useless' 'concatenation' syntax
Hi,

(12/04/09 22:46), rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> Also, while on the subject, don't you think that Ruby specs should
> state that ("some " + "string") would concatenate the strings in
> compiling time and tha...
nobu (Nobuyoshi Nakada)
10:19 PM Feature #5008 (Rejected): Equal rights for Hash (like Array, String, Integer, Float)
Submit new issue for new proposal, e.g. adding hash conversion method to Struct etc.
The reason I hesitate to add to_h to nil is because I am not fully satisfied with nil.to_a etc.
They are sometimes useful, but often hides bugs and ...
matz (Yukihiro Matsumoto)
10:07 PM Feature #5008 (Open): Equal rights for Hash (like Array, String, Integer, Float)
Hi,
matz (Yukihiro Matsumoto) wrote:
> #to_hash protocol expects the object to be hash-compatible. Struct is not the case.
I'm reopening this issue, as the request is not for `#to_hash` but for `#to_h`.
I believe you are posit...
marcandre (Marc-Andre Lafortune)
06:48 PM Feature #5008 (Rejected): Equal rights for Hash (like Array, String, Integer, Float)
#to_hash protocol expects the object to be hash-compatible. Struct is not the case.
Matz.
matz (Yukihiro Matsumoto)
09:11 PM Revision 38ce9797 (git): * string.c (rb_str_tr): Documented use of \ to escape characters.
[ruby-trunk - Bug #6161]
* string.c (rb_str_count): ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
08:57 PM Bug #4443: odd evaluation order in a multiple assignment
まあ、それはそれでいいかなと思います。
ちなみに ISO とかの標準的にはどうなってるんでしょう?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
06:35 PM Bug #4443: odd evaluation order in a multiple assignment
Cから受け継いだ代入の評価順が「おかしい」のが原因である(本来は a → b と表記すべきか)ことを考えると、
むしろ foo[0] = bar が :bar, :fooと動作するようにすべきでしょうか。
いや、単なる思いつきなのですが。
ちなみに今調べたら mruby は foo[0] = bar が :bar, :fooと動作しますね。
Matz.
matz (Yukihiro Matsumoto)
08:15 PM Revision d8164e57 (git): * lib/abbrev.rb: Clarified that Abbrev.abbrev returns a Hash instead
of an Array. Patch by Andrei Bocan. [ruby-trunk - Bug #6107]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
07:34 PM Revision 1a7f3d7c (git): It is wrong to expect the last output is "exit".
When lb.join is commented out as [ruby-dev:30653] says,
@keeper is living until the program truely die.
So after it outputs "exit.", it may output "#{i}: cont".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35289 b2dd03c8-39d4-4d8f-...
naruse (Yui NARUSE)
07:07 PM Feature #5650 (Closed): Add rb_enc_raise() to allow C extensions to raise errors with messages with correct encoding
This issue was solved with changeset r35283.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* error.c (rb_enc_raise): new function to raise an exception w...
nobu (Nobuyoshi Nakada)
06:53 PM Feature #3845 (Rejected): "in" infix operator
This proposal is only for cosmetics.
I don't want a new operator that does not introduce something new.
Matz.
matz (Yukihiro Matsumoto)
06:51 PM Feature #3963 (Rejected): Map class in standard library
I reject the original idea of Map inclusion to the core. Map and Hash are too similar.
Matz.
matz (Yukihiro Matsumoto)
06:48 PM Feature #4862 (Rejected): Struct#to_hash
#to_hash protocol expects the object to be hash-compatible. Struct is not the case.
Matz.
matz (Yukihiro Matsumoto)
06:47 PM Bug #4307 (Rejected): include fails after undef_method
lsegal's comment is right. undef_methods defies the definition of upper classes, include mixed modules.
So, this is expected behavior.
Matz.
matz (Yukihiro Matsumoto)
06:43 PM Feature #4574 (Rejected): Numeric#within
I reject this propsal, since the name discussion diverged.
If someone really wants this feature (and believes #clamp is the right name), resubmit the feature request.
Matz.
matz (Yukihiro Matsumoto)
06:27 PM Feature #4265 (Rejected): Provide a core method Kernel#ruby for invoking a new Ruby instance
No good name candidate. Maybe done via MVM change.
Matz.
matz (Yukihiro Matsumoto)
06:25 PM Feature #4086 (Rejected): Feature request: add String#contain? and {Enumerable,Array}#contain? methods
The proposal is ambiguous. Only valid point I see is String#contain? might be more intuitive than String#include?, but I don't see the need for method addition.
Matz.
matz (Yukihiro Matsumoto)
06:23 PM Feature #5605 (Closed): [PATCH] net/http: use IO.copy_stream for requests using body_stream
This issue was solved with changeset r35281.
Eric, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/http.rb (Net::HTTP#send_request_with_body_stream):
us...
naruse (Yui NARUSE)
05:15 AM Feature #5605: [PATCH] net/http: use IO.copy_stream for requests using body_stream
I prefer the original too. drbrain (Eric Hodel)
06:06 PM Revision 85820f09 (git): * 2012-04-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:06 PM Revision cee4c0bf (git): * ext/ripper/lib/ripper/sexp.rb: fix spelling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
05:19 PM Bug #953 (Feedback): 深い入れ子の配列の取り扱いで落ちる
随分前のチケットに対してすみません.
こちら,まだ再現するでしょうか.手元の環境では,
動いちゃったり,stack level too deep (SystemStackError)
だったりで,それなりにちゃんと動いているような気がしております.
ko1 (Koichi Sasada)
03:39 PM Feature #5716 (Closed): duplicated when clause is ignored -> Report which clause it is specifically.
This issue was solved with changeset r35277.
markus, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (iseq_set_sequence): show a hint if there are dupli...
ko1 (Koichi Sasada)
03:27 PM Feature #6260 (Feedback): Relationship of collating sequence to === and <=> for Strings not documented
Hello,
Could you (or anyone) please make a draft in rdoc style?
Akr, could you please review the draft?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:21 PM Bug #6269 (Assigned): Process.spawn does not work with Tempfile
Nobu has a patch. I know.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:18 PM Bug #6275: symbol not found: _environ on Mac OS X
Ok please go ahead.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
03:00 PM Bug #6275: symbol not found: _environ on Mac OS X
The patch seems fine, and hash.c has similar code already. nobu (Nobuyoshi Nakada)
02:42 PM Bug #6275 (Assigned): symbol not found: _environ on Mac OS X
Sorah, do you know anything about this?
--
yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
07:50 AM Bug #6275 (Closed): symbol not found: _environ on Mac OS X
1. download latest ruby
2. download vim7.3 and built with ruby support
3. run vim73, and type: ruby puts "ruby" at ":"
4. Symbol not found: _environ
And my patch is in the attached file.
stonep (dehui peng)
02:41 PM Bug #6262 (Assigned): [readline] reverse-i-search with multibyte chars
mame (Yusuke Endoh)
02:38 PM Bug #6249 (Assigned): Process.exec doesn't restore the environment if it fails
mame (Yusuke Endoh)
02:36 PM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
Correct.
Do you have any suggestion?
nobu (Nobuyoshi Nakada)
01:02 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
I'd like to clarify the fix here.
* ObjectSpace::WeakMap was added as a "proper" weak reference map
* WeakRef uses WeakMap instead of _id2ref, mapping the WeakRef instance weakly to the object
Correct?
headius (Charles Nutter)
02:35 PM Feature #6244 (Assigned): Removal of some unused functions from /ext/json/fbuffer/fbuffer.h
mame (Yusuke Endoh)
02:33 PM Bug #6170 (Rejected): Compile error: "implicit declaration of function 'pthread_get_stackaddr_np'", "'pthread_get_stacksize_np'"
Mac OS X prior to 10.5 has not been supported ever. nobu (Nobuyoshi Nakada)
02:00 PM Bug #6170 (Assigned): Compile error: "implicit declaration of function 'pthread_get_stackaddr_np'", "'pthread_get_stacksize_np'"
Sorah, do you know anything about this error?
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
02:32 PM Feature #6236: WEBrick::HTTPServer swallows Exception
This is not a bug, is it? Moving to the feature tracker.
And there is no maintainer of WEBrick. I tentatively assign this to drbrain.
Drbrain, if you think the patch is good enough, and if there is no objection, I think you can com...
mame (Yusuke Endoh)
02:07 PM Bug #6174 (Assigned): Fix collision of ConditionVariable#wait timeout and #signal (+ other cosmetic changes)
mame (Yusuke Endoh)
01:57 PM Feature #6154 (Assigned): Eliminate extending WaitReadable/Writable at runtime
I think it is suitable to handle this issue in the feature tracker.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:47 PM Bug #6274 (Rejected): Float addition incorrect
This is due to the fact that floats are approximate. The results follow the IEEE standard. Try it in Javascript, you'll get the same result. marcandre (Marc-Andre Lafortune)
05:10 AM Bug #6274 (Rejected): Float addition incorrect
Adding decimals with repeating values appears to lead to an error in returned value.
For example if you inspect:
10 + 1.0 / 3.0
or
33 + 1.0 / 3.0
the values are not what they should be. You will need to test this in IRB.
swanboy (Michael Swan)
11:56 AM Revision a69e190e (git): More increae timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:19 AM Revision 66fd3a4e (git): Wait the server until it stops.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:07 AM Revision f45fc7da (git): * error.c (rb_enc_raise): new function to raise an exception with
the message in the given encoding. patched by now (Nikolai
Weibull) at [ruby-core:41160]. [Feature #5650]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:57 AM Feature #3575 (Closed): String#split is inconsistent with empty string and negative limit
This issue was solved with changeset r35275.
Conrad, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_split_m): Documented behavior of split on t...
drbrain (Eric Hodel)
09:48 AM Bug #6273 (Closed): confusing rdoc on Zlib
This issue was solved with changeset r35273.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/zlib/zlib.c (rb_deflate_s_deflate): Fixed ruby example rep...
drbrain (Eric Hodel)
09:23 AM Revision a59dd4b4 (git): Increae timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:23 AM Revision b386b25a (git): * lib/net/http.rb (Net::HTTP#send_request_with_body_stream):
use IO.copy_stream for requests using body_stream.
patched by Eric Wong. [ruby-core:40898] [Feature #5605]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:53 AM Revision 6a1f4186 (git): * thread_pthread.c: add prototype declarations for older Mac OS X.
[ruby-core:43376][Bug #6170]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:26 AM Revision 99fd04b4 (git): rb_str_format: check overflow
* sprintf.c (rb_str_format): check overflow at too long name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:19 AM Revision 9a269ab1 (git): start GC before GC.stress.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:05 AM Feature #6201: do_something then return :special_case (include "then" operator)
Eregon (Benoit Daloze) wrote:
> Yes, and the "." match well ";" if you see what I mean in my return statement.
Sorry, I didn't :D I guess I'm too tired to get Yusuke's joke on #6265 and your statement :) Or maybe I'm just old enough :D
rosenfeld (Rodrigo Rosenfeld Rosas)
03:45 AM Feature #6201: do_something then return :special_case (include "then" operator)
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> Just forget about this then. By the way, did you like the pun? ;)
Yes, and the "." match well ";" if you see what I mean in my return statement.
Eregon (Benoit Daloze)
02:18 AM Feature #6201: do_something then return :special_case (include "then" operator)
You're right, Benoit, I completely forgot about the case statements.
Just forget about this then. By the way, did you like the pun? ;)
rosenfeld (Rodrigo Rosenfeld Rosas)
02:12 AM Feature #6201: do_something then return :special_case (include "then" operator)
rosenfeld (Rodrigo Rosenfeld Rosas) wrote:
> My understanding is that adding a new keyword to Ruby will break backward-compatibility and so it should be avoided at most.
> ...
"then" can also be used in case statements.
> So I thoug...
Eregon (Benoit Daloze)
01:32 AM Feature #6201: do_something then return :special_case (include "then" operator)
Sorry if I'm being boring here. Just let me know and I'll never ask about this again.
My understanding is that adding a new keyword to Ruby will break backward-compatibility and so it should be avoided at most.
In the other side, '...
rosenfeld (Rodrigo Rosenfeld Rosas)
06:39 AM Revision 6da0604d (git): * compile.c (iseq_set_sequence): show a hint if there are duplicated
"when" clauses. [ruby-core:41502] [ruby-trunk - Feature #5716]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:41 AM Revision 2eb5d1de (git): Add timeout to TC_JSONGenerate#test_gc.
http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20120409T230301Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:07 AM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
znz さん、naruse さん、
なるほど、確かにそうするのが良いですね。
ありがとうございます。
nobuoka (yu nobuoka)
12:57 AM Revision e5c418d9 (git): * string.c (rb_str_split_m): Documented behavior of split on the empty
string. [ruby-trunk - Feature #3575]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:48 AM Revision 830ff445 (git): * 2012-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:48 AM Revision 718ab93d (git): * ext/zlib/zlib.c (rb_deflate_s_deflate): Fixed ruby example replacing
NO_FLUSH with FINISH. [ruby-trunk - Bug #6273]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)

04/09/2012

11:10 PM Feature #3399 (Closed): UNC path is not handled properly
This issue was solved with changeset r35271.
jojelino, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/win32.c (isUNCRoot, winnt_stat): support long UNC.
...
nobu (Nobuyoshi Nakada)
10:52 PM Feature #6265: Remove 'useless' 'concatenation' syntax
Hi Yusuke, I guessed it was a joke, but I couldn't get it at that time. Actually I had a hard time reading "CONCAT" in your last example. After that, I could read it too in the first ones, which is much harder :) I guess I have some prob... rosenfeld (Rodrigo Rosenfeld Rosas)
10:46 PM Feature #6265: Remove 'useless' 'concatenation' syntax
Thank you very much! I do also agree that we should warn users so that they have some time to change their "\" style to "+".
Also, while on the subject, don't you think that Ruby specs should state that ("some " + "string") would conc...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:23 PM Feature #6265: Remove 'useless' 'concatenation' syntax
Hi,
In message "Re: [ruby-core:44207] [ruby-trunk - Feature #6265] Remove 'useless' 'concatenation' syntax"
on Mon, 9 Apr 2012 12:43:58 +0900, "mame (Yusuke Endoh)" <mame@tsg.ne.jp> writes:
> > I agree with removing string con...
matz (Yukihiro Matsumoto)
12:43 PM Feature #6265: Remove 'useless' 'concatenation' syntax
Matz,
> I agree with removing string concatenation in 3.0.
Okay. Then, is the syntax deprecated in 2.0?
If so, it would be good to warn it.
```diff
diff --git a/parse.y b/parse.y
index 0393dc1..1726117 100644
--- a/parse.y
...
mame (Yusuke Endoh)
08:04 AM Feature #6265: Remove 'useless' 'concatenation' syntax
I agree with removing string concatenation in 3.0.
matz (Yukihiro Matsumoto)
10:49 PM Bug #6246: 1.9.3-p125 intermittent segfault
Dennis, looking at your ruby trace, it looks like you've run into something else
It appears that you are on osx, and there are some documented (try google) about ssl and ruby - seems that the ssl libs shipped with osx are not compatib...
jshow (Jodi Showers)
09:51 PM Feature #4168 (Closed): WeakRef is unsafe to use in Ruby 1.9
I believe so.
If something goes wrong, please reopen this or file a new ticket.
nobu (Nobuyoshi Nakada)
09:46 PM Bug #6271 (Assigned): textmode File#read on CRLF
nobu (Nobuyoshi Nakada)
12:52 AM Bug #6271: textmode File#read on CRLF
I tested the code above in some environments.
(a) ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-cygwin] : works fine
(b) ruby 2.0.0dev (2012-04-08 trunk 35259) [i386-cygwin] : works fine
(c) ruby 1.9.3p125 (2012-02-16) [i386-mingw3...
riskwa (riskwa anon)
07:05 PM Bug #6267 (Closed): Segmentation fault when exponentiating complex number
tadf fixed it at r35265. naruse (Yui NARUSE)
06:55 AM Bug #6267 (Open): Segmentation fault when exponentiating complex number
the following still does
Complex(0,1)**2
tadf (tadayoshi funaba)
02:53 AM Bug #6267 (Closed): Segmentation fault when exponentiating complex number
This issue was solved with changeset r35262.
Pablo, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* complex.c (nucomp_expt): the result of f_complex_new2 may be a...
naruse (Yui NARUSE)
05:48 PM Bug #6235: Call to malloc not checked in thread_pthread.c
I'll fix it.
ko1 (Koichi Sasada)
05:48 PM Feature #5716: duplicated when clause is ignored -> Report which clause it is specifically.
Hi Koichi Sasada!
I have not tested it yet (will do so at the end of this week),
but I believe it will help me.
Thank you! :)
shevegen (Robert A. Heiler)
02:23 PM Feature #5716: duplicated when clause is ignored -> Report which clause it is specifically.
Thank you for your comment.

I added a small hint on it because if duplicated object was too big, the
output should be ugly.

Does it help you?

# sample code
case nil
when 1
when 1, 1
when 1, 1, 1, 1
when 1, 1
...
ko1 (Koichi Sasada)
03:16 PM Bug #6211 (Closed): Ripper lexes :on_rbrace when it should find :on_embexpr_end
This issue was solved with changeset r35269.
Steve, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* parse.y (string_content, parser_yylex): count brace nesting to...
nobu (Nobuyoshi Nakada)
02:14 PM Revision 04e3e2de (git): * test/ruby/test_file.rb (TestFile#test_long_unc): fix for the case cwd is UNC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:10 PM Revision 3ed259ab (git): * win32/win32.c (isUNCRoot, winnt_stat): support long UNC.
[ruby-core:30623][Feature #3399]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:53 PM Feature #5446: at_fork callback API
"mame (Yusuke Endoh)" <mame@tsg.ne.jp> wrote:
> Do you still want this feature?

Yes, but lower priority.

I think default to IO#close_on_exec=true for 2.0.0 makes this
less important.

> If so, could you answer kosaki's...
normalperson (Eric Wong)
01:07 PM Feature #4234 (Closed): Hash#default_proc= Doesn't Accept nil Argument
This issue was solved with changeset r35268.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* hash.c (rb_hash_set_default_proc): Accept nil, patch by Ru...
marcandre (Marc-Andre Lafortune)
08:14 AM Feature #4234: Hash#default_proc= Doesn't Accept nil Argument
Agreed. Marc, could you check this patch in (with document update)?
Matz.
matz (Yukihiro Matsumoto)
12:53 PM Feature #5605: [PATCH] net/http: use IO.copy_stream for requests using body_stream
"naruse (Yui NARUSE)" <naruse@airemix.jp> wrote:
> Issue #5605 has been updated by naruse (Yui NARUSE).
>
> The original patch looks better than [ruby-core:40903]'s.
> drbrain, do you have any idea?
>
> If no one object it...
normalperson (Eric Wong)
05:23 AM Feature #5605: [PATCH] net/http: use IO.copy_stream for requests using body_stream
The original patch looks better than [ruby-core:40903]'s.
drbrain, do you have any idea?
If no one object it, I'll merge original one.
naruse (Yui NARUSE)
11:00 AM Feature #5669: Random thread scheduling based on a seed
I want to reject it.
reasons:
(1) It is difficult to implement it in portable way.
(2) I have a doubt about this idea which can solve threading bugs.
Any other comments?
ko1 (Koichi Sasada)
10:49 AM Revision 8c879633 (git): Wait until the callback is called with timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:23 AM Feature #6270 (Rejected): add "??a" support for "not defined?(a) or a.nil?"
As Eric pointed out, it's conflicting existing syntax. I don't reject the basic idea (though I am excited), so try again with new syntax if you really want this.
Matz.
matz (Yukihiro Matsumoto)
01:33 AM Feature #6270: add "??a" support for "not defined?(a) or a.nil?"
=begin
This syntax seems too similar to the ?a character string syntax
Currently ?a returns "a", so how would the parsing of this expression change:
true ??a:?b
Which currently returns "a", or:
question_method??a
Whic...
drbrain (Eric Hodel)
08:12 AM Feature #5632: Attempt to open included class shades it instead.
Quite reasonable. But the change would introduce serious incompatibility, so that we can not make this happen in 2.0.
Matz.
matz (Yukihiro Matsumoto)
07:07 AM Bug #6273 (Closed): confusing rdoc on Zlib
=begin
The rdoc at ext/zlib/zlib.c gives some examples of code to deflate/inflate a string. If you try to use them to actually deflate/inflate it gives an error inflating.
The deflate snippet is:
def deflate(string, level)
...
lparra (Luis Parravicini)
06:16 AM Revision 41c19913 (git): * parse.y (string_content, parser_yylex): count brace nesting to
dispatch embexpr_end. [ruby-core:43775][Bug #6211]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:07 AM Revision 6b18a8c2 (git): * hash.c (rb_hash_set_default_proc): Accept nil, patch by Run Paint
[Feature #4234]
* test/ruby/test_hash.rb: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
12:44 AM Bug #6247 (Assigned): Range not checked for day of year
naruse (Yui NARUSE)
12:38 AM Bug #6228 (Assigned): [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
naruse (Yui NARUSE)

04/08/2012

11:12 PM Revision 6cb7ac7e (git): * ext/date/date_strftime.c: gets the value with range() consistetly.
* ext/date/date_strftime.c (range): now just replaces the given item.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
11:05 PM Revision 228a99a0 (git): Add test for r35265.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:34 PM Bug #6271 (Open): textmode File#read on CRLF
I think that is not fixed yet.
io_unread() doesn't work properly in that case.
An idea is not using `read into buffer` in rb_io_eof() only in that case. Attached the patch.
h.shirosaki (Hiroshi Shirosaki)
08:59 PM Bug #6271 (Closed): textmode File#read on CRLF
Seems fixed already in the repository. nobu (Nobuyoshi Nakada)
06:54 PM Bug #6271 (Closed): textmode File#read on CRLF
I'm not sure this is bug,
when "File#read(X)" for textmode finishes inside of CRLF, stream keeps CR unread against my intuition.
The following code prints "\r" forever for CRLF.
File.open(__FILE__, "r") do |f|
until f.eof?
...
riskwa (riskwa anon)
10:27 PM Bug #6272 (Closed): Rinda sticks on some tests
Rindaが例えば以下のようにすると刺さります。
while [ yes ];do;make test-all TESTS='-v -n test_ruby_talk_264062 rinda/test_rinda.rb' RUBYOPT=-w;done
しばらく追ってみたところ、Rinda は Monitor#synchronize をすることで同期を守っているのですが、
そのテストでは時刻を Rinda::MockClock で扱い、その中で Rind...
naruse (Yui NARUSE)
10:00 PM Revision 08df8218 (git): * complex.c (nucomp_expt): [ruby-core:44170].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
07:17 PM Revision e0ba59b7 (git): Additional experimental fix for r35261.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:46 PM Bug #6269: Process.spawn does not work with Tempfile
I find it a bit inconsistent that a Tempfile object is not supported,
as, for example, this code works without a problem:
Process.spawn("date", :out => File.open(tmp.path, "w"))
That is, it is supported to pass an IO/File obje...
matled (Matthias Lederhofer)
04:34 AM Bug #6269: Process.spawn does not work with Tempfile
ssuda (Sambasiva Suda) wrote:
> :in, :out and :err expects path or fd. Please try Process.spawn("date", :out => tmp.path) or Process.spawn("date", :out => tmp.to_i)
ssuda (Sambasiva Suda)
04:18 AM Bug #6269: Process.spawn does not work with Tempfile
:in, :out and :err expects path. Please try Process.spawn("date", :out => tmp.path) ssuda (Sambasiva Suda)
03:11 AM Bug #6269 (Closed): Process.spawn does not work with Tempfile
The following code fails with an exception:
require 'tempfile'
tmp = Tempfile.new(File.basename($0))
Process.spawn("date", :out => tmp)
Exception: in `spawn': wrong exec redirect action (ArgumentError)
I would expe...
matled (Matthias Lederhofer)
06:45 PM Feature #6270: add "??a" support for "not defined?(a) or a.nil?"
So `??foo' is basically a macro for `not defined?(foo) or foo.nil?'. jacksonwillis (Jackson Willis)
12:49 PM Feature #6270 (Rejected): add "??a" support for "not defined?(a) or a.nil?"
It would work like this:
??foo #=> nil
foo = nil
??foo #=> nil
foo = 3
??foo #=> true
Not sure if this would be useful, just a suggestion.
jacksonwillis (Jackson Willis)
06:32 PM Feature #6183: Enumerator::Lazy performance issue
(Yusuke Endoh) wrote:
> (1..10).lazy.select {|x| false }.map {|x| p x }.to_a
> ...
Fixed, thanks.
> But I guess implementing
> ...
Agree, those methods (especially #cycle) will be hard to implement in terms of procs chaining ...
gregolsen (Innokenty Mikhailov)
05:53 PM Revision a4d3990f (git): * 2012-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:53 PM Revision 71d11429 (git): * complex.c (nucomp_expt): the result of f_complex_new2 may be a fixnum
with mathn. [ruby-core:44170] [Bug #6267]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:46 PM Revision fdc38828 (git): * ext/json/generator/generator.c (generate_json_bignum):
add RB_GC_GUARD.
http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20120407T210301Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:46 PM Revision 63467e52 (git): Decrease the default level of try_fdopen.
Because it cause Bus Error:
http://u32.rubyci.org/~chkbuild/ruby-trunk/log/20120407T230202Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:54 PM Feature #6225: Hash#+
Would it be better to use `Hash#<<` instead of `Hash#+`? jacksonwillis (Jackson Willis)
12:50 PM Bug #4378 (Closed): 1.9.2でClassオブジェクトのcloneの特異メソッドが消える
r33292 から発生しなくなっているようですので閉じさせて頂きます。 wanabe (_ wanabe)
07:02 AM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
r35253 でマージしました、ありがとうございました。
znz (Kazuhiro NISHIYAMA) wrote:
> nobuoka (yu nobuoka) wrote:
> ...
そうですね、そのようなテストを追加するのが良いかと思います。
rdoc も追加した方が良いかな。
naruse (Yui NARUSE)
06:50 AM Bug #6230 (Closed): [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
This issue was solved with changeset r35253.
yu, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#send_body_io):...
naruse (Yui NARUSE)
06:26 AM Revision 8474c90e (git): Don't run tests which can't run with editline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:52 AM Bug #6246: 1.9.3-p125 intermittent segfault
I have a similar problem when creating a new rails (3.2.3) app. It segfaults on the bundle install step. I think this is related, so I won't create a new bugreport.
Ruby -v: ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11....
hectormalot (Dennis de Reus)

04/07/2012

11:41 PM Revision 7b186338 (git): * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler): get keys
and fetch values from it to prevent @timeout_info's error
"can't add a new key into hash during iteration".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:41 PM Revision 9ec849ee (git): * Remove unused variables.
* use Thread.pass instead of true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:23 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
Hi Luis,

> Hiroshi: will be good do this in two commits:
>
> - First commit that reverts the usage of CREATE_NEW_PROCESS_GROUP, so can be backported to ruby_1_9_3 branch
> - Implement new_pgroup option for spawn.
>

I'v...
h.shirosaki (Hiroshi Shirosaki)
11:10 PM Bug #6131 (Closed): Ctrl-C handler do not work from exec process (Windows)
This issue was solved with changeset r35249.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* test/ruby/test_thread.rb
(TestThreadGroup#test_thread_timer_a...
Anonymous
10:37 PM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
nobuoka (yu nobuoka) wrote:
> (現在の実装では大丈夫そうですが、仕様に明記されていないことに期待していいのかどうか。。)
そういう場合はその期待が変わったときに気づいて対処出来るように、
期待している挙動のテストを追加しておくと良いのではないでしょうか。
znz (Kazuhiro NISHIYAMA)
09:45 PM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
指摘ありがとうございます。 readpartial は長さ 1 以上の String オブジェクトを返す、という仕様になっているということを確認したので、空文字列かどうかで分岐する部分は削除しました。 また、毎回 buf を生成するのは非効率的だと思ったので、buf をループ内で再利用するようにしました。
また、test/webrick/test_httpserver.rb には元々 chunked = true の状態でのテストが無かったので、test_respon...
nobuoka (yu nobuoka)
09:54 PM Revision 0e19adc8 (git): merge revision(s) 35255:
* io.c (io_unread): cast as long the value for extra_max.
[ruby-core:44137] [Bug #6257]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:53 PM Revision 2f6ff54e (git): * io.c (io_unread): cast as long the value for extra_max.
[ruby-core:44137] [Bug #6257]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:50 PM Revision 0304254b (git): * 2012-04-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:50 PM Revision 56206ab8 (git): * lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#send_body_io):
use readpartial to get data even if the response is streaming data and
each data is smaller than @buffer_size.
patched by yu nobuoka. [ruby-dev:45471] [Bug #6230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35253 b2dd03c8-39d4...
naruse (Yui NARUSE)
09:31 PM Revision 45a500e5 (git): * 2012-04-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:31 PM Revision a9649469 (git): merge revision(s) 35245,35248:
* ext/psych/lib/psych.rb: bumping up psych version to match release.
* ext/psych/psych.gemspec: ditto
* ext/psych/parser.c: fall back to any encoding if the external
encoding is wrong. [ruby-core:44163]
* test/psych/t...
tenderlovemaking (Aaron Patterson)
02:10 PM Revision 42109a02 (git): * include/ruby/win32.h (rb_w32_aspawn_flags): add the declaration of
new function.
* process.c (enum): add EXEC_OPTION_PGROUP and move the position
above for the usage in proc_spawn_n().
* process.c (proc_spawn_n): add an argument to pass new option
`new_pgroup`. The option specifies CREATE_NEW_PROC...
h.shirosaki (Hiroshi Shirosaki)
02:10 PM Revision fc83ebb0 (git): * test/ruby/test_thread.rb
(TestThreadGroup#test_thread_timer_and_interrupt): skip on Windows.
Process.kill cannot kill a subprocess if CREATE_NEW_PROCESS_GROUP
flag is not specified in a call to CreateProcessW().
* win32/win32.c (CreateChild): revert the usa...
h.shirosaki (Hiroshi Shirosaki)
11:14 AM Feature #6265: Remove 'useless' 'concatenation' syntax
Yusuke, am I supposed to understand what you meant with the code in your last comment? If so, I didn't get it...
Nikolai, good point, I haven't thought about this before and I wasn't wondering :)
But do you really think that this c...
rosenfeld (Rodrigo Rosenfeld Rosas)
05:29 AM Feature #6265: Remove 'useless' 'concatenation' syntax
On Fri, Apr 6, 2012 at 16:52, marcandre (Marc-Andre Lafortune)
<ruby-core@marc-andre.ca> wrote:

>>  > What is this ('concatenation' 'syntax') useful for?

>>  raise ArgumentError,
>>    'they are useful for long strings that are ...
now (Nikolai Weibull)
01:47 AM Feature #6265: Remove 'useless' 'concatenation' syntax
I don't think the current code in mkmf.rb is good.
I just meant that the syntax is actually used and thus we cannot remove it from 2.0.
I'm not against this proposal in the future.
```
$ cat concat_quine.rb
eval$s="s='eval$s='+$s....
mame (Yusuke Endoh)
12:03 AM Feature #6265: Remove 'useless' 'concatenation' syntax
> I found an actual example in lib/mkmf.rb:
> ...
Wouldn't this read better this way?
hdr = [%Q{#include "ruby.h"\n}]
rosenfeld (Rodrigo Rosenfeld Rosas)
12:00 AM Feature #6265 (Assigned): Remove 'useless' 'concatenation' syntax
msg = 'put "\n" here -> ' "\n"
I found an actual example in lib/mkmf.rb:
hdr = ['#include "ruby.h"' "\n"]
Anyway, 2.0 should remain all existing features unless there is a good reason.
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
11:01 AM Feature #6256: Slightly improve ruby_qsort performance
Updated patch - I forgot that chklim may be set to 0,
so I separated chklim and cutoff.
MartinBosslet (Martin Bosslet)
10:35 AM Feature #6256: Slightly improve ruby_qsort performance
I could improve the Insertion Sort a bit by using memcpy/memmove.
It runs a bit faster even with the "worst case detection" of
Quicksort turned on, things look a little brighter now:
$ ruby driver.rb -p bm_sort -r 10
----------...
MartinBosslet (Martin Bosslet)
07:36 AM Feature #6256: Slightly improve ruby_qsort performance
I added a patch, together with benchmarks.
Here's the results on my machine without the optimization:
$ ruby driver.rb -e ruby -p bm_sort -r 10
-----------------------------------------------------------
benchmark results:
name...
MartinBosslet (Martin Bosslet)
10:29 AM Bug #6266: encoding related exception with recent integrated psych
On Sat, Apr 07, 2012 at 06:31:25AM +0900, jonforums (Jon Forums) wrote:
>
> Issue #6266 has been updated by jonforums (Jon Forums).
>
>
> On Arch (3.2.14-1-ARCH) the sample also exceptions when I change my locale to en_US.iso885...
Anonymous
06:31 AM Bug #6266: encoding related exception with recent integrated psych
On Arch (3.2.14-1-ARCH) the sample also exceptions when I change my locale to en_US.iso88591 from en_US.utf8.
But on trunk it doesn't matter anymore :)
$ ruby -v yaml_test.rb
ruby 2.0.0dev (2012-04-07 trunk 35247) [i686-linux]...
jonforums (Jon Forums)
01:10 AM Bug #6266 (Closed): encoding related exception with recent integrated psych
Newer versions of Psych integrated into both ruby_1_9_3 and trunk create exceptions if the yaml file isn't perceived to be correctly encoded.
While I discovered this in my code that uses the 'logging' gem on Win7 32bit, this test snip...
jonforums (Jon Forums)
08:15 AM Bug #6267 (Closed): Segmentation fault when exponentiating complex number
A segfault is raised when running the following script, with any exponent greater or equal to 5:
require "mathn/complex"
Complex(0,1)**5
It only seems to happen when exponentiating pure imaginary numbers and if 'mathn/coplex' is...
pabloh (Pablo Herrero)
06:42 AM Feature #6216: SystemStackError backtraces should not be reduced to one line
If it wasn't clear from the above example, Ruby 1.9.3 returns a backtrace pointing to a line of code in dm-core which has nothing to do with the bug. The actual bug is revealed in the full JRuby backtrace where one can see dm-core callin... postmodern (Hal Brodigan)
02:18 AM Bug #6264: Struct.members rdoc
@duerst Apparently, a lot more changes were included in your commit. Is it intended? Eregon (Benoit Daloze)
01:29 AM Revision 5638bbda (git): * ext/psych/lib/psych.rb: bumping up psych version to match release.
* ext/psych/psych.gemspec: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
 

Also available in: Atom