Project

General

Profile

Activity

From 09/21/2014 to 09/27/2014

09/27/2014

11:55 PM Bug #10300: Encoding error in conversion from UTF-16LE to UTF-8 to CP850
There is no bug in the conversion from (UTF-16LE to) UTF-8 to CP850. CP850 simply doesn't contain U+2019 (RIGHT SINGLE QUOTATION MARK, see http://www.unicode.org/charts/PDF/U2000.pdf), see e.g. https://en.wikipedia.org/wiki/Code_page_850... duerst (Martin Dürst)
03:01 PM Bug #10300 (Closed): Encoding error in conversion from UTF-16LE to UTF-8 to CP850
Hello,
I downloaded Ruby 2.1.3 from http://rubyinstaller.org/downloads/ and tried to install gems:
~~~
$ gem install asciidoctor
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+2019 to CP850 in convers...
ggrossetie (Guillaume GROSSETIE)
04:00 PM Bug #10301 (Third Party's Issue): All version of Ruby core dump in ethon running wpstools (wpscan)
Seems like this is a bug, as an error or warning should be produced rather than Ruby core dumping.
Same behavior exists in Ruby 1.9.1 + 1.9.3 + 2.0 creating exactly the same stack trace.
Attached is the Ruby2.0 data. System is a pl...
dfavor (David Favor)
12:30 PM Bug #10299 (Closed): alias_method :new_foo=, :"#{:foo}=" doesn't work properly on ruby 2.2.0preview1.
nobu (Nobuyoshi Nakada)
08:55 AM Bug #10299 (Closed): alias_method :new_foo=, :"#{:foo}=" doesn't work properly on ruby 2.2.0preview1.
Here is reproducible script.
~~~ruby
class Test
class << self
def test
alias_method :new_foo=, :"#{:foo}="
end
end
attr_accessor :foo
test
end
~~~
It occurs following error.
~~~
NameError: undefi...
hbd225 (Norimasa Ando)
08:34 AM Bug #10276: nil/true/false に singleton メソッドを定義できてしまう
frozen なオブジェクトに特異クラスが作成できるかどうかも統一されていないようですが、そういうものなのでしょうか?
~~~
>> RUBY_DESCRIPTION
=> "ruby 2.2.0dev (2014-09-25 trunk 47711) [x86_64-linux]"
> ...
TypeError: can't define singleton
from (irb):2
from /home/kazu/....
znz (Kazuhiro NISHIYAMA)
08:17 AM Revision 4d2aef1e (git): rbinstall.rb: header targets
* tool/rbinstall.rb: separate header targets, comm-hdr for
architecture independent headers, arch-hdr for architecture
dependent headers, and hdr for both.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47722 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
07:44 AM Feature #10073: [PATCH] Implement Laplace expansion for matrix.
@Marc-Andre Lafortune
Thank you very much for responding.
```
m.laplace_expansion(row: k-1) == m.laplace_expansion(column: k-1) == m.det
```
The interface you suggested is really make sense for me.
OK, Let me handle this.
gogotanaka (Kazuki Tanaka)
07:35 AM Feature #10042: Deprecate postfix rescue syntax for removal in 3.0
Got it, this is what I proposed:
~~~ruby
do_messy_job resc TypeError: 42, NameError: 43
~~~
Anonymous
07:32 AM Feature #10042: Deprecate postfix rescue syntax for removal in 3.0
Nooo! Don't remove tail rescue! I suggested to introduce tail "resc" keyword with exception to be rescued somewhere here. Anonymous
03:13 AM Bug #10150 (Closed): Tiny URI.parse error incompatibility
Applied in changeset r47721.
----------
* lib/uri/rfc3986_parser.rb: raise URI::InvalidURIError when
uri doesn't respond to #to_str. [ruby-core:64453] [Bug #10150]
* test/uri/test_parser.rb: test for above.
Anonymous
03:13 AM Revision a4645e56 (git): * lib/uri/rfc3986_parser.rb: raise URI::InvalidURIError when
uri doesn't respond to #to_str. [ruby-core:64453] [Bug #10150]
* test/uri/test_parser.rb: test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
01:34 AM Revision dd798a68 (git): * gems/bundled_gems: upgraded to power_assert 0.1.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
01:30 AM Revision 15ae462d (git): digest.c: typed data
* ext/digest/digest.c (rb_digest_base_alloc): use typed data.
* ext/digest/digest.c (rb_digest_base_copy): fail unless original
object has same algorithm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47719 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
01:28 AM Revision 851c2f2d (git): * 2014-09-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:28 AM Revision bb10a213 (git): ruby.h: deprecate plain Data
* include/ruby/ruby.h (rb_data_object_alloc_deprecated): deprecate
Data_Make_Struct and Data_Wrap_Struct. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

09/26/2014

10:50 PM Bug #10284: Segmentation fault on Ruby 2.1.2 and 2.1.3
Eric Wong wrote:
> moreno.carullo@gmail.com wrote:
> ...
for example:
~~~
/usr/local/lib/ruby/2.1.0/webrick/httpserver.rb:75: [BUG] Segmentation fault at 0x00000000000008
[00:28:59]ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_6...
moreno.carullo (Moreno Carullo)
09:24 PM Bug #10296: SEGV from unchecked Data_Get_Struct() argument
Yes it seems like all uses of Data_Get_Struct() should be changed to use TypedData_Get_Struct() instead, doesn't it? TypedData* seems like a strictly better interface and it can provide type checking.
There are probably other instance...
jhaberman (Josh Haberman)
07:42 AM Bug #10296: SEGV from unchecked Data_Get_Struct() argument
Calling initialize_copy directly is probably buggy behavior and not
unique to just the json/zlib C extensions.

