Activity
From 04/21/2011 to 04/27/2011
04/27/2011
-
11:54 PM Feature #4615: Add IO#split and iterative form of String#split
- =begin
It should be another feature.
=end
-
07:24 PM Feature #4615: Add IO#split and iterative form of String#split
- =begin
Well, how about (({string.split {|filed| ... }})) ?
=end
-
06:30 PM Feature #4615 (Rejected): Add IO#split and iterative form of String#split
- =begin
Use scanf, or read then split. Besides that File#split does not well describe the method's behavior (read then split). It makes me feel it splits the file contents into several files.
matz.
=end
-
12:32 PM Feature #4615: Add IO#split and iterative form of String#split
- =begin
Use scanf.rb.
=end
-
10:31 AM Feature #4615: Add IO#split and iterative form of String#split
- =begin
Yes, I've made a mistake. The split regexp should be /(?<=[.;!?])/ if I want to iterate on "sentences".
Well, the key points here are: (1)more flexible separator; (2)iterative idiom.
Ruby is just like Perl. $/ in Perl is just a ... -
09:07 PM Revision e858442f (git): * lib/csv.rb (CSV::open): suppress universal newline decorator.
- fixes #4603
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:07 PM Revision 2f348762 (git): * lib/csv.rb (CSV.read): no mode is needed.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 09:07 PM Revision c612fc92 (git): * 2011-04-28
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:06 PM Revision 9c48e599 (git): * io.c (rb_io_extract_modeenc, rb_f_backquote): set default text
- mode. fixes #4619
* io.c (pipe_open): set universal newline decorator if needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:07 PM Bug #4609 (Rejected): String#rpartition(regexp) has bug, when regexp contains quantifier
- =begin
It's the way how regexp engines work.
Try:
"abc123def456ghi".rpartition(/(?<=\D|\A)\d+/)
or
"abc123def456ghi".partition(/\d+(?!.*\d)/)
=end
-
05:23 PM Bug #4609: String#rpartition(regexp) has bug, when regexp contains quantifier
- =begin
Well, String#rindex act the same way:
str = "abc123def456ghi"
puts str.rindex(/\d+/) # 11, not 9
=end
-
05:23 PM Feature #4621: NilClass#to_hash
- =begin
Hi,
In message "Re: [ruby-core:35924] [Ruby 1.9 - Feature #4621][Assigned] NilClass#to_hash"
on Wed, 27 Apr 2011 16:46:01 +0900, Yui NARUSE <[email protected]> writes:
|Is there any reason why `to_a`, `to_s`, ... -
04:52 PM Feature #4621 (Rejected): NilClass#to_hash
- =begin
=end
-
04:46 PM Feature #4621 (Assigned): NilClass#to_hash
- =begin
=end
-
03:33 PM Feature #4621 (Rejected): NilClass#to_hash
- =begin
Various methods defined on `NilClass` are handy to avoid Method undefined on NilClass errors. For example,
* `to_a` for multiple dimensioned array when there might not be some values for some indices:
array[i].to_a[j... -
01:16 PM Feature #2032: Change the license to "GPLv2+ or Ruby's original".
- =begin
Nevermind, my browser showed an old version of this bug. I see editline was discussed already.
=end
-
01:15 PM Feature #2032: Change the license to "GPLv2+ or Ruby's original".
- =begin
Is shipping the "editline" library instead an option? It is a BSD-licensed, drop-in replacement for readline.
=end
-
10:23 AM Feature #2032: Change the license to "GPLv2+ or Ruby's original".
- =begin
=end
-
01:06 PM Feature #4589: add Queue#each() method and include Enumerable
- =begin
At first I thought this would be a good idea. But then I realized that #each is, in every case I can think of, a non-mutating operation. Since I assume you meant for Queue#each to pop all elements off the queue, this would be the ... -
12:13 PM Bug #4619 (Closed): io.c is broken on Windows
- =begin
r31355 以降、textmodeサポートがぶっ壊れてます。
(n)make testでテストが失敗しますし、test-allの方もEになりまくりです。
正直こんなもんrevertしろよって気分ですが、直せるあてはありますか?
make testの失敗:
#339 test_literal.rb: `echo foo` #=> "foo\r\n" (expected "foo\n")
#340 test_literal.rb: s = "... -
09:23 AM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- =begin
On Tue, Apr 26, 2011 at 7:57 AM, Yusuke ENDOH <[email protected]> wrote:
> Hello,
>
> 2011/4/26 Joshua Ballanco <[email protected]>:
> > Regarding the consistency argument, as I understand Currying (or at least
> the w... -
07:42 AM Bug #4617 (Closed): incorrect RbConfig::CONFIG["STRIP"] values
- =begin
This issue was solved with changeset r31365.
Jon, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (STRIP): use proper toolchain. based on a p... -
04:01 AM Bug #4617 (Closed): incorrect RbConfig::CONFIG["STRIP"] values
- =begin
While adding support for the mingw-w64 toolchain to the RubyInstaller project, I discovered that configure.in doesn't correctly generate values for STRIP when name-prefixed build tools (ie - i686-w64-mingw32-ranlib, etc) are used.... -
06:23 AM
Bug #4603: lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT
- =begin
On Tue, Apr 26, 2011 at 3:13 PM, yu nobuoka <[email protected]>wrote:
>
> Issue #4603 has been updated by yu nobuoka.
>
>
> Hi,
>
> Nobuyoshi Nakada wrote:
> > Now fixed so that universal_newline: false... -
05:13 AM Bug #4603: lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT
- =begin
Hi,
Nobuyoshi Nakada wrote:
> Now fixed so that universal_newline: false can work. What's
> about the following patch?
>
> diff --git i/lib/csv.rb w/lib/csv.rb
> index 1aad2f3..d51cb55 100644
> --- i/lib/csv.rb
>... -
01:29 AM Bug #4603: lib/csv.rb: when the :encoding parameter is not provided, the encoding of CSV data is treated as ASCII-8BIT
- =begin
Hi,
At Mon, 25 Apr 2011 22:57:52 +0900,
James Gray wrote in [ruby-core:35878]:
> The issue is that a mode of "rb" is being used to suppress newline
> translation on Windows. However, that's also switching my Encoding ... -
05:36 AM Bug #4618 (Closed): Encoding::ConverterNotFoundErrors on trunk (Windows mingw)
- =begin
It appears recent newline trunk code changes cause test failures on Windows as I can't replicate the following failures in test_literal.rb, psych, or openssl on my Arch system.
For the openssl failures, I'm checking whether my ... -
04:02 AM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
- =begin
This issue also applies to MonitorMixin (monitor.rb) as it uses the same lock/begin yield/ensure block.
=end
-
02:45 AM Revision 06911f90 (git): * enc/trans/emoji_iso2022_kddi.trans: ISO-2022-JP-KDDI doesn't have
- CP932 UDA. Another reason is emacs-mule: the implementation of
stateless-iso-2022-jp doesn't support beyond 94x94 (0x7fxx);
but CP932 UDA is in 7Fxx-92xx.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31366 b2dd03c8-39d4-4d8f-98... -
12:50 AM Bug #4564 (Closed): mingw-w64, truncate, ftruncate and ftello -- properly evalute it's existence
- =begin
This issue was solved with changeset r31351.
Luis, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* include/ruby/win32.h (ftruncate, truncate, ftello, fseek...
04/26/2011
-
11:32 PM Feature #4601: Re-ordering method parameters.
- =begin
Yusuke Endoh wrote:
> But I don't like your approach. It looks like an abuse of Proc#curry ;-)
It was just meant as an idea. You might call it positional currying, partial application, or whatever ;-)
Joshua Ballanco wro... -
02:42 AM Feature #4601: Re-ordering method parameters.
- =begin
Hello,
I understand your problem, and I guess the current Ruby have no good way to solve it.
But I don't like your approach. It looks like an abuse of Proc#curry ;-)
What you guys want is partial application, not currying, I... -
10:42 PM Revision 86ed9661 (git): * configure.in (STRIP): use proper toolchain. based on a patch
- from Jon Forums at [ruby-core:35909]. fixes #4617
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:23 PM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- =begin
Hello,
2011/4/26 Joshua Ballanco <[email protected]>:
> Regarding the consistency argument, as I understand Currying (or at least the way that it is implemented in most other languages), the result of a Proc#curry call shoul... -
05:00 AM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- =begin
Ok, making this a feature request for 2.0 sounds like a good idea.
Regarding the consistency argument, as I understand Currying (or at least the way that it is implemented in most other languages), the result of a Proc#curry ca... -
02:28 AM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- =begin
=end
-
02:28 AM Feature #4610: Proc#curry behavior is inconsistent with lambdas containing default argument values
- =begin
Hello,
2011/4/25 Joshua Ballanco <[email protected]>:
> This behavior seem very inconsistent.
Indeed, it is arguable how Proc#curry should handle optional parameters,
but I don't think it is inconsistent. In either case,... -
07:30 PM Bug #4608: Ctrl-c to interrupt script causes hang and 100% cpu's core load
- =begin
I have the same problem with a freshly installed Ubuntu 11.04 and ruby 1.9.2p180.
STRG-c works in irb-shell, but not in the rails shell. Same problem with autotest. No problems with ruby 1.8.7.
=end
-
12:48 AM Bug #4608: Ctrl-c to interrupt script causes hang and 100% cpu's core load
- =begin
This bug has been repeated on another computer with ubuntu 11.04 (ruby 1.9.2p180).
If using ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux] it all works well.
=end
-
06:13 PM Bug #4491 (Assigned): Some methods of Dir/File do not encode dirname/filename transparently
- =begin
=end
-
02:51 PM Bug #4491: Some methods of Dir/File do not encode dirname/filename transparently
- =begin
Is this issue forgotten? :)
=end
-
06:13 PM Feature #4615: Add IO#split and iterative form of String#split
- =begin
Just a thought,
String#split drops a separator.
In this use case, you want to drop the separator?
Anyway on 1.9.2, StringScanner#scan_until seems the one you want.
=end
-
02:56 PM Feature #4615 (Assigned): Add IO#split and iterative form of String#split
- =begin
=end
-
02:21 PM Feature #4615 (Rejected): Add IO#split and iterative form of String#split
- =begin
file.each_line(sep=$/) {|line| ... } can be used to iterate on lines.
But the separator is just a string or nil, it cannot be a regexp.
Sometimes I may want to iterate on "sentences", which are strings separated by (simply s... -
04:30 PM Revision dfb52b72 (git): * test/ruby/test_encoding.rb (test_encoding): tests for r31362.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:23 PM Revision 322bffd8 (git): * ext/date/date_core.c (date_zone_to_diff): renamed.
- * ext/date/date_parse.c: ditto.
* ext/date/date_strptime.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:17 PM Revision 21e6862c (git): * encoding.c (enc_find): accept Encoding objects.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:14 PM Revision 8fabd0c5 (git): * include/ruby/win32.h (frexp, modf): fix suppressing warnings on
- mingw.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:09 PM Revision 2ad123c2 (git): use skip
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:05 PM Revision 184e9e9d (git): use skip
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:02 PM Revision 9fe4a35e (git): * ext/date/date_core.c: modified validation methods.
- * ext/date/lib/date.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:57 PM Revision 0b98b9a9 (git): * strip trailing spaces.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:55 PM Revision c26ab1ef (git): * transcode.c (econv_opts): add newline option.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:55 PM Revision 87614677 (git): * io.c (validate_enc_binmode, rb_io_extract_modeenc): set newline
- decorator according to open mode.
* transcode.c (rb_econv_prepare_options): new function, to prepare
econv options with newline flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:54 PM Revision 3b937bbd (git): * include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_MASK): add.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:52 PM Revision 7140c8f0 (git): * transcode.c (econv_init): fix rdoc.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:51 PM Revision 4c7106c6 (git): * file.c (rb_file_truncate): fix function.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:50 PM Revision fcfc113b (git): * include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
- versions on mingw are useless because they use int32_t. fixes #4564
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:23 PM Feature #4602: naming ruby dll (win32/64)
- =begin
こんにちは、なかむら(う)です。
In message "[ruby-dev:43443] [Ruby 1.9 - Feature #4602] naming ruby dll (win32/64)"
on Apr.25,2011 19:42:58, <[email protected]> wrote:
> 直接、コマンドラインから人間が手で打つ名前ではないので、$(arch)がx86以外であれば
>
> RUB... -
03:23 PM Feature #4602: naming ruby dll (win32/64)
- =begin
こんにちは、なかむら(う)です。
In message "[ruby-dev:43443] [Ruby 1.9 - Feature #4602] naming ruby dll (win32/64)"
on Apr.25,2011 19:42:58, <[email protected]> wrote:
> 直接、コマンドラインから人間が手で打つ名前ではないので、$(arch)がx86以外であれば
>
> RUB... - 03:02 PM Revision 7da3b09e (git): * 2011-04-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:02 PM Revision 91ee7710 (git): * ext/date/date_core.c (dt_lite_set_tmx): should get df value.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:36 PM Revision b3defabd (git): * ext/date/lib/date/format.rb (_iso8601): allowed day only civil
- date. disallowed separatorless day only ordinal date.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:56 AM Feature #4614 (Closed): [RFC/PATCH] thread_pthread.c: lower RUBY_STACK_MIN_LIMIT to 64K
- =begin
The patch (committed) for Issue #4568 made this change possible.
Lowering stack size allows users on memory-constrained 32-bit
machines to spawn more native threads (which are easier (IMHO)
to use than Fibers).
Setting RU... -
08:28 AM Bug #4613 (Closed): define_method lacks trace events
- =begin
With this code:
class Example
define_method "test" do
3
end
end
ex = Example.new
100.times {
ex.test
}
1.8.7 prints out the "test" method entrance and exits [1], but 1.9.{2,3} do not print either of th... -
07:51 AM Bug #4564: mingw-w64, truncate, ftruncate and ftello -- properly evalute it's existence
- =begin
Try:
open("a.data", "w") {|f| f.truncate(1<<32)}
Currently this makes an empty file, while a 4GB file previously.
I consider this is a degrade.
=end
-
06:45 AM Feature #4556 (Closed): Please add option which enable SSLv2 support
- =begin
This issue was solved with changeset r31346.
Nobuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/extconf.rb: Should check SSLv2_*method.
... -
06:45 AM Bug #4562 (Closed): [pull requested] ./config no-ssl2で作ったopensslとext/opensslが混ざらない
- =begin
This issue was solved with changeset r31346.
Shyouhei, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/openssl/extconf.rb: Should check SSLv2_*method.
... -
03:13 AM Bug #4612 (Closed): Segmentation fault in fiber GC mark cycle
- =begin
((|Fiber.current|)) can cause segfault on GC cycle when used in threads. Please find attached ruby sample which should help to pinpoint the problem.
The coredump shows the following backtrace:
....
#18 <signal handler ca... -
03:06 AM Bug #4611: [BUG] Segementation fault reported
- =begin
Shota Fukumori wrote:
> could you attach a crash log in ~/Library/Logs/CrashReporter ?
> ...
Yeha I don't exactly like that either. I will start using gist.github.com and just post the link. Selecting Shell as the tet type makes... -
03:05 AM Bug #4611: [BUG] Segementation fault reported
- =begin
Shota Fukumori wrote:
> could you attach a crash log in ~/Library/Logs/CrashReporter ?
> ...
I have added ruby-debug19 to the mix. would you like me to rerun and repost the output from *that*?
=end
-
02:41 AM Bug #4611 (Open): [BUG] Segementation fault reported
- =begin
oops, I missed your crashlog post. sorry.
=end
-
02:40 AM Bug #4611 (Feedback): [BUG] Segementation fault reported
- =begin
could you attach a crash log in ~/Library/Logs/CrashReporter ?
P.S.: I don't recommend paste in textbox because it makes difficult to read. so I recommend add log as attachment.
=end
-
02:19 AM Bug #4611: [BUG] Segementation fault reported
- =begin
This is the Ruby crashlog on Mac OS X 10.6.7 (on a 2011 Macbook Pro with quad core CPU and 8GB 1333MHz RAM in case you need that detail)
=end
-
02:04 AM Bug #4611 (Closed): [BUG] Segementation fault reported
- I currently have an application using devise and rpx_now gem. When I attempt any login using devise+rpx I get segmentation fault errors. The reported error is as follows: Users/pgpkeys/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/http....
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 <[email protected]> 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 <[email protected]>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 <[email protected]>:
> On Sun, Apr 24, 2011 at 1:33 AM, yu nobuoka <[email protected]>
> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]>:
>> 他の問題もそうなんですが、現状 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 <[email protected]>:
>> 他の問題もそうなんですが、現状 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...