Project

General

Profile

Activity

From 11/17/2011 to 11/23/2011

11/23/2011

11:17 PM Revision c8abe4a0 (git): Mention "patched by"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e MartinBosslet (Martin Bosslet)
11:15 PM Revision 6872b9e1 (git): * 2011-11-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:15 PM Revision 29b0d9d9 (git): * ext/openssl/ossl_pkey_dsa.c: remove redundant colon from error
message.
* ext/openssl/ossl_ssl.c: ditto.
* ext/openssl/ossl_pkey_rsa: ditto.
[Bug #5604] [ruby-core:40896]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
MartinBosslet (Martin Bosslet)
10:18 PM Feature #5662: inject-accumulate, or Haskell's mapAccum*
Ok.. I'll give real example to show what is typical use case for us:
hash = MyDatabaseObject.get_all.infuse({}) { |h, r| h[normalize_db_key(r.id, r.name)] = r }
after that, code can quickly access any record by id and name saying
obj ...
EdvardM (Edvard Majakari)
08:29 PM Feature #5662: inject-accumulate, or Haskell's mapAccum*
Benoit Daloze wrote :

> h = {}
> [1, 2].each { |i| h[i] = 2*i }
> h
>
> I believe the code I showed is somewhat common in 1.9 and is clear to people knowing about it.

I would write
Hash.new.tap do |h|
...
end

Heavi...
Anonymous
07:31 PM Feature #5662: inject-accumulate, or Haskell's mapAccum*
Rodrigo Rosenfeld Rosas wrote:
> Interesting, I never noticed/used this method before. My only concern is about the naming "each_with_object" when you actually want to inject/accumulate. The code intention is not clear enough when you w...
Eregon (Benoit Daloze)
04:51 PM Feature #5662: inject-accumulate, or Haskell's mapAccum*
Why not just use
Hash[[1,2].map{|a| [a,2*a]}]
neleai (Ondrej Bilka)
04:17 PM Feature #5662: inject-accumulate, or Haskell's mapAccum*
I also noticed mapAccum* is quite different.
I have to agree with Rodrigo. (each_)with_object seems to really do the thing, but the name is a bit funny one. Then again, that could be just simply aliased in the code for accumulating.
EdvardM (Edvard Majakari)
08:58 AM Feature #5662: inject-accumulate, or Haskell's mapAccum*
Interesting, I never noticed/used this method before. My only concern is about the naming "each_with_object" when you actually want to inject/accumulate. The code intention is not clear enough when you write each_with_object. Maybe a bet... rosenfeld (Rodrigo Rosenfeld Rosas)
07:39 AM Feature #5662: inject-accumulate, or Haskell's mapAccum*
You can already do this by using Enumerable#each_with_object or Enumerator#with_object:
[1, 2].each_with_object({}) { |i,h| h[i] = 2*i } # => {1=>2, 2=>4}
Eregon (Benoit Daloze)
05:41 AM Feature #5662: inject-accumulate, or Haskell's mapAccum*
+1 rosenfeld (Rodrigo Rosenfeld Rosas)
05:24 AM Feature #5662 (Rejected): inject-accumulate, or Haskell's mapAccum*
with Ruby, we often use this idiom to build a hash out of something:
new_hash = enum.inject({}) { |h, thing| h[compute_key(thing) = compute_value(thing)]; h }
while that last h is very easy to add, it is also easy to forget and fee...
EdvardM (Edvard Majakari)
09:00 PM Feature #2567: Net::HTTP does not handle encoding correctly
Eric Hodel wrote:
> So giving the user undetectably garbled text is acceptable to both of you? I wish to clarify.
Yes. If the user is getting garbled text, *they'll see it* and can fix it. It's only undetectable at the data level -...
regularfry (Alex Young)
02:54 AM Feature #2567: Net::HTTP does not handle encoding correctly
So giving the user undetectably garbled text is acceptable to both of you? I wish to clarify.
If the Content-Type header is used as you propose and the user sets the default_internal encoding what should happen? If the server lies and...
drbrain (Eric Hodel)
07:33 PM Feature #5663: Combined map/select method
It seems that in full generality this method needs to accept two blocks: one for selecting and one for mapping, but this would be an unusual syntax.

So how about a lazy `#selecting` first, which would store a block for selecting inside...
alexeymuranov (Alexey Muranov)
09:23 AM Feature #5663: Combined map/select method
I am nervous about list comprehensions because in almost all cases, when
you do something in Ruby, you do it by invoking a named method on an
object. It is clear by looking at a piece of code which named method will
be invoked. In...
wycats (Yehuda Katz)
08:55 AM Feature #5663: Combined map/select method
Hi Shugo, I also like the idea of supporting list comprehensions like several other languages currently do. rosenfeld (Rodrigo Rosenfeld Rosas)
07:31 AM Feature #5663: Combined map/select method
Bug -> Feature nahi (Hiroshi Nakamura)
07:29 AM Feature #5663: Combined map/select method
Hi,

2011/11/23 Yehuda Katz <wycats@gmail.com>:
> It is pretty common to want to map over an Enumerable, but only include the elements that match a particular filter. A common idiom is:
>
> enum.map { |i| i + 1 if i.even? }.co...
shugo (Shugo Maeda)
06:53 AM Feature #5663: Combined map/select method
Compact implies two passes, no?

Yehuda Katz
(ph) 718.877.1325


On Tue, Nov 22, 2011 at 1:15 PM, Adam Prescott <adam@aprescott.com> wrote:

> Instead of looking at it from the map + select approach for a name, what
> ...
wycats (Yehuda Katz)
06:23 AM Feature #5663: Combined map/select method
Instead of looking at it from the map + select approach for a name, what
about the map + compact version? compact_map ?
aprescott (Adam Prescott)
05:45 AM Feature #5663: Combined map/select method
Or maybe just enum.filter? rosenfeld (Rodrigo Rosenfeld Rosas)
05:43 AM Feature #5663: Combined map/select method
I like the idea but not the name. Maybe something like select_non_nil would be more appropriate. English is not my mother tongue, is there any English way to say this in a shorter way? rosenfeld (Rodrigo Rosenfeld Rosas)
05:37 AM Feature #5663 (Closed): Combined map/select method
It is pretty common to want to map over an `Enumerable`, but only include the elements that match a particular filter. A common idiom is:
```ruby
enum.map { |i| i + 1 if i.even? }.compact
```
It is of course also possible to do t...
wycats (Yehuda Katz)
04:53 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
On Wed, Nov 23, 2011 at 04:34, Luis Lavena <luislavena@gmail.com> wrote:

> On Nov 19, 2011 4:11 AM, "Yukihiro Matsumoto" <matz@ruby-lang.org> wrote:

>> Today, I talked with NaHi about enhancing const_missing to enable
>> autoload...
now (Nikolai Weibull)
12:53 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
On Nov 19, 2011 4:11 AM, "Yukihiro Matsumoto" <matz@ruby-lang.org> wrote:
>
> Hi,
>
> Today, I talked with NaHi about enhancing const_missing to enable
> autoload-like feature with nested modules. But autoload itself has
> ...
luislavena (Luis Lavena)
08:59 AM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
It is common to use autoload to register a number of incompatible options.
For instance, Rack registers all possible server adapters, and loading the
adapters has side-effects.

I looked into this when I worked on Rails threadsa...
wycats (Yehuda Katz)
08:53 AM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> Today, I talked with NaHi about enhancing const_missing to enable
> autoload-like feature with nested modules. But autoload itself has
> fundamental flaw under multi-thread environ...
normalperson (Eric Wong)
11:24 AM Revision 1eb0f880 (git): * 2011-11-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:24 AM Revision fd8d9d9d (git): * io.c (ioctl_narg_len): don't use _IOC_SIZE macro on Linux.
On Linux some constants for ioctl(2) doesn't include the size of
its return value and 16bit value; for example FIONREAD 0x541B.
Moreover the manual, ioctl_list(2), says "Note that the size
bits are very unreliable: in lots of...
naruse (Yui NARUSE)
10:33 AM Bug #5545: Net::HTTP breaks with https URI objects
That would be awesome. I saw bugs from Eric about SSL session re-use in Net::HTTP, but didn't see anything about this particular issue.
ferlatte (Mark Ferlatte)
09:28 AM Feature #5341: Add SSL session reuse to Net::HTTP
Updated patch drbrain (Eric Hodel)
08:45 AM Bug #5657: Constants in included modules aren't visible when defining classes with Class.new
In that case, I think that this can be safely closed. Anonymous
07:48 AM Feature #5658: Wrap mkmf.rb in a module to clean up documentation
Here is a separate patch of lib/mkmf.rb without whitespace changes for verification purposes drbrain (Eric Hodel)
07:46 AM Feature #5658: Wrap mkmf.rb in a module to clean up documentation
I fixed the accidental reversion of try_func and placed try_header in the module. I also fixed the tests.
I restored the position of the END block outside the module.
drbrain (Eric Hodel)
03:13 AM Bug #5659: bug releasing a gem created with rails 3.1
I updated the gist with the 1.9.3-p0 log error
$ openssl version
OpenSSL 1.0.0e 6 Sep 2011
Luis Lavena wrote:
> From what it appears to be, SSL was involved in the crash.
> ...
viniciusgati (Vinicius Gati)
12:18 AM Bug #5659 (Feedback): bug releasing a gem created with rails 3.1
luislavena (Luis Lavena)
12:12 AM Bug #5659: bug releasing a gem created with rails 3.1
From what it appears to be, SSL was involved in the crash.
Can you reproduce this against releases 1.9.3-p0?
Can you verify against which version of OpenSSL your Ruby installation linked against? If was 0.9.8 please try installing ...
luislavena (Luis Lavena)
03:10 AM Bug #5625: Remove profanity and pejoratives
I think that profanity, pejorative or any other expression of frustration are equal indication that the code is ugly. While i also disagree with Andrew's point, I propose that we remove the ugly code instead of changing the expression o... drbrain (Eric Hodel)
02:50 AM Bug #5660: xmlrpc/client.rb issue
=begin
Here is the error that is thrown:
NoMethodError: private method `split' called for nil:NilClass
=end
nateleavitt (Nathan Leavitt)
02:45 AM Bug #5660 (Closed): xmlrpc/client.rb issue
=begin
Some xmlrpc servers don't properly set the Content-Type headers. I know based on responses tracked here http://rubyforge.org/tracker/?func=detail&atid=1698&aid=2727&group_id=426 that the .NET (C#) implementation doesn't set it pr...
nateleavitt (Nathan Leavitt)
12:36 AM Revision d47a1f8a (git): Ignore mkmf generated files in ext/-test-/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)

11/22/2011

10:35 PM Bug #5625: Remove profanity and pejoratives
Eric Hodel wrote:
> I've looked through two of your patches and if we're going to remove profanity then let's not simply replace words you don't like with another word that leaves an equally unhelpful comment or method name.
I don't ...
naruse (Yui NARUSE)
12:55 PM Bug #5625: Remove profanity and pejoratives
I've looked through two of your patches and if we're going to remove profanity then let's not simply replace words you don't like with another word that leaves an equally unhelpful comment or method name.
The first chunk of profanity....
drbrain (Eric Hodel)
09:29 PM Feature #5512: Integer#/ の改訂
たるいです。

2011年11月1日22:12 Yusuke Endoh <mame@tsg.ne.jp>:
> 本気で変える予定があるのなら、特大の非互換になりますので、今のうちに
> 切り捨てたい場合の推奨代替策を決めて ( (x/y).round ですかね?) 、
> 2.0 から啓蒙しておいたほうがいいと思います。(つまり推奨形式になって
> いない場合に warning を出す)

推奨代替案ってx.div(y)ですよね?
...
tarui (Masaya Tarui)
09:26 PM Bug #5659 (Rejected): bug releasing a gem created with rails 3.1
I made a rails engine using rails 3.1
the steps i follow was :
i created the engine with rails new plugin test_rb_bug
then i updated the gemspec
then i created a git repo and pushed: https://github.com/viniciusgati/test_rb_bu...
viniciusgati (Vinicius Gati)
08:20 PM Feature #2567: Net::HTTP does not handle encoding correctly
I agree with Alex Young, the encoding should be set from the header if available.
I believe a sensible default is way better than requiring the user to do the obvious. One can always use force_encoding if he knows the header is wrong,...
Eregon (Benoit Daloze)
07:03 PM Feature #2567: Net::HTTP does not handle encoding correctly
Surely setting the encoding to whatever the content-type header declares doesn't stop mechanize from performing that heuristic? Setting it to binary (incorrectly, in my view) forces me to fix it manually even when I know everything's li... regularfry (Alex Young)
01:46 PM Feature #2567: Net::HTTP does not handle encoding correctly
=begin
What should the user expect when the response headers are wrong? For example, the response Content-Type claims ISO-8859-1 but the content was UTF-8? (Yes, this really happens)
If Net::HTTP forces the encoding to ISO-8859-1 yo...
drbrain (Eric Hodel)
02:23 PM Bug #5657: Constants in included modules aren't visible when defining classes with Class.new
Agreed. This was a bug in 1.9.2 probably caused by the (aborted) attempt to
change constant lookup rules in 1.9.

Yehuda Katz
(ph) 718.877.1325


On Mon, Nov 21, 2011 at 8:59 PM, Shugo Maeda <shugo@ruby-lang.org> wrote:
...
wycats (Yehuda Katz)
02:23 PM Bug #5657: Constants in included modules aren't visible when defining classes with Class.new
It was a bug of 1.9.2 and fixed in 1.9.3.

http://redmine.ruby-lang.org/issues/4536 (in Japanese)

Constants should be lookuped statically.
The behaviour is the same as 1.8.

2011/11/22 11:37 "Gary Bernhardt" <gary.bernh...
shugo (Shugo Maeda)
11:37 AM Bug #5657 (Rejected): Constants in included modules aren't visible when defining classes with Class.new
I define two classes that include a module. One is defined with `class`, one is defined with `Class.new`. I expect both to be able to reference constants in the included module. The `class` one can, but the `Class.new` one can't. Reprodu... Anonymous
02:23 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
On Nov 21, 2011, at 11:51 AM, Aaron Patterson wrote:
> On Mon, Nov 21, 2011 at 05:28:25PM +0900, Hiroshi Nakamura wrote:
>>
>> Issue #5653 has been updated by Hiroshi Nakamura.
>>
>> Subject changed from autoload will be dead to...
drbrain (Eric Hodel)
10:29 AM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
Hi,

In message "Re: [ruby-core:41183] [ruby-trunk - Feature #5653] "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)"
on Tue, 22 Nov 2011 09:57:54 +0900, jonathan rochkind <jona...
matz (Yukihiro Matsumoto)
09:57 AM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
My understanding was that plain old 'require' had much the same flaw in a multi-threaded environment as autoload. No? jrochkind (jonathan rochkind)
04:53 AM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
On Mon, Nov 21, 2011 at 05:28:25PM +0900, Hiroshi Nakamura wrote:
>
> Issue #5653 has been updated by Hiroshi Nakamura.
>
> Subject changed from autoload will be dead to "I strongly discourage the use of autoload in any standard ...
Anonymous
02:15 PM Feature #5658: Wrap mkmf.rb in a module to clean up documentation
I merged the try_func change and thought I got it right, but obviously not. I will check it again.
I will define try_header in MakeMakefile and restore the END behavior.
What do you think of the name "MakeMakefile"? I do not know...
drbrain (Eric Hodel)
12:26 PM Feature #5658: Wrap mkmf.rb in a module to clean up documentation
=begin
I agree the concept, and have planned for it.
But, the patch reverts (({try_func})) partially (and
unintentionally?), and (({try_header})) should be defined in the
module not only in (({Object})).
Also, since (({mkmf_fail...
nobu (Nobuyoshi Nakada)
11:42 AM Feature #5658 (Closed): Wrap mkmf.rb in a module to clean up documentation
=begin
Currently all of the methods in mkmf.rb exist at the top-level. This causes methods from mkmf.rb to show up in Object in ((%ri%)).
The attached patch wraps the functionality of mkmf.rb in a module MakeMakefile which is then i...
drbrain (Eric Hodel)
10:47 AM Bug #4576 (Closed): Range#step miss the last value, if end-exclusive and has float number
This issue was solved with changeset r33811.
Joey, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* numeric.c (ruby_float_step): improve floating point calculation...
naruse (Yui NARUSE)
09:08 AM Revision 6904c662 (git): * win32/win32.c (_pioinfo): need to declare _pioinfo() before using
_osfhnd and other macros which uses _pioinfo() internally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:49 AM Revision 083b923e (git): * win32/win32.c (_pioinfo): make an inline function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:08 AM Bug #5656 (Closed): Improve documentation for Range
I've tried to improve the documentation for range by:
+ adding more examples
+ simplifying existing examples
+ moving case statement example to top level documentation
+ adding and fixing links to methods
+ using consistent ter...
zetter (Chris Zetter)
05:38 AM Revision a0ef6262 (git): Use proc to delay making exception_details.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:54 AM Revision cc56bdee (git): Fix for r33811.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:47 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 this. wycats (Yehuda Katz)
02:34 AM Revision 18b52044 (git): * win32/win32.c (dupfd): argument of _osfhnd and so on should not
have side effect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:27 AM Revision 30d76279 (git): * bignum.c (): refix of r33536. Don't change behavior of Bignum#/.
[ruby-core:40429] [Bug #5490]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:50 AM Bug #5655 (Third Party's Issue): Segfault in Net::HTTP on OS X Lion
When I make an SSL call using Net::HTTP in Ruby 1.9.3p0 (installed via RVM), I'm consistently getting a segfault in OS X Lion. I've attached the OS X crash log and the output from the crash, which includes the control frame information,... ahkoppel (Alex Koppel)
01:47 AM Revision 033244c1 (git): * numeric.c (ruby_float_step): improve floating point calculations.
[ruby-core:35753] [Bug #4576]
* numeric.c (ruby_float_step): correct the error of floating point
numbers on the excluding case.
patched by Masahiro Tanaka [ruby-core:39608]
* numeric.c (ruby_float_step): use the end value when the ...
naruse (Yui NARUSE)

11/21/2011

10:00 PM Revision 4e29a1a8 (git): * test/ruby/test_io.rb (test_fcntl_dupfd): there is no known platform
which don't have F_DUPFD. [ruby-dev:44874]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:51 PM Feature #5654 (Assigned): Introduce global lock to avoid concurrent require
=begin
Current implementation of "require" has locks for each file (expanded name from required feature) and serializes file loading from Threads. The first Thread acquires the lock for the file and starts loading. The second Thread wa...
nahi (Hiroshi Nakamura)
07:47 PM Revision daeaa65f (git): * ext/psych/lib/psych.rb: remove autoload from psych
* ext/psych/lib/psych/json.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
06:14 PM Feature #5650 (Feedback): Add rb_enc_raise() to allow C extensions to raise errors with messages with correct encoding
I agree that exceptions need to consider encodings.
But I'm curious about your usage. Which needs the encoding, the format string or arguments to be converted?
nobu (Nobuyoshi Nakada)
05:28 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
This ticket is for discussion about removing autoload from stdlib (or not)
% grep autoload {ext/*/,}lib/**/* | wc -l
442
nahi (Hiroshi Nakamura)
05:24 PM Feature #5653 (Closed): "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
Hi,

Today, I talked with NaHi about enhancing const_missing to enable
autoload-like feature with nested modules. But autoload itself has
fundamental flaw under multi-thread environment. I should have remove
autoload when I added...
matz (Yukihiro Matsumoto)
03:46 PM Revision 19bca2e6 (git): * test/ruby/test_io.rb (test_fcntl_dupfd): the argument of F_DUPFD is
minimum file descriptor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
03:26 PM Revision 15e793ba (git): * 2011-11-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:26 PM Revision 08f8dfc2 (git): * io.c (linux_get_maxfd): get rid of a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:40 PM Revision f49f6ff1 (git): * io.c (linux_get_maxfd): new function to find maximum fd on Linux.
(rb_close_before_exec): use linux_get_maxfd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:43 AM Bug #5468: IPSocket#valid_v6? in ipaddr.rb contains incorrect regexps
Apologies, you're right. That was a stupid mistake to make :)
However, I'm still getting an invalid address:
ruby-1.9.3-p0 :004 > IPAddr.new('FF32:00FF:A12:34FF:FE56:7890::/96', Socket::AF_INET6)
ArgumentError: invalid addre...
jamesotron (James Harton)
03:09 AM Bug #5568 (Assigned): IO#set_encoding ignores internal when the same as external only when specified as "ext:int"
naruse (Yui NARUSE)

11/20/2011

10:44 PM Bug #5652 (Closed): /\p{Other_Default_Ignorable_Code_Point}/ causes invalid character property name error
This issue was solved with changeset r33797.
Ken, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* enc/unicode.c (PROPERTY_NAME_MAX_SIZE): +1.
reported by Ken Ta...
naruse (Yui NARUSE)
01:04 PM Bug #5652 (Closed): /\p{Other_Default_Ignorable_Code_Point}/ causes invalid character property name error
Unicodeプロパティ名の中で最大長の \p{Other_Default_Ignorable_Code_Point} がエラーになります。
>irb --encoding=UTF-8
irb(main):001:0> /\p{Other_Default_Ignorable_Code_Point}/ =~ 'a'
SyntaxError: (irb):1: invalid character property name {Other_Default_Ignor...
k_takata (Ken Takata)
09:17 PM Revision 81bedc68 (git): * cont.c (fiber_switch): ignore fiber context switch
because destination fiber is same as current fiber.
With out this, it may segv on FreeBSD 9.
patched by Koichi Sasada.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:53 PM Feature #5138: Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
> Bump.  Can someone please give feedback?  What needs to change in this
> patch before it can be applied?
>
> Thanks!

Hey, you said matz has an another idea. So, we need to hear it. isn't it?

Personally, my feelings are,
-...
kosaki (Motohiro KOSAKI)
02:23 PM Feature #5138: Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
On Tue, Aug 02, 2011 at 07:35:15AM +0900, Yehuda Katz wrote:
>
> Issue #5138 has been reported by Yehuda Katz.
>
> ----------------------------------------
> Bug #5138: Add nonblocking IO that does not use exceptions for EOF and ...
Anonymous
03:19 PM Revision ee98d191 (git): * 2011-11-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:19 PM Revision c82ff0aa (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:22 PM Revision c2c6687d (git): * ext/extmk.rb (extract_makefile, extmake): regenerate makefiels
if globbed source file list is changed.
* lib/mkmf.rb (create_makefile): store ORIG_SRCS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:19 PM Revision aa347ba0 (git): * ext/tk/tkutil/tkutil.c (cbsubst_info): fix shorten-64-to-32 warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:05 PM Revision afea9046 (git): * re.c (rb_reg_initialize): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:02 PM Revision 22dcc885 (git): * ext/tk/tkutil/tkutil.c: fix shorten-64-to-32 warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:44 PM Revision be276c14 (git): * enc/unicode.c (PROPERTY_NAME_MAX_SIZE): +1.
reported by Ken Takata. [ruby-dev:44894][Bug #5652]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:33 AM Feature #5650 (Closed): Add rb_enc_raise() to allow C extensions to raise errors with messages with correct encoding
Currently, rb_raise raises exceptions with a message with an encoding set to ASCII-8BIT. Adding rb_enc_raise() will allow the caller to raise an exception with a message with a given encoding. now (Nikolai Weibull)
02:02 AM Revision 901ed0b3 (git): * lib/set.rb (SortedSet.setup): remove old_init after initialize
method is redefined. The remove before redefinition makes the
warning prevention fragile. [ruby-dev:44892]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:21 AM Revision 562c42a6 (git): * lib/set.rb (SortedSet.setup): don't remove old_init. The remove
makes the warning prevention fragile. [ruby-dev:44892]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

11/19/2011

09:52 PM Feature #5572 (Closed): ブロックなしPathname#find呼び出しでEnumeratorを返す
This issue was solved with changeset r33792.
Kazuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/pathname.rb (Pathname#find): return an enumerator if
no...
akr (Akira Tanaka)
09:43 PM Bug #5648 (Closed): irb does not handle recursive heredocs
irb get compile error on following code:
<<A
#{ <<A
A
}
A
neleai (Ondrej Bilka)
07:02 PM Revision 4dd0e267 (git): * 2011-11-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:01 PM Revision f6a635a9 (git): * Makefile.in (enc/unicode/name2ctype.h): remove duplicated
ifdefs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:52 PM Revision 54f282c2 (git): * lib/pathname.rb (Pathname#find): return an enumerator if
no block is given.
* test/pathname/test_pathname.rb: add tests for above.
[ruby-dev:44797] [Feature #5572]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:40 PM Feature #2567: Net::HTTP does not handle encoding correctly
Yui NARUSE wrote:
> The problem is stated in HTML5: misinterpreted for compatibility.
> ...
That link is stale as the specification is constantly being improved. I suggest http://www.w3.org/TR/html5/parsing.html#determining-the-charac...
mksm (Ricardo Amorim)
10:48 AM Revision 62fed7c9 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:47 AM Revision 6445aab4 (git): * time.c (TIME_COPY_GMT): copy vtm.utc_offset and vtm.zone too.
patch by Tomoyuki Chikanaga.
[ruby-dev:44827] [Bug #5586]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:25 AM Feature #5562: Improvement of Windows IO performance
> In addition, some other temp files are left undeleted after make test-all is finished.
About above point, some temp files are still left after applying r33783.
This would be for another reason. Undeleted temp files are as below.
...
h.shirosaki (Hiroshi Shirosaki)
07:21 AM Feature #5562: Improvement of Windows IO performance
> Hmm, does r33783 help you?
Thank you.
I merged r33783 and checked make test-all TESTS="net/http/test_http.rb test_open3.rb".
It passed without error. That fix works.
I found a document.
http://msdn.microsoft.com/en-us/library...
h.shirosaki (Hiroshi Shirosaki)
05:55 AM Feature #5562: Improvement of Windows IO performance
> test_capture3_flip doesn't use Tempfile.
> ...
Minimal test case is as below.
make test-all TESTS="net/http/test_http.rb test_open3.rb"
test_http.rb uses tempfiles.
file = Tempfile.new('ruby-test')
All temp files are not d...
h.shirosaki (Hiroshi Shirosaki)
05:55 AM Feature #5562: Improvement of Windows IO performance
> test_capture3_flip doesn't use Tempfile.
> ...
Minimal test case is as below.
make test-all TESTS="net/http/test_http.rb test_open3.rb"
test_http.rb uses tempfiles.
file = Tempfile.new('ruby-test')
All temp files are not d...
h.shirosaki (Hiroshi Shirosaki)
07:37 AM Revision b0fe6886 (git): * test/net/http/test_http.rb: remove temporally files in ensure clause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:53 AM Bug #5541: Better configure error message when llvm-gcc is the default compiler
>> > Ryan committed r33780.
>>
>> No. this is different patch. Eric patch is far better. Maybe the best message is,
>>
>>     llvm-gcc is not further supported by ruby.  Use gcc or clang (eg. CC
kosaki (Motohiro KOSAKI)
03:23 AM Bug #5541: Better configure error message when llvm-gcc is the default compiler
On Sat, Nov 19, 2011 at 02:07:32AM +0900, Motohiro KOSAKI wrote:
>
> Issue #5541 has been updated by Motohiro KOSAKI.
>
> Status changed from Closed to Open
> Assignee changed from Ryan Davis to Eric Hodel
>
> > Ryan committed...
Anonymous
02:07 AM Bug #5541 (Open): Better configure error message when llvm-gcc is the default compiler
> Ryan committed r33780.
No. this is different patch. Eric patch is far better. Maybe the best message is,
llvm-gcc is not further supported by ruby. Use gcc or clang (eg. CC=clang)
kosaki (Motohiro KOSAKI)

11/18/2011

11:19 PM Revision 6fde18fe (git): * 2011-11-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:19 PM Revision 805a01cb (git): * test/net/http/test_http.rb: remove temporally files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:14 PM Bug #5591: Windows bug when using "shortcut" syntax with output redirection
Luis, that's awesome. I was literally saying to myself the RubyInstaller guys *must* be providing some easy way to do this, I just wasn't able to find anything from the homepage. So thanks! I might give it a try some time. Though I won't... jwille (Jens Wille)
10:03 PM Bug #5591: Windows bug when using "shortcut" syntax with output redirection
Jens Wille wrote:
> Unfortunately, I find myself unable to compile Ruby on Windows. I'm not familiar with developing on that platform and all the instructions I could find were either outdated or rather complicated. So I simply trust th...
luislavena (Luis Lavena)
05:49 PM Bug #5591: Windows bug when using "shortcut" syntax with output redirection
Ok, thank you very much! jwille (Jens Wille)
05:47 PM Bug #5591 (Closed): Windows bug when using "shortcut" syntax with output redirection
I've moved #5593 to backport request (because the ticket has revision information). usa (Usaku NAKAMURA)
05:06 PM Bug #5591: Windows bug when using "shortcut" syntax with output redirection
Unfortunately, I find myself unable to compile Ruby on Windows. I'm not familiar with developing on that platform and all the instructions I could find were either outdated or rather complicated. So I simply trust that it's fixed by r336... jwille (Jens Wille)
05:52 PM Bug #5647 (Closed): Possible use of uninitialized value in Init_bigdecimal
I see the following call chain in bigdecimal.c
Init_bigdecimal -> VpInit -> VpAlloc -> VpGetPrecLimit -> rb_thread_local_aref with id_BigDecimal_precision_limit
The call to VpInit occurs before the call to set the value of id_BigDe...
brixen (Brian Shirai)
01:29 PM Feature #5562: Improvement of Windows IO performance
Hello,

In message "[ruby-core:41124] [ruby-trunk - Feature #5562] Improvement of Windows IO performance"
on Nov.18,2011 11:56:44, <h.shirosaki@gmail.com> wrote:
> At TestOpen3#test_capture3_flip error, ERROR_SHARING_VIOLATI...
usa (Usaku NAKAMURA)
12:23 PM Feature #5562: Improvement of Windows IO performance
2011/11/18 Hiroshi Shirosaki <h.shirosaki@gmail.com>:
>
> Issue #5562 has been updated by Hiroshi Shirosaki.
>
>
> At TestOpen3#test_capture3_flip error, ERROR_SHARING_VIOLATION occurs because ruby tries to unlink a temp file ...
akr (Akira Tanaka)
11:56 AM Feature #5562: Improvement of Windows IO performance
At TestOpen3#test_capture3_flip error, ERROR_SHARING_VIOLATION occurs because ruby tries to unlink a temp file while new process by capture3 are running. New process seems to have reference to the temp file.
In addition, some other te...
h.shirosaki (Hiroshi Shirosaki)
01:37 AM Feature #5562: Improvement of Windows IO performance
Usaku NAKAMURA wrote:
>
> ...
Usa,
With latest test patch, do you think this is good to be merged?
luislavena (Luis Lavena)
11:48 AM Bug #5626 (Feedback): io/console: Cannot disable raw mode
Misty De Meo wrote:
> There doesn't seem to be a way to disable tty raw mode from within a Ruby script. The tty can be stuck in raw mode on script termination if IO.console.raw! is used, or if a raw command like IO.console.getch is in a...
nobu (Nobuyoshi Nakada)
10:00 AM Bug #5541 (Closed): Better configure error message when llvm-gcc is the default compiler
Ryan committed r33780.
To Ryan
Please include ticket number in the commit log like [Bug #5541].
If you include it, then Redmine detect it and close the ticket.
naruse (Yui NARUSE)
08:03 AM Bug #5541: Better configure error message when llvm-gcc is the default compiler
ping? kosaki (Motohiro KOSAKI)
08:18 AM Revision 714ec98e (git): * ext/io/console/console.c (console_raw, console_set_raw)
(console_getch): optional parameters. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:12 AM Revision 3723ac22 (git): * ext/io/console/console.c (console_cooked, console_set_cooked):
new methods to reset cooked mode. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:21 AM Revision 7491541e (git): * test/unit/assertions.rb (MINI_DIR): quick dirty hack to get rid of
warnings when using assert/assert_respond_to.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:06 AM Revision 44cff77b (git): * io.c (rb_cloexec_open): set O_NOINHERIT instead of O_CLOEXEC if it is
available (for Windows).
* win32/win32.c (fcntl): on F_DUPFD, determine the inheritance of the
new handle by O_NOINHERIT flag of original fd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:53 AM Feature #5590: Proposal for sustainable branch maintenance
On Sat, Nov 05, 2011 at 03:11:55PM +0900, Yuki Sonoda (Yugui) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> == Background
> I have been maintaining ruby_1_9_1 and ruby_1_9_2 branch.
> Ruby 1.9 is now sta...
Anonymous
02:18 AM Bug #5645 (Closed): YAML.load_file prevents following File.delete
This was fixed by r33775, but the ticket wasn't closed automatically. :-/
Closing now. Thanks for the bug report!
tenderlovemaking (Aaron Patterson)
01:33 AM Feature #5588: add negation flag (v) to Regexp
Yui NARUSE wrote:
> I doubt this function under the current implementation should be
> ...
I respectfully disagree; for me, wholly negated regexps are more
useful than partly negated ones. Please see my use cases below.
> Moreover...
sunaku (Suraj Kurapati)
12:53 AM Bug #3385: ext/dbm: accept various version of db
あいざわです

>> Lionでは問題なく通るようです。もういれちゃって、誰かが
>> ぎゃっと言ってから考えるでいいんじゃないでしょうか。
>> 2.0でるころにはSnow Leopard サポートしなくても怒られない予感がするし

SnowLeopardでも問題なく動くことを確認しました。
ayumin (Ayumu AIZAWA)

11/17/2011

11:02 PM Revision d6c86e63 (git): Imported minitest 2.8.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
10:38 PM Revision 6b43a556 (git): * 2011-11-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:38 PM Revision 5a94b29c (git): Improved error message when using llvm-gcc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
09:25 PM Bug #5447: Rails can't create a new app when a folder with accented letter is in the path
Oops, we where writing at the same time. Thanks for your response. gnal-ybur (Joël Brogniart)
09:23 PM Bug #5447: Rails can't create a new app when a folder with accented letter is in the path
The problem seem to be related to File.expand_path.
With ruby 1.9.3-p0:
ruby-1.9.3-p0 :001 > d1 = Dir.getwd
=> "/Users/brogniar/Documents/tests/Émilie/toto"
ruby-1.9.3-p0 :002 > d2 = File.dirname(d1)
=> "/Users/brogniar/Do...
gnal-ybur (Joël Brogniart)
09:17 PM Bug #5447 (Closed): Rails can't create a new app when a folder with accented letter is in the path
Your research show the problem is derived an issue fixed by r33603,
and the change will be backported by #5533.
So it will be fixed on next patch release of 1.9.3.
Thanks,
naruse (Yui NARUSE)
09:07 PM Bug #5447: Rails can't create a new app when a folder with accented letter is in the path
It's not a thor's bug. It's perhaps an issue related to the way ruby 1.9.3 is configured on Mac OS X. The issue is still there with ruby 1.9.3-p0.
Here is a sample test to see the problem (without using Thor).
In OS X' Finder create...
gnal-ybur (Joël Brogniart)
08:51 PM Bug #5611 (Closed): Segfault in net/http.rb
naruse (Yui NARUSE)
07:54 AM Bug #5611: Segfault in net/http.rb
Removing mac ports PATH entries and re-compiling also worked for me. Thanks! ccocchi (Christopher Cocchi)
02:21 AM Bug #5611: Segfault in net/http.rb
Removing the mac ports $PATH entries /opt/local/bin and /opt/local/sbin from my path and re-compiling worked for me. My guess is that removing /opt/local/bin/openssl from the path in lieu of /usr/bin/openssl is what's making it compile a... bshelton (Bryan Shelton)
01:29 AM Bug #5611: Segfault in net/http.rb
I have a similar problem samuelkadolph helped in the ruby-lang IRC channel. Turned out my installation was broken because it was compiling against openssl in mac port's /opt/local/lib /opt/local/include.
You could verify this by runni...
bshelton (Bryan Shelton)
06:07 PM Feature #5341: Add SSL session reuse to Net::HTTP
Eric Hodel wrote:
> On Oct 26, 2011, at 6:06 AM, Hiroshi Nakamura wrote:
> ...
We already had discussed some of this on IRC. I looked into the TLS RFCs a couple of days back, and from the discussion and the RFC I conclude the same as E...
MartinBosslet (Martin Bosslet)
05:54 PM Bug #5545 (Assigned): Net::HTTP breaks with https URI objects
Thanks, Mark, for reporting this and providing the patch.
As far as I know, Eric is working on a fix for this problem, too?
MartinBosslet (Martin Bosslet)
05:53 PM Bug #3385: ext/dbm: accept various version of db
2011年11月17日12:17 KOSAKI Motohiro <kosaki.motohiro@gmail.com>:

> Lionでは問題なく通るようです。もういれちゃって、誰かが
> ぎゃっと言ってから考えるでいいんじゃないでしょうか。
> 2.0でるころにはSnow Leopard サポートしなくても怒られない予感がするし

では trunk には入れることにしますか。
--
[田中 哲][たなか あきら][Tanaka ...
akr (Akira Tanaka)
12:23 PM Bug #3385: ext/dbm: accept various version of db
2011年11月16日9:55 Tanaka Akira <akr@fsij.org>:
> 2011年11月12日8:14 Tanaka Akira <akr@fsij.org>:
>
>> ここの部分ですが、have_type("dbm", ["db.h", h], hsearch)} を
>> 加えているのはなんででしょう?
>
> 探したところ、pkgsrc の
>
> Both db.h and ndbm.1 must be...
kosaki (Motohiro KOSAKI)
05:43 PM Feature #5588: add negation flag (v) to Regexp
I doubt this function under the current implementation should be flags because /ruby/v =~ "ruby" is now useless example.
I think people who want to use this negation flag should simply write (?:(?!r).).
Moreover it has a bug, for ex...
naruse (Yui NARUSE)
07:50 AM Feature #5588: add negation flag (v) to Regexp
Attaching patch with updated test case to illustrate
how unanchored partly negated regexp matching works:
/(?v:ruby)/ =~ "ruby" #=> 1
["r", "u", "by"] == [$`, $&, $'] #=> true
Thanks for your considera...
sunaku (Suraj Kurapati)
02:25 PM Bug #5625: Remove profanity and pejoratives
Additional to say, don't use "windoze", "doze", or something like that because I can't grep it with "Windows". naruse (Yui NARUSE)
12:10 PM Bug #5625: Remove profanity and pejoratives
Thank you for the patches.
I think you should report to each upstreams.
nobu (Nobuyoshi Nakada)
11:45 AM Revision 09d2180d (git): * ext/dbm/extconf.rb: revert a part of the patch in [ruby-dev:41531].
don't use db.h with other headers. [ruby-dev:44884].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:24 AM Revision b37c003e (git): * benchmark/bm_io_select[23].rb: use Process::RLIMIT_NOFILE only when
it is defined. if it is not defined, assume 64 as the max of fds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:25 AM Bug #5645 (Closed): YAML.load_file prevents following File.delete
In ruby 1.9.2 and earlier this works:
d = YAML::load_file(fname)
File.delete(fname)
In 1.9.3 the delete fails with permission denied.
The work around is to use:
d = File.open(fname) { |f| YAML::load(f) }
File.delete(fname)
gknowles (Glen Knowles)
10:09 AM Feature #5644: add Enumerable#exclude? antonym
Hey, a use for functors!
module Kernel
def not
Functor.new do |op,*a,&b|
!__send__(op,*a,&b)
end
end
end
some_list.not.include? some_file
Nothing against Enumerable#exclude? though. Seems ...
trans (Thomas Sawyer)
09:38 AM Feature #5644 (Feedback): add Enumerable#exclude? antonym
Please add Enumerable#exclude? as antonym of Enumerable#include?
This allows me to construct Boolean expressions more pleasantly:
if File.exist? some_file and not some_list.include? some_file
Can be written as:
if File.ex...
sunaku (Suraj Kurapati)
07:52 AM Feature #5562: Improvement of Windows IO performance
@usa, @luis,
What specific tasks must be completed before this patch will be accepted and committed to trunk?
jonforums (Jon Forums)
07:41 AM Feature #5643 (Assigned): require/load options and binding option
Current Kernel#load is defined as:
load(filename, wrap=false)
I purpose that it be modified to work as option argument, e.g.
load(filename, :wrap=>true)
Right off the bat this has better name connascence.
Then supp...
trans (Thomas Sawyer)
01:42 AM Revision b5907f7d (git): infinite loop seems to be fixed, so I can uncomment this assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tenderlovemaking (Aaron Patterson)
01:38 AM Revision 9660bcfc (git): * 2011-11-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:38 AM Revision 07636686 (git): * ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
also closed. [ruby-core:41088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
 

Also available in: Atom