Project

General

Profile

Activity

From 02/22/2014 to 02/28/2014

02/28/2014

11:43 PM Bug #9583 (Rejected): Open3 cannot talk correctly with Ruby when there is a large DATA segment passed through stdin. Broken pipe (Errno::EPIPE)
$ # Tested against
$ ruby -v
ruby 2.2.0dev (2014-03-01 trunk 45219) [x86_64-darwin12.0]
Example
$ ruby -e 'puts "__END__"; puts "."*24_568' > f.rb; ruby -r open3 -e 'Open3.popen3("ruby") { |i, o, e| i.write File.read "f.rb"; i.c...
josh.cheek (Josh Cheek)
11:23 PM Bug #9192: Inconsistent comparison between Float and BigDecimal
Marc-Andre Lafortune wrote:
> 2) The implementation is buggy. For example:
> ...
You are exceeding the max precision Float::DIG (http://www.ruby-doc.org/core-2.0.0/Float.html#DIG => "Usually defaults to 15."). Your example uses 17 sign...
knugie (Wolfgang Teuber)
10:31 PM Bug #9582 (Rejected): CSV#headers not giving expected results.
It seems something not working as expected in CSV. I tried to find the reason here , http://rxr.whitequark.org/mri/source/lib/csv.rb but I failed.
require 'csv'

content = <<_
key,fr
edit,Éditer
close,Ferm...
pritamdey (arup rakshit)
10:22 PM Feature #9579: [PATCH] ext/extmk.rb: parallelize configure
nobu@ruby-lang.org wrote:
> Does it work with `static-linked-ext` or `compiled?` method?

OK, I should have both of them working with a lot of new code
and pushed out an addendum patch:

http://bogomips.org/ruby.git/patch?id=84ea...
normalperson (Eric Wong)
04:42 PM Feature #9579: [PATCH] ext/extmk.rb: parallelize configure
nobu@ruby-lang.org wrote:
> Does it work with `static-linked-ext` or `compiled?` method?

Oops, I'll see if I can fix those.
normalperson (Eric Wong)
11:54 AM Feature #9579: [PATCH] ext/extmk.rb: parallelize configure
Does it work with `static-linked-ext` or `compiled?` method? nobu (Nobuyoshi Nakada)
09:24 AM Feature #9579 (Closed): [PATCH] ext/extmk.rb: parallelize configure
This reduces "touch ext/extmk.rb && make -j" time from
roughly 38 to 16 seconds on my 8 core machine with
an otherwise fully-built source tree.
http://bogomips.org/ruby.git/patch?id=bc6acbaa40
git pull git://80x24.org/ruby.git ex...
normalperson (Eric Wong)
09:21 PM Bug #9581 (Closed): `=~` defined on a subclass of `String` is sometimes ignored, and `String#=~` is called instead
As is reported on StackOverflow (http://stackoverflow.com/questions/22103018) by Gabriel, overridden `=~` on a subclass of `String` is sometimes ignored, and the original `String#=~` is called. Particularly, when we have:
class My...
sawa (Tsuyoshi Sawada)
09:03 PM Bug #9580 (Closed): Refinements regression in IRB
The problem: Top level refinements do not work in IRB. They worked in 2.0.0-p451, but don't work in 2.1.0, 2.1.1, or today's trunk.
Details:
Here some code in a file:
#refine.rb

module A
refine String do
...
davidbalbert (David Albert)
04:42 PM Feature #9577: [PATCH] benchmark/driver.rb: align columns in text output
SASADA Koichi <ko1@atdot.net> wrote:
> (2014/02/28 16:44), normalperson@yhbt.net wrote:
> > It is easier to read output when columns are aligned properly.
> > I have an 80 column terminal, that's HUGE! Use it :D
>
> Sorry, I can'...
normalperson (Eric Wong)
12:30 PM Feature #9577: [PATCH] benchmark/driver.rb: align columns in text output
(2014/02/28 16:44), normalperson@yhbt.net wrote:
> It is easier to read output when columns are aligned properly.
> I have an 80 column terminal, that's HUGE! Use it :D

Sorry, I can't read .gz file because of my environment.

Wh...
ko1 (Koichi Sasada)
07:44 AM Feature #9577 (Closed): [PATCH] benchmark/driver.rb: align columns in text output
It is easier to read output when columns are aligned properly.
I have an 80 column terminal, that's HUGE! Use it :D
pulL: git://80x24.org/ruby.git bmdriver-align
patch: http://bogomips.org/ruby.git/patch?id=32eed05c80
samples
b...
normalperson (Eric Wong)
04:01 PM Revision abb0286b (git): [DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:47 PM Revision 73203c58 (git): * 2014-03-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:47 PM Revision e8b9611b (git): numeric.c: predefined constants
* numeric.c (id_eq, id_cmp): use predefined constants in id.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:37 AM Bug #9578 (Closed): ‘Function’ undeclared in readline.c
When compiling Ruby 2.1.1, I get the following error
~~~
make[2]: Entering directory '/tmp/ruby-build.20140228114849.30108/ruby-2.1.1/ext/readline'
compiling readline.c
readline.c: In function ‘Init_readline’:
readline.c:1977:26: ...
dmedvinsky (Dmitry Medvinsky)
08:28 AM Bug #9213 (Assigned): mkmf.rb emits invalid destination directory name for mswin32/64
memo: 2.0.0 has not backported r41648 and r41756.
nobu (Nobuyoshi Nakada)
03:03 AM Bug #9213: mkmf.rb emits invalid destination directory name for mswin32/64
副作用の報告です。
## Sample code
### sample.c
~~~c
void Init_Sample() {
}
~~~
### extconf.rb
~~~ruby
require "mkmf"
create_makefile("Sample")
~~~
## Operation
~~~
C:\TMP>ruby -v
1: ruby 2.0.0p451 (2014-02-24) [i...
katonbo (Masahiro Kitajima)
08:00 AM Revision 847e3621 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:57 AM Revision aab2cd21 (git): * test/xmlrpc/test_client.rb: append assetion use_ssl variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
06:57 AM Revision f6ae77d9 (git): * test/zlib/test_zlib.rb: remove commented out code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
05:23 AM Bug #9561 (Closed): Error downloading files from repository (.zip, .tar.gz, .tar.bz2, etc)
Thank you for your feedback! hsbt (Hiroshi SHIBATA)
02:07 AM Bug #9561: Error downloading files from repository (.zip, .tar.gz, .tar.bz2, etc)
I've tried again from home, and I was able to download successfully the file "ruby-2.1.1.zip" from both http://ftp.ruby-lang.org/pub/ruby/2.1/ and http://cache.ruby-lang.org/pub/ruby/2.1/
I also dowloaded ruby-2.0 without any problems, ...
Tilpa (fabio pasini)
05:11 AM Revision 99431e73 (git): numeric.c: float overflow
* numeric.c (ruby_num_interval_step_size): get rid of float
conversion overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:59 AM Revision a4a551f8 (git): numeric.c: integer overflow
* numeric.c (ruby_num_interval_step_size): get rid of integer
overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:10 AM Bug #5985: miniruby skews "make benchmark" results
May I commit my current STATIC_RUBY version?

It is not perfect for dynamic ruby, but it is better than current
"make benchmark". We can make it perfect later.
normalperson (Eric Wong)
02:19 AM Revision d596ba8d (git): * numeric.c: Fix rdoc for step
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:18 AM Revision c382f0c8 (git): Update Changelog for r45209
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:04 AM Revision 1636c60f (git): * numeric.c: Fix Numeric#step with 0 unit [#9575]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:04 AM Revision 11a57c63 (git): * numeric.c: Simplify by getting rid of macro
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:04 AM Revision 814fb8e6 (git): * numeric.c: Create var for rb_intern("<=>")
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:04 AM Revision 33335f28 (git): * test_numeric: Strengthen tests on 64 bit platforms
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:03 AM Revision e184e31c (git): * numeric.c: Simplify [ruby-core:61106] [Bug #9570]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
01:52 AM Revision debb5e4c (git): configure.in: unquoted
* configure.in (SET_THREAD_NAME): needs unquoted to expand a shell
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:23 AM Revision 68e6d3f1 (git): tool/vcs.rb: discard error messages
* tool/vcs.rb (VCS#get_revisions): discard error messages for all
VCS not only SVN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:51 AM Revision 53e7ed07 (git): configure.in: check arguments of pthread_setname_np
* configure.in (SET_THREAD_NAME): check proper arguments of
pthread_setname_np() and fix definition on BSDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:37 AM Revision 623c0571 (git): * 2014-02-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:37 AM Revision d89b64dd (git): * file.c: [DOC] Add more documentation for File.basename by @avdi [fix GH-550][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:11 AM Bug #9573: descendants of a module don't gain its future ancestors, but descendants of a class, do
First Last wrote:
> Nobuyoshi Nakada wrote:
> ...
Can someone please explain this phenomenon.
rits (First Last)

02/27/2014

03:13 PM Bug #9574 (Closed): Inconsistent behavior between Kernel#Float and to_f
Hello,
Sorry if this has still been requested, I haven't found anything about this on the tracker. There is an inconsistent behavior between #to_f and Float() with strings. I don't know whether this is intended or not but if it is, th...
robin850 (Robin Dupret)
02:31 PM Revision 488b8bef (git): X:Y doesn't include X in svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
12:52 PM Revision 79cd8f14 (git): * test/test_set.rb: remove commented out code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:52 PM Revision 829d9fdc (git): * test/test_syslog.rb: adjust indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
10:12 AM Bug #9573: descendants of a module don't gain its future ancestors, but descendants of a class, do
Nobuyoshi Nakada wrote:
> First Last wrote:
> ...
I am inferring that the ancestor tree is copied into Class2 when it extends Class1, yes?
But at this time Mod1 has not yet been included, so how does Class2 learn of Mod1?
and why i...
rits (First Last)
08:30 AM Bug #9573: descendants of a module don't gain its future ancestors, but descendants of a class, do
First Last wrote:
> > > 1. It would seem natural that in dynamic language, dynamically added ancestors should propagate to descendants
> ...
An included module is shared using an internal class (called as IClass), and IClasses are copi...
nobu (Nobuyoshi Nakada)
06:43 AM Bug #9573: descendants of a module don't gain its future ancestors, but descendants of a class, do
Nobuyoshi Nakada wrote:
> First Last wrote:
> ...
Is it the case that ancestors are cached in each descendant? So that it does not actually walk the ancestor tree each time. If so, is there any way to invalidate this cache for a give...
rits (First Last)
06:23 AM Bug #9573: descendants of a module don't gain its future ancestors, but descendants of a class, do
First Last wrote:
> so 2 issues:
> ...
It's a longstanding issue, a descendant knows its ancestors, but an ancestor doesn't know its descendants.
> 2. Why is there a difference in ancestor propagation between modules and classes
...
nobu (Nobuyoshi Nakada)
06:04 AM Bug #9573 (Closed): descendants of a module don't gain its future ancestors, but descendants of a class, do
```ruby
module Mod1
end
module Mod2
end
class Class1
end
class Class2 < Class1
end
p Class2.ancestors - Object.ancestors # [Class2, Class1]
Class1.include Mod1
p Class2.ancestors - Object.ancestors # [Class2, Class...
rits (First Last)
09:57 AM Revision 27bfb11d (git): adjust indent and style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:01 AM Revision a9625a2f (git): * lib/optparse.rb: [DOC] Add example of generating help with optparse.
Patch by @joelmccracken documenting-ruby/ruby#19
https://github.com/documenting-ruby/ruby/pull/19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
08:19 AM Revision 8f1d7218 (git): test_scanf.rb: include arguments in names
* test/scanf/test_scanf.rb (ScanfTests#tests): remove duplicated
tests.
* test/scanf/test_scanf.rb (ScanfTests#each_test): include test
arguments in test names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45194 b2dd03c8-39d4-...
nobu (Nobuyoshi Nakada)
08:19 AM Revision fe380789 (git): test_scanf.rb: use tmpefile
* test/scanf/test_scanf.rb (TestIOScanf): use different name for
each tests, to get rid of weird errors on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:10 AM Revision cc216f9a (git): adjust indent and style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:10 AM Revision 057098bf (git): use strlcat
* addr2line.c (follow_debuglink): use strlcat instead of strncat.
* dln.c (aix_loaderror): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:10 AM Revision 6245e02c (git): configure.in: define SET_THREAD_NAME
* configure.in (SET_THREAD_NAME): define according to
pthread_setname_np variations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:07 AM Bug #9570: Something wrong with Enumerator#size ?
Sorry, I did it last night but had no time to commit, and missed to check the latest status this morning. nobu (Nobuyoshi Nakada)
04:28 AM Bug #9570: Something wrong with Enumerator#size ?
Hi Nobu.
While I appreciate the intention, why did you fix this while I stated I would and assigned the issue to myself?
marcandre (Marc-Andre Lafortune)
03:10 AM Bug #9570 (Closed): Something wrong with Enumerator#size ?
Applied in changeset r45187.
----------
numeric.c: check signs before division
* numeric.c (ruby_num_interval_step_size): check signs and get rid
of implementation dependent behavior of negative division.
[ruby-core:61106] [Bug #9570]
nobu (Nobuyoshi Nakada)
12:58 AM Bug #9570: Something wrong with Enumerator#size ?
Indeed, I'll fix this asap. Thanks marcandre (Marc-Andre Lafortune)
04:10 AM Revision 1ebf8916 (git): tool/merger.rb: normalize the merged revision string
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:10 AM Revision 295e4bfd (git): tool/redmine-backporter.rb: scroll 1 lind on Enter key
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:10 AM Revision c1fc2012 (git): numeric.c: check signs before division
* numeric.c (ruby_num_interval_step_size): check signs and get rid
of implementation dependent behavior of negative division.
[ruby-core:61106] [Bug #9570]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45187 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
02:18 AM Bug #9569: SecureRandom should try /dev/urandom first
I said "/dev/urandom usage in securerandom.rb is not a good way." already.
It means securerandom.rb will consume too much entoropy if /dev/urandom is used directry.
It is not a big problem because most users use OpenSSL.
Also, we ca...
akr (Akira Tanaka)
02:07 AM Revision 8dda9460 (git): configure.in: check __ARCHITECTURE__ properly
* configure.in (rb_cv_architecture_available): check whether
__ARCHITECTURE__ is available before replacing CFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/26/2014

11:32 PM Bug #9569: SecureRandom should try /dev/urandom first
Akira, can you address this point?
>
SecureRandom in Ruby will use /dev/urandom if OpenSSL is not available, based on the code snippet I linked in the original post. This is contrary to your statement that /dev/urandom is not safe fo...
cjcsuhta (Corey Csuhta)
10:01 PM Bug #9569: SecureRandom should try /dev/urandom first
If you think a manpage is not accurate, please fix the manpage at first. akr (Akira Tanaka)
09:54 PM Bug #9569: SecureRandom should try /dev/urandom first
The `random(4)` manpage on Linux isn't accurate in this reguard. You **can** use it as more than just a seed source, and you can use it as frequently as you want.
On modern Linux, both `/dev/random` and `/dev/urandom` are [CSPRNG](htt...
cjcsuhta (Corey Csuhta)
01:36 AM Bug #9569 (Rejected): SecureRandom should try /dev/urandom first
/dev/urandom is not suitable to be used to generate directly session keys
and other application level random data which is generated frequently.
random(4) on GNU/Linux:
The kernel random-number generator is designed to ...
akr (Akira Tanaka)
12:48 AM Bug #9569 (Closed): SecureRandom should try /dev/urandom first
Right now, `SecureRandom.random_bytes` tries to detect an OpenSSL to use before it tries to detect `/dev/urandom`. I think it should be the other way around. In both cases, you just need random bytes to unpack, so SecureRandom could skip... cjcsuhta (Corey Csuhta)
06:57 PM Revision f939ec35 (git): * 2014-02-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:57 PM Revision 873f95fa (git): * thread.c: [DOC] Typo in comment for _FORTIFY_SOURCE [Fixes GH-548]
Patch by @qnet-herwin https://github.com/ruby/ruby/pull/548 [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
06:42 PM Bug #9572 (Closed): Restarting Coverage does not produce correct coverage result
Feature 4796(https://www.ruby-forum.com/topic/1811306#1001864) appears
to have a bug in it.
While the test listed there does pass the following test does not:
sean_ferguson (Sean Ferguson)
03:09 PM Feature #9565 (Rejected): Unifying the methods (const|class_variable|instance_variable)_(defined?|get|set)
I don't see the benefit of unifying. You said 'easier' but I don't see how unifying makes programming easier.
Unless you describe the benefit more concretely, I have to reject.
Feel free to reopen, if you come up with the reason.
M...
matz (Yukihiro Matsumoto)
02:43 PM Revision e204d7eb (git): eval.c: suppress a warning
* eval.c (setup_exception): suppress a "clobbered" warning by gcc
4.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 PM Feature #9423: Improve warning semantics
I hope this is a related question: is one supposed to link the $VERBOSE/$WARN levels to the "Logger" object's level? If so, how?
I am currently trying to figure out if they represent the same notion, or if the $VERBOSE levels are more...
cesario (Franck Verrot)
11:33 AM Bug #9571 (Closed): "Error: TestFileUtils#test_rmdir: Errno::EEXIST: File exists @ dir_s_rmdir - data" on Solaris
Solarisにて、いつからかは忘れましたが、make test-all にて以下のErrorが生じています。
52) Error:
TestFileUtils#test_rmdir:
Errno::EEXIST: File exists @ dir_s_rmdir - data
/XXXXX/lib/fileutils.rb:277:in `rmdir'
/XXXXX/lib/fileutils.rb:277:in...
ngoto (Naohisa Goto)
10:11 AM Bug #9570 (Closed): Something wrong with Enumerator#size ?
enum = 2.step(1, 3)
enum.size #=> 1
It should be 0, shouldn't it? ( Windows )
taroxd (东 许)
09:46 AM Revision 8467d86f (git): * gc.c (heap_pages_free_unused_pages): check tomb page availability
at first.
And return immediately if we don't touch sorted list any more.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
09:28 AM Feature #9508: Add method coverage and branch coverage metrics
Ah, I see. You're right; it's much better to allocate it only when tracking coverage. I've implemented that in a new commit [1]; I only had to add more checks to the _TRACE macros at the top of compile.c.
I also added decision coverag...
srawlins (Sam Rawlins)
09:00 AM Feature #9508: Add method coverage and branch coverage metrics
sam.rawlins@gmail.com wrote:
> Are there examples you had other than those two spots?

The macros in compile.c, but then I noticed. something I missed
earlier: rb_coverage_struct is always allocated.

The reason I wanted rb_covera...
normalperson (Eric Wong)
03:23 AM Feature #9508: Add method coverage and branch coverage metrics
Hi Eric, thanks so much for reviewing this.
I took the same safety precautions that appeared around the new code. So, for example in iseq.c, I setup isec->coverage in the same place that I see iseq-> compile_data is set (lines 117 and...
srawlins (Sam Rawlins)
03:22 AM Feature #9508: Add method coverage and branch coverage metrics
I completely rewrote and rebranded "Branch" coverage into "Decision" coverage after reading Steve Cornett's paper [1] closer. The resultant metric is much more robust, tracking void elses, and one-line if/else combos much better. Now eve... srawlins (Sam Rawlins)
09:12 AM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
Sam: btw, if you have time, can you prepare a patch which integrates
jemalloc with the build/tarball dist?

We should also see if using the non-standard jemalloc API is worth it.
(with fallbacks to standard APIs on systems where jem...
normalperson (Eric Wong)
05:10 AM Revision a8cb9b02 (git): eval.c: preserve encoding
* eval.c (setup_exception): preserve exception class name encoding
in debug mode messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:26 AM Bug #9568 (Closed): Ruby interpreter crashes when executing a script in debug mode
Applied in changeset r45180.
----------
eval.c: preserve errinfo
* eval.c (setup_exception): preserve errinfo across calling #to_s
method on the exception. [ruby-core:61091] [Bug #9568]
nobu (Nobuyoshi Nakada)
04:26 AM Revision 651b394a (git): eval.c: preserve errinfo
* eval.c (setup_exception): preserve errinfo across calling #to_s
method on the exception. [ruby-core:61091] [Bug #9568]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:26 AM Revision 9a4185de (git): envutil.rb: move labeled_module and labeled_class
* test/ruby/envutil.rb (labeled_module, labeled_class): move from
test/ruby/test_module.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:28 AM Revision a2fb6e60 (git): eval.c: remove unneeded GC guard
* eval.c (setup_exception): remove RB_GC_GUARD which is no longer
needed since r41598.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:46 AM Bug #9566 (Feedback): Psych 2.0.4 segfaults Ruby 2.1.1 on OS X 10.9.1
I've seen this pattern of backtrace, but can't remember which issue was.
Anyway, I can't reproduce it, without rvm.
nobu (Nobuyoshi Nakada)
12:43 AM Revision ead3306b (git): parse.y: refine error message
* parse.y (rb_check_id): refine error message, expected a symbol
or a string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/25/2014

11:38 PM Feature #9439: Remove OpenSSL from stdlib
I like Aaron Patterson (TenderLove's) suggestion in #25: Split it into a gem and include the gem in ruby-core by default (like JSON).
It would solve the chicken-and-the-egg problem, keep rubygems happy, and allow upgrading.
At som...
docwhat (Christian Höltje)
09:25 PM Bug #9568 (Closed): Ruby interpreter crashes when executing a script in debug mode
The following script will crash the ruby interpreter when ruby is run in debug mode.
This script is creating mock HTTP objects and creating the Response class out of the middle of the Savon gem and calling a private method in a very od...
easco (Scott Thompson)
08:04 PM Bug #9561: Error downloading files from repository (.zip, .tar.gz, .tar.bz2, etc)
Hi folks,
> Do you still have this issue? I can't reproduce it in Japan.
Today, after trying again from the same machine/network, I've got the same errors (curl and wget failing as before).

> ...
I'll try again in a few hours f...
Tilpa (fabio pasini)
03:10 AM Bug #9561: Error downloading files from repository (.zip, .tar.gz, .tar.bz2, etc)
fabio (and anybody else for future reference):

Time and timezone of failed requests along with the requesting IP,
geographic location, user-agent would all be helpful for the CDN
provider to diagnose the problem.
normalperson (Eric Wong)
02:49 AM Bug #9561 (Feedback): Error downloading files from repository (.zip, .tar.gz, .tar.bz2, etc)
Do you still have this issue? I can't reproduce it in Japan.
We use CDN via fastly, probably this issue caused by our CDN.
hsbt (Hiroshi SHIBATA)
06:48 PM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
ko1@atdot.net wrote:
> (2014/02/19 9:08), Eric Wong wrote:
> > Btw, I also hope to experiment with a slab allocator since many internal
> > objects are around the same size (like an OS kernel). This idea is
> > originally from ...
normalperson (Eric Wong)
05:38 PM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
(2014/02/19 9:08), Eric Wong wrote:
> Btw, I also hope to experiment with a slab allocator since many internal
> objects are around the same size (like an OS kernel). This idea is
> originally from the Solaris kernel, but also in Li...
ko1 (Koichi Sasada)
05:51 PM Bug #9566 (Third Party's Issue): Psych 2.0.4 segfaults Ruby 2.1.1 on OS X 10.9.1
Logs attached. mseymour (Mark Seymour)
05:34 PM Feature #9565: Unifying the methods (const|class_variable|instance_variable)_(defined?|get|set)
And I forgot to mention `local_variable_(defined?|get|set)` on `Binding`. I propose that `Binding` should have these methods:
token_defined? ==> instance_variable_defined? (for arguments prepended with @)
==> ...
sawa (Tsuyoshi Sawada)
05:19 PM Feature #9565 (Rejected): Unifying the methods (const|class_variable|instance_variable)_(defined?|get|set)
An argument to methods of the form `(const|class_variable|instance_variable)_(defined?|get|set)` already describes if it is meant to be a constant, class variable, or instance variable. For example, if `"Foo"` were to be used as an argum... sawa (Tsuyoshi Sawada)
05:07 PM Bug #9564: Tainted string permitted in Kernel.trap in safe level 1
Since r1827 (at Nov.13,2001), trap checks intentionally whether the block is tainted or not, but never checks the first parameter (signal name).
So, I guess that it's documentations' fault.
usa (Usaku NAKAMURA)
04:36 PM Bug #9564 (Rejected): Tainted string permitted in Kernel.trap in safe level 1
According to the existing documentation (I am referring to Programming Ruby: The
Pragmatic Programmer's Guide at http://ruby-doc.com/docs/ProgrammingRuby/ and
The Ruby Programming Language by Flanagan, Matsumoto) Kernel.trap should not...
jrusnack (Jan Rusnacko)
04:34 PM Feature #7854 (Closed): New method Symbol[string]
Applied in changeset r45175.
----------
* string.c (sym_find): Add Symbol.find(str), which returns whether given
string is defined as symbol or not. [Feature #7854]
naruse (Yui NARUSE)
04:13 PM Feature #7854 (Assigned): New method Symbol[string]
Symbol.find is OK for me.
Matz.
matz (Yukihiro Matsumoto)
03:48 PM Feature #7854: New method Symbol[string]
```diff
diff --git a/string.c b/string.c
index 4e30cb3..1e26a25 100644
--- a/string.c
+++ b/string.c
@@ -8231,6 +8231,27 @@ str_scrub_bang(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
+ * Symbol.find(str) -> symbol ...
naruse (Yui NARUSE)
03:26 PM Feature #7854: New method Symbol[string]
Yukihiro Matsumoto wrote:
> I like the basic idea but the name `Symbol[]` is not descriptive.
> ...
How about Symbol.find?
I guess String#intern came from Lisp, and Common Lisp has find-symbol, which returns a symbol only when it's ...
shugo (Shugo Maeda)
03:18 PM Feature #7854 (Rejected): New method Symbol[string]
I like the basic idea but the name `Symbol[]` is not descriptive.
As I replied to #7839, the method should be a variation of #intern.
Matz.
matz (Yukihiro Matsumoto)
04:34 PM Revision 9432c2f8 (git): * 2014-02-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:34 PM Revision 0b5685a6 (git): * string.c (sym_find): Add Symbol.find(str), which returns whether given
string is defined as symbol or not. [Feature #7854]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:31 PM Bug #9563 (Closed): URI.parse error
I have the error for the url :
`...
pry(main)> URI.parse "http://upload.wikimedia.org/wikipedia/commons/1/1c/01-Russian_alphabet-А_а.svg"
URI::InvalidURIError: bad URI(is not URI?): http://upload.wikimedia.org/wikipedia/commons/1/1...
evserykh (Evgeniy Serykh)
04:05 PM Bug #9560 (Closed): Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 to 2.0
Backport r43752 naruse (Yui NARUSE)
03:20 PM Bug #9562 (Assigned): Cannot install gems from gzip-compressing gem server
You know, since Ruby 2.0.0, net/http automatically decode content-encoding;gzip.
Therefore Gem::Request, which uses Net::HTTP internally, also decode gz file, for example specs.4.8.gz,
if a gemsource server sets Content-Encoding: gzip ...
naruse (Yui NARUSE)
12:21 PM Bug #9562 (Rejected): Cannot install gems from gzip-compressing gem server
gem generate_index で作成した gem server が gzip 圧縮を行う場合,Ruby 2.0 以上では gem のインストールに失敗します。
Ruby 1.9 では正常です。
サーバーを gzip 圧縮しない設定にすれば問題が解消します。
5.5 (5 5)
03:16 PM Feature #7839 (Rejected): Symbol.freeze_symbols
Although I agree that we need something to prevent Symbol DoS attack, #freeze_symbols has too destructive I think.
I think that something should be a variation of #intern that refuses addition to the symbol table.
Matz.
matz (Yukihiro Matsumoto)
02:18 PM Revision 4f180097 (git): use NUM2SIZET instead of NUM2INT
* ext/dl/dl.c (rb_dl_realloc): use NUM2SIZET instead of NUM2INT.
* ext/fiddle/fiddle.c (rb_fiddle_realloc): ditto.
* ext/dl/dl.c (rb_dl_malloc): use NUM2SIZET instead of NUM2INT.
Coverity Scan found this bug.
* ext/fiddle/fiddle.c (...
znz (Kazuhiro NISHIYAMA)
10:11 AM Bug #9518: Objects in large arrays are leaked
The yahns HTTP server uses a long-lived fdmap array to map
Fixnum(fileno) -> IO connections.
This array exists prevent GC from sweeping IOs (because IOs are watched
by Linux epoll and not markable w/o an Array to store them).

64K+...
normalperson (Eric Wong)
08:49 AM Bug #9518: Objects in large arrays are leaked
Yes, you are right. WB (write barrier) strategy doesn't care such case.
How many such program?
If it is popular case, we can care about it.
ko1 (Koichi Sasada)
09:59 AM Feature #6083: Hide a Bignum definition
I've forgotten to push the latest commit, which removes unused code for `nails != 0`. nobu (Nobuyoshi Nakada)
01:40 AM Feature #6083: Hide a Bignum definition
Ah, thanks! I think I can get it merged upstream. tenderlovemaking (Aaron Patterson)
12:42 AM Feature #6083: Hide a Bignum definition
nobu wrote a patch: https://github.com/nobu/sqlite3-ruby/compare/bignum-conversion?expand=1
I'm not sure the status to merge it to the upstream.
(I think the patch should be similified by removing code for nails != 0.)
Note that t...
akr (Akira Tanaka)
12:01 AM Feature #6083: Hide a Bignum definition
Hi,
r44957 breaks the sqlite3 gem. I guess it uses the RBIGNUM_LEN macro:
https://github.com/sparklemotion/sqlite3-ruby/blob/2070182f461f1e2d76b9d40aa45fed2d04e9a4d6/ext/sqlite3/statement.c#L271-274
What should we use as a re...
tenderlovemaking (Aaron Patterson)
09:43 AM Bug #9559: build failure with clang 3.4
It has been fixed by r34523.
And 1.9.3 went into the state of the security maintenance phase at 24 Feb.
nobu (Nobuyoshi Nakada)
07:25 AM Bug #9559: build failure with clang 3.4
Hi Steve, Thank you for your report.
Our redmine could't serve your patch. Could you attached again?
hsbt (Hiroshi SHIBATA)
08:34 AM Feature #9459 (Assigned): Net::HTTP initializes openssl library after TCP connection is established
nagachika (Tomoyuki Chikanaga)
07:00 AM Revision df9199d4 (git): configure.in, win32/Makefile.sub: PACKED_STRUCT with VC
* configure.in (PACKED_STRUCT): check VC pragma too, and make
function-style macro.
* win32/Makefile.sub (PACKED_STRUCT): enable with VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:24 AM Revision 7af1261d (git): configure.in: fix typo
* configure.in (PACKED_STRUCT_UNALIGNED): fix typo. Intel x86
cpus are called x86 or i386 etc, not x386.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:38 AM Revision 4b2ac79c (git): configure.in: use PACKED_STRUCT_UNALIGNED on x64-mingw
* configure.in (PACKED_STRUCT_UNALIGNED): use on x64-mingw too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:07 AM Revision dda5c9c0 (git): * 2014-02-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:07 AM Revision 3d3711ef (git): * win32/Makefile.sub: define PACKED_STRUCT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

02/24/2014

08:28 PM Bug #9561: Error downloading files from repository (.zip, .tar.gz, .tar.bz2, etc)
Some error logs
$ curl -O http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Lef...
Tilpa (fabio pasini)
08:24 PM Bug #9561 (Closed): Error downloading files from repository (.zip, .tar.gz, .tar.bz2, etc)
There are errors while downloading files from both "ftp" and "cache" repositories
(http://ftp.ruby-lang.org/pub/ruby/2.1/ and http://cache.ruby-lang.org/pub/ruby/2.1/),
the connection is closed from server side when there are few kB ...
Tilpa (fabio pasini)
04:29 PM Bug #9560 (Closed): Backport fix for: "SimpleDelegator, a wrapped object with an open method and send" from 2.1 to 2.0
There was an issue when you have an object with an open method wrapped by a SimpleDelegator and then use "send :open". This gist illustrates it: https://gist.github.com/PragTob/9189371
There was a github pull request fixing it: https:...
PragTob (Tobias Pfeiffer)
03:09 PM Bug #9559 (Closed): build failure with clang 3.4
With clang 3.4 ruby has problems configuring / building dl.so. Please see:
http://lists.freebsd.org/pipermail/freebsd-ruby/2014-February/004085.html
The attached patch resolves it.
swills (Steve Wills)
12:42 PM Revision 8cbca98f (git): * README.md, README.ja.md: removed (wrong) mode setting for emacs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:48 AM Revision 48b30d96 (git): merge revision(s) r45101:
Fix a filename.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:19 AM Bug #9558: Bus Error on Sparc in r45155 due to __attribute__((packed))
ngotogenome@gmail.com wrote:
> This is due to __attribute__((packed)) added in r45155.
> SPARC (and many other CPUs) can not access to unaligned memory address.
>
> Please revert r45155.

Sorry about that, can you try r45165? Th...
normalperson (Eric Wong)
11:10 AM Bug #9558 (Closed): Bus Error on Sparc in r45155 due to __attribute__((packed))
Applied in changeset r45165.
----------
time: only use packed struct on x86*
* configure.in: define PACKED_STRUCT_UNALIGNED for x86*
* timev.h (struct vtm): use PACKED_STRUCT_UNALIGNED
* time.c (struct time_object): ditto
[Bug #9558]...
Anonymous
10:26 AM Bug #9558 (Closed): Bus Error on Sparc in r45155 due to __attribute__((packed))
Since r45155, the following error occurs on Sparc Solaris.
$ ./ruby --disable-gems -e 'p Time.now.utc'
-e:1: [BUG] Bus Error at 0xffffffff7fffe775
ruby 2.2.0dev (2014-02-23) [sparc64-solaris2.10]

-- Control frame information...
ngoto (Naohisa Goto)
11:10 AM Revision 131e4bec (git): time: only use packed struct on x86*
* configure.in: define PACKED_STRUCT_UNALIGNED for x86*
* timev.h (struct vtm): use PACKED_STRUCT_UNALIGNED
* time.c (struct time_object): ditto
[Bug #9558] non-x86 cannot safely access unaligned addresses
git-svn-id: svn+ssh://ci.rub...
Eric Wong
09:12 AM Revision fa7b849f (git): * test/fiddle/test_function.rb: remove unused variables.
* test/fileutils/test_fileutils.rb: ditto.
* test/io/console/test_io_console.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:38 AM Bug #9243: DOC fix example key exchane using DH
Hi, all

In message "[ruby-core:61045] Re: [ruby-cvs:52302] usa:r45157 (ruby_1_9_3): merge revision(s) 44584, 44587, 44945: [Backport #9243]"
on Feb.24,2014 16:12:41, <duerst@it.aoyama.ac.jp> wrote:
> I wanted to comment on an e...
usa (Usaku NAKAMURA)
07:21 AM Bug #9243: DOC fix example key exchane using DH
I wanted to comment on an earlier commit related to the name "Sandor
Szücs", but was too busy, sorry.

Some people might think that this name should be changed to "Sandor
Szuecs", i.e. to replace an "ü" by "ue", as e.g. in my name...
duerst (Martin Dürst)
03:40 AM Bug #9243: DOC fix example key exchane using DH
backported into ruby_1_9_3 at r45157. usa (Usaku NAKAMURA)
06:33 AM Revision 038540f9 (git): bump version to 2.1.2
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:04 AM Revision 6f2348a0 (git): merge revision(s) 44425,44460: [Backport #9320]
* tool/make-snapshot: support new version scheme.
* tool/make-snapshot: needs CXXFLAGS. [ruby-core:59393][Bug #9320]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:36 AM Bug #9544: Ruby resolver not using autoport
Jakub Szafranski wrote:
> So is it ruby's concern, or should the system developers make appropriate patches?
It's not either-us-or-them problem. I strongly agree OS devs should take care,
but that doesn't always mean we shouldn't. ...
shyouhei (Shyouhei Urabe)
04:24 AM Revision 2d9d5c67 (git): merge revision(s) 44809,44811,44813,44815,44816,44817,44818,44918,45003: [Backport #9482]
* ext/psych/yaml/emitter.c: merge libyaml 0.1.5
* ext/psych/yaml/loader.c: ditto
* ext/psych/yaml/parser.c: ditto
* ext/psych/yaml/reader.c: ditto
* ext/psych/yaml/scanner.c: ditto
* ext/psych...
naruse (Yui NARUSE)
03:43 AM Bug #9483: Fix typo in OpenURI and Ripper documenation
backported into ruby_1_9_3 at r45158. usa (Usaku NAKAMURA)
03:43 AM Revision ea39ef73 (git): merge revision(s) 44878,44879: [Backport #9483]
* ext/ripper/lib/ripper/lexer.rb: [DOC] use lower case version of core
classes when referring to return value, since we aren't directly
talking about the class. Patch by Jonathan Jackson [Bug #9483]
* lib/ope...
U.Nakamura
03:39 AM Revision 2da14728 (git): merge revision(s) 44584,44587,44945: [Backport #9243]
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szテシcs [Bug #9243]
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Sz?cs [Bug #9243]
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szuecs [Bug #9243]
git-svn-...
U.Nakamura
03:38 AM Revision 9d14ea97 (git): * 2014-02-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:38 AM Revision b2f3063c (git): time: rearrange+pack vtm and time_object structs
struct time_object shrinks from 88 to 46 bytes on my 64-bit system.
* configure.in: use -Wno-packed-bitfield-compat for GCC 4.4+
use __attribute__((packed)) if available
* timev.h: shrink and pack struct vtm
* time.c: pack struct time...
Eric Wong
03:34 AM Bug #9268: dead link to raa
backported into ruby_1_9_3 at r45154. usa (Usaku NAKAMURA)
03:33 AM Revision 345d52c8 (git): merge revision(s) 44585: [Backport #9268]
* lib/net/smtp.rb: [DOC] Remove dead link to RAA by Giorgos Tsiftsis
Fixes the following bugs: [Bug #9152] [Bug #9268] [Bug #9394]
* lib/open-uri.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_...
U.Nakamura
03:04 AM Feature #7939: Alternative curry function creation
Yukihiro Matsumoto wrote:
> We are not going to change the behavior of 'curry' with respect to the mathematical term currying, which origin is the famous mathematician Haskel Curry.
> ...
Which version of API do you have in mind, Kresi...
shugo (Shugo Maeda)
02:18 AM Feature #7939 (Feedback): Alternative curry function creation
We are not going to change the behavior of 'curry' with respect to the mathematical term currying, which origin is the famous mathematician Haskel Curry.
But we don't reject your opinion that proposed API is intuitive. All we say is ...
matz (Yukihiro Matsumoto)

02/23/2014

06:58 PM Bug #9467: Net::HTTP does unzip zipped content
Got the same thing and also this error when the block ends :
/usr/lib/ruby/1.9.1/net/http.rb:1032:in `initialize': can't convert Net::ReadAdapter into String (TypeError)
from /usr/lib/ruby/1.9.1/net/http.rb:1032:in `new'
from /usr/l...
mathieulbouchard (Mathieu L. Bouchard)
06:41 PM Feature #9557: Enumerator#next and Enumerator#peek with argument
> Do you mean peek and next to take index as an optional argument?
No, for `peek`, I mean the difference between the current position. So if the current position's index is `i`, then `peek(d)` looks at the element at index `i + d`.
...
sawa (Tsuyoshi Sawada)
05:13 PM Feature #9557: Enumerator#next and Enumerator#peek with argument
Do you mean peek and next to take *index* as an optional argument?
Some enumerators cannot be rewinded thus it's impossible to index.
If you mean skip not index, some enumerators cannot be peek further elements without modifying the po...
matz (Yukihiro Matsumoto)
09:14 AM Feature #9557 (Open): Enumerator#next and Enumerator#peek with argument
It often happens that I want to move the current index of an enumerator by some arbitrary number `n`. `Enumerator#feed` takes the element as the argument, but that cannot be used if the enumerator has duplicate elements, or when I do not... sawa (Tsuyoshi Sawada)
05:05 PM Feature #9552 (Feedback): Module map!
I am not sure I understand your intention fully, but at least map! reminds us too much of enumerators.
I don't think there's a chance to add map! to module. Try another name.
Maybe some kind of method (or function) combination natat...
matz (Yukihiro Matsumoto)
04:56 PM Feature #9548 (Feedback): Module curry
I don't think the term 'curry' is a proper name for the sought behavior.
In addition, I cannot think of a use-case for the feature.
Any concrete example?
Matz.
matz (Yukihiro Matsumoto)
09:03 AM Bug #9539: REXML XPath UTF8 encoding problem
Thanks for your report!
I've fixed it in trunk.
It was very helpul that you attach a sample script and sample XML to reproduce the problem. :-)
kou (Kouhei Sutou)
09:01 AM Bug #9539 (Closed): REXML XPath UTF8 encoding problem
Applied in changeset r45153.
----------
* lib/rexml/xmltokens.rb: Add missing non ASCII valid characters
to element name characters. Now, REXML name tokens exactly
match "[5] Name" in the XML spec and "[4] NCName" in the
Namespace...
kou (Kouhei Sutou)
09:01 AM Revision ba5ed845 (git): * lib/rexml/xmltokens.rb: Add missing non ASCII valid characters
to element name characters. Now, REXML name tokens exactly
match "[5] Name" in the XML spec and "[4] NCName" in the
Namespaces in XML spec. See comment about the details.
[Bug #9539] [ruby-core:60901]
Reported by Mario Barcala. ...
Sutou Kouhei
08:55 AM Feature #9528 (Feedback): mathn.rb library
If you're using subversion you can use the `svn diff` or `svn di` command to output a patch, and then just upload the file. For example:
`svn diff lib/mathn.rb > my-patch-to-mathn.diff`
You can read more about `svn diff` in the [sv...
zzak (zzak _)
08:44 AM Bug #9543 (Assigned): [Doc] Fix example in GServer documentation (lib/gserver)
Thanks for the patch! zzak (zzak _)
06:04 AM Feature #9527: make Net::HTTP.get_print not only to $stdout but to an IO as a parameter
I opened up an alternative to this request in #9556.
I really like your suggestion. It is very strange that HTTP.get_print only prints to $stdout. However, the method signature of HTTP.get_print,
HTTP.get_print(uri_or_host, pat...
srawlins (Sam Rawlins)
05:53 AM Feature #9556 (Open): Add HTTP#get block functionality to HTTP.get
This is kind of an alternative to #9527.
HTTP#get can be passed a block. The shortcut method, HTTP.get, however, cannot. This patch adds such functionality.
This allows someone to be able to write the response of a GET, in fragment...
srawlins (Sam Rawlins)
05:17 AM Revision 44a9509f (git): Fix filename and function name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:18 AM Revision 82eeaadc (git): option.c: use rb_w32_inet_pton
* ext/socket/option.c (inet_pton): use rb_w32_inet_pton, instead of
inet_ntop directly, which is unavailable on older version Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:54 AM Revision 1b81dafd (git): win32/win32.c: add rb_w32_inet_pton
* include/ruby/win32.h, win32/win32.c (rb_w32_inet_pton): add a
wrapper function for inet_pton minimum supported client is
Vista, as well as inet_ntop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45150 b2dd03c8-39d4-4d8f-98ff-...
nobu (Nobuyoshi Nakada)
02:38 AM Revision 0728a4ed (git): * test/net/imap/test_imap.rb: remove unused variables.
* test/net/imap/test_imap_response_parser.rb: ditto.
* test/net/pop/test_pop.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:25 AM Revision 511c2a16 (git): * process.c: [DOC] typo fix by @jkassemi [fix GH-544][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:24 AM Revision b9d5543d (git): * README.ja.md: [DOC] fixed wasted spaces by @gogotanaka [fix GH-545][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
01:29 AM Revision 95be5381 (git): raddrinfo.c: suppress warnings
* ext/socket/raddrinfo.c (numeric_getaddrinfo): move conditionally
used variables inside the block, to suppress warnings on platforms
where inet_pton() is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45146 b2dd03...
nobu (Nobuyoshi Nakada)
01:29 AM Bug #9544 (Closed): Ruby resolver not using autoport
akr (Akira Tanaka)

02/22/2014

09:07 PM Feature #9113: Ship Ruby for Linux with jemalloc out-of-the-box
@nobusan I think that would be a reasonable approach
@eric / @ko1 / everyone
here are the results of running that script across every 5 builds in the last year (with seeded rand)
https://gist.github.com/SamSaffron/9162366
...
sam.saffron (Sam Saffron)
06:05 PM Bug #9544 (Feedback): Ruby resolver not using autoport
If system's resolver, getaddrinfo(), is usable, you can use it. akr (Akira Tanaka)
05:39 PM Bug #9544 (Closed): Ruby resolver not using autoport
Applied in changeset r45144.
----------
* lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which
security.mac.portacl.port_high is changed.
See mac_portacl(4) for details.
Reported by Jakub Szafranski. [ruby-core:60917]...
akr (Akira Tanaka)
02:34 PM Bug #9544: Ruby resolver not using autoport
So is it ruby's concern, or should the system developers make appropriate patches?
Currently you've reinvented the wheel in a very bad way - it is unusable with nsswitch, it is unusable with custom firewall policies, unusable with cu...
samu (Jakub Szafranski)
02:28 PM Bug #9544: Ruby resolver not using autoport
I found GNU/Hurd and Haiku also allocates ports sequentially.
GNU/Hurd:
% ./ruby -v -rsocket -e '10.times { p Addrinfo.udp("0.0.0.0", 0).bind.local_address }'
ruby 2.2.0dev (2014-01-21 trunk 44678) [i686-gnu0.3]
#<Add...
akr (Akira Tanaka)
12:51 PM Bug #9544: Ruby resolver not using autoport
Akira Tanaka wrote:
> I tested several OSs and I found NetBSD 6.1.3 still doesn't randomize port:
> ...
samu (Jakub Szafranski)
05:39 PM Revision 7490f691 (git): * 2014-02-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:38 PM Revision db537c51 (git): * lib/resolv.rb (bind_random_port): Rescue EPERM for FreeBSD which
security.mac.portacl.port_high is changed.
See mac_portacl(4) for details.
Reported by Jakub Szafranski. [ruby-core:60917] [Bug #9544]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:17 PM Revision 15135506 (git): * lib/rexml/xpath_parser.rb: Fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
02:16 PM Revision e0c15b6d (git): * ChangeLog: Fix format
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
02:03 PM Revision f8b76cd8 (git): * test/rexml/xpath/test_attribute.rb: Simplify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
02:03 PM Bug #9555 (Closed): Ruby 2.0.0 compilation fails to compile on cygwin. (curses.so)
Using RVM we see that ruby fails to compile for 2.0.0. This seems to be fixed in 2.1.0.
Compiling the 2.1.0 as follows succeeds:
rvm --debug install 2.1.0 --without-tcl --without-tk
Trying the same for 2.0.0 fails. With errors logge...
dajoen (Jeroen Verhoeven)
01:43 PM Revision 7322a228 (git): add backport commit detection
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:27 PM Bug #9554: need read access for conout$ (io/console)
ruby_2_1 r45139 . naruse (Yui NARUSE)
01:13 PM Bug #9554: need read access for conout$ (io/console)
r45130 was backported to ruby_2_0_0 at r45137. nagachika (Tomoyuki Chikanaga)
11:48 AM Bug #9554: need read access for conout$ (io/console)
backported into ruby_1_9_3 at r45131. usa (Usaku NAKAMURA)
10:13 AM Bug #9554 (Closed): need read access for conout$ (io/console)
usa (Usaku NAKAMURA)
10:11 AM Bug #9554 (Closed): need read access for conout$ (io/console)
今まで気づかなかったとは不覚。 usa (Usaku NAKAMURA)
01:27 PM Revision 5f445a6c (git): merge revision(s) 45130: [Backport #9554]
* ext/io/console/console.c (console_dev): need read access for conout$
because some functions need it. [Bug#9554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:13 PM Revision be2101a6 (git): merge revision(s) 44412,44413,44414,44420,44421: [Backport #9298]
test_method.rb, test_proc.rb: suppress warnings
* test/ruby/test_method.rb: suppress warnings in verbose mode.
* test/ruby/test_proc.rb: ditto.
* proc.c (rb_iseq_min_max_arity): maximum argument is unlimited if
...
naruse (Yui NARUSE)
01:13 PM Revision 53808e23 (git): merge revision(s) r45130: [Backport #9554]
* ext/io/console/console.c (console_dev): need read access for conout$
because some functions need it. [Bug#9554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
11:50 AM Revision 7662937c (git): * tool/redmine-backporter.rb: should add the value after checking error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:46 AM Revision 358d8002 (git): * tool/redmine-backporter.rb: fixed bug of background color.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:29 AM Revision 82336d1f (git): * tool/redmine-backporter.rb: more friendly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
11:25 AM Revision 9a695f11 (git): * test/rexml/test_xpath*.rb: Move to ...
* test/rexml/xpath/*.rb: ... here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
11:05 AM Revision 464f68a3 (git): * test/rexml/listener.rb: Untabify.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
10:16 AM Revision b9c0eba5 (git): merge revision(s) 45130: [Backport #9554]
* ext/io/console/console.c (console_dev): need read access for conout$
because some functions need it. [Bug#9554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@45131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:11 AM Revision 64904f51 (git): * ext/io/console/console.c (console_dev): need read access for conout$
because some functions need it. [Bug#9554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:07 AM Bug #9547: TCPSocket.new causes an infinite loop when interrupted by a signal
ruby_2_1 r45129 merged revision(s) 45084. naruse (Yui NARUSE)
04:54 AM Bug #9547: TCPSocket.new causes an infinite loop when interrupted by a signal
r45084 was backported to ruby_2_0_0 at r45103. nagachika (Tomoyuki Chikanaga)
12:53 AM Bug #9547: TCPSocket.new causes an infinite loop when interrupted by a signal
backported into ruby_1_9_3 at r45092. usa (Usaku NAKAMURA)
10:03 AM Revision 3aa457ce (git): merge revision(s) 45084: [Backport #9547]
* ext/socket/init.c (wait_connectable): break if the socket is
writable to avoid infinite loops on FreeBSD and other platforms
which conforms to SUSv3. This problem cannot be reproduced with
loopback interf...
naruse (Yui NARUSE)
09:53 AM Bug #9535: Kernel.send(:initialize_copy, Kernel) で segmentation fault
ruby_2_1 r45128 merged revision(s) 45076. naruse (Yui NARUSE)
02:49 AM Bug #9535: Kernel.send(:initialize_copy, Kernel) で segmentation fault
r45076 was backported to ruby_2_0_0 at r45096. nagachika (Tomoyuki Chikanaga)
12:51 AM Bug #9535: Kernel.send(:initialize_copy, Kernel) で segmentation fault
backported into ruby_1_9_3 at r45091. usa (Usaku NAKAMURA)
09:53 AM Revision 776b8b1f (git): merge revision(s) 45076: [Backport #9535]
* class.c (rb_mod_init_copy): do nothing if copying self.
[ruby-dev:47989] [Bug #9535]
* hash.c (rb_hash_initialize_copy): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45128 b2dd03c8-39d4-4d8f...
naruse (Yui NARUSE)
09:47 AM Bug #9377: Seg fault on call of missing super from self.extended in a Module
`ruby_2_1` r44843 merged revision(s) 44527,44552,44553. naruse (Yui NARUSE)
09:41 AM Revision b077f134 (git): .gitignore: ignore benchmark files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
09:25 AM Bug #9533: ruby 2.1.0のHash#flattenが以前のバージョンと異なる挙動をする
ruby_2_1 r45126 merged revision(s) 45057,45059. naruse (Yui NARUSE)
09:24 AM Revision d2164fc5 (git): merge revision(s) 45057,45059: [Backport #9533]
* hash.c (rb_hash_flatten): fix behavior of flatten(-1).
[ruby-dev:47988] [Bug #9533]
* test/ruby/test_array.rb: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45126 b2dd03c8-39d4-4d8f-...
naruse (Yui NARUSE)
09:18 AM Bug #9276: "RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead" warning should not be issued when both ENV vars are set.
ruby_2_1 r45054 merged revision(s) 44327. naruse (Yui NARUSE)
09:17 AM Bug #9354: timeout() custom exception class cannot require argument
ruby_2_1 r44841 merged revision(s) 44517,44518,44519,44523. naruse (Yui NARUSE)
08:54 AM Bug #9385: open-uri always uses proxy set as env var even if proxy flag is set to nil
ruby_2_1 r45125 merged revision(s) 44637. naruse (Yui NARUSE)
08:54 AM Revision 76ddadeb (git): merge revision(s) 44637: [Backport #9385]
* lib/open-uri.rb: Make proxy disabling working again.
Fixed by Christophe Philemotte. [ruby-core:59650] [Bug #9385]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:45 AM Bug #9413: Object Metaclass Constants Array doesn't Include Singleton Constant
`ruby_2_1` r45124 merged revision(s) 44628. naruse (Yui NARUSE)
08:38 AM Revision 330dccb9 (git): merge revision(s) 44628: [Backport #9413]
* eval.c (rb_mod_s_constants): return its own constants for other
than Module itself. [ruby-core:59763] [Bug #9413]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:58 AM Feature #9553: Make argument validation routine of a method an object
Even more precisely, I did not fail to notice, but rather forgot about it =). In any case, built in `Arguments` object would be nice. Anonymous
07:39 AM Feature #9553: Make argument validation routine of a method an object
It is my fault that I was not aware of `Method#parameters` when writing this post. Too bad I did not participate in its naming, I would push for calling it `Method#arguments`. This method resolves the main reasons that led me to writing ... Anonymous
07:16 AM Feature #9553: Make argument validation routine of a method an object
Does Method#parameters not solve your problem? Anonymous
07:02 AM Feature #9553 (Open): Make argument validation routine of a method an object
Ruby methods have their acceptable argument configurations specified by special syntax. As argument fields has gotten more complex, simple `#arity` is no longer enough to capture the type of the argument field. I suggest making this argu... Anonymous
07:53 AM Bug #9374: [PATCH] ext/json: objects depend on $(ruby_headers)
r45123 naruse (Yui NARUSE)
07:53 AM Revision 7329f404 (git): merge revision(s) 44514: [Backport #9374]
* ext/json/generator/depend: add build dependencies for json extension
[Bug #9374] [ruby-core:59609]
* ext/json/parser/depend: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45123 b2dd03c8-39d4-4...
naruse (Yui NARUSE)
07:52 AM Feature #9548: Module curry
I have just learned about the existence of `Method#parameters` method, which would enable to write near-perfect `Module#curry` without asking for core-level syntax on par with `alias`. The supporting facts for this feature request are th... Anonymous
05:29 AM Feature #9548: Module curry
@mame, I don't quite get these nuances between "currying" and "partial application". I could try and
learn them, but my approach is different here. I do not want to learn. I want to be stubborn like
Amazonians when first confronted wit...
Anonymous
01:46 AM Feature #9548: Module curry
That is not "currying", but "partial application."
http://lambda-the-ultimate.org/node/2266
--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
12:22 AM Feature #9548: Module curry
Firstly, Proc has a #curry, though not as flexible as you would like: http://rubydoc.info/stdlib/core/Proc#curry-instance_method
Secondly, to implement such flexibility is not too hard in pure Ruby. Here is an implementation of arbitr...
srawlins (Sam Rawlins)
07:50 AM Bug #8978: Fiddle possibly misuses mprotect
r45122 naruse (Yui NARUSE)
07:50 AM Revision 23d00a8c (git): merge revision(s) 44731,44751: [Backport #8978]
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
[ruby-core:57599] [Bug #8978]. Thanks mame!
* ext/fiddle/closure.c: use sizeof(*pcl) for correct sizeof value.
[ruby-core:57599] [Bug #8978]...
naruse (Yui NARUSE)
07:49 AM Feature #9552: Module map!
I failed to notice that `Method#parameters` was already available. This makes it possible for me to implement my desired `Module#map!` and other metaprogramming without asking for novel core syntax. The reasons supporting this feature su... Anonymous
06:52 AM Feature #9552: Module map!
Core-level syntax might be similar to that of `alias`,
```ruby
class FooBarBazCollection
map! fn foos, barn bar, bazn bazs do |retval| retval.map &:name end
end
```
Another approach (without introducing a new keyword, which m...
Anonymous
06:44 AM Feature #9552 (Feedback): Module map!
I would like to beg for `map!` directive in `Module`. I can imitate it with this code:
```ruby
class Module
def map! **hash, &block
hash.each_pair { |mapped_method_symbol, original_method_symbol|
define_method mapped_m...
Anonymous
07:24 AM Bug #9430: [PATCH] benchmark/driver: avoid large alloc in driver process
r45121 naruse (Yui NARUSE)
07:22 AM Revision cea7808b (git): merge revision(s) 44772: [Backport #9430]
benchmark/driver: avoid large alloc in driver process
* benchmark/driver: avoid large alloc in driver process
[ruby-core:59869] [Bug #9430]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45121 b2dd03c8-39d4-4d8...
naruse (Yui NARUSE)
07:19 AM Bug #9550: backport r45066
r45120 naruse (Yui NARUSE)
03:01 AM Bug #9550: backport r45066
r45066 was backported to ruby_2_0_0 at r45098. nagachika (Tomoyuki Chikanaga)
01:11 AM Bug #9550: backport r45066
backported into ruby_1_9_3 at r45093. usa (Usaku NAKAMURA)
01:06 AM Bug #9550 (Closed): backport r45066
個別にbackportチケットを切るのがめんどいので手抜いてこっちに作ります。 usa (Usaku NAKAMURA)
07:19 AM Revision d439b3b1 (git): merge revision(s) 45066: [Backport #9545] [Backport #9550]
* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error
(bsock_recvmsg_internal): ditto
* test/socket/test_unix.rb: test above for infinite loop
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_...
naruse (Yui NARUSE)
07:17 AM Bug #8783: ruby 1.9/2.0 crash on exit on FreeBSD/powerpc64
r45119 naruse (Yui NARUSE)
07:17 AM Revision 64e6dd62 (git): merge revision(s) 44670,44671,44673,44675: [Backport #8783]
thread_pthread.c: timer thread stack size
* thread_pthread.c (rb_thread_create_timer_thread): define the stack
size for timer thread at compile time.
* thread_pthread.c (rb_thread_create_timer_thread): expand timer
...
naruse (Yui NARUSE)
06:49 AM Bug #9356: TCPSocket.new does not seem to handle INTR
shugo@ruby-lang.org wrote:
> > http://bogomips.org/ruby.git/patch?id=d8241102f54
> > git://80x24.org/ruby socket-connect-check-v4
>
> The code looks fine, but please remove the following comment in wait_connectable().
>
> ...
normalperson (Eric Wong)
05:34 AM Bug #9356: TCPSocket.new does not seem to handle INTR
Eric Wong wrote:
> shugo@ruby-lang.org wrote:
> ...
Definitely.
> http://bogomips.org/ruby.git/patch?id=d8241102f54
> ...
The code looks fine, but please remove the following comment in wait_connectable().
* So it's enough...
shugo (Shugo Maeda)
12:48 AM Bug #9356: TCPSocket.new does not seem to handle INTR
shugo@ruby-lang.org wrote:
> Eric Wong wrote:
> > We should guard against sockerr setting errno to
> > EINTR, ERESTART, EINPROGRESS, EALREADY, EISCONN here...
>
> Agreed. You mean to expose only usual errors to users and to hid...
normalperson (Eric Wong)
06:16 AM Bug #9387: Documentation for Range#size is incomplete
r45118 naruse (Yui NARUSE)
06:16 AM Revision f1161c93 (git): merge revision(s) 44549: [Backport #9387]
* range.c (Range#size): [DOC] improve description and add examples.
Patch by @skade. [Fixes GH-501]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:11 AM Bug #9429: Fix typos
r45117 naruse (Yui NARUSE)
06:11 AM Revision a9a6a643 (git): merge revision(s) 44696: [Backport #9429]
* lib/racc/rdoc/grammar.en.rdoc: [DOC] Correct grammar and typos
Patch by Giorgos Tsiftsis [Bug #9429] [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:07 AM Bug #9483: Fix typo in OpenURI and Ripper documenation
r45116 naruse (Yui NARUSE)
06:06 AM Revision b1073f89 (git): merge revision(s) 44878,44879: [Backport #9483]
* ext/ripper/lib/ripper/lexer.rb: [DOC] use lower case version of core
classes when referring to return value, since we aren't directly
talking about the class. Patch by Jonathan Jackson [Bug #9483]
* lib/ope...
naruse (Yui NARUSE)
06:04 AM Bug #9210: Adding extra example in docs
r45115 naruse (Yui NARUSE)
06:04 AM Revision b2a6346c (git): merge revision(s) 44463: [Backport #9210]
* variable.c: adding extra example in docs.
patched by Steve Klabnik. [Bug #9210]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:02 AM Bug #9093: Resolv: Multiple strings should be concatenated in a DNS record's data
r45114 naruse (Yui NARUSE)
06:01 AM Revision d3452b57 (git): merge revision(s) 44642: [Backport #9093]
* lib/resolv.rb (Resolv::DNS::Resource::TXT#data): Return concatenated
string.
Patch by Ryan Brunner. [ruby-core:58220] [Bug #9093]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45114 b2dd03c8-39d4-...
naruse (Yui NARUSE)
05:56 AM Bug #9243: DOC fix example key exchane using DH
r45113 naruse (Yui NARUSE)
05:56 AM Revision 48ccb144 (git): merge revision(s) 44584,44587,44945: [Backport #9243]
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szテシcs [Bug #9243]
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Sz?cs [Bug #9243]
* ext/openssl/ossl_pkey_dh.c: Fixed typo by Sandor Szuecs [Bug #9243]
git-svn-...
naruse (Yui NARUSE)
05:47 AM Bug #9152: Relic documentation in lib/xmlrpc/client.rb
r45112 naruse (Yui NARUSE)
05:46 AM Revision 361c2fe9 (git): merge revision(s) 44586: [Backport #9152]
* lib/xmlrpc/client.rb: [DOC] Remove note about SSL package on RAA
Since RAA has been deprecated, and the SSL package has been replaced
with net/https this statement is entirely false and should be
deleted. ...
naruse (Yui NARUSE)
05:40 AM Bug #9268: dead link to raa
r45111 naruse (Yui NARUSE)
05:39 AM Revision f5731cb9 (git): merge revision(s) 44585: [Backport #9268]
* lib/net/smtp.rb: [DOC] Remove dead link to RAA by Giorgos Tsiftsis
Fixes the following bugs: [Bug #9152] [Bug #9268] [Bug #9394]
* lib/open-uri.rb: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_...
naruse (Yui NARUSE)
05:20 AM Bug #9477: Address family not supported by protocol - socket(2) - udp
r45110 naruse (Yui NARUSE)
05:20 AM Feature #9528: mathn.rb library
Hi Umair,
You should attach a .patch file and wait for feedback.
Anonymous
05:20 AM Revision 96cfe661 (git): merge revision(s) 44880: [Backport #9477]
* lib/resolv.rb: Ignore name servers which cause EAFNOSUPPORT on
socket creation.
Reported by Bjoern Rennhak. [ruby-core:60442] [Bug #9477]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45110 b2dd03...
naruse (Yui NARUSE)
05:14 AM Bug #9498: undefined method 'ord' for nil:NilClass from Resolv methods when internet connection is lost
r45109 naruse (Yui NARUSE)
05:14 AM Revision 95985829 (git): merge revision(s) 44884: [Backport #9498]
* lib/resolv.rb (Resolv::DNS::Message::MessageDecoder): Raise
DecodeError if no data before the limit.
Reported by Will Bryant. [ruby-core:60557] [Bug #9498]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/rub...
naruse (Yui NARUSE)
05:06 AM Bug #9399: [PATCH] iseq: avoid potential memory leak in iseq_load
r44568 was backported to ruby_2_0_0 at r45108. nagachika (Tomoyuki Chikanaga)
04:35 AM Bug #9399: [PATCH] iseq: avoid potential memory leak in iseq_load
r45105. naruse (Yui NARUSE)
05:06 AM Revision 1f133813 (git): merge revision(s) r44568: [Backport #9399]
* iseq.c (iseq_load): keep type_map to get rid of memory leak.
based on a patch by Eric Wong at [ruby-core:59699]. [Bug #9399]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45108 b2dd03c8-39d4-4d8f-98ff-823...
nagachika (Tomoyuki Chikanaga)
05:05 AM Bug #9452: Refining methods that should be private
r45107. naruse (Yui NARUSE)
05:05 AM Revision 669e9ac5 (git): merge revision(s) 44931: [Backport #9452]
* vm_insnhelper.c (vm_call_method): should check ci->me->flag of
a refining method in case the method is private.
[ruby-core:60111] [Bug #9452]
* vm_method.c (make_method_entry_refined): set me->flag of a ref...
naruse (Yui NARUSE)
05:01 AM Bug #9455: Blocks do not round-trip properly through ISeq dump/load
r44720 was backported to ruby_2_0_0 at r45106. nagachika (Tomoyuki Chikanaga)
05:00 AM Revision f38ceeac (git): merge revision(s) r44720: [Backport #9455]
* compile.c (iseq_build_from_ary_body): Use :blockptr instead of :block
as hash key when loading serialized instruction sequences from arrays.
[Bug #9455] [ruby-core:60146]
git-svn-id: svn+ssh://ci.ruby-lang.org/rub...
nagachika (Tomoyuki Chikanaga)
04:35 AM Revision d382c46a (git): merge revision(s) 44568: [Backport #9399]
* iseq.c (iseq_load): keep type_map to get rid of memory leak.
based on a patch by Eric Wong at [ruby-core:59699]. [Bug #9399]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@45105 b2dd03c8-39d4-4d8f-98ff-823fe...
naruse (Yui NARUSE)
04:23 AM Bug #9361: gem install --ignore-dependencies fails to install local gems
r44858. naruse (Yui NARUSE)
04:21 AM Bug #9342: [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3
r45104. naruse (Yui NARUSE)
04:21 AM Revision a98f024d (git): merge revision(s) 44595: [Backport #9342]
* ext/thread/thread.c (rb_szqueue_clear): notify SZQUEUE_WAITERS
on SizedQueue#clear. [ruby-core:59462] [Bug #9342]
* test/thread/test_queue.rb: add test. the patch is from
Justin Collins.
git-svn-id: svn+s...
naruse (Yui NARUSE)
04:17 AM Revision 25830789 (git): merge revision(s) r45084: [Backport #9547]
* ext/socket/init.c (wait_connectable): break if the socket is
writable to avoid infinite loops on FreeBSD and other platforms
which conforms to SUSv3. This problem cannot be reproduced with
loopback interf...
nagachika (Tomoyuki Chikanaga)
04:03 AM Revision a009b13b (git): update patchlevel for the last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
04:02 AM Revision a6da4b27 (git): Fix a filename.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:02 AM Revision 215994dd (git): (merged partially from r42927)
* lib/rubygems/core_ext/kernel_require.rb: Backport a fix for concurrent
requires. [ruby-core:58918] [Backport #9224]
see also https://github.com/rubygems/rubygems/pull/833
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_...
nagachika (Tomoyuki Chikanaga)
03:41 AM Bug #9551 (Closed): [DOC] Fix for documentation of Kernel::catch
The current documentation for `Kernel::catch` contains complicated examples and confusing language.
*"when arg is given, catch yields it as is, or when no arg is given, catch assigns a new unique object to throw. this is useful for nest...
jessesielaff (Jesse Sielaff)
03:18 AM Revision cd4b0c10 (git): test_logdevice.rb: no utime
* test/logger/test_logdevice.rb (test_shifting_midnight): do not
set mtime to get rid of an error on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:01 AM Revision dac4cd84 (git): merge revision(s) r45066: [Backport #9550]
* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error
(bsock_recvmsg_internal): ditto
* test/socket/test_unix.rb: test above for infinite loop
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_...
nagachika (Tomoyuki Chikanaga)
02:56 AM Revision c0ea69d5 (git): gc.c: suppress warnings
* gc.c (gc_marks): cast explicitly to suppress warnings by VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:49 AM Revision 8c6dd375 (git): merge revision(s) r45076: [Backport #9535]
* class.c (rb_mod_init_copy): do nothing if copying self.
[ruby-dev:47989] [Bug #9535]
* hash.c (rb_hash_initialize_copy): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@45096 b2dd03c8-39d4-4d...
nagachika (Tomoyuki Chikanaga)
02:44 AM Revision 94fbadd1 (git): * test/socket/test_unix.rb: 1.9.3 doesn't have IO::EAGAINWaitReadable.
use IO::WaitReadable instead. this fixes the test failure introduced
at r45093.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@45095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:51 AM Revision 1c302150 (git): test_logdevice.rb: use assert_in_out_err
* test/logger/test_logdevice.rb (test_shifting_midnight): use
verbose assert_in_out_err instead of assert_ruby_status.
* test/logger/test_logdevice.rb (test_shifting_dst_change): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru...
nobu (Nobuyoshi Nakada)
01:11 AM Revision c3ab0bb5 (git): merge revision(s) 45066: [Backport #9550]
* ext/socket/ancdata.c (bsock_sendmsg_internal): only retry on error
(bsock_recvmsg_internal): ditto
* test/socket/test_unix.rb: test above for infinite loop
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_...
U.Nakamura
12:52 AM Revision 27ca3671 (git): merge revision(s) 45084: [Backport #9547]
* ext/socket/init.c (wait_connectable): break if the socket is
writable to avoid infinite loops on FreeBSD and other platforms
which conforms to SUSv3. This problem cannot be reproduced with
loopback interf...
U.Nakamura
12:50 AM Revision 9e11c028 (git): merge revision(s) 45076: [Backport #9535]
* class.c (rb_mod_init_copy): do nothing if copying self.
[ruby-dev:47989] [Bug #9535]
* hash.c (rb_hash_initialize_copy): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@45091 b2dd03c8-39d4-4d...
U.Nakamura
 

Also available in: Atom