Project

General

Profile

Activity

From 11/20/2011 to 11/26/2011

11/26/2011

11:53 PM Bug #5547: Cleanup engine after a test
Yui NARUSE wrote:
> OK.
> If another issue happens, I make another ticket.
Great, thanks!
MartinBosslet (Martin Bosslet)
11:49 PM Bug #5547: Cleanup engine after a test
Martin Bosslet wrote:
> Yui NARUSE wrote:
> > Martin Bosslet wrote:
> > > Yui NARUSE wrote:
> ...
> > > This rem...
naruse (Yui NARUSE)
11:43 PM Bug #5547 (Closed): Cleanup engine after a test
Yui NARUSE wrote:
> Martin Bosslet wrote:
> > Yui NARUSE wrote:
...
> > This removes side effects from differing ...
MartinBosslet (Martin Bosslet)
11:27 PM Bug #5547: Cleanup engine after a test
Martin Bosslet wrote:
> Yui NARUSE wrote:
> > Yes, the phenomenon, the result of above code will change after OpenS...
naruse (Yui NARUSE)
11:11 PM Bug #5547: Cleanup engine after a test
Yui NARUSE wrote:
> Yes, the phenomenon, the result of above code will change after OpenSSL::Engine.load on NetBSD c...
MartinBosslet (Martin Bosslet)
03:01 PM Bug #5547: Cleanup engine after a test
Yes, the phenomenon, the result of above code will change after OpenSSL::Engine.load on NetBSD current,
itself shoul...
naruse (Yui NARUSE)
11:05 AM Bug #5547 (Third Party's Issue): Cleanup engine after a test
It's OpenSSL itself that causes the weird behaviour.

