Project

General

Profile

Activity

From 03/31/2016 to 04/06/2016

04/06/2016

07:23 PM Bug #12255 (Closed): [DOC] Small fix for rdoc of ext/json/lib/json/add/*
This patch removes some comments that otherwise would appear in the docs of the affected classes.
E.g. for Exception
```
$ ri Exception
Descendants of class Exception are used to [...]
[snipped class documentation]
Exceptio...
stomar (Marcus Stollsteimer)
06:41 PM Feature #12254 (Closed): Add SSLCiphers option to webrick ssl.rb
Hi,
In order to secure a sinatra api using webrick i need to specify the ciphers to be used.
To do this i have added SSLCiphers option to webrick ssl.rb on the sslcontext.
I have created this pull request :
https://github.com/ruby/...
rhadoo_io (Raducu Constantin)
06:26 PM Bug #12136: OpenStruct.new(format: :bar).send :format # => too few arguments
> a) Keep behavior the same and rubyists can alleviate these by using `public_send` instead of `send`
It doesn't seem that swapping `send` by `public_send` has any effect, at least not in the example in #12251.
Is there a workaroun...
dblock (Daniel Doubrovkine)
04:16 PM Bug #12223: Backport r54304 (SEGV in rb_str_format())
ruby_2_3 r54505 merged revision(s) 54304. nagachika (Tomoyuki Chikanaga)
04:15 PM Revision 58f77932 (git): merge revision(s) 54304: [Backport #12223]
* sprintf.c (rb_str_format): fix buffer overflow, length must be
greater than precision. reported by William Bowling <will AT
wbowling.info>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54505 b2dd...
nagachika (Tomoyuki Chikanaga)
03:01 PM Bug #12253: tkとmechanizeを併用してTkButtonを押すと"TypeError: allocator undefined for TkEvent::Event"エラーが起こる
はじめのコードより
require 'mechanize'
をはずして2.3.0p0で試した結果、エラー無く動作しました。
申し訳ありません、当方の早とちりでお手数をお掛けしました。
恐れ入りますがチケットのクローズをお願い致します。
aves_ramphastos (Seigo Ishigane)
02:52 PM Bug #12253: tkとmechanizeを併用してTkButtonを押すと"TypeError: allocator undefined for TkEvent::Event"エラーが起こる
申し訳ありません。いま気づいて上記のコードから
require 'mechanize'
をはずしたらどうなるかを試しました。
結果は同じで、2.1.8では動作しますが、2.2.4では上記と同様のエラーでした。
タイトルは「2.2.4ではTkRootを明示的にnewするとエラーになる」のほうが適切だったかもしれません。
aves_ramphastos (Seigo Ishigane)
02:38 PM Bug #12253 (Closed): tkとmechanizeを併用してTkButtonを押すと"TypeError: allocator undefined for TkEvent::Event"エラーが起こる
Rubyコミュニティ 御中
恐れ入りますがお尋ねしたいことがあり、チケットを切りました。
ruby/tkとmechanizeを併用した際に「`TypeError: allocator undefined for TkEvent::Event`」というエラーが発生します。
2.2.4ではエラーになるのですが、2.1.8では問題なく動作します。
2.3.0はいまのところ "gem install mechanize" が失敗する(mechanizeが依存して...
aves_ramphastos (Seigo Ishigane)
02:54 PM Bug #10015: Performance regression in Dir#[]
The problem seems to persist Mac OS X, although is better on 2.3.0, is still a lot slower than 2.1.x.
I have run the benchmark
```ruby
require "benchmark"
time = []
5.times do
result = Benchmark.realtime { 800000.times do Dir['...
l.ferreira (Layon Ferreira)
02:29 PM Bug #12220 (Closed): Why does Coverage keep previously-loaded files as empty arrays?
Applied in changeset r54504.
----------
* ext/coverage/coverage.c: Fully reset coverage to not persist global state.
It was returning old file coverages as empty arrays to the user.
[ruby-core:74596] [Bug #12220]
* ext/coverage/cove...
Eregon (Benoit Daloze)
02:21 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Yusuke Endoh wrote:
> Xavier, thank you for your opinion. I also don't think that it is a good idea to change because of a spec, but I don't have a strong objection if the OP of #4796 is satisfied. So I agree with eregon's patch. Ere...
Eregon (Benoit Daloze)
02:18 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Thank you for your reply.
Xavier Shay wrote:
> Hello, I filed #4796. It was a long time ago, and I don't remember what I was trying to do. Likely something around a "coverage per test" feature.
> ...
Please read my argument fully, f...
Eregon (Benoit Daloze)
01:30 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Xavier, thank you for your opinion. I also don't think that it is a good idea to change because of a spec, but I don't have a strong objection if the OP of #4796 is satisfied. So I agree with eregon's patch. Eregon, could you commit i... mame (Yusuke Endoh)
12:57 AM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Hello, I filed #4796. It was a long time ago, and I don't remember what I was trying to do. Likely something around a "coverage per test" feature.
> Right, there is a compatibility concern, and I would like to check simplecov about it...
xshay (Xavier Shay)
02:29 PM Revision 4225b29d (git): * ext/coverage/coverage.c: Fully reset coverage to not persist global state.
It was returning old file coverages as empty arrays to the user.
[ruby-core:74596] [Bug #12220]
* ext/coverage/coverage.c (rb_coverages): remove unused static state.
* thread.c: Moved and renamed coverage_clear_result_i to reset_covera...
Eregon (Benoit Daloze)
01:41 PM Revision 6a79276e (git): configure.in: fix lgamma_r condition
* configure.in (rb_cv_lgamma_r_m0): fix the condition for
lgamma_r(-0.0). [Bug #12249]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:49 AM Feature #11322: OpenUri: RuntimeError: HTTP redirection loop
i've had a similar issue with `open('http://www.replayjeans.com/us/shop/product/women/jumpers-knitwear/neoprene-printed-sweatshirt/pc/48/c/61/sc/-1/1962')`
which i solved modifying D.E. Akers workaround a bit:
~~~
url = 'http://ww...
chaimann (Eugene Chaikin)
11:17 AM Bug #12252 (Closed): Clarify Thread exception handling documentation.
The current documentation for Thread exception handling in vm.c is somewhat unclear. I've tried to explain the behaviour more clearly. djellemah (John Anderson)
08:40 AM Revision 3f1fc5e4 (git): * tool/downloader.rb (RubyGems.download): follow the change of the
rubygems ssl_certs directory tree introduced by previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:59 AM Revision 373a7006 (git): btest: resource limit
* bootstraptest/test_thread.rb: rescue resource limitation errors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:01 AM Revision 469bac0f (git): * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.3.
Please see entries of 2.6.3 on
https://github.com/rubygems/rubygems/blob/master/History.txt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:13 AM Revision ea736d55 (git): configure.in: check lgamma_r(-0.0)
* configure.in (rb_cv_lgamma_r_m0): check if lgamma_r(-0.0)
returns negative infinity. [Bug #12249]
* math.c (ruby_lgamma_r): define by the configured result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54499 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
04:38 AM Revision 9d31efc6 (git): test_ssl.rb: skip unavailable pkeys
* test/openssl/test_ssl.rb (test_get_ephemeral_key): skip
unavailable public keys. [GH-1318]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:56 AM Revision 84d81867 (git): Logger: simple refactoring
* lib/logger.rb (Logger#level=): remove unnecessary local
variable.
* lib/logger.rb (Logger#initialize, Logger#reopen): [DOC] mention
the default values. cherrypicked from [GH-1319].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
nobu (Nobuyoshi Nakada)
01:26 AM Bug #12250: Ruby segfaults on `foodcritic .`
And seems a usual "incompatible library version" error. nobu (Nobuyoshi Nakada)
01:17 AM Revision 39330d6b (git): lgamma_r.c: fix at -0.0
* math.c (ruby_lgamma_r): missing/lgamma_r.c is used on Windows,
since msvcrt does not provide it.
* missing/lgamma_r.c (lgamma_r): fix lgamma(-0.0).
[ruby-core:74823] [Bug #12249]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5...
nobu (Nobuyoshi Nakada)

04/05/2016

10:15 PM Bug #12250 (Rejected): Ruby segfaults on `foodcritic .`
Ruby 2.0.0 is EOL hsbt (Hiroshi SHIBATA)
03:41 PM Bug #12250 (Rejected): Ruby segfaults on `foodcritic .`
Trace:
```
Downloads$ foodcritic .
/Users/andrew.pennebaker/.gem/ruby/2.0.0/gems/nokogiri-1.6.6.2/lib/nokogiri/nokogiri.bundle: [BUG] Segmentation fault
(snip)
Abort trap: 6
```
mcandre (Andrew Pennebaker)
08:46 PM Bug #12249: Math.gamma(-0.0) should return -Infinity
Regarding `Math.lgamma(-0.0)` (r54494,r54495):
It's actually caused by the `lgamma_r()` fallback implementation. A non-invasive fix (I don't think adding `if(x==0)` would be worthwhile):
~~~diff
diff --git a/missing/lgamma_r.c b/m...
cremno (cremno phobia)
07:16 PM Bug #12249: Math.gamma(-0.0) should return -Infinity
Nobuyoshi Nakada wrote:
> Applied in changeset r54492.
> ...
Thanks nobu!
Eregon (Benoit Daloze)
03:58 PM Bug #12249: Math.gamma(-0.0) should return -Infinity
Also `Math.lgamma(-0.0)`. nobu (Nobuyoshi Nakada)
03:52 PM Bug #12249 (Closed): Math.gamma(-0.0) should return -Infinity
Applied in changeset r54492.
----------
math.c: fix tgamma
* math.c (ruby_tgamma): fix tgamma(-0.0) on mingw.
[ruby-core:74817] [Bug #12249]
nobu (Nobuyoshi Nakada)
11:53 AM Bug #12249 (Closed): Math.gamma(-0.0) should return -Infinity
On Windows, Math.gamma(-0.0) returns +Infinity instead of -Infinity,
which is the correct result according to tgamma(3) and the behavior on other platforms.
Is this OK to fix in Ruby?
There is already a similar fix for #10642.
Eregon (Benoit Daloze)
07:45 PM Bug #12251 (Closed): DelegateClass(OpenStruct) behavior in 2.3.0 different from 2.2
This came from https://github.com/ruby-grape/grape/issues/1348
~~~
require 'delegate'
require 'ostruct'
class AttributeTranslator < DelegateClass(OpenStruct)
def initialize(attributes = {})
ostruct = OpenStruct.new(attrib...
dblock (Daniel Doubrovkine)
04:23 PM Revision bb7a4c2a (git): * math.c (ruby_lgamma_r): mswin's lgamma_r also seems to be wrong.
cf. [Bug #12249]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:53 PM Revision 542d3a07 (git): math.c: fix lgamma
* math.c (ruby_lgamma_r): fix lgamma(-0.0) on mingw and OSX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:52 PM Revision 8c4c3508 (git): * 2016-04-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:52 PM Revision 41c53344 (git): math.c: fix tgamma
* math.c (ruby_tgamma): fix tgamma(-0.0) on mingw.
[ruby-core:74817] [Bug #12249]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:34 PM Bug #11940: Ruby fails to compile with --with-static-linked-ext
ruby_2_3 r54491 merged revision(s) 53419. nagachika (Tomoyuki Chikanaga)
03:33 PM Revision d309921e (git): merge revision(s) 53419: [Backport #11940]
* lib/rubygems/security.rb (DIGEST_ALGORITHM, KEY_ALGORITHM):
should check same name as the used constants.
[ruby-core:72674] [Bug #11940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@54491 b2dd03c8...
nagachika (Tomoyuki Chikanaga)
10:16 AM Bug #9198 (Closed): Segfault in TestException#test_machine_stackoverflow
This test was disabled by r49550 => closing this issue. vo.x (Vit Ondruch)
08:15 AM Revision a4915087 (git): string.c: rb_str_concat_literals
* string.c (rb_str_concat_literals): concatenate literal string
fragments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:03 AM Bug #12202: nkf.c static void mime_putc the variable being used for loop used for outer loop too
Anton Sivakov wrote:
> Yui NARUSE wrote:
> ...
fixed, thanks!
naruse (Yui NARUSE)
05:54 AM Revision eee2769c (git): * ext/nkf/nkf-utf8/nkf.c (mime_putc): fix typo.
[Bug #12202] [ruby-core:74802]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:55 AM Bug #12248 (Rejected): Backport rubygems fix from upstream repo for Ruby 2.2.x
Rubygems fixed bug that was introduced by Rubygems 2.4.5 on Ruby 2.2.0.
This bug is backported 2.4.x branch on rubygems upstream repository.
* https://github.com/rubygems/rubygems/issues/1256
* https://github.com/rubygems/rubyge...
hsbt (Hiroshi SHIBATA)

04/04/2016

10:16 PM Feature #12247: accept multiple arguments at Array#delete
+1 I needed this a few days ago rosenfeld (Rodrigo Rosenfeld Rosas)
06:15 PM Feature #12247: accept multiple arguments at Array#delete
With gcc version 5.3.0 20151204 (Ubuntu 5.3.0-3ubuntu1~14.04), following result:
```
% time ./miniruby54488 -e'i=1000000;while (i-=1)>0;[1,2,3,4,5].delete(1);[1,2,3,4,5].delete(1);[1,2,3,4,5].delete(1);[1,2,3,4,5].delete(1);[1,2,3,4...
naruse (Yui NARUSE)
03:02 PM Feature #12247: accept multiple arguments at Array#delete
Sebastian Skalacki wrote:
> Anyway, I think that the return value could be better described in docs.
Agreed.
Please discuss better behavior to decide what we should describe in docs :-P
usa (Usaku NAKAMURA)
03:00 PM Feature #12247: accept multiple arguments at Array#delete
Tsuyoshi Sawada wrote:
> depending on the length of `array`, you get different types of results. It can be a gotcha.
At first, I also think so, but nobu told me a precedent, `p`.
In fact, compatibility and convenience would be more ...
usa (Usaku NAKAMURA)
02:48 PM Feature #12247: accept multiple arguments at Array#delete
If the return value has as many items as arguments passed to the method and the items order is preserved, then the return value decomposition will be possible, for example:
~~~ruby
ary = %w[c a e c]
a, b, c = ary.delete("a", "b", "c...
skalee (Sebastian Skalacki)
02:45 PM Feature #12247: accept multiple arguments at Array#delete
I like the idea, but I feel a slight inconsistency of the proposed output with the existing behavior. When the argument is single, you get the relevant element. But when the argument is multiple, the return value becomes an array.
~~~...
sawa (Tsuyoshi Sawada)
02:04 PM Feature #12247: accept multiple arguments at Array#delete
With my implementation (attached patch),
```ruby
ary = [1, 2, 3, 4, 5]
ary.delete(1, 6) # => [1]
ary # => [2, 3, 4, 5]
```
Because if you want to get `[1, nil]`, you can write:
```ruby
ary = [1, 2, 3, 4, 5]
ar...
usa (Usaku NAKAMURA)
01:48 PM Feature #12247: accept multiple arguments at Array#delete
I guess this is a simple change. I have nothing against it.
As for the last question:
```ruby
ary = [1, 2, 3, 4, 5]
ary.delete(1, 6) # => [1, nil]
ary # => [2, 3, 4, 5]
```
I guess that would be the most consist...
shevegen (Robert A. Heiler)
09:11 AM Feature #12247: accept multiple arguments at Array#delete
Given:
~~~
ary = [1, 2, 3, 4, 5]
~~~
What is going to be returned by:
~~~
ary.delete(1, 6)
~~~
?
skalee (Sebastian Skalacki)
07:03 AM Feature #12247: accept multiple arguments at Array#delete
+1 I needed this before too. For API consistency I would also want Hash#delete to accept multiple argumenrts as well. shyouhei (Shyouhei Urabe)
04:45 PM Bug #10642: 2.2: TestMath#test_gamma test failure (MinGW)
This issue keep failing in ruby_2_2 branch.
Please backport r49913.
moritat (Tsuyoshi Morita)
04:12 PM Revision 8fba800f (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:08 PM Revision d1683b59 (git): test_get_ephemeral_key: use assert_instance_of
* test/openssl/test_ssl.rb (test_get_ephemeral_key): should use
assert_instance_of instead of comparison of classes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:06 PM Revision cd2eb1f9 (git): * 2016-04-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 176976db (git): openssl: Access to ephemeral TLS session key
* ext/openssl/ossl_ssl.c (ossl_ssl_tmp_key): Access to ephemeral
TLS session key in case of forward secrecy cipher. Only
available since OpenSSL 1.0.2. [Fix GH-1318]
* ext/openssl/extconf.rb: Check for SSL_get_server_tmp_key.
git-...
nobu (Nobuyoshi Nakada)
02:37 PM Bug #12095 (Closed): ruby_vm_at_exit can sometime cause a crash.
Applied in changeset r54484.
----------
at_exit list
* vm_core.h (rb_vm_struct): make at_exit a single linked list but
not RArray, not to mark the registered functions by the write
barrier. based on the patches by Evan Phoenix.
...
nobu (Nobuyoshi Nakada)
02:36 PM Bug #12095: ruby_vm_at_exit can sometime cause a crash.
`at_exit` functions should be called in the inverse order, LIFO. nobu (Nobuyoshi Nakada)
02:37 PM Revision 990d709e (git): at_exit list
* vm_core.h (rb_vm_struct): make at_exit a single linked list but
not RArray, not to mark the registered functions by the write
barrier. based on the patches by Evan Phoenix.
[ruby-core:73908] [Bug #12095]
git-svn-id: svn+ssh://c...
nobu (Nobuyoshi Nakada)
01:53 PM Feature #12245: optional parameter ndigits to Integer#floor, Integer#ceil, Float#floor, Float#ceil
I think that would make sense.
I usually add an extra method call afterwards to round it manually (or, if not .round then to use it as a string and sprintf, % or .ljust / .rjust output it).
I should also note that newcomers often a...
shevegen (Robert A. Heiler)
10:35 AM Bug #12202: nkf.c static void mime_putc the variable being used for loop used for outer loop too
Yui NARUSE wrote:
> Applied in changeset r54423.
> ...
Hi. I saw your changes and now it's:
...
for (j=0;i<mimeout_state.count;j++) {
(*o_mputc)(mimeout_state.buf[j]);
...
Now you're using 'j' but on condition you still using...
fanantoxa (Anton Sivakov)
09:19 AM Bug #12235: URI.encode issue with square brackets
escalating URL spec: https://github.com/whatwg/url/issues/112 naruse (Yui NARUSE)
08:49 AM Revision dc58fbea (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:49 AM Revision 02f75074 (git): * gc.c: change deafult value of
RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO 0.3 -> 0.2
RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO 0.8 -> 0.65
These values are same as Ruby 2.0.0.
This change cause GC counts.
However, generational GC reduced each (minor) GC time and
increase m...
ko1 (Koichi Sasada)
08:41 AM Revision 3287bad2 (git): * gc.c (get_envparam_double): take an upper_bound.
And also take an accept_zero flag which allow to accept zero
even if lower_bound is set.
* gc.c (ruby_gc_set_params): fix parameters.
RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO set 0.9 as *lower_bound*, so that
it should be upper_bound.
...
ko1 (Koichi Sasada)
07:42 AM Revision 60f14c29 (git): * 2016-04-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:42 AM Revision eddbebcb (git): * vm.c (Init_VM): should pass tokens.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
07:20 AM Bug #12191: Violation of ANSI aliasing rules causing problems while compiling
Does this help? RBasic and RBasicRaw does in fact occupy identical memory region so making them union seems the most natural way.
~~~patch
diff --git a/internal.h b/internal.h
index 3970431..498a7e3 100644
--- a/internal.h
+++ b/i...
shyouhei (Shyouhei Urabe)
05:21 AM Feature #12225 (Rejected): Remove inline assemblers and always enables USE_MACHINE_REGS
Usaku NAKAMURA wrote:
> One more result of mswin64 (Visual C++ 2013):
> ...
Thank you for benchmark.
Hmm Visual C++'s optimization is not well developed at 2013 (and [Ruby doesn't support VC2015](https://bugs.ruby-lang.org/issues/1111...
naruse (Yui NARUSE)

04/03/2016

03:47 PM Bug #11970: Multiple Assignment Into a Hash with Destructuring causes segfault
ruby_2_3 r54478 merged revision(s) 53495. nagachika (Tomoyuki Chikanaga)
03:41 PM Revision ea966b6c (git): merge revision(s) 53495: [Backport #11970]
* compile.c (compile_massign_lhs): when index ends with splat,
append rhs value to it like POSTARG, since VM_CALL_ARGS_SPLAT
splats the last argument only. [ruby-core:72777] [Bug #11970]
git-svn-id: svn+ssh://ci.ru...
nagachika (Tomoyuki Chikanaga)
08:51 AM Feature #12247 (Open): accept multiple arguments at Array#delete
I found that it's very useful if `Array#delete` accepts multiple arguments.
```ruby
ary = [1, 2, 3, 4, 5]
ary.delete(1, 3) #=> [1, 3]
ary #=> [2, 4, 5]
```
usa (Usaku NAKAMURA)
12:34 AM Revision b4c0aac4 (git): numeric.c: dbl2ival no longer rounds
* numeric.c (flodivmod): round division if it is a finite number
and module is required.
* numeric.c (dbl2ival): do not round here.
* numeric.c (flo_ceil): use dbl2ival.
* numeric.c (flo_round): round explicitly.
git-svn-id: svn+ssh:/...
nobu (Nobuyoshi Nakada)

04/02/2016

10:38 PM Revision 2b829860 (git): * 2016-04-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:38 PM Revision 95813d47 (git): numeric.c: move declaration [ci skip]
* numeric.c (fix_lshift, fix_rshift, flo_truncate): move forward
declaration to the top.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:49 PM Bug #12246 (Closed): [DOC] Language improvements for doc/extension.rdoc
The patch provides several language improvements for doc/extension.rdoc. stomar (Marcus Stollsteimer)
06:41 PM Feature #12244: Add a way to `integer - integer % num`
Why this new method is too slow seems because of keyword argument. naruse (Yui NARUSE)
01:45 PM Feature #12244 (Assigned): Add a way to `integer - integer % num`
We sometimes calculates `integer - integer % num`.
For example time series events into time partitions, we write code like
```ruby
event # {time: 1459580435, name: "hoge", text: "Rawr!"}
partition = event[:time] - event[:time] % ...
naruse (Yui NARUSE)
06:17 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Yusuke Endoh wrote:
Thank you for your reply.
> Benoit Daloze wrote:
> ...
Yes, I already read it but it seems hard to understand the wanted behavior.
The particular test case shows nothing of the wanted behavior unfortunately.
...
Eregon (Benoit Daloze)
03:34 PM Feature #12245 (Closed): optional parameter ndigits to Integer#floor, Integer#ceil, Float#floor, Float#ceil
Related to [Feature #12244].
I think that `Integer#floor`, `Integer#ceil`, `Float#floor`, and `Float#ceil` should have optional parameter `ndigits`, as well as `round` methods.
https://github.com/ruby/ruby/compare/trunk...nobu:featur...
nobu (Nobuyoshi Nakada)
02:49 PM Bug #12243: Segmentation fault at 0x0000000000001c
Nobuyoshi Nakada wrote:
> How to reproduce it?
It happens when I parse a large XML File with libxml-ruby and write the results with rails active record in the database. I would upload the xml for you to test but its compressed with g...
fero46 (Ferhat Ziba)
02:44 AM Bug #12243 (Feedback): Segmentation fault at 0x0000000000001c
How to reproduce it? nobu (Nobuyoshi Nakada)
09:31 AM Feature #12241 (Rejected): super end
nobu (Nobuyoshi Nakada)
08:42 AM Feature #12241: super end
NOOOO GOOD!! is ruby want become to perl? windwiny (wind winy)
12:19 AM Feature #12241: super end
Robert A. Heiler wrote:
> Edit: Or perhaps "FINAL_END"
It isn't always "FINAL".
```ruby
module MyModule
class MyClass
def my_method
10.times do
if rand < 0.5
p :small
!end
def another...
nobu (Nobuyoshi Nakada)
12:17 AM Feature #12241: super end
Martin Dürst wrote:
> I think this should be end!, to look like a Ruby method name :-).
Since it conflicts with the existing syntax, and ruby-mode.el considers it an ordinary method call, autoindent doesn't work.
nobu (Nobuyoshi Nakada)
09:31 AM Feature #12240 (Rejected): circle number arguments
nobu (Nobuyoshi Nakada)
12:21 AM Feature #12240: circle number arguments
Martin Dürst wrote:
> In addition, a proposal for adding black and white circled numbers
> ...
HOLY UNICODE!!
nobu (Nobuyoshi Nakada)
06:33 AM Revision 9a686593 (git): numeric.c: prefer rb_check_arity
* numeric.c (flo_round, int_to_s, int_round): use rb_check_arity
instead of rb_scan_args for a simple optional argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:24 AM Revision 9731a745 (git): * 2016-04-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:24 AM Revision d2e21473 (git): rb_check_arity returns argc now
* include/ruby/intern.h (rb_check_arity): returns argc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/01/2016

08:20 PM Bug #12243 (Closed): Segmentation fault at 0x0000000000001c
/Users/fero46/.rvm/gems/ruby-2.2.3/gems/activerecord-4.2.6/lib/active_record/relation/query_methods.rb:574: [BUG] Segmentation fault at 0x0000000000001c
(snip bug-12243.log)
terminated by SIGIOT
------------------------ AND THE DU...
fero46 (Ferhat Ziba)
05:08 PM Revision 03228aab (git): merge revision(s) 53722: [Backport #12232]
* ext/ripper/lib/ripper/lexer.rb (on_heredoc_dedent): Fix
Ripper.lex error in dedenting squiggly heredoc. heredoc tree is
also an array of Elem in the outer tree. [Fix GH-1234]
git-svn-id: svn+ssh://ci.ruby-lang.o...
naruse (Yui NARUSE)
02:42 PM Feature #12242: Is it worth adding collision probability of SecureRandom functions in RubyDoc?
You mean you suggest to have the documentation better?
The UI can be a bit confusing I agree, I'd like to have a separate tracker for documentation, since docu is definitely not a "bug", but also not 100% a real "feature" (since the l...
shevegen (Robert A. Heiler)
01:16 PM Feature #12242: Is it worth adding collision probability of SecureRandom functions in RubyDoc?
Apologies if I opened this in a wrong format. I'm pretty new to redmine tracker, and unfamiliar with the UI :(
kgrz (Kashyap K)
09:46 AM Feature #12242 (Feedback): Is it worth adding collision probability of SecureRandom functions in RubyDoc?
Is it feasible and/or even useful to document the probability of
collisions for the various random number generation methods in the
SecureRandom module?
I feel having a note to read about the possibility of collisions
happening for...
kgrz (Kashyap K)
02:39 PM Feature #12241: super end
You almost got me with this one!
Also see the "endddd" suggestion. :)
Edit: Or perhaps "FINAL_END"
shevegen (Robert A. Heiler)
06:32 AM Feature #12241: super end
Nobuyoshi Nakada wrote:
> This proposal will introduce "super end", `!end`, which ends the block began at the same column with `!`.
I think this should be end!, to look like a Ruby method name :-).
duerst (Martin Dürst)
06:18 AM Feature #12241 (Rejected): super end
This is a refinement of [Feature #5054].
It required to count the depth of count to end, and tiresome.
This proposal will introduce "super end", `!end`, which ends the block began at the same column with `!`.
~~~ruby
module MyM...
nobu (Nobuyoshi Nakada)
01:00 PM Revision 3e0512bd (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:58 AM Revision 5e9d33ad (git): * enc/unicode/case-folding.rb, casefold.h: Data generation to implement
swapcase functionality for titlecase characters. Swapcase isn't defined
by Unicode, because the purpose/usage of swapcase is unclear anyway.
The implementation follows a proposal from Nobu, swaping the case of
each component of a t...
duerst (Martin Dürst)
10:49 AM Feature #12225: Remove inline assemblers and always enables USE_MACHINE_REGS
One more result of mswin64 (Visual C++ 2013):
```
Speedup ratio: compare with the result of `ruby 2.4.0dev (2016-04-01 trunk 54468) [x64-mswin64_120]' (greater is better)
name built-ruby
loop_whileloop 1.058
vm1_attr_ivar...
usa (Usaku NAKAMURA)
10:04 AM Feature #12225: Remove inline assemblers and always enables USE_MACHINE_REGS
mswin64 result:
```
Speedup ratio: compare with the result of `ruby 2.4.0dev (2016-04-01 trunk 54468) [x64-mswin64_100]' (greater is better)
name built-ruby
loop_whileloop 0.880
vm1_attr_ivar* 0.995
vm1_attr_ivar...
usa (Usaku NAKAMURA)
07:13 AM Feature #12142: Hash tables with open addressing
> average improvement on MRI hash benchmarks is close to 40% on Intel Haswell and >55% on ARMv7
What about realworld applications like Redmine?
funny_falcon (Yura Sokolov)
03:41 AM Feature #12142: Hash tables with open addressing
Eric Wong wrote:
> vmakarov@redhat.com wrote:
> ...
Thank you for sharing this. I am still working on the hash tables when I have spare time.
I already implemented variable indexes (8-, 16-, 32-, 64-bits). It gave about 3% average...
vmakarov (Vladimir Makarov)
06:51 AM Feature #12240: circle number arguments
On 2016/04/01 15:10, nobu@ruby-lang.org wrote:

> ~~~ruby
> [[1, 2], [3, 4]].map {①+②}
> ~~~
>
> `①`..`⑳` denote the arguments upto 20.

I admire your modesty. Unicode's circled numbers go up to 50 (see
http://www.unicode.org/...
duerst (Martin Dürst)
06:10 AM Feature #12240 (Rejected): circle number arguments
Often improvements about implicit block argument have been proposed, but in vain.
Such as:
~~~ruby
[[1, 2], [3, 4]].map {|a1, a2| a1+a2} #=> [3, 7]
~~~
to
~~~ruby
[[1, 2], [3, 4]].map {_1+_2}
~~~
Now, we (ko1 and nobu) f...
nobu (Nobuyoshi Nakada)
05:55 AM Bug #12239 (Closed): configure script does not detect Git when in a working tree with non-directory .git
Applied in changeset r54468.
----------
improve git repository detection
* configure.in (AC_CONFIG_FILES): $srcdir/.git can be a file pointing
the real git_dir, such as when the git working tree is a "linked
working tree" (a workin...
nobu (Nobuyoshi Nakada)
04:30 AM Bug #12239 (Closed): configure script does not detect Git when in a working tree with non-directory .git
`make up` doesn't work well on a Git working tree created by `git-worktree add`.
~~~sh
% git clone https://github.com/ruby/ruby.git ruby-src
% cd ruby-src
% git worktree add -f test-tree trunk
% cd test-tree
% autoconf && ./confi...
rhenium (Kazuki Yamaguchi)
05:55 AM Revision 69d6e315 (git): improve git repository detection
* configure.in (AC_CONFIG_FILES): $srcdir/.git can be a file pointing
the real git_dir, such as when the git working tree is a "linked
working tree" (a working tree created by git-worktree). So use
git-rev-parse --git-dir to check ...
nobu (Nobuyoshi Nakada)
05:30 AM Bug #12238: Logger writes progname if log message is nil
Seems intended,
> Logger#add(severity, message = nil, progname = nil) { ... }
> ...
but maybe a bug.
```diff
diff --git a/lib/logger.rb b/lib/logger.rb
index 8393806..9a05518 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ ...
nobu (Nobuyoshi Nakada)
03:27 AM Revision 34c0c840 (git): * tool/release.sh: BRE accepts \{m,\} expression. use it for future many-digits
version numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura

03/31/2016

08:33 PM Bug #12126 (Closed): [PATCH] openssl: accept moving write buffer for write_nonblock
Applied in changeset r54466.
----------
openssl: accept moving write buffer for write_nonblock
By setting the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag.
This flag was introduced at the same time as
SSL_MODE_ENABLE_PARTIAL_WRITE in OpenS...
Anonymous
08:33 PM Revision 280f7322 (git): openssl: accept moving write buffer for write_nonblock
By setting the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag.
This flag was introduced at the same time as
SSL_MODE_ENABLE_PARTIAL_WRITE in OpenSSL 0.9.4 and makes usage
with non-blocking sockets much easier.
Before this, a Rubyist would nee...
Eric Wong
07:32 PM Feature #12142: Hash tables with open addressing
vmakarov@redhat.com wrote:
> I think I'll have a few patches when I am done with the hash
> tables: the hash table itself, hash functions, code for
> recognizing a denial attack and switching to stronger hash
> functions. I am not ...
normalperson (Eric Wong)
07:13 PM Bug #12238 (Rejected): Logger writes progname if log message is nil
Please consider the following example:
``` ruby
logger = Logger.new($stdout)
# Log message is nil
logger.info
# I, [2016-03-31T22:04:36.684636 #4019] INFO -- : nil
logger.progname = 'prog'
# Now log message is changed to ...
Soilent (Konstantin x)
06:26 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Yusuke Endoh wrote:
> Then, you want `Coverage.result` to remove all arrays from the Hash once, keep them in back, and automatically restore an array when the corresponding code is executed?
I am not sure what you mean by "keep them ...
sawa (Tsuyoshi Sawada)
06:11 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Then, you want `Coverage.result` to remove all arrays from the Hash once, keep them in back, and automatically restore an array when the corresponding code is executed? This is the third idea to make it "intuitive" that I thought of but... mame (Yusuke Endoh)
06:00 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Yusuke Endoh wrote:
> I'm unsure what behavior you expect. Do you mean that it should pass the following two tests?
I expect the second `Coverage.result` to return:
~~~RUBY
{"/tmp/test.rb" => [0, 1, nil]}
~~~
In other words,...
sawa (Tsuyoshi Sawada)
05:49 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
I'm unsure what behavior you expect. Do you mean that it should pass the following two tests?
~~~~
Coverage.start
require tmp + '/test.rb'
Coverage.result
Coverage.start
assert_equal {}, Coverage.result
~~~~
~~~~
Coverage.s...
mame (Yusuke Endoh)
05:35 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Yusuke Endoh wrote:
> It was actually intentional. Please read the test case of #4796.
> ...
That is because the method `coverage_test_method` actually executes some lines in `"/tmp/test.rb"`, and so the corresponding array should not...
sawa (Tsuyoshi Sawada)
05:14 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Benoit Daloze wrote:
> Tsuyoshi Sawada wrote:
> ...
It was actually intentional. Please read the test case of #4796.
~~~~
Coverage.start
require tmp + '/test.rb'
Coverage.result
Coverage.start
...
mame (Yusuke Endoh)
04:50 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
Tsuyoshi Sawada wrote:
> So, was it or was it not a bug that it returns empty arrays?
I consider it a bug in that it seems to be unintentional and it is just a side-effect of the implementation to disable coverage when reset.
I at...
Eregon (Benoit Daloze)
04:35 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
So, was it or was it not a bug that it returns empty arrays? sawa (Tsuyoshi Sawada)
01:37 PM Bug #12220: Why does Coverage keep previously-loaded files as empty arrays?
After looking into this, I discovered a bug!
And I also found the reason why it's returning empty arrays: it is leaking implementation details.
It is however easy to fix but let's start with fixing the bug first.
Eregon (Benoit Daloze)
05:21 PM Feature #12236: Introduce `mmap` managed heap
ko1@atdot.net wrote:
> * We need to manage x4 more pages. We need to avoid O(n) (n:
> page number) operations from the GC process.

I think we can use ccan/list with O(1) insert/delete without
iterations instead of relying on f...
normalperson (Eric Wong)
11:17 AM Feature #12236 (Rejected): Introduce `mmap` managed heap
# Abstract
I propose `mmap` (or similar API on Windows) managed heap.
Now, each heap pages are allocated by posix_memalign(), 16KB for each pages.
I wrote a patch to manage heap pages allocated by bulk `mmap` (256MB),
and provide...
ko1 (Koichi Sasada)
04:14 PM Bug #12237 (Closed): Coverage keeps tracking counts even after Coverage.result
Applied in changeset r54465.
----------
* thread.c (update_coverage): Do not track coverage in loaded files
after Coverage.result. Avoids out-of-bounds access. [Bug #12237]
* ext/coverage/coverage.c (coverage_clear_result_i): document.
Eregon (Benoit Daloze)
03:59 PM Bug #12237: Coverage keeps tracking counts even after Coverage.result
Benoit Daloze wrote:
> Can I commit the fix in thread.c?
Sure, thank you very much!
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
01:59 PM Bug #12237: Coverage keeps tracking counts even after Coverage.result
Attached proposed fixing patch. Eregon (Benoit Daloze)
01:52 PM Bug #12237 (Closed): Coverage keeps tracking counts even after Coverage.result
While looking at #12220, I found a bug.
Attached is a patch that reveals it.
Running
$ make test-all TESTS="test/coverage -n /test_restarting_coverage/"
gives
[1/1] TestCoverage#test_restarting_coverage
Updating cov for /tmp/d201...
Eregon (Benoit Daloze)
04:14 PM Revision 8dd24358 (git): * thread.c (update_coverage): Do not track coverage in loaded files
after Coverage.result. Avoids out-of-bounds access. [Bug #12237]
* ext/coverage/coverage.c (coverage_clear_result_i): document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eregon (Benoit Daloze)
03:42 PM Revision 674725f1 (git): * test/rubygems/test_gem_commands_environment_command.rb (test_execute):
version number may be two-digit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@54462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:26 PM Feature #6647: Exceptions raised in threads should be logged
Akira Tanaka wrote:
> In the yesterday's meeting,
> ...
I am strongly in favor of having something like Thread#report_on_exception, defaulting to true.
If a Thread can support known exceptions, it can rescue them explicitly.
If a Thr...
Eregon (Benoit Daloze)
03:13 PM Revision f0060b81 (git): * tool/release.sh: two-digit version number support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:04 PM Revision 69eee71c (git): * 2016-04-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:04 PM Revision a517e6f9 (git): * tool/merger.rb (version): version number may be two-digit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:02 PM Revision 03a4a200 (git): * version.h: commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@54457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:01 PM Revision ed3dedae (git): * version.h: bump to 2.1.10. welcome to two-digit version!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@54456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
12:46 PM Revision c55bcb9c (git): gc.c: use PRIdSIZE
* gc.c (heap_extend_pages): fix format specifiers for size_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:16 AM Revision 5951bbec (git): * gc.c: need to set initial value of GC_HEAP_FREE_SLOTS_GOAL_RATIO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
09:53 AM Bug #12235 (Closed): URI.encode issue with square brackets
URI::Encode doesn't correctly handle square brackets in the path of a URL:
> URI.encode('http://example.com/resource[1].doc')
=> "http://example.com/resource[1].doc"
It should return "http://example.com/resource%5B1%5D.doc...
lucaspiller (Luca Spiller)
09:16 AM Revision 867693fe (git): * gc.c: change additional allocation policy.
Introduce new environement variable
GC_HEAP_FREE_SLOTS_GOAL_RATIO (goal_ratio) to calculate the ratio
of additional memory.
Before this change, we add pages with the following formula
(when free_slots < total_pages * RUBY_GC_HEA...
ko1 (Koichi Sasada)
09:14 AM Feature #12222: Introducing basic statistics methods for Enumerable (and optimized implementation for Array)
Martin Dürst wrote:
> Benoit Daloze wrote:
> ...
That's my point. Enumerable methods should work on any collection implementing #each.
Not only on #each returning a numeric-type or sth with a #+/#- method (and then the result of #- sh...
Eregon (Benoit Daloze)
05:23 AM Feature #12222: Introducing basic statistics methods for Enumerable (and optimized implementation for Array)
Benoit Daloze wrote:
> It seems to me Enumerable is not the right place for this, because it expects more than just #each.
The code is currently written in terms of #length and #[], but this can easily be fixed to use #each.
> ......
duerst (Martin Dürst)
08:49 AM Revision 9bb740d2 (git): * gc.c (gc_marks_finish): fix syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
08:21 AM Revision 49369ef1 (git): * gc.c: simplify allocate/free detecting logic at the end of marking.
Before this change, heap_pages_min_slots are calculated at the
beggining sweeping phase. And this value is used at the end of
*next* marking phase.
To simplify it, we use this value at the end of this marking phase.
It means tha...
ko1 (Koichi Sasada)
07:45 AM Revision 555f6cb0 (git): * gc.c: add GC parameters to configure the following values:
* RUBY_GC_HEAP_FREE_SLOTS_MIN_RATIO:
allocate additional pages when free slots is lower than
the value (total_slots * (this ratio)).
* RUBY_GC_HEAP_FREE_SLOTS_MAX_RATIO:
allow to free pages when free slots is greater thatn
...
ko1 (Koichi Sasada)
07:02 AM Bug #12234 (Rejected): Kernel#exec with a command array broken on Windows as of Ruby 2.2.4
It's wrong code.
The second argument must be '/C'.
```ruby
exec(['cmd.exe', '/C'], '/C', 'echo', 'argv_zero')
```
nobu (Nobuyoshi Nakada)
05:07 AM Bug #12234 (Rejected): Kernel#exec with a command array broken on Windows as of Ruby 2.2.4
On Ruby 2.0.0 this worked as expected:
```
C:\Users\Administrator\GitHub\spec>ruby -ve "exec(['cmd.exe', '/C'], 'echo', 'argv_zero')"
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
argv_zero
```
On Ruby 2.2.4 it is broken - it seems ...
vais (Vais Salikhov)
07:02 AM Revision fb296fe6 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:02 AM Revision 9a008c58 (git): * gc.c (gc_verify_heap_page): check the number of zombies.
* gc.c (gc_verify_heap_pages): check also tomb heap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:51 AM Revision f46b5bcf (git): * gc.c (gc_page_sweep): return free slots count.
* gc.c (gc_sweep_step): use returned free slots count.
* gc.c (gc_sweep_step): change variable name `next'
to `next_sweep_page'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
03:02 AM Revision 7d5b9cd3 (git): complex.c: pure declarations
* complex.c (get_dat1, get_dat2): turn into pure variable
declarations only, not mixed code and declarations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:33 AM Revision add0ae51 (git): date_core.c: fix indent
* ext/date/date_core.c (d_lite_strftime, dt_lite_strftime): [DOC]
fix indent not to be a big sole verbatim.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 AM Bug #12233 (Closed): Please consider adding documentation to DateTime, one line, require 'date'
Applied in changeset r54444.
----------
date_core.c: fix DateTime rdoc
* ext/date/date_core.c (Init_date_core): [DOC] fix misplaced doc
of DateTime. [ruby-core:74729] [Bug #12233]
nobu (Nobuyoshi Nakada)
02:18 AM Revision f85ff1ed (git): date_core.c: fix DateTime rdoc
* ext/date/date_core.c (Init_date_core): [DOC] fix misplaced doc
of DateTime. [ruby-core:74729] [Bug #12233]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 AM Bug #12232 (Closed): Ripper.lex can't parse 2.3-style heredoc
Fixed at r53722. nobu (Nobuyoshi Nakada)
 

Also available in: Atom