Other than telling users to never call initialize_copy directly, I'm not
sure what to do about it. It would be a lot of...
normalperson (Eric Wong)
12:12 AM Bug #10296 (Closed): SEGV from unchecked Data_Get_Struct() argument
I can crash all Ruby versions I tried with this program:
```ruby
require 'json'
require 'zlib'

module JSON
module Ext
module Generator
class State
def foo
initialize_copy(Zlib::GzipWriter.new('...
jhaberman (Josh Haberman)
04:33 PM Feature #10095: Object#as
This feature also looks a lot like a pipeline.
Here are some examples how people implemented that before, either using simple blocks or more complex generator/consumer queues:
https://gist.github.com/pcreux/2f87847e5e4aad37db02
ht...
avit (Andrew Vit)
09:56 AM Feature #7549 (Rejected): A Ruby Design Process
I just read a blog that said this issue was still open.
I might be slightly biased (see my comments above), but in order to avoid confusion, I'm closing this issue because the proposal is no longer actively discussed.
If somebody has a...
duerst (Martin Dürst)
09:49 AM Feature #10298 (Rejected): Array#float_sum (like math.fsum of Python)
Here, I propose Array#float_sum in array.c (or math.c).
Array#float_sum returns an accurate total summation of Float
elements in an array using the Kahan summation algorithm
http://en.wikipedia.org/wiki/Kahan_summation_algorithm .
Th...
t-nissie (Takeshi Nishimatsu)
09:28 AM Misc #10297 (Closed): r47670 make benchmark/bm_vm_thread_create_join.rb slow
nariです。
r47670でbm_vm_thread_create_join.rbが10%ほど遅くなったようです。
スレッドをバンバン生成するベンチマークなので、スレッドに名前付けするところの影響がでているかなと思いました(が詳しいところは計測できていません…)。
r47669
% time ./miniruby -e '10000.times{ Thread.new{}.join }'
./miniruby -e '10000.times{ Thr...
authorNari (Narihiro Nakamura)
06:28 AM Bug #10294: Dir[] cannot be called with an array argument
I'm aware of what actually works in practice, but the documentation claims both forms are acceptable:
```
Dir[ array ] → array
Dir[ string [, string ...] ] → array
```
https://github.com/ruby/ruby/blob/2a8989d71c611884631c4d9ff5...
Anonymous
04:04 AM Bug #10294 (Rejected): Dir[] cannot be called with an array argument
Not an array of path names, any number of path names,
~~~ruby
Dir['/bin/bash', '/bin/sh']
~~~
nobu (Nobuyoshi Nakada)
05:45 AM Bug #10290: segfault when calling a lambda recursively after rescuing SystemStackError
I can't reproduce it with irb, but it might access over the top of stack.
Possibly, we need more margin for the guard page.
nobu (Nobuyoshi Nakada)
03:52 AM Bug #10285 (Closed): StringIO with encodings broken due to #9769
Applied in changeset r47716.
----------
stringio.c: ASCII-8BIT StringIO rejects no encodings
* ext/stringio/stringio.c (strio_write): ASCII-8BIT StringIO
should be writable any encoding strings, without conversion.
[ruby-core:65240...
nobu (Nobuyoshi Nakada)
03:52 AM Revision 2a8989d7 (git): stringio.c: ASCII-8BIT StringIO rejects no encodings
* ext/stringio/stringio.c (strio_write): ASCII-8BIT StringIO
should be writable any encoding strings, without conversion.
[ruby-core:65240] [Bug #10285]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47716 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)

09/25/2014

09:31 PM Bug #10284: Segmentation fault on Ruby 2.1.2 and 2.1.3
moreno.carullo@gmail.com wrote:
> Hi all, I often (let's say 50% of the times the test suite is run) get this segmentation fault on both mentioned versions.
> Please note that the method/line where it breaks is always different!

Wh...
normalperson (Eric Wong)
08:39 PM Bug #10282: Reproducible segfault when inspecting this method
normalperson@yhbt.net wrote:
> File 0001-object.c-rb_class_real-do-not-dereference-0-VALUE.patch added

> This looks to be a simple dereference bug.
> However, this is my first time looking a prepend so maybe there's a subtle
> beh...
normalperson (Eric Wong)
08:29 PM Bug #10282 (Closed): Reproducible segfault when inspecting this method
Applied in changeset r47715.
----------
object.c (rb_class_real): do not dereference 0 VALUE
* test/ruby/test_module.rb (test_inspect_segfault):
Test case and bug report by Thomas Stratmann.
[ruby-core:65214] [Bug #10282]
Anonymous
08:29 PM Revision 0ef94bd2 (git): object.c (rb_class_real): do not dereference 0 VALUE
* test/ruby/test_module.rb (test_inspect_segfault):
Test case and bug report by Thomas Stratmann.
[ruby-core:65214] [Bug #10282]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
08:18 PM Feature #10197 (Closed): document RUBY_* stack size/GC params in ruby.1 manpage
Applied in changeset r47713.
----------
man/ruby.1: document stack size env variables
[Feature #10197]
Anonymous
08:18 PM Revision e0f02160 (git): * 2014-09-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:18 PM Revision 446a5417 (git): man/ruby.1: document stack size env variables
[Feature #10197]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
04:52 PM Bug #10142: named params don't always capture passed named args
another example of how this creates surprise, confusion and subtle bugs
~~~ruby
def foo(a = 1, **options)
end
foo opt: 2
~~~
_____________
if 'a' becomes mandatory, instead of raising, "a" will absorb the options, which is c...
rits (First Last)
03:44 PM Bug #10167: Prime#include?(mod) hangs up
Review my patch, please! nitoyon (Kenichi Saita)
10:47 AM Feature #10295 (Closed): [PATCH] io.c (fptr_finalize): free memory (before GC sweep)
Note: just committed r47712 which was trivial.
This passes tests, too, but I would appreciate another set of eyes
in case there's a subtle finalization issue I'm missing.
This releases memory on explict calls to rb_io_close,
reduci...
normalperson (Eric Wong)
10:40 AM Revision 405c4abb (git): io.c: common function to free IO buffers
This also allows easier tracking of freed memory for systems
without malloc_usable_size, and also makes future changes
to freeing buffer memory easier-to-implement.
* io.c (free_io_buffer): new function for a common pattern
(clear_rea...
Eric Wong
05:18 AM Bug #10290: segfault when calling a lambda recursively after rescuing SystemStackError
As I noted, running the example code on trunk does not segfault (it raises SystemStackError a second time, as I would expect):
```
$ ruby -ve "l = -> { l.() }; begin; l.(); rescue SystemStackError; l.(); end"
ruby 2.2.0dev (2014-09-...
Anonymous
05:11 AM Bug #10290: segfault when calling a lambda recursively after rescuing SystemStackError
I've attached the OS X crash report. Anonymous
01:44 AM Bug #10293: splatting an empty hash in a method invocation sends an argument to the method (should send nothing)
https://bugs.ruby-lang.org/issues/9291 is somewhat related
foo(**nil) should not raise since foo(*nil) does not and it's the more useful behavior
rits (First Last)
12:18 AM Bug #10293 (Assigned): splatting an empty hash in a method invocation sends an argument to the method (should send nothing)
nagachika (Tomoyuki Chikanaga)
12:34 AM Bug #10294 (Closed): Dir[] cannot be called with an array argument
The documentation for `Dir[]` claims that it can be called with an array and it will behave like Dir.glob:
```
Dir[ array ] → array
Dir[ string [, string ...] ] → array
Equivalent to calling Dir.glob(array,0) and Dir.glob([string,....
Anonymous

09/24/2014

11:57 PM Bug #10293 (Closed): splatting an empty hash in a method invocation sends an argument to the method (should send nothing)
irb(main):001:0> def foo; end; foo **{}
ArgumentError: wrong number of arguments (1 for 0)
note that splatting an empty array results in no arguments
this behavior is particularly problematic with send (dispatching to different me...
rits (First Last)
10:54 PM Revision 39bb54d8 (git): * 2014-09-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:54 PM Revision 1ddf8113 (git): * lib/matrix.rb: Fix docs. Patched by Ben Woodall. [GH-726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ayumin (Ayumu AIZAWA)
04:42 PM Bug #10292 (Closed): Rails server suddenly crashes sometimes

/Users/gost/.rvm/gems/ruby-2.1.0/gems/activesupport-4.1.5/lib/active_support/notifications.rb:159: [BUG] Segmentation fault at 0x00000000000000
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin11.0]
-- Crash Report log inform...
mib32 (Anton Murygin)
10:03 AM Revision ba63472a (git): enc/unicode/data: New directory for downloaded Unicode data files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
10:00 AM Revision f508efdb (git): tool/downloader.rb: Adjusting example for
Downloader.download to implementation changes in r47693.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:07 AM Revision b6f2f67c (git): tool/downloader.rb: Removing unused method
Downloader.download_if_modified_since.
(if ever used, just replace with Downloader.download)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
08:59 AM Revision d081032d (git): tool/downloader.rb: Fixing raise after return.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
08:55 AM Bug #10291 (Closed): Strange behaviour of splat in Ruby 2.0.0

In Ruby 1.9.3, when a method defined with some required number of arguments, method always checks the number of required arguments when called with a splat.
But in ruby 2.0.0, when a method defined with some required number of argumen...
siddharth (siddharth sharma)
08:55 AM Revision d2172c8d (git): tool/downloader.rb: Made Unicode data file location available
via :unicode Symbol.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
06:28 AM Bug #10290: segfault when calling a lambda recursively after rescuing SystemStackError
The segfault also occurs on the OS X 10.9 system ruby, `2.0.0-p481`; not sure about the most recent patch release. Anonymous
06:20 AM Bug #10290 (Closed): segfault when calling a lambda recursively after rescuing SystemStackError
The following code segfaults on Ruby 2.1.3:
```ruby
l = -> { l.() }
begin
l.()
rescue SystemStackError
l.() # segfault
end
```
the issue does not occur on trunk.
Anonymous
05:45 AM Bug #10289 (Closed): Segmentation fault on ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
It's an already fixed stack overflow detection bug.
nobu (Nobuyoshi Nakada)
05:23 AM Bug #10289 (Closed): Segmentation fault on ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
The following program causes a segmentation fault when I run it. It is a reduced test case from a small experiment I was running with command line argument parsing.
~~~ruby
results = Hash.new {|k, v| k[v] || []}
results[1] += []
~~...
davidk01 (david karapetyan)
01:43 AM Revision 9c0f09da (git): tool/downloader.rb: Small fix to documentation comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
01:41 AM Bug #10288 (Closed): Parser incompatibility between 2.1.2 and 2.1.3
Oops! I'm sorry, looks like this dups with #10279 matsuda (Akira Matsuda)
01:34 AM Bug #10288 (Closed): Parser incompatibility between 2.1.2 and 2.1.3
This code successfully prints {:foo=>1} in 2.1.2 and current trunk but causes "syntax error, unexpected modifier_if" in 2.1.3
~~~
p({foo: if true then 1 end})
~~~
matsuda (Akira Matsuda)

09/23/2014

08:01 PM Bug #10282: Reproducible segfault when inspecting this method
This looks to be a simple dereference bug.
However, this is my first time looking a prepend so maybe there's a subtle
behavior change I missed.
"make check" and rubyspec passes, at least.
normalperson (Eric Wong)
06:21 PM Bug #10285: StringIO with encodings broken due to #9769
As another data point, I also tried this with writing to a file which seems to work:
~~~
File.open("out.txt", :mode => "w", :encoding => Encoding::ASCII_8BIT) do |f|
str1 = "quz \x83 mat".force_encoding(Encoding::ASCII_8BIT)
f....
dbussink (Dirkjan Bussink)
11:29 AM Bug #10285 (Closed): StringIO with encodings broken due to #9769
It looks like the change in https://bugs.ruby-lang.org/issues/9769 resulted in a behavior change with how StringIO works with different encodings.
The following snippet is broken and now raises:
~~~
test_string_io_encoding.rb:8:i...
dbussink (Dirkjan Bussink)
05:40 PM Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
Backported r47696 and r47697 into `ruby_2_1` branch at r47703. nagachika (Tomoyuki Chikanaga)
01:00 PM Bug #10279 (Closed): Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
Applied in changeset r47696.
----------
parse.y: label cannot be followed by a modifier
* parse.y (parse_ident): just after a label, new expression should
start, cannot be a modifier. [ruby-core:65211] [Bug #10279]
nobu (Nobuyoshi Nakada)
01:14 AM Bug #10279 (Assigned): Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
nobu (Nobuyoshi Nakada)
05:39 PM Revision b2477430 (git): merge revision(s) r47696,r47697: [Backport #10279]
* parse.y (parse_ident): just after a label, new expression should
start, cannot be a modifier. [ruby-core:65211] [Bug #10279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47703 b2dd03c8-39d4-4d8f-98ff-823fe...
nagachika (Tomoyuki Chikanaga)
05:22 PM Bug #10262: nmake love fails from tarball
Backported into `ruby_2_1` branch at r47702. nagachika (Tomoyuki Chikanaga)
05:22 PM Revision 514b5e8d (git): merge revision(s) r47641,r47642,r47644: [Backport #10262]
* win32/win32.c (VCSUP): nothing to do if this worktree is not under
any VCS (it means that the worktree may be from the release package).
* win32/Makefile.sub (VCSUP): nothing to do if this worktree is not
u...
nagachika (Tomoyuki Chikanaga)
05:19 PM Bug #10281: r47683 (add GC guard in rb_ary_splice())
Backported into `ruby_2_1` branch at r47701. nagachika (Tomoyuki Chikanaga)
05:18 PM Revision 57fd5013 (git): merge revision(s) r47683: [Backport #10281]
array.c: GC guard
* array.c (rb_ary_splice): prevent replacing array from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:08 PM Bug #10245: TestTimeTZ#test_gen_Europe_Lisbon_111 fails with recent tzdata
r47111, r47212, r47451, r47452 and r47680 were backported into `ruby_2_1` branch at r47700. nagachika (Tomoyuki Chikanaga)
05:07 PM Revision 1ee1a2bd (git): merge revision(s) r47111,r47212,r47451,r47452,r47680: [Backport #10245]
* test/minitest/test_minitest_unit.rb: removed obsoleted condition
for Ruby 1.8.
* test/ruby/test_time_tz.rb: ditto.
* test/ruby/test_time_tz.rb: Fix test error with tzdata-2014g.
[ruby-core:65058] [...
nagachika (Tomoyuki Chikanaga)
04:58 PM Revision 265c1680 (git): * version.h (RUBY_VERSION): bump RUBY_VERSION to 2.1.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@47699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
04:32 PM Feature #10255: Math.log: check domain of base argument
After I thought twice about that,
I came to the conclusion that `1.0` should be considered as `1 + ε (infinitesimal)`
In terms of ↓
```
1/0.0
=> Infinity
```
so below behave does make sense.↓
```
# For all 0 <= n < 1...
gogotanaka (Kazuki Tanaka)
06:22 AM Feature #10255: Math.log: check domain of base argument
I'd forgotten to update RDoc. So I add new patch for updating RDoc.
gogo.
gogotanaka (Kazuki Tanaka)
04:31 PM Revision 135fb022 (git): * 2014-09-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:31 PM Revision f7831a4a (git): * ChangeLog: remove a duplicated entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
04:15 PM Feature #10287 (Assigned): rename COLON3 to COLON2_HEAD.
主に parse.y を読んでいて、DOT2 に対する DOT3 はわかるのですが、COLON2 に対する COLON3 はよくない名前だと思いました。
COLON3 の表すものは ::FOO::BAR のようにスコープ指定の先頭を表すものなので、COLON2_HEAD としてパッチを作ってみました。
arimay (yasuhiro arima)
01:00 PM Revision 08248c93 (git): parse.y: label cannot be followed by a modifier
* parse.y (parse_ident): just after a label, new expression should
start, cannot be a modifier. [ruby-core:65211] [Bug #10279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:49 PM Bug #10286 (Closed): BigDecimal - inconsistency with other numeric classes
Unlike other numerical classes, BigDecimal does not raise ArgumentError when I try to parse invalid value.
~~~
require 'bigdecimal'
BigDecimal('invalid value')
# => #<BigDecimal:7fe6f9a6a058,'0.0',9(9)>
Float('invalid value')
...
Soilent (Konstantin x)
12:09 PM Revision 4f123ebd (git): common.mk: update-gems
* common.mk (update-gems): update bundled gem files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:56 AM Revision 0b5227b8 (git): downloader.rb: shorthands for usual URI
* tool/downloader.rb (Downloader.uri_to_download): add shorthands
for commonly used URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:52 AM Revision c7cdc549 (git): downloader.rb: integrate with download_if_modified_since
* tool/downloader.rb (Downloader.download): integrate with
download_if_modified_since and allow to use `since` parameter if it
is not true/false. also set last-modified time and permission.
git-svn-id: svn+ssh://ci.ruby-lang.org/ru...
nobu (Nobuyoshi Nakada)
09:17 AM Bug #10284 (Closed): Segmentation fault on Ruby 2.1.2 and 2.1.3
Hi all, I often (let's say 50% of the times the test suite is run) get this segmentation fault on both mentioned versions.
Please note that the method/line where it breaks is always different!
The application is Rails 4 running on Fr...
moreno.carullo (Moreno Carullo)
07:13 AM Feature #10084 (Open): Add Unicode String Normalization to String class
Changeset ruby-trunk:r47691 only completes about 5% or 10% of this bug, therefore reopening. duerst (Martin Dürst)
07:08 AM Feature #10084 (Closed): Add Unicode String Normalization to String class
Applied in changeset ruby-trunk:r47691.
----------
tool/downloader.rb: added Downloader.download_if_modified_since
to reduce downloads of large files that change only rarely.
[ruby-core:65164] [CommonRuby - Feature #10084]
duerst (Martin Dürst)
07:08 AM Revision f10a2f43 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:08 AM Revision 96245d6d (git): tool/downloader.rb: added Downloader.download_if_modified_since
to reduce downloads of large files that change only rarely.
[ruby-core:65164] [CommonRuby - Feature #10084]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
04:51 AM Bug #4044 (Closed): Regex matching errors when using \W character class and /i option
Fixed with r47598. k_takata (Ken Takata)
04:51 AM Bug #9728 (Closed): Regexp bug
Fixed with r47598. k_takata (Ken Takata)
02:55 AM Revision ab5517a0 (git): * .travis.yml: added rubyspec into travis tasks and eliminate to stdout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:31 AM Bug #10283 (Closed): Calling define_method with a dynamic symbol ending in = results in a NoMethodError when calling the method via assignment, until called via send
nobu (Nobuyoshi Nakada)
12:26 AM Bug #10277 (Rejected): Ampersand to_proc issues
`to_proc` must return a `Proc`, not a `Method`.
They are different.
nobu (Nobuyoshi Nakada)
12:22 AM Bug #10280 (Rejected): Regression while evaluating default argments of a method
nobu (Nobuyoshi Nakada)
12:13 AM Revision 1a65cef0 (git): doc: remove trailing spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

09/22/2014

11:42 PM Feature #2567: Net::HTTP does not handle encoding correctly
I'm also encountering this issue after upgrading from 1.8.7 to 2.0.0. The issue was difficult to troubleshoot because it didn't manifest until after Net::HTTP was done and gone from the stack, when trying to concatenate the response bod... marcel (Marcel Cary)
11:40 PM Misc #10278: [RFC] st.c: use ccan linked list
Eric Wong <normalperson@yhbt.net> wrote:
> Will test on the old Phenom II, too.

bighash looks nice as expected, haven't had time to look more into
these numbers but it's more consistent than the Vishera (FX-8320):
http://80x24.org...
normalperson (Eric Wong)
06:58 PM Misc #10278: [RFC] st.c: use ccan linked list
Better (at least more explainable) results on the Xeon:
http://80x24.org/spew/m/st-ccan-list-bench@meltdown.html

Will test on the old Phenom II, too.
normalperson (Eric Wong)
07:23 AM Misc #10278 (Assigned): [RFC] st.c: use ccan linked list
Indeed. nobu (Nobuyoshi Nakada)
07:12 AM Misc #10278: [RFC] st.c: use ccan linked list
nobu@ruby-lang.org wrote:
> Probably, we should remove `back` member.

Just `back` and making it a singly-linked list?
st_delete would become O(n), unfortunately.

I also do not think going from 48 to 40 bytes makes a difference o...
normalperson (Eric Wong)
06:34 AM Misc #10278: [RFC] st.c: use ccan linked list
Probably, we should remove `back` member. nobu (Nobuyoshi Nakada)
05:32 AM Misc #10278 (Closed): [RFC] st.c: use ccan linked list
Mainly posting this for documentation purposes because it seems like
an obvious thing to try given we have ccan/list nowadays.
Having shorter code along branchless insert/delete, and using a common
linked-list API is very appealing....
normalperson (Eric Wong)
11:29 PM Revision cfdd8cda (git): * 2014-09-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:29 PM Revision 13b74c9c (git): Fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:24 PM Bug #10283 (Closed): Calling define_method with a dynamic symbol ending in = results in a NoMethodError when calling the method via assignment, until called via send
This raises a NoMethodError in ruby 2.2.0preview1:
ruby -e "class A; define_method('b='.to_sym){|v|}; end; A.new.b = 1"
This does not, showing it is specific to dynamic symbols:
ruby -e "class A; define_method(:b=){|v|};...
jeremyevans0 (Jeremy Evans)
04:04 PM Bug #10277: Ampersand to_proc issues
This seems correct to me. The `&` operator expects `to_proc` to return an actual `Proc`. `AmpersandMethod#to_proc` does *not* return a `Proc`, it returns a `Method`.
In other words,
```
puts yielder(&AmpersandMethod.new.method(:ma...
Anonymous
03:34 PM Bug #10282 (Closed): Reproducible segfault when inspecting this method
The example code can be found here (in this exact comment): https://github.com/pry/pry/issues/1299#issuecomment-56389004
I have taken the time to reduce it as far as this. It should be easily reproduced on other systems/versions now.
schnittchen (Thomas Stratmann)
02:03 PM Bug #10281 (Closed): r47683 (add GC guard in rb_ary_splice())
nagachika (Tomoyuki Chikanaga)
01:23 PM Bug #10280 (Rejected): Regression while evaluating default argments of a method

~~~ruby
class DefArg
def calc(str, val=val)
p val
end

def val
10
end
end

# ruby-2.2.0-preview1 => nil
# ruby-2.1.3 => 10
DefArg.new.calc("hello")
~~~
im not sure what ruby spec says. but it...
iffyuva (Yuva Kumar)
11:01 AM Revision afe1bbeb (git): test/win32ole/test_win32ole_variant.rb
(test_conversion_time2date_with_msec): test by using only
assert_in_delta to avoid to fail when converting Time object with
999999999 nanoseconds into VT_DATE Variant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47686 b2dd03c8-...
suke (Masaki Suketa)
10:50 AM Revision f13f9f69 (git): * doc/syntax/methods.rdoc: [DOC] [] and []= methods by @process
[Fixes GH-662] https://github.com/ruby/ruby/pull/662
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
zzak (zzak _)
09:21 AM Revision cf33a35a (git): * .travis.yml: Only osx build is enabled. linux builds is random failure
and test results of major linux is covered by rubyci.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
09:13 AM Bug #10279: Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
trunk is same behaviour:
```
ruby 2.2.0preview1 (2014-09-17 trunk 47616) [x86_64-darwin13]
10279.rb:1: syntax error, unexpected modifier_if
h = { key: if true
```
hsbt (Hiroshi SHIBATA)
08:53 AM Bug #10279 (Closed): Syntax error on Hash with symbol syntax and nested expression: 2.1.3 regression
The following gives syntax error on ruby 2.1.3
~~~ruby
h = { key: if true
"yes"
else
"no"
end }
puts h.inspect
~~~
~~~
/usr/local/rvm/rubies/ruby-2.1.3/bin/ruby x.rb
x.rb:1...
jackmontaach (Jack Montaach)
08:17 AM Revision 88cbfc0d (git): array.c: GC guard
* array.c (rb_ary_splice): prevent replacing array from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:38 AM Revision c29b274b (git): test_thread.rb: thread for Queue
* test/ruby/test_thread.rb (test_main_thread_status_at_exit):
require 'thread' for Queue.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:41 AM Feature #8366 (Open): Exception.message take time to execute depending on the instance variables
nobu (Nobuyoshi Nakada)
06:10 AM Bug #10275: Issues when trying to complile ruby 2.1.3
Probably same as [Bug #10272]. nobu (Nobuyoshi Nakada)
04:44 AM Revision 2e2522ec (git): tmpdir.rb: explicit conversion to string
* lib/tmpdir.rb (Dir::Tmpname#make_tmpname): convert prefix and
suffix to strings explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:22 AM Feature #10267: Number of processors
Eric Wong wrote:
> In your patch2, the test is still using the old name.
Oops. Fixed.
akr (Akira Tanaka)
03:20 AM Feature #10267: Number of processors
akr@fsij.org wrote:
> However I think the method name can be changed to
> Etc.nprocessors.
>
> If someone succeeds to pursuade matz that other numbers are also important,
> we can add an optional argument as Etc.nprocessors(type)...
normalperson (Eric Wong)
03:08 AM Feature #10267: Number of processors
Eric Wong wrote:
> akr@fsij.org wrote:
> ...
I feel "proc" as process.
> I think it is important to be able to get all CPUs, not just
> ...
I (and kosaki-san) agreed that the most important number of processors is
the number of o...
akr (Akira Tanaka)
03:14 AM Bug #10245: TestTimeTZ#test_gen_Europe_Lisbon_111 fails with recent tzdata
I committed a fix r47680.
It still test Europe/Lisbon because I'd like to test
an situation that gmtoff is not a multiples of 60 seconds.
akr (Akira Tanaka)
03:12 AM Bug #10245 (Closed): TestTimeTZ#test_gen_Europe_Lisbon_111 fails with recent tzdata
Applied in changeset r47680.
----------
* test/ruby/test_time_tz.rb: Fix test error with tzdata-2014g.
[ruby-core:65058] [Bug #10245] Reported by Vit Ondruch.
akr (Akira Tanaka)
03:12 AM Revision 565fef82 (git): * test/ruby/test_time_tz.rb: Fix test error with tzdata-2014g.
[ruby-core:65058] [Bug #10245] Reported by Vit Ondruch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:46 AM Revision 4d10c2b9 (git): ext/socket/*.c: trivial struct packing for 64-bit
* ext/socket/ancdata.c ({send,recv}msg_args_struct): 24 => 16 bytes
* ext/socket/init.c (connect_arg): ditto
* ext/socket/raddrinfo.c (getnameinfo_arg): 56 => 48 bytes
Other big stack reductions are less trivial.
git-svn-id: svn+ssh://...
Eric Wong

09/21/2014

10:28 PM Bug #10277 (Rejected): Ampersand to_proc issues
I'm noticing weird inconsistencies when when returning a bound method in the #to_proc method when using jridgewell (Justin Ridgewell)
05:52 PM Feature #8366 (Closed): Exception.message take time to execute depending on the instance variables
It can't be reproduced with ruby 2.1.3.
```
ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]
before NameError
after 0.147735733 undefined local variable or method `no_such_method' for #<ExceptionTest:0x007fac810bed90>
```
Glass_saga (Masaki Matsushita)
05:06 PM Revision 6a7d389e (git): * lib/drb/drb.rb: Support graceful shutdown.
(DRbTCPSocket#initialize): Create a pipe for shutdown notification.
(DRbTCPSocket#close): Invoke close_shutdown_pipe.
(DRbTCPSocket#close_shutdown_pipe): New private method.
(DRbTCPSocket#accept): Use accept_or_shutdown.
(DRbTCPS...
akr (Akira Tanaka)
04:59 PM Bug #8679 (Closed): Time.newのutc_offset文字列で、 MMが60-99の場合にも例外を出して欲しい
Applied in changeset r47676.
----------
* time.c: raise exception when minutes of utc_offset is out of 00-59.
patch is from Kenichi Kamiya.
[ruby-dev:47539] [Bug #8679]
* test/ruby/test_time.rb: test for above.
patch is from Keni...
Anonymous
04:59 PM Revision 941b101e (git): * 2014-09-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:58 PM Revision 5697b2f0 (git): * time.c: raise exception when minutes of utc_offset is out of 00-59.
patch is from Kenichi Kamiya.
[ruby-dev:47539] [Bug #8679]
* test/ruby/test_time.rb: test for above.
patch is from Kenichi Kamiya.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
03:06 PM Feature #10095: Object#as
I should admit that I never liked object to which a block method is called being passed as block parameter.
Even for tap, for example,
```ruby
(1..10).tap{ |x| logger.debug x }
```
looks a bit < u guess >. I'd like to say
...
jihwans (Jihwan Song)
01:47 PM Feature #10095: Object#as
I think the goal is always to keep Ruby language beautiful.
The original request was done with certain motive. What is desired is to find a Ruby way, targetting the original motive. Simply following requests will end up with hairy langu...
jihwans (Jihwan Song)
01:01 PM Feature #10270: Hash#insert
The name "insert" seems good to me because it implies a *new* entry and unable to change an *old* entry. But key-value pair must be thought of as an *entry* too for it to make sense (I guess I get that notion from Java http://docs.oracle... atlas (Atlas Prime)
11:50 AM Feature #10270 (Feedback): Hash#insert
1. I am not sure #insert is the best name for non clobbering merge.
2. do you know merge takes a block to resolve key conflict?
h.merge(h2) {|key,v1,v2|v1}
works as your proposed #insert.
Matz.
matz (Yukihiro Matsumoto)
10:07 AM Revision a3307d5e (git): * st.c (do_hash_bin): unused macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
09:52 AM Revision 5390e321 (git): * parse.y (parser_class_nest): unused variable after YARV
merged (r11439).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
09:37 AM Bug #10276 (Rejected): nil/true/false に singleton メソッドを定義できてしまう
nil/true/false が frozen object なのに singleton メソッドを定義できてしまいます。
~~~
% cat /tmp/f.rb
def d(o)
p o.frozen?
def o.m; end
rescue
p [o, $!]
end
d(:sym)
d(1)
d(nil)
d(true)
d(false)
d(Object.new.freeze)
% ruby -v /tmp/f.rb...
znz (Kazuhiro NISHIYAMA)
09:22 AM Revision a5c91a38 (git): * st.c (numberof): unused. internal.h has same macro.
* node.c (F_CUSTOM2): unused.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
authorNari (Narihiro Nakamura)
08:58 AM Bug #10275: Issues when trying to complile ruby 2.1.3
Hi, an you reproduce the problem without RVM?
(e.g. "./configure && make && make install")

If not, please see http://rvm.io/ for help/support options.
normalperson (Eric Wong)
08:29 AM Bug #10275 (Closed): Issues when trying to complile ruby 2.1.3
I encountered an issues where I was using RVM to install ruby 2.1.3 and it kept hanging at the compilation stage.
I thought this was due to a compiler issues and set the CC flag to gcc and retried the install: it still failed and the c...
thalesian (Alex Kiagiri)
08:58 AM Feature #10274: [PATCH 0/2] more rb_iseq_t reductions (and more planned)
normalperson@yhbt.net wrote:
> File 0002-iseq-remove-iseq-iseq-field-270-262-bytes-on-64-bit.patch added

Ugh, forget 2/2. I forgot your comment in [ruby-core:64883] already
on out-of-tree compilers. But I may still overload this f...
normalperson (Eric Wong)
07:43 AM Feature #10274 (Closed): [PATCH 0/2] more rb_iseq_t reductions (and more planned)
Both of these are pretty simple, low impact patches:
We are close to being able to fit rb_iseq_t in four 64 byte
cache line (we are 262 bytes after these patches,
a milestone is <= 256 bytes).
* [PATCH 1/2] iseq: reduce from 280 ...
normalperson (Eric Wong)
07:28 AM Revision 8e7362ac (git): fix spaces [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:27 AM Revision 8533f74c (git): fix capital [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
05:14 AM Revision 1ea49760 (git): * thread_pthread.c (native_set_thread_name): New function to
set thread name visible with ps command on GNU/Linux.
Ex. ps -o %c -L
* thread.c (thread_start_func_2): Call native_set_thread_name at
beginning.
(rb_thread_inspect_msg): Extract from rb_thread_inspect.
git-svn-id: svn+ssh://ci...
akr (Akira Tanaka)
05:10 AM Revision e8bd56f5 (git): signal.c: SIGEXIT is not a system signal
* signal.c (trap): SIGEXIT is not a system signal and is dealt
with internally, so it should not try to register the system
signal handler by sigaction.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47669 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)
04:55 AM Revision c7b25771 (git): (test_main_thread_status_at_exit) wait until the thread enter the begin clause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:54 AM Revision 34ac0ea7 (git): wait until the thread is stopped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:17 AM Bug #10272: miniruby hangs on Mac OS X 10.7
Yes, that fixes it. Anonymous
02:13 AM Bug #10272 (Feedback): miniruby hangs on Mac OS X 10.7
Could you try `configure --with-setjmp-type=setjmp`? nobu (Nobuyoshi Nakada)
03:50 AM Revision 39fd4a87 (git): iseq.c (rb_iseq_defined_string): trim redundant semi-colon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Eric Wong
03:31 AM Revision 84b90070 (git): test_signal.rb: remove stale test
* test/ruby/test_signal.rb (TestSignal#test_trap_system_default):
remove stale test. signals are delivered to the main thread
always now, so sleep in sub thread is no longer interrupted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
03:26 AM Revision dfa336cd (git): file.c: clear tmp buffer on failures
Reduces GC malloc pressure (MAXPATHLEN is 4096 on my system),
rb_find_file_safe hits this path at least twice every time
ruby starts.
* file.c (rb_find_file_ext_safe): clear tmp buffer on failure
(rb_find_file_safe): ditto
git-svn-id...
Eric Wong
03:21 AM Feature #9952 (Closed): Optimize object allocations in CSV::Row
Applied in changeset r47663.
----------
* lib/csv.rb: avoid unnecessary object allocations.
patch is from Andrew Vit. [ruby-core:63215] [Feature #9952]
Anonymous
03:21 AM Revision 5be5db63 (git): * lib/csv.rb: avoid unnecessary object allocations.
patch is from Andrew Vit. [ruby-core:63215] [Feature #9952]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
03:10 AM Revision be1206c0 (git): * lib/rexml/**/*.rb: removed commented-out code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:48 AM Revision 091cdca6 (git): ChangeLog: adjust indent
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:42 AM Revision ae0299e3 (git): signal.c: raise SystemCallError for all failures
* signal.c (ruby_signal): return SIG_ERR as well as signal(2).
* signal.c (trap): raise SystemCallError for all failures when
called as a method.
* signal.c (Init_signal): fail by [BUG] only if initialization is
failed.
git-svn-id...
nobu (Nobuyoshi Nakada)
02:28 AM Bug #10258: conversion WIN32OLE_VARIANT and Time
2.0.0と2.1へのBackportは不要です。 suke (Masaki Suketa)
02:18 AM Bug #10258 (Closed): conversion WIN32OLE_VARIANT and Time
Applied in changeset r47658.
----------
ext/win32ole/win32ole.c (rbtime2vtdate, vtdate2rbtime): fix
the bug in conversion of milliseconds. [Bug #10258]
test/win32ole/test_win32ole_variant.rb
(test_conversion_dbl2date_with_msec,
test_co...
suke (Masaki Suketa)
02:26 AM Feature #10227: array.include? is much slower than array.index
Result of benchmark script the same as ruby-core:64954.
```
Rehearsal --------------------------------------------
include? 0.100000 0.000000 0.100000 ( 0.093951)
index 0.090000 0.000000 0.090000 ( 0.092334)
-----...
Glass_saga (Masaki Matsushita)
02:23 AM Feature #10227 (Closed): array.include? is much slower than array.index
Applied in changeset r47659.
----------
* array.c: use rb_equal_opt() for performance improvement.
[ruby-core:64954] [Feature #10227]
Anonymous
02:08 AM Feature #10227 (Assigned): array.include? is much slower than array.index
Glass_saga (Masaki Matsushita)
02:23 AM Revision e539565d (git): * array.c: use rb_equal_opt() for performance improvement.
[ruby-core:64954] [Feature #10227]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Glass_saga (Masaki Matsushita)
02:18 AM Revision 8bb93fc8 (git): ext/win32ole/win32ole.c (rbtime2vtdate, vtdate2rbtime): fix
the bug in conversion of milliseconds. [Bug #10258]
test/win32ole/test_win32ole_variant.rb
(test_conversion_dbl2date_with_msec,
test_conversion_time2date_with_msec): use assert_in_delta instead
of assert_equal to treat an acceptable err...
suke (Masaki Suketa)
02:04 AM Feature #10273 (Open): Immutable Ruby
I watched Matz recent keynote about the future of Ruby. I wonder if Ruby can become an immutable language? That could be expedited by a port of Clojure's immutable types. Then add concurrency and distributed computing (perhaps modeled af... atlas (Atlas Prime)
02:03 AM Revision e41fde8b (git): signal.c: EINVAL is a failure
* signal.c (ruby_signal): although "EINVAL from sigaction(2) is
not a bug", but even it is a failure. pointed at toRuby/guRuby
in RubyHiroba.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:00 AM Feature #10073: [PATCH] Implement Laplace expansion for matrix.
Looks good.
I'd change the interface slightly so we can call it with named parameters instead:
m.laplace_expansion(row: k-1) == m.laplace_expansion(column: k-1) == m.det
Of course, m.laplace_expansion or m.laplace_expansion(...
marcandre (Marc-Andre Lafortune)
01:40 AM Revision a718be06 (git): tempfile.rb: fix r47655
* lib/tempfile.rb (Tempfile#initialize, Tempfile.create): get rid of
shadowing local variables.
* lib/tmpdir.rb (Dir::Tmpname#make_tmpname): simlify argument
splitting.
* test/test_tempfile.rb: need thread library for ConditionVari...
nobu (Nobuyoshi Nakada)
12:40 AM Feature #9999: Type Annotations (Static Type Checking)
One design to consider is interfaces as implemented in the Go programming language, in which interfaces combine static typing and duck typing (https://en.wikipedia.org/wiki/Duck_typing#In_Go). Go accomplishes this by counting any object ... roryokane (Rory O’Kane)
 

Also available in: Atom