On my machine with no cryptodev installed, I get the expecte...
MartinBosslet (Martin Bosslet)
10:49 PM Revision 7d11b9e2 (git): * configure.in (--no-undefined): r33840 breaks FreeBSD and DragonFly
with gcc 4.4 or later. Their environ is in /usr/libexec/ld-elf.so.1,
so it will be false negative.
git-svn-id: svn...
naruse (Yui NARUSE)
09:15 PM Feature #5588: add negation flag (v) to Regexp
Suraj Kurapati wrote:
> Yui NARUSE wrote:
> > I doubt this function under the current implementation should be
> >...
naruse (Yui NARUSE)
08:44 PM Bug #5545 (Closed): Net::HTTP breaks with https URI objects
This issue was solved with changeset r33849.
Mark, thank you for reporting this issue.
Your contribution to Ruby is g...
naruse (Yui NARUSE)
08:03 PM Revision b361c5ad (git): Fix typo in r33849.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:59 PM Revision 01a64885 (git): * configure.in (--no-undefined): r33840 breaks FreeBSD with gcc47.
FreeBSD's environ is in /usr/libexec/ld-elf.so.1, so it will be
false negative.
git-svn-id: svn+ssh://ci.ruby-lang...
naruse (Yui NARUSE)
07:59 PM Revision b6b8cc01 (git): * lib/net/http.rb (Net::HTTP::SSL_IVNAMES): rerefix 33701.
SSL_ATTRIBUTES stores names for set_params, they are symbol.
SSL_IVNAMES stores instance variable names.
git-svn-i...
naruse (Yui NARUSE)
06:47 PM Feature #5673: undef_method probably doesn't need to raise an error
I can imagine that raising errors in such cases might be meant to discourage excessive metaprogramming. alexeymuranov (Alexey Muranov)
12:33 PM Feature #5673 (Feedback): undef_method probably doesn't need to raise an error
Is there any significant reason for #undef_method to raise an error if the method is already undefined? If no, then c... trans (Thomas Sawyer)
03:18 PM Revision e125a38c (git): * 2011-11-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:18 PM Revision 5f652716 (git): * io.c (copy_stream_body): use 0666 for permission argument for open.
[ruby-core:40865]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:04 PM Revision 0f59228a (git): * test/openssl/test_engine.rb: remove side effect of generic engine
load by explicitly loading software-based "openssl" engine for
all tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/...
MartinBosslet (Martin Bosslet)
11:44 AM Revision 708d76a3 (git): * lib/net/http.rb (Net::HTTP.get_response): enable use_ssl
if given URI object is https.
patched by Mark Ferlatte [ruby-core:40665] [Bug #5545]
* lib/net/http.rb (Net::HTTP....
naruse (Yui NARUSE)
11:06 AM Revision 9d4db2d4 (git): * lib/net/http.rb (Net::HTTP::SSL_ATTRIBUTES): refix 33701.
store instance variable symbol names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33848 b2dd03c8-39d4-4d8f-98f...
naruse (Yui NARUSE)
10:49 AM Bug #5432 (Closed): ruby 1.9.2-p290 ext/openssl build failure on Solaris 10 with Sun Workshop 12.1 or 12.2
This issue was solved with changeset r33843.
Tim, thank you for reporting this issue.
Your contribution to Ruby is gr...
Anonymous
09:28 AM Bug #5169: Crash on Mac OSX when loading pdflib extension while running from RAILS
Please check this issue again.
Searching for problems in the third party plugin ended in the approach to use a ver...
Anonymous
07:38 AM Bug #5671 (Closed): windows でのマルチバイト文字列を含むファイルへの File.chmod
http://hibari.2ch.net/test/read.cgi/tech/1155031689/805-809
で言われていたのですが、Windows 環境で File.chmod に ASCII 範囲外の文字を含むファイル...
wanabe (_ wanabe)
06:53 AM Feature #5662: inject-accumulate, or Haskell's mapAccum*
> new_hash = enum.inject({}) { |h, thing| h[compute_key(thing)] = compute_value(thing); h }
> while that last h is...
ujihisa (Tatsuhiro Ujihisa)
06:41 AM Revision 5fa9e5c3 (git): * .travis.yml (script): should be ./configure
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
06:39 AM Revision 47463584 (git): * .travis.yml (before_script): wrong name, sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
06:32 AM Revision 5606f11e (git): * .travis.yml (before-script): autoconf required.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
06:26 AM Revision c36ee7bd (git): * .travis.yml: Travis enable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)
01:54 AM Bug #5670 (Third Party's Issue): Emacs ruby-mode syntax highlighting issue
Hi there,
I'm using Emacs and ruby-mode for editing my Ruby files. ruby-mode, however, doesn't know about the % l...
Quintus (Marvin Gülker)
01:49 AM Revision 41fa4bd7 (git): * ext/openssl/extconf.rb: remove checks for available functions.
* ext/openssl/missing.h: ditto.
Thanks, Tim Mooney for reporting this!
[Bug #5432] [ruby-core:40088]
git-svn-id...
MartinBosslet (Martin Bosslet)
01:25 AM Revision bdf357bf (git): * ext/openssl/ossl_ssl.c: add comment on where to find implementation
of OpenSSL::SSL::SSLSocket#session.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33842 b2dd03c8-39d4-4d8f-98ff...
MartinBosslet (Martin Bosslet)

11/25/2011

09:54 PM Feature #5583: Optionally typing
Excuse me if this thread is not a good place to post this question, but i will appreciate any clarification or a link... alexeymuranov (Alexey Muranov)
08:00 PM Revision b079453d (git): * 2011-11-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:00 PM Revision 8b83ea9e (git): * configure.in (--no-undefined): RUBY_TRY_CFLAGS does nothing for
linker flags. use RUBY_TRY_LDFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33840 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
03:23 PM Feature #5653: "I strongly discourage the use of autoload in any standard libraries" (Re: autoload will be dead)
"autoloading" can still be done by putting the require within a method that
is called only as needed.

The do...
trans (Thomas Sawyer)
12:06 PM Feature #2567: Net::HTTP does not handle encoding correctly
Ricardo Amorim wrote:
> Yui NARUSE wrote:
> > Is such a string always ISO-8859-1 other than non US/West Europe?
> ...
naruse (Yui NARUSE)
12:54 AM Feature #2567: Net::HTTP does not handle encoding correctly
Yui NARUSE wrote:
> Is such a string always ISO-8859-1 other than non US/West Europe?
Yes, ISO-8859-1 always fits...
mksm (Ricardo Amorim)
12:00 PM Feature #5663: Combined map/select method
Rodrigo Rosenfeld Rosas wrote:
> Nobuyoshi, wouldn't &:even? be equivalent to :even?.to_proc? I just find that the e...
nobu (Nobuyoshi Nakada)
11:54 AM Bug #4373 (Third Party's Issue): http.rb:677: [BUG] Segmentation fault
Read http://www.christopherirish.com/2011/09/02/ruby-1-9-2-segmentation-fault-and-openssl/ naruse (Yui NARUSE)
11:53 AM Bug #5655 (Third Party's Issue): Segfault in Net::HTTP on OS X Lion
Install openssl with macports or homebrew or something and use it.
See http://www.christopherirish.com/2011/09/02/ru...
naruse (Yui NARUSE)
08:02 AM Bug #5459 (Closed): Silence -Wmissing-declarations and -Wold-style-definition warnings in mkmf
This issue was solved with changeset r33834.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby i...
kosaki (Motohiro KOSAKI)
02:45 AM Revision aa23f6b9 (git): * io.c (ioctl_narg_len, linux_iocparm_len): reinstantiate linux
specific narg length calculation.
* test/ruby/test_io.rb (test_ioctl_linux2): add new test for old and
unstructured...
kosaki (Motohiro KOSAKI)
01:50 AM Feature #5666: Make rb_path2class public
If we expose rb_path2class(char*), we maybe need to expose rb_path_to_class(VALUE) too. because rb_path2class() is co... kosaki (Motohiro KOSAKI)
01:41 AM Revision 0996ae36 (git): * Makefile.in (EXTLDFLAGS): export it.
* configure.in: add --no-undefined if --enable-shared is specified.
Gentoo enabled this option long time. Also, exp...
kosaki (Motohiro KOSAKI)

11/24/2011

11:50 PM Revision 98975ba9 (git): * configure.in: turn on PIE if --enable-shared is not specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
11:06 PM Revision b2eae789 (git): * configure.in: add -fstack-protector. It help to protect us from
stack smashing attack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
11:04 PM Revision d0e615e2 (git): * configure.in: add -D_FORTIFY_SOURCE=2. It provide some compile
time and runtime check for security.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33835 b2dd03c8-39d4-4d8f-98ff...
kosaki (Motohiro KOSAKI)
11:02 PM Revision b418bc9b (git): * lib/mkmf.rb: get rid of warnings of mkmf.rb if -Wmissing-declarations
and/or -Wold-style-definition warnings if specified.
Patch by Nikolai Weibull. Thank you! [Bug #5459] [ruby-core:40...
kosaki (Motohiro KOSAKI)
10:58 PM Revision 450c2094 (git): * configure.in: remove [read buffer ptr field in FILE structures] check.
ruby 1.9 or later doesn't use stdio at all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33833 b2dd03c8-39d4-4d...
kosaki (Motohiro KOSAKI)
10:54 PM Revision 746aa6f7 (git): * configure.in: remove [read count field in FILE] check.
ruby 1.9 or later doesn't use stdio at all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33832 b2dd03c8-39d4-4d...
kosaki (Motohiro KOSAKI)
10:49 PM Revision 1e79a33e (git): * 2011-11-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:49 PM Revision 5817762f (git): * configure.in: add -Wall always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
09:20 PM Feature #5669 (Rejected): Random thread scheduling based on a seed
Just a little idea that popped into my head:
Would it be possible to have "random" thread scheduling (based on a s...
judofyr (Magnus Holm)
08:43 PM Feature #5663: Combined map/select method
How can I find the syntax for highlighting the code in this Redmine instance? rosenfeld (Rodrigo Rosenfeld Rosas)
08:41 PM Feature #5663: Combined map/select method
Nobuyoshi, wouldn't &:even? be equivalent to :even?.to_proc? I just find that the example reads better this way ;)
(...
rosenfeld (Rodrigo Rosenfeld Rosas)
05:49 PM Feature #5663: Combined map/select method
Related methods:
* filter (http://rubyworks.github.com/facets/doc/api/core/Enumerable.html#method-i-filter)
* pur...
trans (Thomas Sawyer)
04:12 PM Feature #5663: Combined map/select method
=begin
What about:
(1..10).grep(->(i){i.even?}){|i|i+1}
or
(1..10).grep(:even?.to_proc){|i|i+1}
=end
nobu (Nobuyoshi Nakada)
09:54 AM Feature #5663: Combined map/select method
I was just suggesting that maybe avoiding laziness for this case would be less of a trouble since we wouldn't need to... rosenfeld (Rodrigo Rosenfeld Rosas)
01:53 AM Feature #5663: Combined map/select method
Rodrigo Rosenfeld Rosas wrote:
> Alexey, what about thread safety in this case? Would the selecting return a new obj...
alexeymuranov (Alexey Muranov)
12:21 AM Feature #5663: Combined map/select method
Alexey, what about thread safety in this case? Would the selecting return a new object? rosenfeld (Rodrigo Rosenfeld Rosas)
07:53 PM Feature #2567: Net::HTTP does not handle encoding correctly
2011/11/24 Ricardo Amorim <[email protected]>:
>
> Issue #2567 has been updated by Ricardo Amorim.
>
>
> Yui NARUSE wrote...
naruse (Yui NARUSE)
01:01 PM Feature #2567: Net::HTTP does not handle encoding correctly
Yui NARUSE wrote:
> It shouldn't effect because URI doesn't include non ASCII character.
> If you are talking about...
mksm (Ricardo Amorim)
11:56 AM Feature #2567: Net::HTTP does not handle encoding correctly
Ricardo Amorim wrote:
> Also, response header values encoding are set to ASCII-8BIT. According to this: http://tools...
naruse (Yui NARUSE)
11:25 AM Feature #2567: Net::HTTP does not handle encoding correctly
Also, response header values encoding are set to ASCII-8BIT. According to this: http://tools.ietf.org/html/rfc2616#se... mksm (Ricardo Amorim)
11:12 AM Feature #2567: Net::HTTP does not handle encoding correctly
Benoit Daloze wrote:
> I think Net::HTTP should not transcode (#encode) the response, just set the right encoding if...
mksm (Ricardo Amorim)
08:23 AM Feature #2567: Net::HTTP does not handle encoding correctly
(2011/11/24 7:38), Hiroshi Nakamura wrote:
> There's an implementation in open-uri.rb. You'd better check that fo...
naruse (Yui NARUSE)
07:53 AM Feature #2567: Net::HTTP does not handle encoding correctly
On Thu, Nov 24, 2011 at 02:15, Yui NARUSE <[email protected]> wrote:
> I don't decide whether merge this or not ye...
nahi (Hiroshi Nakamura)
02:15 AM Feature #2567: Net::HTTP does not handle encoding correctly
I don't decide whether merge this or not yet, an experimental patch is following:
~~~patch
diff --git a/lib/net/h...
naruse (Yui NARUSE)
01:57 AM 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.
...
Eregon (Benoit Daloze)
06:45 PM Bug #5488: autoconf failure on HP-UX/PA
The patch seems didn't work
I still got the error
checking stack growing direction on hppa2.0w... ./configure[1471...
huhongbo (hongbo hu)
01:30 PM Bug #5657 (Rejected): Constants in included modules aren't visible when defining classes with Class.new
Gary Bernhardt wrote:
> In that case, I think that this can be safely closed.
Thanks for your confirmation.
shugo (Shugo Maeda)
11:34 AM Feature #5582: Allow clone of singleton methods on a BasicObject
=begin
My first attempt:
module Clone
include Kernel
(instance_methods - [:clone, :initialize_clone]).ea...
kernigh (George Koehler)
11:07 AM Revision d7b7f56c (git): * test/openssl/test_engine.rb: use IO#reopen to restore stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:05 AM Feature #5658: Wrap mkmf.rb in a module to clean up documentation
It seems same as mine.
Let's try it.
nobu (Nobuyoshi Nakada)
11:00 AM Revision bee4e843 (git): * io.c (rb_io_reopen): re-initialize buffereing mode for stdout and
stderr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:09 AM Bug #5633 (Closed): Suppress output during Engine cipher test
This issue was solved with changeset r33825.
Martin, thank you for reporting this issue.
Your contribution to Ruby is...
Anonymous
09:35 AM Feature #5666: Make rb_path2class public
While we're at it, can we create a version of this exposed to Ruby?
Something like Module#path_to_module would be ...
wycats (Yehuda Katz)
06:53 AM Feature #5666 (Closed): Make rb_path2class public
I would like to make rb_path2class public C api. I've attached a patch to make it happen along with updates to READM... tenderlovemaking (Aaron Patterson)
08:45 AM Feature #4862: Struct#to_hash
Struct does use instance variables, you just can't see them from ruby because they don't start with @ drbrain (Eric Hodel)
08:33 AM Feature #4862: Struct#to_hash
Despite it's implementation, I thought Struct was intended to provide a convenient way to make quick classes. Which i... trans (Thomas Sawyer)
07:31 AM Feature #4862: Struct#to_hash
Thomas Sawyer wrote:
> Then again maybe I'm wrong b/c I was just surprised by the fact that a Struct doesn't have (o...
Eregon (Benoit Daloze)
05:09 AM Feature #4862: Struct#to_hash
Then again maybe I'm wrong b/c I was just surprised by the fact that a Struct doesn't have (or at least act like it h... trans (Thomas Sawyer)
05:03 AM Feature #4862: Struct#to_hash
A Struct doesn't respond to hardly any Hash methods in general. So `#to_h` seems more appropriate.
trans (Thomas Sawyer)
04:08 AM Feature #4862: Struct#to_hash
def to_hash() Hash[members.zip(values)] end rossmeissl (Andy Rossmeissl)
08:15 AM Bug #5604 (Closed): Remove extra ":" in errors created by ossl_raise
This issue was solved with changeset r33821.
Eric, thank you for reporting this issue.
Your contribution to Ruby is g...
Anonymous
07:29 AM Bug #5598: man pages are in mdoc format
Ruby should use its tool/mdoc2man.rb to convert mdoc format to man format. This is broken because some targets in Mak... kernigh (George Koehler)
04:59 AM Feature #5650: Add rb_enc_raise() to allow C extensions to raise errors with messages with correct encoding
On Mon, Nov 21, 2011 at 10:14, Nobuyoshi Nakada <[email protected]> wrote:

> I agree that exceptions need to con...
now (Nikolai Weibull)
03:08 AM Revision 7e35d6fc (git): add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:57 AM Revision d7166624 (git): Merge branch 'fsync-nogvl' into trunk
Conflicts:
ChangeLog
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33826 b2dd03c8-39d4-4d8f-98ff-823fe69...
kosaki (Motohiro KOSAKI)
01:09 AM Revision 452b74c1 (git): * test/openssl/test_engine.rb: Suppress output from 'openssl'
engine's RC4 cipher.
[Bug #5633] [ruby-core:41026]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33825 b2dd03...
MartinBosslet (Martin Bosslet)
12:47 AM Feature #5662: inject-accumulate, or Haskell's mapAccum*
Hi,
Edvard Majakari wrote:
> Ok.. I'll give real example to show what is typical use case for us:
>
> hash = M...
marcandre (Marc-Andre Lafortune)
12:46 AM Revision 5c7e691e (git): increase difference of priority to avoid false nagative test result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

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...
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...
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 somewh...
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 ...
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 ...
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... 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_objec...
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[com...
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.
...
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 ...
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 t... 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 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 <[email protected]>:
> It is pretty common to want to map over an Enumerable, but o...
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 P...
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_...
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 mo... 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... 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 <[email protected]> wrote:

> On Nov 19, 2011 4:11 AM, "Yukihiro Mat...
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" <[email protected]> wrote:
>
> Hi,
>
> Today, I talked with N...
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 possib...
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 <[email protected]> wrote:
> Today, I talked with NaHi about enhancing const_missing to enable...
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 FION...
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... 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 resto...
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:
> Fro...
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?
Ca...
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.... 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:...
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 si...
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 yo... drbrain (Eric Hodel)
09:29 PM Feature #5512: Integer#/ の改訂
たるいです。

2011年11月1日22:12 Yusuke Endoh <[email protected]>:
> 本気で変える予定があるのなら、特大の非互換になりますので、今のうちに
> 切り捨てたい場合の推奨代替策...
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_...
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 ...
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 ... 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 clai...
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.
...
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)

Constan...
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 bo... 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 w...
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 i...
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 Nak...
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 ...
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
uninte...
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 ...
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 g...
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 ...
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
+ ...
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... 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-823fe6...
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 O... 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 ex...
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-...
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 seriali...
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...
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...
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 ...
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....
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-...
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:
...
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 gr...
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...
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 Sa...
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?
>
> ...
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.
>...
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....
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...
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 ... 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...
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 b2d...
akr (Akira Tanaka)
 

Also available in: Atom