Activity
From 04/03/2012 to 04/09/2012
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.
... -
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...
-
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... -
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... -
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
... -
08:04 AM Feature #6265: Remove 'useless' 'concatenation' syntax
- I agree with removing string concatenation in 3.0.
-
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... -
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. -
09:46 PM Bug #6271 (Assigned): textmode File#read on CRLF
-
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... -
07:05 PM Bug #6267 (Closed): Segmentation fault when exponentiating complex number
- tadf fixed it at r35265.
-
06:55 AM Bug #6267 (Open): Segmentation fault when exponentiating complex number
- the following still does
Complex(0,1)**2 -
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... -
05:48 PM Bug #6235: Call to malloc not checked in thread_pthread.c
- I'll fix it.
-
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! :) -
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
... -
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... -
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
-
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 -
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... -
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... -
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.
-
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... -
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. -
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? -
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
-
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.
-
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... -
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.
-
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)
... -
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 - 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 -
12:44 AM Bug #6247 (Assigned): Range not checked for day of year
-
12:38 AM Bug #6228 (Assigned): [mingw] Errno::EBADF in ruby/test_io.rb on ruby_1_9_3
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 -
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
-
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. -
08:59 PM Bug #6271 (Closed): textmode File#read on CRLF
- Seems fixed already in the repository.
-
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?
... -
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... - 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
-
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
-
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... -
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)
-
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)
-
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... -
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?'.
-
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. -
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 ... - 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
-
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 -
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 -
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 -
12:54 PM Feature #6225: Hash#+
- Would it be better to use `Hash#<<` instead of `Hash#+`?
-
12:50 PM Bug #4378 (Closed): 1.9.2でClassオブジェクトのcloneの特異メソッドが消える
- r33292 から発生しなくなっているようですので閉じさせて頂きます。
-
07:02 AM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
- r35253 でマージしました、ありがとうございました。
znz (Kazuhiro NISHIYAMA) wrote:
> nobuoka (yu nobuoka) wrote:
> ...
そうですね、そのようなテストを追加するのが良いかと思います。
rdoc も追加した方が良いかな。 -
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):... -
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
-
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....
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 -
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 -
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... -
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... -
10:37 PM Bug #6230: [WEBrick] WEBrick::HTTPResponse#body の IO オブジェクトの読み込みに read メソッドを使っているため必要以上にブロックされる
- nobuoka (yu nobuoka) wrote:
> (現在の実装では大丈夫そうですが、仕様に明記されていないことに期待していいのかどうか。。)
そういう場合はその期待が変わったときに気づいて対処出来るように、
期待している挙動のテストを追加しておくと良いのではないでしょうか。 -
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... -
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 -
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 - 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
-
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... - 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
-
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... -
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... -
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... -
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... -
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 ... -
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.... -
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}] -
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> -
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. -
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
----------... -
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... -
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... -
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]... -
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... -
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... -
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...
-
02:18 AM Bug #6264: Struct.members rdoc
- @duerst Apparently, a lot more changes were included in your commit. Is it intended?
-
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
04/06/2012
-
11:52 PM Feature #6265: Remove 'useless' 'concatenation' syntax
- Hi,
now (Nikolai Weibull) wrote:
> On Fri, Apr 6, 2012 at 14:53, rosenfeld (Rodrigo Rosenfeld Rosas)
> ...
In this example, replacing the "\" with a "+" will give basically the same result without using the concatenation rule.
Ar... -
11:23 PM Feature #6265: Remove 'useless' 'concatenation' syntax
- On Fri, Apr 6, 2012 at 14:53, rosenfeld (Rodrigo Rosenfeld Rosas)
<rr.rosas@gmail.com> wrote:
> What is this ('concatenation' 'syntax') useful for?
raise ArgumentError,
'they are useful for long strings that are so long ... -
09:53 PM Feature #6265 (Assigned): Remove 'useless' 'concatenation' syntax
- What is wrong with this code:
some_method 'argument1', 'argument2' 'argument3'
Yes, the missing colon, but it is not always easy to notice that...
What is this ('concatenation' 'syntax') useful for?
Why writing ('some ' 'conc... -
11:09 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- 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.
Thank you. -
07:23 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- Hello,
In message "[ruby-core:44154] [ruby-trunk - Bug #6131] Ctrl-C handler do not work from exec process (Windows)"
on Apr.06,2012 18:55:27, <h.shirosaki@gmail.com> wrote:
> Assigned to usa-san for comments.
Oops, so... -
06:55 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- Assigned to usa-san for comments.
-
06:17 PM Revision 8354d2f7 (git): * enc/unicode/name2ctype.h, tool/transcode-tblgen.rb: revert
- unlogged changes which committed by accident probably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:09 PM Revision e02ad732 (git): * 2012-04-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:09 PM Revision 85e4c896 (git): * ext/psych/parser.c: fall back to any encoding if the external
- encoding is wrong. [ruby-core:44163]
* test/psych/test_encoding.rb: fix test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:23 PM Bug #6264 (Closed): Struct.members rdoc
- This issue was solved with changeset r35244.
Adam, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
struct.c (documentation for rb_struct_members_m):
fix 'array of... -
07:22 AM Bug #6264 (Closed): Struct.members rdoc
- It reads:
Returns an array of strings representing the names of the instance variables.
It should read:
Returns an array of SYMBOLS representing the names of the instance variables.
-
08:53 AM Feature #6261 (Rejected): Enumerable#emap and Enumerable#egrep
- use Enumerable#lazy.
Matz.
-
06:28 AM Feature #6261: Enumerable#emap and Enumerable#egrep
- Hello,
This should already be possible with the recent Enumerator::Lazy (in trunk), just drop a `.lazy` after the File.foreach and use usual select,map,...:
lines = File.foreach('a_very_large_file').lazy
.select {|line... -
07:23 AM Revision 61115992 (git): struct.c (documentation for rb_struct_members_m):
- fix 'array of strings' to 'array of symbols'
[ruby-core:44152][Bug #6264]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:03 AM Feature #6263 (Feedback): Simple access to toplevel object (main)
- It's simple, because no one wanted it ever.
Why do you want?
> Would be nice if there were a simple way, maybe special global `$main` would be good choice.
Why don't you set it? -
05:25 AM Feature #6263 (Feedback): Simple access to toplevel object (main)
- =begin
Maybe I miss something, but why is there no way to get toplevel object easily. Only way seems
to be:
main = eval('self', TOPLEVEL_BINDING)
Would be nice if there were a simple way, maybe special global `(({$main}))` w... - 05:28 AM Revision 529827d7 (git): * 2012-04-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:28 AM Revision 7b8bdf57 (git): * Makefile.in ($(LIBRUBY_A)): fix typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:33 AM Bug #6262 (Closed): [readline] reverse-i-search with multibyte chars
- =begin
以下のように、C-r にマルチバイト文字を渡すとバイトの切れ端が返ってきます。
IM を介すので、うまく動いてもインクリメンタルサーチにはならないのですが、
履歴が検索できるようになるとありがたいです。
# encoding: UTF-8
require "readline"
RUBY_DESCRIPTION # => "ruby 2.0.0dev (2012-04-05 trunk 35241) [x86_64-linux]... -
02:25 AM Feature #4766: Range#bsearch
- Hope this can be committed at some point...
04/05/2012
-
10:11 PM Feature #6261 (Rejected): Enumerable#emap and Enumerable#egrep
- I was inspired by Ruby 1.9.x`s Enumerable#chunk and #slice_before, which both take a block and return an enumerator. I wish to introduce two new method into the Enumerable core, which can be implemented in Ruby like this:
module E... -
08:59 PM Feature #6256 (Assigned): Slightly improve ruby_qsort performance
- Sound good. I agree, too.
Please create a patch and show benchmark.
--
Yusuke Endoh <mame@tsg.ne.jp> -
07:04 PM Feature #6256: Slightly improve ruby_qsort performance
- I haven't looked at the sources, but this exact optimization is very well known in the literature, and I'm showing it to my students in a lecture on algorithms and data structures every year (see e.g. http://www.sw.it.aoyama.ac.jp/2011/D...
-
10:02 AM Feature #6256 (Feedback): Slightly improve ruby_qsort performance
- Hi all,
I think I may have found a way to slightly improve the performance of ruby_qsort.
Quicksort running time is slightly decreased if the recursion depth (or in our
case, rather iteration depth) is bounded by leaving sub probl... -
05:57 PM Bug #6213: Builder::XmlMarkup drops html_safe
- Hi nobu,
I wrote to jim
I want to make this builder concept
into the core of ruby.
I just love this idea,
of an object of being in full controll
of all and any messages send to it.
That's a proxy
-
05:23 PM Feature #6183: Enumerator::Lazy performance issue
- Hi,
(12/04/04 20:59), Yusuke Endoh wrote:
> I glanced your patch. It will degrade functional modularity
> in enumerator.c. Currently, it not so big problem because
> it only implements #map and #select. But I guess impleme... -
01:43 PM Bug #6258: String#succ has suprising behavior for "\u1036" (MYANMAR SIGN ANUSVARA), producing "\u1000" instead of "\u1037"
- "\u1036".succ is "\u1000\u1000", not a single character.
% ruby -ve 'puts "\u1036".succ.dump'
ruby 2.0.0dev (2012-03-16 trunk 35049) [x86_64-linux]
"\u{1000}\u{1000}"
It is similar that "z".succ is "aa".
It is because U+... -
01:10 PM Bug #6258 (Assigned): String#succ has suprising behavior for "\u1036" (MYANMAR SIGN ANUSVARA), producing "\u1000" instead of "\u1037"
- Sounds like a bug to me, but no idea what's going on. Tanaka-san, what do you think?
-
10:59 AM Bug #6258 (Closed): String#succ has suprising behavior for "\u1036" (MYANMAR SIGN ANUSVARA), producing "\u1000" instead of "\u1037"
- "\u1036".succ.ord.to_s(16) # => "1000"
Discovered when investigating StackOverflow question http://stackoverflow.com/questions/10020230/anomalous-behavior-while-comparing-a-unicode-character-to-a-unicode-character-range
Range#=== u... -
01:26 PM Bug #6255 (Closed): RUBY_LIB_PREFIX in missing/alloca.c
- This issue was solved with changeset r35240.
Wataru, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* missing/alloca.c (xmalloc, xfree): use ruby version, not
de... -
11:38 AM Feature #6260 (Rejected): Relationship of collating sequence to === and <=> for Strings not documented
- Collating sequences are mentioned in the documentation for the class String only in reference to the "succ" method, and only in passing. It appears that Ruby also pays attention to collating sequences in range membership testing, possibl...
-
07:47 AM Feature #4264: General type coercion protocol for Ruby
- And I'd like to add some question.
== Why do you want to remove the monkey-patching?
If you are worried about method name conflict, this proposal does not
solve the problem because the class names still collide.
If you dislike ... -
07:45 AM Feature #4264: General type coercion protocol for Ruby
- =begin
Hello, headius
Thank you. Is your problem about just monkey-patching?
Please check the following summary.
== Problem
Many monkey-patching like below is used in some libraries, such as xml and json:
class Integer
... -
03:53 AM Feature #4264: General type coercion protocol for Ruby - On Thu, Apr 05, 2012 at 12:28:38AM +0900, headius (Charles Nutter) wrote:
>
> Issue #4264 has been updated by headius (Charles Nutter).
>
>
> Yusuke: Individual classes can (and often should) still define their own to_a, etc. Th... -
12:28 AM Feature #4264: General type coercion protocol for Ruby
- Yusuke: Individual classes can (and often should) still define their own to_a, etc. There's no reason to move the current logic into a slower case/when statement.
The convert_to(cls) method would just be a standard way to allow new li... - 04:26 AM Revision 1ba77338 (git): * 2012-04-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:26 AM Revision 789f9c22 (git): * missing/alloca.c (xmalloc, xfree): use ruby version, not
- depending on RUBY_LIB_PREFIX. [ruby-dev:45492][Bug #6255]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:36 AM Bug #6246: 1.9.3-p125 intermittent segfault
- attached is a more verbose valgrind
$ valgrind --num-callers=50 --error-limit=no --partial-loads-ok=yes --undef-value-errors=no -v --leak-check=full rake RAILS_ENV=new_staging assets:precompile -
12:08 AM Bug #6246: 1.9.3-p125 intermittent segfault
- Aaron, I've updated this gist with a run that uses a more direct command line - which I think was hiding some of the valgrind output
valgrind --num-callers=50 --error-limit=no --partial-loads-ok=yes --undef-value-errors=no rake RAILS_...
04/04/2012
-
10:45 PM Bug #6246: 1.9.3-p125 intermittent segfault
- I'm in the north american eastern time zone
I can meet today if you can
11am eastern is doable for me - just over an hour away
In the meantime I'll start trying ruby-head
much thanks Aaron -
11:53 AM Bug #6246: 1.9.3-p125 intermittent segfault - On Wed, Apr 04, 2012 at 10:18:26AM +0900, jshow (Jodi Showers) wrote:
>
> Issue #6246 has been updated by jshow (Jodi Showers).
>
>
> Aaron,
>
> attached is the full output from valgrind using your options - https://gist.git... -
11:53 AM Bug #6246: 1.9.3-p125 intermittent segfault - On Wed, Apr 04, 2012 at 10:18:26AM +0900, jshow (Jodi Showers) wrote:
>
> Issue #6246 has been updated by jshow (Jodi Showers).
>
>
> Aaron,
>
> attached is the full output from valgrind using your options - https://gist.git... -
10:18 AM Bug #6246: 1.9.3-p125 intermittent segfault
- Aaron,
attached is the full output from valgrind using your options - https://gist.github.com/2296847
I'm presently looking for the edge branch - not seeing it. Do you mean head?
thanks -
02:23 AM Bug #6246: 1.9.3-p125 intermittent segfault - On Tue, Apr 03, 2012 at 11:15:14AM +0900, jshow (Jodi Showers) wrote:
>
> Issue #6246 has been updated by jshow (Jodi Showers).
>
>
> Aaron, I ran a valgrind as follows:
>
> valgrind /home/deploy/.rvm/rubies/ruby-1.9.3-p125/... -
09:54 PM Bug #6255 (Closed): RUBY_LIB_PREFIX in missing/alloca.c
- 木村といいます。
missing/alloca.cに
61 #ifdef RUBY_LIB_PREFIX
62 #define xmalloc ruby_xmalloc
63 #define xfree ruby_xfree
64 #endif
というコードがありますが、trunkではRUBY_LIB_PREFIXが
ruby/config.hからverconf.h (version.c)に移されていて、
これはmissing... -
09:29 PM Feature #6245 (Rejected): "is_integer?" method declaration in prelude
- Sorry, but let's not open a ticket about goruby, but just send a mail.
I'd like to focus on redmine ticket that really needs our action.
--
Yusuke Endoh <mame@tsg.ne.jp> -
09:23 PM Feature #6183: Enumerator::Lazy performance issue
- Hello,
2012/4/4 gregolsen (Innokenty Mikhailov) <anotheroneman@yahoo.com>:
> Here's the new patch attached - problem, mentioned by Yusuke Endoh, fixed - now I'm creating a new copy of enumerator on each lazy method call.
Oka... -
07:41 PM Feature #6183: Enumerator::Lazy performance issue
- Here's the new patch attached - problem, mentioned by Yusuke Endoh, fixed - now I'm creating a new copy of enumerator on each lazy method call.
Also I fixed an error for big arrays - forgot to gc_mark procs array.
Thomas, that's the ... -
09:14 PM Feature #6253 (Assigned): Implement a way to pass keyword options to curried procs
- Hello,
2012/4/4 jballanc (Joshua Ballanco) <jballanc@gmail.com>:
> The example below demonstrates a Rack-like system where a curried proc is passed to a helper, then after partial application of the arguments, the returned curried pr... -
02:27 PM Feature #6253 (Rejected): Implement a way to pass keyword options to curried procs
- =begin
(See original discussion in issue #4610)
With the introduction of keyword arguments in Ruby 2.0, it would be useful to have a way to set a keyword-based option on a curried proc. The example below demonstrates a Rack-like syst... -
06:23 PM Bug #6249: Process.exec doesn't restore the environment if it fails
- 2012/4/3 john_firebaugh (John Firebaugh) <john.firebaugh@gmail.com>:
>>> ENV["foo"]
> => nil
>>> Process.exec({"foo" => "bar"}, "nonexistent")
> Errno::ENOENT: No such file or directory - nonexistent
> from (irb):2:i... -
12:49 PM Revision 3f443e61 (git): Use mount_proc to avoid the delay of writing data to files.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:40 AM Feature #6243 (Rejected): Make ERB Ruby's Super Power
- Closing since April 1st has completed. :-)
-
11:11 AM Feature #5779: Ruby-FTP - allow easy way to find out whether a remote target is a file or a directory
- RFC 3659 extends ftp with MLST, the command to show the detail of directories,
but it is not widely implemented yet. -
09:29 AM Revision 79086bb4 (git): merge revision(s) 34897,34904,34906,34931:
- Old linux (at least CentOS 5.6, kernel 2.6.18) wakes up 4.99 sec.
* test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): syntax error.
* test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): call uname
only on l... -
09:15 AM Feature #2080: Proc#to_source, Method#to_source
- Still looking forward to this feature request :)
-
07:58 AM Revision 223e0212 (git): Sleep 0.5sec to wait the file is written on server.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:10 AM Revision 7865005f (git): * lib/ftp/ftp.rb (Net::FTP#close): restore original read_timeout.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:01 AM Revision f0cd9107 (git): * variable.c (mark_global_entry): remove unused variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:21 AM Revision f9b8e21f (git): fix typo in r35183
- * variable.c (mark_global_entry): fix typo in r35183.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:33 AM Revision 5374e6b2 (git): * version.h (RUBY_PATCHLEVEL): bump.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:32 AM Revision 29f5f952 (git): * 2012-04-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:32 AM Revision a5064ff1 (git): * ext/-test-/add_suffix/bug.c: make all functions in util.c static
- to get rid of multiple definitions. reported at
https://trac.macports.org/ticket/33814
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 AM Revision 096ffa2a (git): * lib/ftp/ftp.rb (Net::FTP#close): ignore exceptions from shutdown and
- read on closing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:56 AM Bug #6252 (Rejected): OpenSSL - ECDSA signature reliability
- =begin
The snippet code attached shows ECDSA signature test with secp160r1 curve.
Given:
* ((|msg|)) a message with length <= 20,
* ((|sig|)) the ECDSA signature of ((|msg|))
* ((|tamp|)), a string,
Then ((|sig|)) can be succes...
04/03/2012
-
10:44 PM Bug #6131: Ctrl-C handler do not work from exec process (Windows)
- nobu (Nobuyoshi Nakada) wrote:
> Should be 'new_process_group: true' or similar, at least.
How about `new_pgroup: true`? `:pgroup` option already exists and this is alike pgroup.
I created a patch attached.
- remove CREATE_NEW_PR... -
10:25 PM Feature #6183: Enumerator::Lazy performance issue
- In response to #6250, wouldn't the simplest implementation be to return a new Lazy Enumerator for each lazy call?
See https://github.com/rubyworks/facets/blob/master/lib/core/facets/denumerable.rb for the basic idea.
Maybe storing ... -
08:14 PM Feature #6183: Enumerator::Lazy performance issue
- That's because each time you mapping lazy enumerator another proc objected added to procs array, so in your example you effectively mapping 3 times.
I should return new enumerator object rather than modifying existing one while calling ... -
06:29 PM Feature #6183: Enumerator::Lazy performance issue
- Hello,
matz (Yukihiro Matsumoto) wrote:
> Nobu, could you review the patch? And if you don't see any problem, check it in?
I didn't read the patch, but I found a weird behavior.
I think the approach is interesting, though.
... -
05:47 PM Feature #6183 (Assigned): Enumerator::Lazy performance issue
- Nobu, could you review the patch? And if you don't see any problem, check it in?
Matz.
-
05:43 PM Feature #6183: Enumerator::Lazy performance issue
- =begin
Finally come up with a concrete idea how to "fix" (based on my first PR https://github.com/ruby/ruby/pull/100).
The idea is to keep all blocks (passed with lazy methods like map or select) as (({Proc})) objects inside the enum... -
10:22 PM Bug #6250: Enumerator::Lazy performance increased
- In response to #6250, wouldn't the simplest implementation be to return a new Lazy Enumerator for each lazy call?
See https://github.com/rubyworks/facets/blob/master/lib/core/facets/denumerable.rb for the basic idea.
Maybe storing ... -
06:36 PM Bug #6250 (Rejected): Enumerator::Lazy performance increased
- #6183 is reopened now. Please discuss it in that ticket. Thanks,
--
Yusuke Endoh <mame@tsg.ne.jp> -
05:52 PM Bug #6250 (Rejected): Enumerator::Lazy performance increased
- =begin
I'm terribly sorry but it seems that I can't reopen existing issue (https://bugs.ruby-lang.org/issues/6183), so here's the new one:
Finally come up with a concrete idea how to "fix" lazy enumerator performance (based on my fir... -
07:30 PM Revision 58a9bf0c (git): Don't call f.close if f is nil or already closed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:24 PM Revision d3740044 (git): * 2012-04-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:24 PM Revision bc2ece6c (git): * lib/ftp/ftp.rb (Net::FTP#close): close socket more gracefully.
- * lib/ftp/ftp.rb (Net::BufferedSocket#shutdown): added.
* test/net/ftp/test_ftp.rb (FTPTest#create_ftp_server): wait socket
with shutdown and read.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35227 b2dd03c8-39d4-4d8f-98ff-823fe... -
07:08 PM Bug #6213: Builder::XmlMarkup drops html_safe
- =begin
"metadata" in builder-3.0.0.gem contains:
authors:
- Jim Weirich
email: jim@weirichhouse.org
homepage: http://onestepback.org
=end
-
04:09 PM Bug #6213: Builder::XmlMarkup drops html_safe
- eike.rb (Eike Dierks) wrote:
> you're probably right that this is in a third party gem,
> ...
Why don't you google it? -
02:07 PM Bug #6213: Builder::XmlMarkup drops html_safe
- shyouhei (Shyouhei Urabe) wrote:
> I guess it is the builder gem.
Hi Shyouhei,
you're probably right that this is in a third party gem,
but the xml builder is quite a central gem.
so you might want to give me some advice,
to whom I'd sh... -
06:41 PM Feature #6251 (Assigned): Magic comments for compile options
-
06:20 PM Feature #6251 (Feedback): Magic comments for compile options
- Currently, compile options can be set by RubyVM::InstructionSequence.compile_option=.
However, it takes effect only on code compiled after the options are set.
So, how about to add new magic comments for compile options?
For example... -
06:33 PM Bug #6169 (Closed): Compile error "implicit declaration of function 'ruby_setreuid'", "'ruby_setregid'"
- This issue was solved with changeset r35221.
Ted, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* process.c (setreuid, setregid): suppress warnings.
[ruby-core:... -
06:03 PM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- Hello,
jballanc (Joshua Ballanco) wrote:
> I very much like the proposal for a Proc#pass_option method. Should this be reopened or shall I file a separate bug for the implementation of Proc#pass_option?
It would be good to open an... -
04:54 PM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- =begin
I have just tried with 2.0 and keyword args, and I think the situation is now more confusing. Now, if one wants to pass alternate values for optional arguments, the only way to do so it with the last call like so:
>> l = -... -
12:18 AM Feature #4610 (Rejected): Proc#curry behavior is inconsistent with lambdas containing default argument values
- Hello,
I don't think it is a good idea to solve the original problem by using Proc#curry.
And I like the current behavior of Proc#curry. It is simple and straightforward.
jballanc (Joshua Ballanco) wrote:
> proc {|x, y, z, *re... -
02:30 PM Revision d7655cc2 (git): * test/mkmf/base.rb (TestMkmf#setup): remove uninitialized global variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:30 PM Revision 5c67392c (git): * test/mkmf/base.rb (TestMkmf#teardown): remove meaningless assertion.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:20 PM Feature #4264: General type coercion protocol for Ruby
- I really don't see how this can be about the "light" conversions, to_a, to_i, to_s, etc. It only makes sense to me as being for the strict conversions to_ary, to_int, to_str. Why? Because many different methods can result in array, integ...
-
07:59 AM Feature #4264: General type coercion protocol for Ruby
- Hello,
Thank you, but still I'm not sure...
If we are writing the following code:
class Foo
def to_a
...converting Foo to Array...
end
end
class Bar
def to_a
...converting Bar to A... -
03:52 AM Feature #4264: General type coercion protocol for Ruby
- Oh, I just noticed that attachment is actually from earlier in the conversion.
-
03:50 AM Feature #4264: General type coercion protocol for Ruby
- This may be of some interest to the conversation:
http://rubyworks.github.com/platypus/
It includes a derivation of typecast system originally developer by Jonas Pfenniger. Interestingly I came across this too:
http://bugs.rub... -
02:14 AM Feature #4264: General type coercion protocol for Ruby
- Mostly I'd like to see some consistency in coercion supported by a base protocol in Ruby itself.
The rough proposal was that BasicObject could have something like #convert_to(cls) that attempts to call a conversion method on the targe... -
11:15 AM Bug #6246: 1.9.3-p125 intermittent segfault
- Aaron, I ran a valgrind as follows:
valgrind /home/deploy/.rvm/rubies/ruby-1.9.3-p125/bin/ruby -Iext:test /home/deploy/.rvm/gems/ruby-1.9.3-p125@boogala/bin/bundle exec rake RAILS_ENV=new_staging assets:precompile
the results are ... -
10:29 AM Bug #6246: 1.9.3-p125 intermittent segfault
- yes please - never used valgrind but will learn.
thanks -
07:53 AM Bug #6246: 1.9.3-p125 intermittent segfault - On Tue, Apr 03, 2012 at 04:22:04AM +0900, jshow (Jodi Showers) wrote:
>
> Issue #6246 has been reported by jshow (Jodi Showers).
>
> ----------------------------------------
> Bug #6246: 1.9.3-p125 intermittent segfault
> https:... -
04:22 AM Bug #6246 (Closed): 1.9.3-p125 intermittent segfault
- I've seen this behavior in 1.9.3p0 and 1.9.3p125
Intermittently, a rails 3.2 rake task will break while compiling assets - about 1 in 10 runs will segfault. Our code is 10K's of lines of proprietary code. I am working on a simplified ... -
10:18 AM Bug #6214 (Closed): warnings on inspect for Enumerator objects if $VERBOSE
- This issue was solved with changeset r35218.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enumerator.c (inspect_enumerator): suppress uninitialized
... - 10:03 AM Revision 995d212a (git): * test/net/ftp/test_ftp.rb (FTPTest#create_ftp_server): should wait
- a little before closing socket because if the client call
Net::FTP#getmultiline the socket is suddenly closed by the server in
the getline loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35224 b2dd03c8-39d4-4d8f-98ff-823fe6... -
09:41 AM Revision 9102ee7b (git): * test/mkmf: remove generated files and ensure nothing left.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:34 AM Revision 65d88f94 (git): merge revision(s) 35221:
- * process.c (setreuid, setregid): suppress warnings.
[ruby-core:43374][Bug #6169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:33 AM Revision ca512bda (git): * process.c (setreuid, setregid): suppress warnings.
- [ruby-core:43374][Bug #6169]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:06 AM Bug #6249 (Closed): Process.exec doesn't restore the environment if it fails
- >> ENV["foo"]
=> nil
> ...
Errno::ENOENT: No such file or directory - nonexistent
from (irb):2:in `exec'
from (irb):2
from /Users/john/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>'
>> ENV["foo"]
=> "bar"
I expected that... -
08:05 AM Bug #6248 (Third Party's Issue): Truncation of log when null character included in stream
- =begin
Seems to be an issue of syslog(), not ruby:
$ cat t.c
#include <syslog.h>
#include <stdarg.h>
int main() {
openlog("test", LOG_PID, LOG_USER);
syslog(LOG_DEBUG, "%s", "hello\0world");
ret... -
06:00 AM Bug #6248 (Third Party's Issue): Truncation of log when null character included in stream
- require 'syslog'
Syslog.open("n")
Syslog.info("everything is normal and fine\0 additional message")
This results in the following log message.
example n[9270]: everything is normal and fine
-
05:57 AM Bug #6247 (Closed): Range not checked for day of year
- File: strftime.c
case 'j': /* day of the year, 001 - 366 */
FMT('0', 3, "d", vtm->yday);
continue;
The range for the vtm->yday function is not checked as many of the other values are before formatting. The end result allow... -
05:12 AM Feature #6243: Make ERB Ruby's Super Power
- @kernigh You actually tried it!? Sweet!
Looking it over the error was probably b/c the first `<%=` should not have the `=`.
Of course this was for April Fool's Day. As your code shows Ruby is quite capable of meta-programming witho... -
04:43 AM Feature #6243: Make ERB Ruby's Super Power
- =begin
The original poster's code (for ERB) fails with SyntaxError.
This code (for plain Ruby) works:
class Letters
('a'..'z').each do |letter|
result = letter.upcase + letter
define_method(letter) { result }
en... -
04:31 AM Feature #6245: "is_integer?" method declaration in prelude
- They want it, i write it. Sorry if i have a fault.
http://whynotwiki.com/Ruby_/_Problems#String.23is_type.3F
aprescott (Adam Prescott) wrote:
> On Mon, Apr 2, 2012 at 19:58, regularlambda (Mahmut Bulut) <
> ...
-
04:23 AM Feature #6245: "is_integer?" method declaration in prelude
- On Mon, Apr 2, 2012 at 19:58, regularlambda (Mahmut Bulut) <
mahmutbulut0@gmail.com> wrote:
> Dear Rubyists, can we add "is_integer?" method to our core for main
> purposes of checking integerITY?
>
is_foo? isn't idiomat... -
03:58 AM Feature #6245 (Rejected): "is_integer?" method declaration in prelude
- Dear Rubyists, can we add "is_integer?" method to our core for main purposes of checking integerITY?
I add it to "golf_prelude.rb" below of "to_a" stub.
https://github.com/ruby/ruby/pull/112
https://github.com/ruby/ruby/pull/112.p... -
04:27 AM Revision 31bd33a6 (git): Revert r35180; the fix break the test. see [ruby-dev:30653]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:53 AM Feature #6244 (Rejected): Removal of some unused functions from /ext/json/fbuffer/fbuffer.h
- I saw there are some not used function calls in /ext/json/fbuffer/fbuffer.h
I opened an issue about this extra code tremendously :O
This is it:
http://github.com/ruby/ruby/pull/113
and like a PATCH:
http://github.com/ruby/ruby... -
03:23 AM Feature #5455: $SAFE should be removed
- Hi,
In message "Re: [ruby-core:44062] [ruby-trunk - Feature #5455] $SAFE should be removed"
on Mon, 2 Apr 2012 17:43:47 +0900, "nahi (Hiroshi Nakamura)" <nakahiro@gmail.com> writes:
|> I don't know why you are so eager t... -
02:59 AM Feature #5455: $SAFE should be removed
- Hi,
In message "Re: [ruby-core:44075] [ruby-trunk - Feature #5455] $SAFE should be removed"
on Tue, 3 Apr 2012 02:07:15 +0900, "headius (Charles Nutter)" <headius@headius.com> writes:
|A deprecation warning would be good... -
02:07 AM Feature #5455: $SAFE should be removed
- A deprecation warning would be good in any case.
Is it the position of ruby-core/MRI/Matz that $SAFE should be used for security purposes? There are a number of Rubyists (not to mention content in some Ruby books) that claim this.
... -
01:24 AM Revision b30aa267 (git): initialize IDs in advance.
- * enumerator.c (Init_Enumerator): initialize IDs in advance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:18 AM Revision 63e8110b (git): * enumerator.c (inspect_enumerator): suppress uninitialized
- instance variable warnings. [ruby-dev:45449][Bug #6214]
patched by no6v (Nobuhiro IMAI).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e