Project

General

Profile

Activity

From 12/02/2011 to 12/08/2011

12/08/2011

11:41 PM Feature #5231: Allow to disable versioned paths
The recent version of patch fix small issue with RubyGems LOAD_PATH order. vo.x (Vit Ondruch)
11:00 PM Revision 11d85dc1 (git): * 2011-12-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:00 PM Revision ef9bbba9 (git): Silence stat redefinition warnings under win32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e luislavena (Luis Lavena)
10:59 PM Bug #5728: SystemExit.new(bool, message)
>> I don't think we have two.
>>
>> The latter choice is not acceptable, since the return value of (({Kernel#system})) and the first argument of (({Kernel#exit})) are same as the former.
>>
>> And should not assume (({EXIT_SUCCE...
kosaki (Motohiro KOSAKI)
10:53 PM Bug #5728: SystemExit.new(bool, message)
2011/12/8 Nobuyoshi Nakada <nobu@ruby-lang.org>:

> I don't think we have two.
>
> The latter choice is not acceptable, since the return value of (({Kernel#system})) and the first argument of (({Kernel#exit})) are same as the fo...
akr (Akira Tanaka)
08:58 PM Bug #5728: SystemExit.new(bool, message)
=begin
I don't think we have two.
The latter choice is not acceptable, since the return value of (({Kernel#system})) and the first argument of (({Kernel#exit})) are same as the former.
And should not assume (({EXIT_SUCCESS})) to b...
nobu (Nobuyoshi Nakada)
08:29 PM Bug #5728: SystemExit.new(bool, message)
> I think SystemExit.new should accept a bool.
We have two choice and both are a lot of confusable.
1) true => EXIT_SUCCESS, false => EXIT_FAILURE
People may dislike it becuase true mapped 0 and false mapped 1.
2) true => EXIT...
kosaki (Motohiro KOSAKI)
05:45 PM Bug #5728 (Closed): SystemExit.new(bool, message)
I found SystemExit.new doesn't take a bool as exit status:
It works well if an integer is given for status.
% ./ruby -e 'SystemExit.new(0, "msg")'
% ./ruby -e 'SystemExit.new(1, "msg")'
But it doesn't work if the status ...
akr (Akira Tanaka)
09:59 PM Feature #5478: Add syntax to import Set into core
On Wed, Dec 7, 2011 at 10:01, Alexey Muranov
<muranov@math.univ-toulouse.fr> wrote:
>
> ...

From a theoretical point of view, a relation has a heading + a set
that holds tuples (arrays):
```ruby
class Relation
attr_reader :...
judofyr (Magnus Holm)
05:23 PM Feature #5726: Process::EXIT_SUCCESS and Process::EXIT_FAILURE
2011/12/8 Nobuyoshi Nakada <nobu@ruby-lang.org>:

> Why don't you use (({SystemExit#success?})) ?

Oops. I missed that. Thanks.
--
Tanaka Akira
akr (Akira Tanaka)
03:00 PM Feature #5726 (Feedback): Process::EXIT_SUCCESS and Process::EXIT_FAILURE
=begin
Why don't you use (({SystemExit#success?})) ?
=end
nobu (Nobuyoshi Nakada)
02:15 PM Feature #5726 (Closed): Process::EXIT_SUCCESS and Process::EXIT_FAILURE
I'd like to define Process::EXIT_SUCCESS and Process::EXIT_FAILURE.
I want to use them to test my command line application.
The test calls the main routine of the application and
traps SystemExit.
I'd like to compare status of the ...
akr (Akira Tanaka)
04:24 PM Feature #5427: Not complex patch to improve `require` time (load.c)
Currenly, I've update patch with fix from #5727
https://gist.github.com/1272991
funny_falcon (Yura Sokolov)
04:15 PM Bug #5727 (Closed): Hidden bug in load.c rb_feature_p
lazy assigned load_path searched in loading_table were not expanded
(http://redmine.ruby-lang.org/projects/ruby-trunk/repository/revisions/33027/entry/load.c#L186),
but all features, pushed to loading table, are expanded.
This bug ...
funny_falcon (Yura Sokolov)
03:27 PM Bug #5614: Proc#source_location & #inspect shows wrong line number when chained
It may not a bug but a specification. A block returns the number of a line in which the block is defined for its "source_location." When you use procs instead of blocks, it returns the values you expected.
Code:
1 require 'pp'
2...
technohippy (Yasushi ANDO)
02:54 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
It seems read with length should always be binary mode. #5562 patch lacks this point.
I think this patch fixes above issue.
It seems OK that stdin is default binary mode, but if stdout and stderr are default binary mode, newline conv...
h.shirosaki (Hiroshi Shirosaki)
10:23 AM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
Hi,

2011/12/7 Hiroshi Shirosaki <h.shirosaki@gmail.com>
>
> >
> > -    if (_osfile(fd) & FTEXT) {
> > +    isconsole = is_console(_osfhnd(fd));
> > +    if (!isconsole && (_osfile(fd) & FTEXT)) {
> >        return _read(fd, buf...
phasis68 (Heesob Park)
02:52 PM Revision b8b5f5d4 (git): Generate temporary file in tmpdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:47 PM Revision 1fd41dce (git): * variable.c (set_const_visibility): clear inine-cache when constant's
visibility is modified. [ruby-dev:44929]
* test/ruby/test_module.rb (test_private_constants_clear_inlinecache):
add test for it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
02:28 PM Revision f6a2a431 (git): * ext/extmk.rb (extract_makefile): should sort after map, not before
it. in this case there is no difference, but we should write better
code. this bad smell was caught by nagachika.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:50 PM Revision 63fe8b69 (git): update doc and add test for SystemExit.new.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:37 PM Bug #4681: Timeout.timeout doesn't actually time out?
Just noting for the benefit of anyone else passing by that I posted a way to do popen3 with timeout at
https://gist.github.com/1032297
meta (mathew murphy)
01:36 PM Bug #5487: popen3 + timeout regression in ruby 1.9
In case it helps, I have a Gist with some working 1.9.3 code to perform a popen3 with time out, not using Timeout::timeout:
https://gist.github.com/1032297
meta (mathew murphy)
01:34 PM Revision d9d841e3 (git): * ext/extmk.rb (extract_makefile): need to sort the array of current
srcs before comparing to the sorted old srcs.
fixed the problem that the configuring stage of exts were always
run, introduced at r33801.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:22 PM Revision 518a3402 (git): * ChangeLog: fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
12:11 PM Bug #5679 (Closed): Too many arguments for format warnings on mingw32 build
This issue was solved with changeset r33978.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* configure.in (RUBY_WERROR_FLAG): append all warning flags whi...
nobu (Nobuyoshi Nakada)
07:59 AM Bug #5679 (Assigned): Too many arguments for format warnings on mingw32 build
kosaki (Motohiro KOSAKI)
10:27 AM Revision 2fbf66a7 (git): Fix invalid test extension.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
10:25 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
Hi
While looking for a solution to an issue we have with embedding ruby into a pthread I found this thread
We have been running ruby embedded into a pthread for about 10 years now and and have upgraded periodically. We recently moved f...
SteveRT (Steve Hart)
10:01 AM Feature #5710 (Closed): Enumerable#each( :method ) and Enumerable#map( :method )
closed at request of submitter duerst (Martin Dürst)
01:56 AM Feature #5710: Enumerable#each( :method ) and Enumerable#map( :method )
It works. Thank you!
I guess that this issue has been resolved...
battox (Matías Battocchia)
09:53 AM Bug #5721: require_relative
2011/12/7 rommel nocando <redmine@ruby-lang.org>:

> Bug #5721: require_relative
> http://redmine.ruby-lang.org/issues/5721
>
> Our users have found that with synchronicity's (a revision control system) populating with -share...
akr (Akira Tanaka)
09:39 AM Bug #5721: require_relative
=begin
I'm uncertain of your case.
I imagined the following case, but this works.
$ mkdir bin lib
$ echo 'p :foo' > lib/foo.rb
$ ln -s ../lib/foo.rb bin/
$ echo 'require_relative "foo"' > bin/a.rb
$ ruby bin/a.rb
:foo
=e...
nobu (Nobuyoshi Nakada)
09:34 AM Bug #5721 (Feedback): require_relative
akr (Akira Tanaka)
08:24 AM Bug #5709: Improve Regexp documentation
I altered the wording on =~ mentioning Range and String because the operator is generic and may be overridden to perform other types of pattern matching. drbrain (Eric Hodel)
08:22 AM Bug #5709 (Closed): Improve Regexp documentation
This issue was solved with changeset r33977.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/re.rdoc: Document difference between match and =~, opti...
drbrain (Eric Hodel)
08:03 AM Bug #5624 (Closed): Mismatch between code example and its description in text in Regexp documentation
This issue was solved with changeset r33976.
Jarno, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* doc/re.rdoc: Fix example code to match documentation. Patch ...
drbrain (Eric Hodel)
07:15 AM Bug #5724 (Rejected): date_core compiling issues with MinGW GCC 4.6
Hello,
I'm having problems building date_core.c with GCC 4.6 from mingw-w64 project:
luislavena (Luis Lavena)
05:56 AM Feature #5623 (Feedback): [PATCH] Update documentation for Complex
What are the replacements for Complex.generic? and Numeric#im? I think these should be documented instead of just "Deprecated" drbrain (Eric Hodel)
04:31 AM Revision 0bfa4abd (git): * test/rexml/test_order.rb (OrderTester#test_more_ordering): use
GZip::GzReader.open instead of GZip::GzReader.new with File.new.
fixed a test error on Windows introduced at r33946.
* ChangeLog: mention the causes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33981 b2dd03c8-39d4-4d8f-98ff-82...
U.Nakamura
04:12 AM Revision bb329872 (git): * test/ruby/test_process.rb (TestProcess#test_sete[gu]id): silently
skip if not implemented such functions (such as, on Windows).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:59 AM Revision 2470d781 (git): * ext/socket/extconf.rb: forgotten to define HAVE_SOCKETPAIR for
windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:11 AM Revision f2747b57 (git): * configure.in (RUBY_WERROR_FLAG): append all warning flags which
are enabled to compile, so that printf format modifiers properly
fail. [ruby-core:41351] [Bug #5679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

12/07/2011

11:22 PM Revision 3e204989 (git): * doc/re.rdoc: Document difference between match and =~, options with
Regexp.new and global variables. Patch by Sylvain Daubert.
[Ruby 1.9 - Bug #5709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
11:02 PM Revision 52654367 (git): * doc/re.rdoc: Fix example code to match documentation. Patch by
Jarno Lamberg. [Ruby 1.9 - Bug #5624]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
10:53 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
>
> -    if (_osfile(fd) & FTEXT) {
> +    isconsole
h.shirosaki (Hiroshi Shirosaki)
12:23 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
Hi,

(11/12/06 22:34), Luis Lavena wrote:
> BTW, I'm collecting stats about Ruby-users with Windows to determine
> the best option for that, can you spread the word?
>
> https://docs.google.com/spreadsheet/viewform?hl=en_US...
nobu (Nobuyoshi Nakada)
10:40 PM Revision 89beb18b (git): Ignore generated files in ext/-test-/path_to_class
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
10:13 PM Revision 253079bc (git): * 2011-12-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:13 PM Revision 09c399b6 (git): It is fixed in FreeBSD 9.0 RC3, not RC2.
So skip until it is released.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:59 PM Bug #5721 (Rejected): require_relative
Our users have found that with synchronicity's (a revision control system) populating with -share option that the symbolic links break require_relative
bin/launchLib.rb:54:in `require_relative': no such file to load -- /blah/sync_cac...
nocandor (rommel nocando)
06:56 PM Bug #5720 (Closed): Exceptions can be caused via eval that evade exception handling
This issue was solved with changeset r33970.
Gabriel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm.c (vm_set_top_stack, vm_set_eval_stack): check for stack
...
nobu (Nobuyoshi Nakada)
03:51 PM Bug #5720 (Closed): Exceptions can be caused via eval that evade exception handling
While poking at #5719, I discovered it's possible to cause an exception via Kernel#eval that leaks through any surrounding rescue block. Please see the gist for details. I tested against 1.9.2-p290, 1.9.3-p0, and HEAD of the 1.9.3 branch... gabrielg (Gabriel Gironda)
06:01 PM Feature #5478: Add syntax to import Set into core
If you had enough of my comments on this thread, please tell me stop, i will listen.
Here is my another argument in favor of pure Set as a base class or replacement for Hash: on top of Set (or Hash modified in a way to be able to hold...
alexeymuranov (Alexey Muranov)
02:26 PM Bug #5719: Hash::[] can't handle 100000+ args
This is related to http://redmine.ruby-lang.org/issues/982. In terms of what needs to be done, it may even be "the same" bug, although 982 is about a very long array literal, and this is about a very long array created by a splash. At ht... duerst (Martin Dürst)
12:26 PM Bug #5719: Hash::[] can't handle 100000+ args
i shall give you four hints: stack, heap, push, pop
ruby's behavior is expected.
you can pass Hash::[] an array instead i think.
Hash[[[:a, 1], [:b, 2]]] #=> {:a=>1, :b=>2}
deepfryed (Bharanee Rathna)
12:23 PM Bug #5719: Hash::[] can't handle 100000+ args
Hi,

In message "Re: [ruby-core:41511] [ruby-trunk - Bug #5719][Open] Hash::[] can't handle 100000+ args"
on Wed, 7 Dec 2011 11:30:44 +0900, Nick Quaranto <nick@quaran.to> writes:

|I couldn't pin down an exact size for wh...
matz (Yukihiro Matsumoto)
12:05 PM Bug #5719: Hash::[] can't handle 100000+ args
It looks to be a variable argument length thing, not a Hash thing in particular.
https://gist.github.com/5037bf83d28c2c119c44
Edit: Not just variable argument length. Ruby just won't have any of your guff if you intend on passing any m...
gabrielg (Gabriel Gironda)
11:47 AM Bug #5719: Hash::[] can't handle 100000+ args
I was able to duplicate this issue with the above code in 1.9.2-p290 It didn't matter if I ran it through IRB or from the command line. iterology (John Glass)
11:30 AM Bug #5719 (Closed): Hash::[] can't handle 100000+ args
I couldn't pin down an exact size for when/how this occurs, but I have code that was creating hashes just fine with Hash::[] with 300k+ arguments.
irb(main):056:0> (0...140000).map { |n| [:a, n] }.tap { |a| Hash[*a] }.size
SystemStac...
qrush (Nick Quaranto)
10:59 AM Feature #5622 (Closed): [PATCH] Update documentation for BigDecimal
This issue was solved with changeset r33969.
Sylvain, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/bigdecimal/bigdecimal.c: Document +@, -@, hash, INFINIT...
drbrain (Eric Hodel)
10:49 AM Bug #5602 (Closed): io/console methods are not listed in top-level IO documentation
This issue was solved with changeset r33968.
Misty, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (Init_IO): Mention io/console methods. [Ruby 1.9 - Bug ...
drbrain (Eric Hodel)
10:23 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
trans wrote:
> On Sunday, December 4, 2011 3:02:29 PM UTC-5, NARUSE, Yui wrote:
>>
>>
>> After some consideration, I'm wondering why following code is not used.
>> There is already a method or proc object in usual use case?
...
shyouhei (Shyouhei Urabe)
12:53 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
On Sunday, December 4, 2011 3:02:29 PM UTC-5, NARUSE, Yui wrote:
>
>
> After some consideration, I'm wondering why following code is not used.
> There is already a method or proc object in usual use case?
>
> begin
> obj...
trans (Thomas Sawyer)
10:04 AM Revision 83d1eebb (git): * 2011-12-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:04 AM Revision aecd98a2 (git): * configure.in (rpath): fix typo in the help string. a patch from
Yuji Yamano <yyamano AT kt.rim.or.jp> in [ruby-list:48568].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:04 AM Revision 8d7ef97e (git): * configure.in (rpath): fix typo in the help string. a patch from
Yuji Yamano <yyamano AT kt.rim.or.jp> in [ruby-list:48568].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:56 AM Revision 054dbe2a (git): * vm.c (vm_set_top_stack, vm_set_eval_stack): check for stack
overflow with stack_max before push new frame. [ruby-core:41520]
[Bug #5720]
* vm.c (vm_set_main_stack): no stack overflow chances after
vm_set_eval_stack().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33970 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
01:58 AM Revision 3a5daefe (git): * ext/bigdecimal/bigdecimal.c: Document +@, -@, hash, INFINITY, Nan.
Patch by Sylvain Daubert. [Ruby 1.9 - Feature #5622]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
01:49 AM Revision 12e7e797 (git): * io.c (Init_IO): Mention io/console methods. [Ruby 1.9 - Bug #5602]
* ext/io/console/console.c: Mention that io/console must be required
similar to lib/time.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
12:53 AM Feature #5695: CoffeeScript "is" and "isnt" keywords
Indeed, I have aliased `#is` to `#include` and aliased `#is?` as `#===`
before

class Collection
is Enumerable
end

Collection.is? Enumerable

Which I find exceptionally readable.
trans (Thomas Sawyer)
12:32 AM Revision 1b99ecc5 (git): FreeBSD 9.0 RC2 fixes the bug.
FreeBSD PR: kern/155606, kern/162379
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

12/06/2011

11:12 PM Revision 7c5aa76f (git): * 2011-12-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:12 PM Revision 54b214cc (git): * ext/psych/lib/psych.rb (module Psych): parse and load methods take
an optional file name that is used when raising Psych::SyntaxError
exceptions
* ext/psych/lib/psych/syntax_error.rb (module Psych): allow nil file
names and handle nil file names in the exception message
* test/psych/test_exception.r...
tenderlovemaking (Aaron Patterson)
10:53 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
On Tue, Dec 6, 2011 at 4:18 AM, U.Nakamura <usa@garbagecollect.jp> wrote:
>
> On my idea, for example, throw away XP :)
>

_WIN32_WINNT
luislavena (Luis Lavena)
04:23 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
Hello,

In message "[ruby-core:41500] [ruby-trunk - Bug #5714] Unexpected error of STDIN#read with non-ascii input on Windows XP"
on Dec.06,2011 15:57:36, <phasis@gmail.com> wrote:
> I guess this issue is due to a bug of _re...
usa (Usaku NAKAMURA)
03:57 PM Bug #5714: Unexpected error of STDIN#read with non-ascii input on Windows XP
I guess this issue is due to a bug of _read function of Microsoft Runtime library.
Here is a patch for workaround.
diff --git a/win32.c b/win32.c.new
index 67a392e..4d5a253 100644
--- a/win32.c
+++ b/win32.c.new
@@ -5451,7 +545...
phasis68 (Heesob Park)
12:52 PM Bug #5714 (Closed): Unexpected error of STDIN#read with non-ascii input on Windows XP
When the input contains non-ascii character, STDIN#read raised Permission denied or Invalid argument error with MSVC compiled version on Windows XP.
C:\work>ruby -ve 'p STDIN.read(5)'
ruby 2.0.0dev (2011-12-05 trunk 33955) [i386-ms...
phasis68 (Heesob Park)
07:07 PM Feature #5716 (Closed): duplicated when clause is ignored -> Report which clause it is specifically.
In latest Ruby 1.9.3, if you have warnings enabled, you get information like this here:
foobar.rb:24: warning: duplicated when clause is ignored
This error comes from the file:
compile.c
rb_compile_warning(RSTRING_PTR(ise...
shevegen (Robert A. Heiler)
01:26 PM Bug #5715 (Closed): +/-1 ** Bignum returns different results than +/-1 ** Fixnum
=begin
Consider (({1 ** expt})) and (({(-1) ** expt})).
When ((|expt|)) is a Fixnum, the result is always 1, -1, Rational(1/1), or Rational(-1,1) depending on the signs of the operands and parity of the exponent.
When ((|expt|)) i...
john_firebaugh (John Firebaugh)
12:36 PM Bug #5713 (Closed): Fixnum#** returns Infinity for 0 ** negative Bignum
=begin
Instead it should raise ZeroDivisionError, the same as negative Fixnums.
wordsize = 8 * 1.size
fixnum_min = -2 ** (wordsize - 2)

def zero_power(exp)
0 ** exp
rescue ZeroDivisionError
"ZeroDivisionError"
end...
john_firebaugh (John Firebaugh)
12:30 PM Bug #5656: Improve documentation for Range
=begin
I restored the Xs example in #step since it seemed more illustrative.
I restored the === comment to the === documentation since it isn't something special to Range, all objects can behave that way.
Your second patch cannot ...
drbrain (Eric Hodel)
08:37 AM Bug #5656 (Closed): Improve documentation for Range
This issue was solved with changeset r33958.
Chris, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* range.c: Improve documentation for Range. Patch by Chris Zet...
drbrain (Eric Hodel)
10:38 AM Revision c5fada68 (git): fix spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:21 AM Revision bb187517 (git): * ext/dbm/dbm.c: use db_version() instead of DB_VERSION_STRING for
detect runtime Berkeley DB version.
use dpversion instead of _QDBM_VERSION for detect runtime QDBM
[ruby-dev:44948]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:59 AM Revision 1ff15071 (git): See the string "GDBM version".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:41 AM Revision 0209f8d4 (git): Fix copy and paste miss of r33960.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:29 AM Feature #5654: Introduce global lock to avoid concurrent require
> The main caveat I can think of is that starting a reactor or other server loop inside a `require` will no longer work. I would argue that the benefits of much more deterministic require outweigh the costs of losing the ability to do t... Anonymous
04:40 AM Revision 20c91caf (git): Skip tests when the lib is with gdbm 1.8.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:38 AM Revision 2f49f5ee (git): * ext/dbm/extconf.rb: detect gdbm_version in libgdbm.
* ext/dbm/dbm.c: make DBM::VERSION more informative for gdbm, qdbm and
Berkeley DB 1.x. [ruby-dev:44944]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

12/05/2011

11:36 PM Revision 79bc3579 (git): * range.c: Improve documentation for Range. Patch by Chris Zetter.
[Ruby 1.9 - Bug #5656]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)
09:47 PM Revision 03c02865 (git): * 2011-12-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:47 PM Revision 52f61eae (git): Comment out tests which fails with GDBM-DBM compat mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:23 PM Feature #5695: CoffeeScript "is" and "isnt" keywords
On 01/12/11 18:52, Suraj Kurapati wrote:
>
> Issue #5695 has been reported by Suraj Kurapati.
>
> ----------------------------------------
> Feature #5695: CoffeeScript "is" and "isnt" keywords
> http://redmine.ruby-lang.o...
regularfry (Alex Young)
07:59 PM Feature #5478: Add syntax to import Set into core
From the point of view of behavior/interface, both sets and associative arrays are just unordered collections, associative arrays being unordered collections of (key,value) pairs, where each key is unique.
(This is why i thought that it...
alexeymuranov (Alexey Muranov)
10:23 AM Feature #5478: Add syntax to import Set into core
On Sun, Dec 4, 2011 at 22:34, Joshua Ballanco <jballanc@gmail.com> wrote:

> Actually, the bulk of Set's functionality is already built on top of Hash.
> Personally, since the ability to create Hashes from comma-delimited
> key,...
aprescott (Adam Prescott)
07:53 AM Feature #5478: Add syntax to import Set into core
On Sun, Dec 4, 2011 at 1:05 PM, Eero Saynatkari <ruby-ml@kittensoft.org>wrote:

> On 2011-12-04, at 16:15:00, Alexey Muranov wrote:
> >
> > But what is wrong with having one class instead of two, if internally
> they behave mostly ...
jballanc (Joshua Ballanco)
03:29 PM Feature #5707: temporary file creation without finalizer and delegate.
>> Since Tempfile.new already takes an optional hash,
>> how about:
>>
>>  Tempfile.open(..., finalizer: false)
>
> It is not bad.
>
> But I feel the description is too subtle to change
> the class of return value and the respo...
kosaki (Motohiro KOSAKI)
09:23 AM Feature #5707: temporary file creation without finalizer and delegate.
2011/12/5 Eric Wong <normalperson@yhbt.net>:

> Since Tempfile.new already takes an optional hash,
> how about:
>
> Tempfile.open(..., finalizer: false)

It is not bad.

But I feel the description is too subtle to cha...
akr (Akira Tanaka)
03:53 AM Feature #5707: temporary file creation without finalizer and delegate.
Akira Tanaka <akr@fsij.org> wrote:
> A problem of this proposal is the method name.
> Tempfile.open2 is not a good name.

Since Tempfile.new already takes an optional hash,
how about:

Tempfile.open(..., finalizer: false)
normalperson (Eric Wong)
02:29 PM Bug #5706 (Closed): Build failure on io/wait extension with VC 2010
This issue was solved with changeset r33947.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: reve...
usa (Usaku NAKAMURA)
12:56 PM Bug #5706 (Assigned): Build failure on io/wait extension with VC 2010
usa (Usaku NAKAMURA)
01:35 PM Bug #5711 (Closed): r32774 (and r32783) broke nmake support
普段あまり使わないので気付かなかったのですが、表題の通りでnmakeにおけるV=1指定サポートが破壊されています。
(nmakeではマクロ置換展開中のマクロ展開はできません)
NULLCMDを経由するとかいう凝ったことしないで単にECHO1をconfigureで作るようにしてくれればnmakeでもSolaris makeでも通るMakefileが書けると思うのですが、どうですか。
usa (Usaku NAKAMURA)
12:16 PM Feature #5710: Enumerable#each( :method ) and Enumerable#map( :method )
Try
array = [ "bi", "tri", "quad" ]
p array.each( &:upcase! ) #=> [ "BI", "TRI", "QUAD" ]
p array.map( &:length ) #=> [ 2, 3, 4 ]
trans (Thomas Sawyer)
11:31 AM Feature #5710 (Closed): Enumerable#each( :method ) and Enumerable#map( :method )
#each and #map could accept an argument of class string or symbol and send it to the objects in the enumerable.
An example:
array = [ "bi", "tri", "quad" ]
p array.each( :upcase! ) #=> [ "BI", "TRI", "QUAD" ]
p array.map( :...
battox (Matías Battocchia)
10:12 AM Revision 3581d76b (git): * regparse.c: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:08 AM Revision c09f4630 (git): * regparse.c (PFETCH_READY): separate gcc specific trick.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:02 AM Revision 8bce84fe (git): * process.c (proc_seteuid_m): fix argument.
* test/ruby/test_process.rb (test_geteuid): fix typo.
* test/ruby/test_process.rb (test_getegid, test_set[eg]uid): add.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:01 AM Revision 74b985ac (git): * ChangeLog: remove dup entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:57 AM Revision b526738c (git): * bignum.c (big_rshift), compile.c (validate_label,
iseq_build_from_ary_exception), cont.c (cont_capture), dir.c
(dir_open_dir), gc.c (objspace_each_objects), io.c (pipe_open)
(rb_io_advise), parse.y (parser_compile_string)
(rb_parser_compile_file), proc.c (binding_free), process.c
...
nobu (Nobuyoshi Nakada)
09:50 AM Revision 8baffe6e (git): * class.c (rb_obj_methods), compile.c (iseq_compile_each),
iseq.c(iseq_load, rb_iseq_parameters), pack.c (pack_pack),
regcomp.c (is_not_included, update_string_node_case_fold),
transcode.c (rb_econv_open0, make_replacement),
vm_eval.c (raise_method_missing): remove unused variable.
git-sv...
nobu (Nobuyoshi Nakada)
08:13 AM Revision 0e4b86b5 (git): * common.mk (newline.c, miniprelude.c): use VPATH.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:33 AM Revision bf0d8b7e (git): * signal.c (reserved_signal_p): static.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:29 AM Revision 1dea1927 (git): * include/ruby/{subst.h,win32.h}, ext/socket/rubysocket.h: revert
r33876. [ruby-core:41475] [Bug #5706]
* ext/socket/extconf.rb: the alternative hack for [Bug #5675].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
05:23 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
(2011/12/04 12:41), NARUSE, Yui wrote:
> (2011/12/03 4:20), Yehuda Katz wrote:
>> Yeah… it would be nice to be able to do:
>>
>> if proc.arity_range.include?(2)
>> if method.arity_range.include?(2)
>
> Is it really re...
naruse (Yui NARUSE)
02:26 AM Bug #5709 (Closed): Improve Regexp documentation
Improve Regexp documentation:
* add a section to explain differences between =~ operator and #match
* in Options section, explain how use options with Regexp.new
* add a section about special global variables ($~ and so on)
sdaubert (Sylvain Daubert)
01:25 AM Revision 8229b9dd (git): * ext/zlib/zlib.c (rb_gzreader_initialize): revert a part of r33937.
1st, to change the mode of an IO is very sensitive problem, so
the maintainer of this library should judge it.
2nd, usually Zlib::GzReader.new is not called directly. #initialize
is called via .open, and in the method the I/O is o...
U.Nakamura

12/04/2011

11:57 PM Revision 7f654692 (git): * 2011-12-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:56 PM Revision 39a9b9ba (git): * io.c: suppress unused-value warnings. fixup of r33937.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:46 PM Bug #5708 (Closed): Tempfile.new(pre) with block in test_autoclose
気がついたのですが、test/ruby/test_io.rb の test_autoclose で、
Tempfile.new をブロック付きで使っています。
Tempfile.new はブロックを呼び出さないので、バグではないかと思われます。
test/ruby/test_io.rb:
def test_autoclose
feature2250 = '[ruby-core:26222]'
pre = 'ft2250'
...
akr (Akira Tanaka)
11:31 PM Feature #5707 (Closed): temporary file creation without finalizer and delegate.
Tempfile always uses finalizer and delegate.
Sometimes we don't need them.
For example, following test creates a temporary file
using Tempfile.open but the file is used only in the block.
The file is removed when the Tempfile objec...
akr (Akira Tanaka)
11:23 PM Bug #5694: Proc#arity doesn't take optional arguments into account.
On Sat, Dec 3, 2011 at 10:41 PM, NARUSE, Yui <naruse@airemix.jp> wrote:
>
> For example you want to know whether you can obj.meth(a, b) or not,
> it should be something like obj.callable?(:meth, a, b), shouldn't it?

I concur....
trans (Thomas Sawyer)
03:53 PM Bug #5694: Proc#arity doesn't take optional arguments into account.
I like it!

On Sat, Dec 3, 2011 at 7:41 PM, NARUSE, Yui <naruse@airemix.jp> wrote:

> (2011/12/03 4:20), Yehuda Katz wrote:
> > Yeah… it would be nice to be able to do:
> >
> > if proc.arity_range.include?(2)
> > if method.a...
wycats (Yehuda Katz)
12:53 PM Bug #5694: Proc#arity doesn't take optional arguments into account.
(2011/12/03 4:20), Yehuda Katz wrote:
> Yeah… it would be nice to be able to do:
>
> if proc.arity_range.include?(2)
> if method.arity_range.include?(2)

Is it really required way?

For example you want to know wh...
naruse (Yui NARUSE)
11:14 PM Feature #5478: Add syntax to import Set into core
Thomas Sawyer wrote:
> Do you think perhaps you've allowed a certain notion to lead you to left field? You're talking about shoehorning Set into Hash just so it can have a literal notation akin to the one Mathematicians use. Sorry, but {...
alexeymuranov (Alexey Muranov)
11:07 PM Feature #5478: Add syntax to import Set into core
Do you think perhaps you've allowed a certain notion to lead you to left field? You're talking about shoehorning Set into Hash just so it can have a literal notation akin to the one Mathematicians use. Sorry, but {} is already taken in R... trans (Thomas Sawyer)
09:32 PM Feature #5478: Add syntax to import Set into core
I've let my imagination go free and got another crazy(/stupid) idea: abandon Set, add methods to Hash, and use it as Set.
The main drawback seemed at first to be the name, but the technical term for Ruby's hash is "associative array",...
alexeymuranov (Alexey Muranov)
10:28 AM Feature #5478: Add syntax to import Set into core
Jos Backus wrote:
> How would one represent an empty Set?
> ...
Good point. Need to think about this. I would be in favor of using `{}` for the empty set and `Hash::new`, or `Hash[]`, or `{}.to_hash` for the empty hash. To kee...
alexeymuranov (Alexey Muranov)
08:53 AM Feature #5478: Add syntax to import Set into core
Perhaps in the vein of OCaml, we could use `{[]}` for set literals?
jballanc (Joshua Ballanco)
06:53 AM Feature #5478: Add syntax to import Set into core
How would one represent an empty Set?
'{}' can't be used as it would be ambiguous.
josb (Jos Backus)
03:10 AM Feature #5478: Add syntax to import Set into core
I must point out that Ruby 1.8.x allowed {:a, :b, :c, :d} as literal Hash syntax. 1.9 removed that syntax. If it is added back again, it could be confusing...and code which used that syntax and failed fast on 1.9 would now create a Set a... headius (Charles Nutter)
11:14 PM Bug #5706 (Closed): Build failure on io/wait extension with VC 2010
I get the following failure on Windows 7 with VC 2010 while building trunk@33936.
C:\work\snapshot>nmake
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
...
phasis68 (Heesob Park)
01:53 PM Revision b8f3ef61 (git): * lib/tempfile.rb: don't use lock directory. [ruby-dev:39197]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:50 PM Revision 250d10b2 (git): fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:35 PM Revision 7b187465 (git): * lib/tempfile.rb (Tempfile::MAX_TRY): remove unused constant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:53 PM Feature #5690: Module#qualified_const_get
(2011/12/01 5:59), Yehuda Katz wrote:
>
> Yehuda Katz
> (ph) 718.877.1325
>
>
> 2011/11/30 Yukihiro Matsumoto <matz@ruby-lang.org <mailto:matz@ruby-lang.org>>
>
> Hi,
>
> In message "Re: [ruby-core:41408...
naruse (Yui NARUSE)
12:05 PM Bug #4882 (Closed): Delegator#methods should accept the singleton flag argument
This issue was solved with changeset r33939.
Julik, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/delegate.rb (Delegator#methods): Kernel#methods receives
...
naruse (Yui NARUSE)
11:34 AM Bug #5681 (Closed): Conflcting types for rb_w32_inet_ntop caused by duplicate definition under MinGW
Nobu fixed this but Redmine didn't close it. luislavena (Luis Lavena)
10:10 AM Feature #5562 (Closed): Improvement of Windows IO performance
This issue was solved with changeset r33937.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Introduce NEED_READCONV and NEED_WRITECONV to replace universa...
luislavena (Luis Lavena)
06:57 AM Bug #5701 (Feedback): Compilation under Lion with clang 2.1 fails
Have you run "Install Xcode.app"?
nobu (Nobuyoshi Nakada)
03:15 AM Bug #5701: Compilation under Lion with clang 2.1 fails
What's mean clang 2.1?
My clang on Lion + Xcode 4.2 environment show following.
~% clang -v
Apple clang version 3.0 (tags/Apple/clang-211.12) (based on LLVM 3.0svn)
kosaki (Motohiro KOSAKI)
05:54 AM Bug #5703 (Rejected): Ruby 1.9.3p0 segmentation fault (during autoload?)
I've been getting intermittent segfaults that appear to be coming out of autoload. Originally, I experienced them on 1.9.2p290, but they persisted after upgrading to 1.9.3p0. I thought the issue might have been #5047, but it seems not.
...
brynary (Bryan Helmkamp)
03:12 AM Revision 483fd748 (git): * lib/pp.rb: fix rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
03:05 AM Revision 6e56d645 (git): * lib/delegate.rb (Delegator#methods): Kernel#methods receives
zero or one argument. [ruby-core:37118] [Bug #4882]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:10 AM Revision e21f885b (git): * 2011-12-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:10 AM Revision f9a6a1dd (git): Introduce NEED_READCONV and NEED_WRITECONV to replace universal newline decorator
Use CRLF only when required to improve file reading and writing under Windows.
Patch by Hiroshi Shirosaki. [ruby-core:40706] [Feature #5562]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
luislavena (Luis Lavena)

12/03/2011

10:39 PM Bug #5659: bug releasing a gem created with rails 3.1
[viniciusgati] ~/Code/ruby/testes
$ cd test_rb_bug/
[viniciusgati] ~/Code/ruby/testes/test_rb_bug (master)
$ rvm use 1.9.2
Using /Users/viniciusgati/.rvm/gems/ruby-1.9.2-p290
[viniciusgati] ~/Code/ruby/testes/test_rb_bug (master)
$ rvm...
viniciusgati (Vinicius Gati)
10:13 PM Bug #5659: bug releasing a gem created with rails 3.1
$ ruby -v -ropenssl -e "puts OpenSSL::OPENSSL_VERSION"
ruby 1.9.3dev (2011-10-11 revision 33457) [x86_64-darwin11.2.0]
OpenSSL 1.0.0e 6 Sep
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
OpenSSL 1.0.0e 6 Sep 2011
viniciusgati (Vinicius Gati)
05:20 PM Bug #5701 (Rejected): Compilation under Lion with clang 2.1 fails
New MacBook Air, installed Xcode 4.2 through Appstore, never had gcc installed. I have not compiled anything else, modified my environment, or any special setup. It's a brand new machine.
Same issue on my iMac, which has been upgraded...
cakepie (Cake Pie)
11:52 AM Revision 4a1cfe70 (git): * variable.c (set_const_visibility): print a warning when no argument
is passwd to Module#private_constant. [ruby-list:48558]
* vm_method.c (set_method_visibility): ditto for
Module#private_class_method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
11:52 AM Revision d267b2e3 (git): * variable.c (set_const_visibility): Module#private_constant has
changed the visibility of only the first argument. Now it changes
all of them. [ruby-list:48558]
* test/ruby/test_module.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33935 b2dd03c8-39d4-4d8f-98ff-823f...
mame (Yusuke Endoh)
06:22 AM Feature #5588: add negation flag (v) to Regexp
Interesting. Thanks for your feedback. I will submit a new patch that only contains wholly negated regexps (/.../v) this weekend. Cheers. sunaku (Suraj Kurapati)

12/02/2011

10:17 PM Revision 53df70d9 (git): * Makefile.in (CFLAGS): append ARCH_FLAG.
* configure.in (ARCH_FLAG): exclude from CFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:14 PM Revision 5569d350 (git): * 2011-12-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:14 PM Revision 2748f58d (git): * configure.in (UNIVERSAL_INTS): include short int. fix for
test/mkmf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:23 PM Bug #5459: Silence -Wmissing-declarations and -Wold-style-definition warnings in mkmf
On Fri, Dec 2, 2011 at 02:05, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:

> Issue #5459 has been updated by Nobuyoshi Nakada.

> Generic notes:
>
> * Use the latest version.
> * Don't make a patch from installed files.
> * Don...
now (Nikolai Weibull)
10:05 AM Bug #5459: Silence -Wmissing-declarations and -Wold-style-definition warnings in mkmf
Generic notes:
* Use the latest version.
* Don't make a patch from installed files.
* Don't overwrite conflicts blindly.
nobu (Nobuyoshi Nakada)
03:22 PM Bug #5684: [[Ruby 1.9:]] Socket doesn't respect default external encoding
Vladimir Chernis wrote:
> Yui NARUSE wrote:
> ...
Socket doesn't respect default_external because default_external is set from the locale of the client system,
but the encoding of the input string from sockets is depend on the server ...
naruse (Yui NARUSE)
10:36 AM Bug #5684: [[Ruby 1.9:]] Socket doesn't respect default external encoding
To summarize:
File IO encoding works correctly in that it respects the default external encoding specified in the -E option to ruby. But Socket encoding does not.
I've attached a simple test case to illustrate the problem. When I run...
vovik (Vladimir Chernis)
10:17 AM Bug #5684: [[Ruby 1.9:]] Socket doesn't respect default external encoding
Yui NARUSE wrote:
> You can set encodings to a Socket object with Socket#set_encoding.
I understand, but if I don't call Socket#set_encoding, shouldn't the encoding fall back to the default encoding specified by the -E option to ruby?
...
vovik (Vladimir Chernis)
02:23 PM Bug #5688: Solaris10 で spawn を繰り返すとメモリリークする
On 12/2/11 1:40 PM, KOSAKI Motohiro wrote:
> ああ、悪辣なRubyistたちの手口に善良なデベロッパがまたひとり・・・・

Ruby コミッターこわいわー

--
Shota Fukumori a.k.a. sora_h - http://sorah.jp/

>僕と契約して Ruby コミッターになってよ!
sorah (Sorah Fukumori)
01:53 PM Bug #5688: Solaris10 で spawn を繰り返すとメモリリークする
> 勧誘の手口に乗ります!
>
> http://redmine.ruby-lang.org/projects/ruby/wiki/CommitterHowtoJa
> によると、まつもとさんの承認が必要らしいので、承認お願いします。 > まつもとさん

ああ、悪辣なRubyistたちの手口に善良なデベロッパがまたひとり・・・・
kosaki (Motohiro KOSAKI)
01:16 PM Bug #5688: Solaris10 で spawn を繰り返すとメモリリークする
勧誘の手口に乗ります!
http://redmine.ruby-lang.org/projects/ruby/wiki/CommitterHowtoJa
によると、まつもとさんの承認が必要らしいので、承認お願いします。 > まつもとさん
okkez (okkez _)
01:13 PM Bug #5697 (Open): Wrong flag for enabling PIE executables with clang
Reopend. Because r33926 was reverted. gcc need -pie and clang need -Wl,-pie. So, we need more clever trick.
kosaki (Motohiro KOSAKI)
12:45 PM Bug #5697 (Closed): Wrong flag for enabling PIE executables with clang
r33926. kosaki (Motohiro KOSAKI)
07:42 AM Bug #5697 (Closed): Wrong flag for enabling PIE executables with clang
=begin
When linking the ruby executable with clang I get the following warning:
$ make
[…]
linking ruby20
clang: warning: argument unused during compilation: '-pie'
[…]
In the Makefile ((|XLDFLAGS|)) should be (({-Wl...
drbrain (Eric Hodel)
10:20 AM Bug #5699 (Rejected): Windowsで一部のFloat値が正しく扱えない
ujihisa (Tatsuhiro Ujihisa)
10:02 AM Bug #5699: Windowsで一部のFloat値が正しく扱えない
FAQでした、すみません。
1.9.2 は、より正しく表示出来るようになったということで
納得しました。
https://github.com/rdp/ruby_tutorials_core/wiki/ruby-talk-faq#floats_imprecise
>> 1.1
=> 1.1 # in reality this probably doesn't equal exactly 1.1 deep down--but it's equal t...
oku (剛 奥山)
09:17 AM Bug #5699: Windowsで一部のFloat値が正しく扱えない
浮動小数点数の計算には誤差があります。参考サイト:
* http://download.oracle.com/docs/cd/E19957-01/806-4847/ncg_goldberg.html
* http://wiki.github.com/rdp/ruby_tutorials_core/ruby-talk-faq#floats_imprecise
* http://en.wikipedia.org/wiki/Floating_point#Accura...
ujihisa (Tatsuhiro Ujihisa)
09:14 AM Bug #5699 (Rejected): Windowsで一部のFloat値が正しく扱えない
Windows XP SP3にて、
ruby 1.9.2p290 (2011-07-09) [i386-mingw32] で、
x = 0.002877 #=> 0.0028770000000000002
となってしまいます。
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32] では、
x = 0.002877 #=> 0.002877
となります。
oku (剛 奥山)
08:49 AM Bug #5694: Proc#arity doesn't take optional arguments into account.
I never quite understood why ranges were never used. Something like:
lambda{}.arity => 0
lambda{|a| }.arity => 1
lambda{|a,b| }.arity => 2
lambda{|a=1| }.arity => 0..1
lambda{|a,b=2| }.arity => 1..2
lambda{|*a| }....
trans (Thomas Sawyer)
07:19 AM Bug #5694 (Assigned): Proc#arity doesn't take optional arguments into account.

Revert r33921.
Revert "* proc.c (rb_proc_arity): Fix Proc#arity in case of optional arguments"
Because following two reason:
* Proc#arity's return value with optional arguments is not clear.
The optional argument for proc/lambd...
naruse (Yui NARUSE)
07:59 AM Feature #5695: CoffeeScript "is" and "isnt" keywords
I'm not in favor of this proposal, but I don't think it would break these
cases, because they are not of the form foo is bar. It would, however,
break this case:

def foo; end
def is(*); end

foo is 1

Yehuda Kat...
wycats (Yehuda Katz)
07:06 AM Feature #5695: CoffeeScript "is" and "isnt" keywords
=begin
This would break compatibility with RubyGems:
$ egrep '\bis' lib/rubygems/package/tar_input.rb | grep -v '#'
is = new io, security_policy
yield is
is.close if is
is = zipped_stream entry
...
drbrain (Eric Hodel)
03:52 AM Feature #5695 (Rejected): CoffeeScript "is" and "isnt" keywords
Hello,
Please add "is" and "isnt" keywords, which behave like the "==" and "!=" operators respectively, to Ruby. These keywords come from the CoffeeScript language. They are useful to prevent accidental assignment (forgetting a "=" ...
sunaku (Suraj Kurapati)
07:35 AM Bug #5696 (Closed): rexml BaseParser uses instance_eval unnecessarily on listener add
In add_listener in REXML::BaseParser, there's code to instance eval and replace the old "pull" method with a new one that calls all listeners. I assume this was done to avoid the cost of calling .each on the listeners when there's none r... headius (Charles Nutter)
06:48 AM Revision d0b2816d (git): * ext/bigdecimal/bigdecimal.c (VpAllocReal): reduce extra frac.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:43 AM Revision 5fce7630 (git): * configure.in (RUBY_TRY_CFLAGS, RUBY_TRY_LDFLAGS): more verbose messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:41 AM Revision 0755d415 (git): * configure.in: check whether -pie or -Wl,-pie is valid as
LDFLAGS. [ruby-core:41438] [Bug#5697]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:18 AM Revision 55cae883 (git): * configure.in: use $linker_flag for LDFLAGS option which is not
limited to particular platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:02 AM Revision 9b69817a (git): Revert r33926 "* configure.in: use $linker_flag for LDFLAGS option which is not"
This breaks build process of Linux and FreeBSD.
It may depend the version of gcc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:30 AM Revision 6ec1902a (git): * configure.in: use $linker_flag for LDFLAGS option which is not
limited to particular platforms. [ruby-core:41438] [Bug#5697]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom