Activity
From 04/19/2011 to 04/25/2011
04/25/2011
-
11:59 PM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- =begin
Appologies for the formatting mistakes...
If I curry a lambda with 3 arguments, then I can call three times with one argument each time to get the desired results:
ruby-1.9.2-p180 :001 > l = ->(a, b, c) { puts "#{a}, #{b}... -
11:56 PM Feature #4610 (Rejected): Proc#curry behavior is inconsistent with lambdas containing default argument values
- If I curry a lambda with 3 arguments, then I can call three times with one argument each time to get the desired results:
ruby-1.9.2-p180 :001 > l = ->(a, b, c) { puts "#{a}, #{b}, #{c}" }
#<Proc:0x00000100963650@(irb):1 (lambda)>
r... -
11:56 PM Feature #4601: Re-ordering method parameters.
- =begin
You can already do something similar with Method#to_proc and Proc#curry:
class Foo
def bar(a, b, c)
puts "a is #{a}"
puts "b is #{b}"
puts "c is #{c}"
end
end
f = Foo.new
m = f.method(:bar)
... -
11:23 PM Bug #4603: lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT - =begin
On Sun, Apr 24, 2011 at 11:29 PM, NARUSE, Yui <naruse@airemix.jp> wrote:
> Ah, sorry, that commit message doesn't explain the intention.
> It is for IO-like object which doesn't have encoding method, for
> example Zlib::... -
04:16 PM Bug #4603: lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT - =begin
On Sun, Apr 24, 2011 at 1:33 AM, yu nobuoka <nobuoka@r-definition.com>wrote:
> The document of CSV::read says "This method also understands an additional
> :encoding parameter that you can use to specify the Encoding of th... -
01:39 PM Bug #4603: lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT
- =begin
=end
-
01:38 PM Bug #4603: lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT
- =begin
2011/4/25 James Gray <james@graysoftinc.com>:
> On Sun, Apr 24, 2011 at 1:33 AM, yu nobuoka <nobuoka@r-definition.com>
> wrote:
>>
>> The document of CSV::read says "This method also understands an additional
>> :encoding pa... -
09:07 AM Bug #4603 (Assigned): lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT
- =begin
=end
- 09:45 PM Revision 82c771fe (git): * 2011-04-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:45 PM Revision 73868a54 (git): * ext/openssl/extconf.rb: Should check SSLv2_*method.
- openssl compiled with "no-ssl2" the extconf don't fail
when running `make' having this compilation errors.
Patched by Laurent Arnoud. fixes #4562, #4556
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31346 b2dd03c8-39d4-4d8f-98... -
09:14 PM Bug #4596 (Closed): Process.kill doesn't accept pid 0 (win32)
- =begin
=end
-
08:45 PM Bug #4596 (Open): Process.kill doesn't accept pid 0 (win32)
- =begin
:KILLを与えた場合に、WindowsでのエミュレーションではESRCH(No Such process)になることを考慮していなかった。
0を認めるのは、:INTに限定するように修正が必要。
=end
-
08:04 PM Bug #4596 (Closed): Process.kill doesn't accept pid 0 (win32)
- =begin
This issue was solved with changeset r31344.
Akio, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/win32.c (kill): accept 0 as pid, fixes #4596
=end
-
10:19 AM Bug #4596 (Assigned): Process.kill doesn't accept pid 0 (win32)
- =begin
とりあえず記憶に何もないので、変えちゃっていいと思います。
artonさんよろしく。
=end
-
07:37 PM Feature #4602: naming ruby dll (win32/64)
- =begin
>そんな地雷踏みに行かんでも、と思ったりはしますが...
まだ、ここは地雷ではありませんでした……
というのはともかく、
> ...
提案しておいてなんですが、私も、この案がベターに思います。
が、Makefile.subのマクロ組み合わせにうまく合わせようとすると
!if アークテクチャがx64なら
RUBY_SO_NAME = $(RT)-$(RUBY_BASE_NAME)64$(MAJOR)$(MINOR)$(TEENY)
!else
... -
10:25 AM Feature #4602: naming ruby dll (win32/64)
- =begin
そんな地雷踏みに行かんでも、と思ったりはしますが...
えーと、他プラットフォームだと、たしかRUBY_SO_NAMEはprefixやsuffixによっては変えられなくて、transformは効く、とかでしたよね。
なんでそれで問題が起きないのかというと、異なるarchであれば(共有)ライブラリは異なるディレクトリにインストールされるのが当然だからだと思います。
でと、Windowsだとどうするのがいいのかなあ。
RUBY_SO_NAMEを... -
03:34 PM Feature #3719: open-uri should allow redirects from http to https
- =begin
I'm still seeing this issue. I like the way this patch works, allowing redirection from http to https but not the other way.
What needs to happen for this to be applied?
=end
-
01:20 PM Bug #4609 (Rejected): String#rpartition(regexp) has bug, when regexp contains quantifier
- =begin
For example:
str = "abc123def456ghi"
ary1 = str.partition(/\d+/)
ary2 = str.rpartition(/\d+/)
p ary1 #=> ["abc", "123", "def456ghi"]
p ary2 #=> ["abc123def45", "6", "ghi"]
What I expected is: ary2 is ["abc123de... -
12:11 PM Revision 333e43e0 (git): * win32/win32.c (kill): accept 0 only sig is SIGINT #4596
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:28 AM Bug #4599 (Closed): Ripper.sexpのコメント
- =begin
This issue was solved with changeset r31342.
Sho, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/ripper/lib/ripper/sexp.rb: fix rdoc arround sexp.
p... -
11:04 AM Revision 83e07170 (git): * win32/win32.c (kill): accept 0 as pid, fixes #4596
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:54 AM Bug #4600 (Assigned): date/date_parse.c errors are breaking MinGW build
- =begin
=end
-
08:28 AM Feature #4605 (Closed): Random#randとKernel#randでRangeを扱えるように
- =begin
r31340 でmrknさんのパッチがコミットされたようなのでcloseします。
また、それに対するrdocを r31341 でコミットしました。
=end
-
03:23 AM Feature #4605: Random#randとKernel#randでRangeを扱えるように
- =begin
まつもと ゆきひろです
In message "Re: [ruby-dev:43431] [Ruby 1.9 - Feature #4605] Random#randとKernel#randでRangeを扱えるように"
on Sun, 24 Apr 2011 22:48:59 +0900, Kenta Murata <muraken@gmail.com> writes:
|Issue #4605 has been upda... -
07:56 AM Revision 63f39fcb (git): * random.c (random_rand): remove unused variables.
- * struct.c (rb_struct_define_without_accessor): ditto.
* strftime.c (rb_strftime_with_timespec): ditto.
* sprintf.c: ditto.
* time.c (time_asctime): remove useless GetTimeval().
* thread_pthread.c: cast to (void *) for %p.
git-svn-i... -
05:33 AM Feature #4189: FileUtils#ln_r
- =begin
GNU cp has the -l option, so I think the proposed method is similiar to "cp -lr" on Linux systems.
=end
-
04:23 AM Feature #4102: Proposal for 'let'. A new approach using block-defaults in 1.9
- =begin
You can use begin/end-blocks or #tap:
# Begin
def fnames
@fnames ||= begin
hash = Hash.new { |h,k| k = k.to_s; h[k] = generate_fname(k) }
def hash.[](key)
super(key.to_s)
... -
04:08 AM Bug #4608 (Third Party's Issue): Ctrl-c to interrupt script causes hang and 100% cpu's core load
- =begin
I have got this bug after updating Ubuntu from 10.10 to 11.04 Beta.
Using shell commands like `echo anything` causes hang and 100% cpu's core load, if during downloading a file you press ctrl-c to interrupt.
Without using shell... -
02:28 AM Revision 7c885222 (git): * ext/ripper/lib/ripper/sexp.rb: fix rdoc arround sexp.
- patched by Sho Hashimoto. fixes #4599
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:30 AM Bug #4564: mingw-w64, truncate, ftruncate and ftello -- properly evalute it's existence
- =begin
Thank you Nobu,
Dunno how I missed this detail.
Please revert this until I provide a proper patch that consistently uses ftruncate64.
=end
-
12:16 AM Feature #4607 (Closed): benchmark/bm_vm3_thread_mutex.rb の性能改善
- =begin
以下のようなmutexを取り合うプログラムが1.8.x と比べると1.9.xは有為に遅いです
bm_vm3_thread_mutex.rb
---------------------------------
require 'thread'
m = Mutex.new
r = 0
max = 1000
(1..max).map{
Thread.new{
i=0
while i<max
i+=1
... -
12:09 AM Bug #4606 (Closed): Regression of __method__ on 1.9
- =begin
As found on:
http://stackoverflow.com/questions/5129798
class Testing
[:one, :two].each do |name|
define_method(name) do
puts __method__
end
end
end
t = Testing.new
t.one # => two
...
04/24/2011
-
11:25 PM Revision b5909efd (git): * random.c (rb_f_rand, random_s_rand): RDocs for them.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:48 PM Feature #4605: Random#randとKernel#randでRangeを扱えるように
- =begin
そういえば [ruby-list:48013] では整数の Range だけなら反対しないと言っていた私ですが、
作った patch では Range に対する処理を Random#rand のものを流用したので
浮動小数点数の Range でも受け付けています。
[ruby-list:48013] で整数にこだわっていた理由は、Kernel#rand に引数を与えると整数を返す仕様を維持したほうが良いと考えたからなんですが、
Range 対応... -
10:42 PM Feature #4605: Random#randとKernel#randでRangeを扱えるように
- =begin
sora さんとは独立に私も修正案を作りました。参考にしてください。
https://gist.github.com/939556
Random.rand は Random::DEFAULT.rand と同じものに変更してあります。
=end
-
10:27 PM Feature #4605: Random#randとKernel#randでRangeを扱えるように
- =begin
とりあえずパッチこんな感じでしょうか。
ドキュメントはとりあえずコピペして弄りましたが、英語的な意味で不安なので適切指摘をください。
=end
-
10:09 PM Feature #4605: Random#randとKernel#randでRangeを扱えるように
- =begin
すみません、書式が崩れたので貼り直します
Random#randとKernel#randで引数としてRangeを扱えるようにしてほしいです。
Random#randは引数にInteger, Float, Rangeを扱うことができるのに対し、
Kernel#rand, Random.randではIntegerしか扱うことができません。
rand 10 #=> 7
rand 7.5 ... -
10:04 PM Feature #4605 (Closed): Random#randとKernel#randでRangeを扱えるように
- =begin
Random#randとKernel#randで引数としてRangeを扱えるようにしてほしいです。
Random#randは引数にInteger, Float, Rangeを扱うことができるのに対し、Kernel#rand, Random.randではIntegerしか扱うことができません。
rand 10 #=> 7
rand 7.5 #=> 4
rand 10..... - 10:27 PM Revision 2aeb3b47 (git): * random.c (random_s_rand, Init_Random): Random.rand should behave as
- Random::DEFAULT.rand rather than Kernel#rand.
* random.c (rand_range, random_rand): rand_range function extracted
from random_rand function.
* random.c (rb_f_rand): accept a Range argument as Random#rand
[ruby-dev:43427] #4605
git-s... - 06:31 PM Revision 03697bc1 (git): * lib/time.rb: require 'date'.
- * ext/date/lib/date/format.rb: removed require line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 06:09 PM Revision fd93bad8 (git): * ext/date/lib/date/format.rb: require 'date'.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 06:07 PM Revision 9f103e65 (git): * ext/date/lib/date/format.rb (_iso8601): added a pattern.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:04 PM Revision f3551c04 (git): * ext/date/lib/date/format.rb: require 'date_core.so'.
- date/format needs methods which are now in date_core.so.
This breaks make rdoc which uses Date._parse from time.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:48 PM Revision b7133cc6 (git): * ext/date/lib/date/format.rb: fixed a bug of regex.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:13 PM Revision 2115af3a (git): * ext/date/lib/date/format.rb: an adjustment of regex.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:00 PM Revision 60c7967e (git): * ext/date/lib/date/format.rb: omitted to call _parse.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:04 PM Revision 0c1d2a0a (git): * 2011-04-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:04 PM Revision 8ff8d619 (git): * string.c (rb_to_id): remove unused variable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:33 PM Bug #4603 (Closed): lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT
- =begin
This issue is involved in three methods, CSV::open, CSV::read and CSV::foreach.
The document of CSV::read says "This method also understands an additional
:encoding parameter that you can use to specify the Encoding of the d... -
03:07 PM Feature #4102: Proposal for 'let'. A new approach using block-defaults in 1.9
- =begin
Here's an example I just encountered where #let (a self executing proc) would have been useful. Here's a method I've just defined in a project I'm working on, including how that same method would look with #let.
http://pastie.o... - 01:24 PM Revision 14491f13 (git): * complex.c, rational.c: omitted some method calls.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:01 PM Feature #4539: Array#zip_with
- =begin
I think it's worth having Enumerable#zip_with as a new public method. zip_with is the generalization of zip (you can define zip = zipWIth (,) in Haskell). Because zip_with can be implemented directly via inject, it's possible to p... -
12:20 PM Bug #4564 (Open): mingw-w64, truncate, ftruncate and ftello -- properly evalute it's existence
- =begin
Since ftruncate and truncate on mingw use int32_t and are useless at all, so this change causes failures to handle over 2GB files.
I'll revert this and succeeding changes or fix to use ftruncate64 instead.
=end
-
03:35 AM Feature #4602 (Closed): naming ruby dll (win32/64)
- =begin
同一ディレクトリへwin32版rubyとwin64版rubyをインストールしようとしてdll名が競合したので気付いたのですが、
MSWin版Rubyは、本体がDLLで、かつ、DLL名にconfigureで指定したprogram-suffixやprogram-prefixが反映されない
ため、同一ディレクトリへのインストールができません。
Windows版ではファイルは分離しているものの、exeとdllは不可分なので(dllへの分離は組み込み用の利便...
04/23/2011
-
10:52 PM Feature #4601 (Closed): Re-ordering method parameters.
- =begin
In my attempt to make an old gem (merb-action-args) work with MRI 1.9.2, Rubinius, and other implementations that depend on Method#parameters to retrieve a description of parameters, I hit a roadblock (the core reason is that it ... -
10:50 PM Bug #4600 (Closed): date/date_parse.c errors are breaking MinGW build
- =begin
Hello,
Recent commits to ext/date/date_parse are breaking the MinGW build. As revision 31323:
make[2]: Entering directory `/c/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/ruby19_build/ext/date'
generating date_core-... -
10:23 PM Feature #3131: add Kernel#Hash() method like Kernel#Array()
- =begin
Hi,
In message "Re: [ruby-core:35857] [Ruby 1.9 - Feature #3131] add Kernel#Hash() method like Kernel#Array()"
on Sat, 23 Apr 2011 08:52:12 +0900, Suraj Kurapati <sunaku@gmail.com> writes:
|Integer() and Float() i... -
08:52 AM Feature #3131: add Kernel#Hash() method like Kernel#Array()
- =begin
Integer() and Float() in Ruby 1.9.2 raise TypeError and ArgumentError:
$ irb
## ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
>> Float(nil)
TypeError: can't convert nil into Float
from (irb):6:in `Float'
... - 05:59 PM Revision bedb18f2 (git): * ext/date/date_parse.c (n2i): takes long.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:51 PM Revision 4116d8a3 (git): * ext/date/date_parse.c: reverted.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:38 PM Bug #4597 (Rejected): YAML doesn't consider tab stops as whitespace in mappings
- =begin
You may know Syck is YAML 1.0, and Psych (libyaml) is 1.1.
=end
-
03:34 AM Bug #4597: YAML doesn't consider tab stops as whitespace in mappings
- =begin
Okay, I just realized that only the latest YAML specification, 1.2, allows tabs there, while older ones do not. And as far as I know, Ruby's YAML parser doesn't support the 1.2 specification... I guess that makes this bug report i... -
01:15 AM Bug #4597 (Rejected): YAML doesn't consider tab stops as whitespace in mappings
- =begin
The YAML specification states that in a mapping (aka Hash in Ruby), the mapping value indicator (":") has to be separated from the value by white space (see quotation [1]). The YAML specification also states, that white space is ... -
05:34 PM Revision 60aa9c80 (git): * include/ruby/intern.h: pcc can't use __builtin_constant_p.
- * vm_exec.c: change condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:34 PM Revision c34db589 (git): * ext/date/date_core.c (leap_p): surpress warning: parentheses.
- * ext/date/date_core.c (date_s__parse_internal): remove unused
variable "str".
* ext/date/date_parse.c (parse_ddd_cb): use RSTRING_LENINT.
* ext/date/date_strftime.c (date_strftime_with_tmx): remove unused
variable.
git-svn-id: sv... -
03:43 PM Bug #4599: Ripper.sexpのコメント
- =begin
パッチを間違えたので、添付しなおします(ファイルの保存をしていませんでしたorz)。すみません。
=end
-
03:39 PM Bug #4599 (Closed): Ripper.sexpのコメント
- =begin
Ripper.sexp のコメントが Ripper.sexp_raw のものになってしまっているようです。おそらく r8841 で Ripper.sexp_raw が追加された時にコメントの移動を忘れてしまったのではないかと思います。
もう少し検討してもいいかもしれませんが、r8841 の svn log を元に「Returns more readable tree rather than Ripper.sexp_raw.」という行と結果だけ変更した... - 03:35 PM Revision 5c0a69a6 (git): * 2011-04-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:35 PM Revision 05b3bd27 (git): * ext/date/date_parse.c: removed some unused macros. use strchr()
- instead of index().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:31 PM Revision 37cfdf9f (git): * 2011-04-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:31 PM Revision 448e0d66 (git): * ext/date/date_core.c: replacement of implementation of
- _parse. [experimental]
* ext/date/date_parse.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _parse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:10 AM Bug #4421: [ext/openssl] Fix RSA public key encoding
- =begin
Hi Yui,
Yes, I'd love to contribute and I would really appreciate it!
=end
-
01:54 AM Feature #4598 (Closed): Net::SMTP should raise more helpfully when mail can't send
- =begin
Net::SMTP, in function check_continue? (line 952) raises "could not get 3xx (STATUS_CODE)" when it receives anything except a 300-399 (continue) code from the SMTP server. This is *extremely* unhelpful for users of the library, ...
04/22/2011
-
10:23 PM Bug #4596: Process.kill doesn't accept pid 0 (win32)
- =begin
まつもと ゆきひろです
シンガポールはネットが細い気が。
In message "Re: [ruby-dev:43421] [Ruby 1.9 - Bug #4596][Open] Process.kill doesn't accept pid 0 (win32)"
on Fri, 22 Apr 2011 21:52:22 +0900, Akio Tajima <artonx@yahoo.co.jp> writes:
... -
10:23 PM Bug #4596: Process.kill doesn't accept pid 0 (win32)
- =begin
まつもと ゆきひろです
シンガポールはネットが細い気が。
In message "Re: [ruby-dev:43421] [Ruby 1.9 - Bug #4596][Open] Process.kill doesn't accept pid 0 (win32)"
on Fri, 22 Apr 2011 21:52:22 +0900, Akio Tajima <artonx@yahoo.co.jp> writes:
... -
09:52 PM Bug #4596 (Closed): Process.kill doesn't accept pid 0 (win32)
- =begin
MSWin32版Rubyで、Process.killにpidとして0を指定するとEINVALとなります。
この動作は、以下の理由からバグだと思いますが、何か事情があるのでしょうか?
バグと考える理由)
1. Process.killにpidとして0を指定することは認められている。
るりま(http://doc.okkez.net/static/192/class/Process.html)でもおそらくAPIの元となったkill(2)でも、pidとし... -
06:35 PM Bug #4421: [ext/openssl] Fix RSA public key encoding
- =begin
Hi, Martin,
We don't have enough resource and knowledge about ext/openssl. So do you need a commit bit?
If you want, please express it; and after the approval of matz, you can commit to our repo.
(of course, before a commi... -
03:23 PM Bug #4562: [pull requested] ./config no-ssl2で作ったopensslとext/opensslが混ざらない
- =begin
前田です。
2011年4月21日14:51 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
>> 他の問題もそうなんですが、現状 ext/openssl はメンテナがいないため、
>> 明白なバグはしょうがないから直すものの、そうでないものは放置されがちになっています。
>> この状況はつまりメンテナに誰かがなればいいのですが、岩松さんがなりませんか。
>> [[ruby:DeveloperHowtoJa... -
03:23 PM Bug #4562: [pull requested] ./config no-ssl2で作ったopensslとext/opensslが混ざらない
- =begin
前田です。
2011年4月21日14:51 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
>> 他の問題もそうなんですが、現状 ext/openssl はメンテナがいないため、
>> 明白なバグはしょうがないから直すものの、そうでないものは放置されがちになっています。
>> この状況はつまりメンテナに誰かがなればいいのですが、岩松さんがなりませんか。
>> [[ruby:DeveloperHowtoJa... -
01:35 PM Revision d5b4cf7f (git): Use Float#finite?.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:16 PM Feature #4189: FileUtils#ln_r
- =begin
FYI
X11 distribution has lndir command, it creates real directories and file symlinks though.
=end
-
01:03 PM Feature #4189: FileUtils#ln_r
- =begin
Since ln command does not have -r option, I am kind of hesitating to add ln_r. I understand usefulness of the method. But I am not sure yet where to add (is fileutils the best place?), and what to add (is ln_r the best name for ... -
12:13 PM Feature #4189 (Assigned): FileUtils#ln_r
- =begin
=end
-
12:12 PM Feature #4595 (Closed): TkPhotoImage documentation
- =begin
以下のような pull request が来ています。
I have documented some method from TkPhotoImage, based on the original Tcl/Tk docs.
https://github.com/ruby/ruby/pull/9
=end
-
11:41 AM Bug #4594 (Rejected): Don't depend on extension automagic
- Extensions in ruby are built automatically by what is found at compile time, this is bad as dependencies won't be tracked w.r.t package managers (yum, etc).
Also ext/Setup as per README reads as if extensions are built based on what i... -
11:00 AM Feature #4593 (Rejected): xmlrpc does not support bigdecimal
- =begin
=end
-
10:59 AM Feature #4593: xmlrpc does not support bigdecimal
- =begin
Hi,
On 2011年4月22日金曜日 at 1:47, Alex Tambellini wrote:
> XMLRPC does not support bigdecimal.
>
> See my pull request here to add support for bigdecimal type to xmlrpc library:
>
> https://github.com/ruby/ruby/pull/... -
01:57 AM Feature #4593: xmlrpc does not support bigdecimal
- =begin
=end
-
01:45 AM Feature #4593: xmlrpc does not support bigdecimal
- =begin
This would apply to 1.8 and 1.9.
=end
-
01:44 AM Feature #4593 (Rejected): xmlrpc does not support bigdecimal
- =begin
XMLRPC does not support bigdecimal.
See my pull request here to add support for bigdecimal type to xmlrpc library:
https://github.com/ruby/ruby/pull/13
=end
-
03:05 AM Revision 4e047495 (git): * array.c (rb_ary_sort_bang): fix rdoc.
- patched by burningTyger. https://github.com/ruby/ruby/pull/11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:50 AM Revision c853e2d8 (git): * lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
- XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit.
* lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
XML-RPC doesn't allow Infinity and NaN.
http://www.xmlrpc.com/spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru...
04/21/2011
-
09:20 PM Feature #4592: Tempfileを直接保存したい
- 卜部さんの言うとおりなのですが、ユースケースを書きますと、
Railsもcgi.rbも巨大なファイルをアップロードしたときは
tempfileにファイルを保存します。
これを保存したいとなったときに、
tempfileから読みだして、別ファイルをオープンして
書きこむという手間とメモリが必要なので、
tempfileに入っているんだから、そのままリネームでもして
保存出来ればいいのになと思ったのでした。
ちなみに卜部さんのやり方ももちろんOKですが、... -
05:16 PM Feature #4592: Tempfileを直接保存したい
- * closeと同時というのを諦め、closeのちょっと後でよければ、普通にmvできるのではないでしょうか。
```
irb(main):001:0> f = Tempfile.new('')
=> #<File:/tmp/20110421-7098-1bvjwc0>
irb(main):002:0> f.puts("foobar")
=> nil
irb(main):003:0> f.close; File.rena... -
05:05 PM Feature #4592: Tempfileを直接保存したい
- `FileUtils` と間違えた。 `rename` や `link` は `File` のクラスメソッドでした。
-
05:05 PM Feature #4592: Tempfileを直接保存したい
- `Tempfile#mv(path)` というメソッドを追加するパッチを書いてみました。
https://gist.github.com/933915
`File.rename` してるので、元のファイルが無くなっちゃいますし、
元のファイルと同じファイル名のまま維持したい場合は使えなかったりします。
-
05:04 PM Feature #4592: Tempfileを直接保存したい
- 先頭が # だと丸ごと見えなくなるのか…
`#close(real=false)`したあと、`#path` を使って、保存したいところに `File#rename` とか、 `File#link` を使うとよいと思います。
-
05:03 PM Feature #4592: Tempfileを直接保存したい
- `#close(real=false)` したあと、 `#path` を使って、保存したいところに `File#rename` とか、 `File#link` を使うとよいと思います。
-
04:43 PM Feature #4592 (Assigned): Tempfileを直接保存したい
- =begin
Tempfileは一時ファイルなので、プロセスが消えたり、#closeすると、
ファイルが消えてしまいます。
Tempfileのデータを保存するために
一旦読みだして、書き込み用に別ファイルを開いて、
そこに書きこまなければいけません。
これが小さいファイルだったらいいのですが、
大きいファイルになると、
Tempfile#save みたいなメソッドを用意して、
closeと同時に保存ができると、
読みだして書きこむという無駄をなくすこ... - 07:17 PM Revision 33883ded (git): * 2011-04-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:17 PM Revision 8968bd14 (git): * ext/psych/parser.c (parse): strings from psych have proper taint
- markings.
* test/psych/test_tainted.rb: test for string taint
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:51 PM Bug #4562: [pull requested] ./config no-ssl2で作ったopensslとext/opensslが混ざらない
- =begin
Yui NARUSE wrote:
> 他の問題もそうなんですが、現状 ext/openssl はメンテナがいないため、
> ...
以上、了解しました。
Ruby は使う機会あまりなかったのですが、これを期に Ruby の活用と貢献を積極的に
行いたいと思っています。
=end
-
01:23 PM Bug #4591: (1.5...2).max #=> 1 (Range#max)
- =begin
そもそも、beginとendのオブジェクト及びRangeのメソッドによって、
離散値として扱う場合と、連続量として扱う場合が混ざってしまってるんですよね。
> わたしRubyをまったく知らないんですけど、rangeに対するmaxってようするに
>
> 1) rangeの範囲に収まる整数値をすべて取り出す
> 2) その集合に対して、最大の数値を取り出す
>
> という操作をしているわけですよね。ここで、(1)で整数値が1... -
01:23 PM Bug #4591: (1.5...2).max #=> 1 (Range#max)
- =begin
樽家です。
> むらたです。
*snip*
> こうしてみると、以下の仕様に一貫性がないように感じます。
>
> assert_equal(nil, (2..1).max)
> assert_equal(nil, (2.0..1.0).max)
> assert_raise(TypeError) { (1.0...2.0).max }
>
> 次の、tarui さんによる追加は一貫性が無い方に分類できると思います... -
12:23 PM Bug #4591: (1.5...2).max #=> 1 (Range#max)
- =begin
むらたです。
test_range.rb の test_max を見てみました。
assert_equal(2, (1..2).max)
assert_equal(nil, (2..1).max)
assert_equal(1, (1...2).max)
assert_equal(2.0, (1.0..2.0).max)
assert_equal(nil, (2.0..1.0).max)
assert_rai... -
11:03 AM Bug #4591: (1.5...2).max #=> 1 (Range#max) - =begin
>
> Issue #4591 has been reported by Masaya Tarui.
>
> ----------------------------------------
> Bug #4591: (1.5...2).max #=> 1 (Range#max)
> http://redmine.ruby-lang.org/issues/4591
>
> Author: Masaya Tarui
>... -
12:42 AM Bug #4591 (Closed): (1.5...2).max #=> 1 (Range#max)
- 現在、(1.5...2).maxが1になります。
beginより小さい値が返ってくるのは違和感があります。
終端を含まないRangeについて、endがIntegerである時にend-1を返していますが、
それはbeginもIntegerである事が想定されてると思います。
結局 beginがIntegerじゃないときは、endがIntegerでない時と同様に
maxが定義できなさそうなので、やはり同様にErrorにした方が親切かと思います。
以下のパッ... -
01:31 AM Bug #4590 (Closed): documentation is wrong for srand
- =begin
This issue was solved with changeset r31316.
Cezary, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a see... -
01:12 AM Bug #4573 (Closed): [BUG] Segmentation fault - Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
- =begin
Awesome to hear that, closing this out.
On a sidenote:
Is a bummer the issues related to the MySQL DLL binary compatibility and the segfaults it generates, I hope have time to work on an update to that that is more clear and...
04/20/2011
-
11:47 PM Bug #4573: [BUG] Segmentation fault - Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
- =begin
Hi Luis,
Many thanks,
The issue is solved now.
I've copied the libmysql.dll from another Windows machine with mysql 5.0 instaled version into the Ruby bin directory and this fixed the problem.
I appreciate the effort for... -
09:14 PM Bug #4573: [BUG] Segmentation fault - Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
- =begin
In relation to MySQL 5.1 or 5.5, did you place libmysql.dll from MySQL 5.0?
As I mentioned, the binary of the gem really requires the exact version of MySQL library:
http://blog.mmediasys.com/2009/08/21/mysqlruby-2-8-1-relea... -
06:33 PM Bug #4573: [BUG] Segmentation fault - Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
- =begin
Hello,
Thanks for your suggestions.
I've checked the mysql gem version using:
bundle show mysql
C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql-2.8.1-x86-mingw32
I've checked the mysql site and Windows 7 is compat... -
03:50 AM Bug #4573 (Feedback): [BUG] Segmentation fault - Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
- =begin
Hello,
I see you commented on installed mysql 5.1, what mysql gem are you using? "mysql" or "mysql2"?
Asking this because the binary version of mysql gem strictly requires mysql 5.0, not 5.1.
That could lead to some segfa... -
11:31 PM Bug #4590 (Closed): documentation is wrong for srand
- =begin
'ri srand' (in random.c) suggests that passing 0 generates a seed number:
If <i>number</i> is omitted *or zero*, seeds the generator using a combination of (...)}
Currently, this isn't true (0 is a valid seed):
>> srand(1... -
10:27 PM Feature #4447 (Closed): add String#byteslice() method
- =begin
=end
-
10:02 PM Feature #4447: add String#byteslice() method
- =begin
Was NARUSE's patch committed to trunk? Can we close this issue? Thanks.
=end
-
10:12 PM Feature #3436: Spawn the timer thread lazily
- =begin
It seems Mark was the only person to review ((<Ko1's patch|URL:http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/33456>)).
What do the other Ruby developers think about it?
Will it not be committed because it lacks Win... -
09:49 PM Feature #4589 (Closed): add Queue#each() method and include Enumerable
- =begin
Please add a thread-safe each() method to the Queue and SizedQueue classes
which are provided by the "thread" standard library
Also mix-in the Enumerable module into those classes so we can use map/inject/etc.
Thanks for y... -
05:23 PM Bug #4579: SecureRandom + OpenSSL may repeat with fork
- =begin
Hiroshi NAKAMURA wrote:
> I think you're confusing SecureRandom's spec and ext/openssl (formerly
> ruby-pki) spec. ext/openssl aims to wrap OpenSSL that user's using so
> if OpenSSL is not 'fork-safe' as Eric expected, so r... -
11:57 AM Bug #4579: SecureRandom + OpenSSL may repeat with fork
- =begin
I think you're confusing SecureRandom's spec and ext/openssl (formerly ruby-pki) spec. ext/openssl aims to wrap OpenSSL that user's using so if OpenSSL is not 'fork-safe' as Eric expected, so ruby-pki doesn't.
So if OpenSSL can... -
04:31 PM Revision 0efb462a (git): * random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.
- [ruby-core:35833] fixes #4590
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:15 PM Revision 934c6b48 (git): * 2011-04-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:15 PM Revision 6825f773 (git): * win32/win32.c (CreateChild): maximum length of lpCommandLine is
- 32,768 characters, including the Unicode terminating null character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:43 PM Bug #4586 (Closed): Missing length check in rb_str_each_line?
- =begin
This issue was solved with changeset r31310.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (rb_str_each_line): check string's length wh... -
10:29 AM Bug #4586 (Closed): Missing length check in rb_str_each_line?
- =begin
In rb_str_each line, the following test is performed:
(rslen <= 1 || memcmp(RSTRING_PTR(rs), p, rslen) == 0)
Shouldn’t it be
(rslen <= 1 ||
(pend - p >= rslen && memcmp(RSTRING_PTR(r... -
02:40 PM Bug #4562: [pull requested] ./config no-ssl2で作ったopensslとext/opensslが混ざらない
- =begin
他の問題もそうなんですが、現状 ext/openssl はメンテナがいないため、
明白なバグはしょうがないから直すものの、そうでないものは放置されがちになっています。
この状況はつまりメンテナに誰かがなればいいのですが、岩松さんがなりませんか。
[[ruby:DeveloperHowtoJa]] や [[ruby:CommitterHowtoJa]] あたりが参考になります。
=end
- 12:42 PM Revision 04cdc1de (git): * 2011-04-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:42 PM Revision f7698457 (git): * re.h (RMATCH_REGS): parenthesize cast expression. suggested
- from Nikolai Weibull in [ruby-core:35825].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:34 PM Revision e8d53040 (git): * ext/date/date_strptime.c (date__strptime_internal): do not
- overwrite local variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:43 AM Revision 88014987 (git): * string.c (rb_str_each_line): check string's length when compare
- separator and string. [ruby-core:35815] fixes #4586
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:34 AM Bug #4585 (Closed): DLEXT in win32/Makefile.sub is not correct for building with VisualStudio 2008
- =begin
Understood, closing this out.
=end
-
03:12 AM Bug #4585: DLEXT in win32/Makefile.sub is not correct for building with VisualStudio 2008
- =begin
Hello Luis,
I understand. During further development I already stepped over the fact, that more changes would be necessary to have consistent everywhere the DLL extension, which in the end will cause more trouble. So I propose ...
04/19/2011
-
11:49 PM Bug #4320: Bus Error in digest/sha2 on sparc
- =begin
I'll attach a proposed fix:
* make ((|context->buffer|)) an array of the type being expected by (({SHAXXX_Transform})) (rather than a byte array), so our compiler will align it, if necessary
* remove now unneeded casts when pa... -
08:52 PM Bug #4320: Bus Error in digest/sha2 on sparc
- =begin
This indeed is an alignment issue, SHA256_Update calls SHA256_Transform with possibly unaligned data, but the latter needs its data argument be aligned on platforms which do not support unaligned word access. The same bug exists f... -
04:44 PM Bug #4573 (Assigned): [BUG] Segmentation fault - Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
- =begin
Hmm, Luis, how do you think?
=end
-
04:13 PM Bug #4573: [BUG] Segmentation fault - Ruby interpreter (CUI) 1.9.2p180 [i386-mingw32] has stopped working
- =begin
Is these bug handled by someone? There is a week since it was created.
=end
- 03:02 PM Revision 2cc02aeb (git): * 2011-04-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:02 PM Revision d9e6b7d6 (git): * misc/ruby-mode.el (ruby-parse-partial): use position of open paren.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:42 PM Bug #4565 (Closed): incompatible change at rev.31169 about autoload
- =begin
=end
-
09:23 AM Bug #4289: Timeouts in threads cause SEGV
- =begin
Eric Wong <redmine@ruby-lang.org> wrote:
> The series should be:
> * 0001-revert-r29673-optimization-which-caused-segfaults.patch
Can we get this reversion ASAP since it's confirmed to be
causing segfaults in trunk?
... -
01:18 AM Bug #4585: DLEXT in win32/Makefile.sub is not correct for building with VisualStudio 2008
- =begin
Hello,
Ruby's decision to use '.so' for it's C extensions is valid, similar to Python decision to use '.pyd' for their extensions.
Python extensions are valid shared-libraries too (DLL), so the decision of the extension be n... -
01:00 AM Bug #4585 (Closed): DLEXT in win32/Makefile.sub is not correct for building with VisualStudio 2008
- =begin
The value of DLEXT is defined per Win32/Makefile.sub as
#define DLEXT ".so"
which results not in the expected file extension for working under Windows with Visual Studio 2005/2008.
I stepped over this problem when I tried t...