Project

General

Profile

Activity

From 11/24/2015 to 11/30/2015

11/30/2015

10:53 PM Revision b44b129e (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:53 PM Revision cae8e96b (git): missing/explicit_bzero.c: Fixup r52806
Maybe kosaki had a better version, but CI failure emails are
annoying.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
09:27 PM Feature #11665: Support nested functions for better code organization
According to #11754, this change seemed to cause an actual issue for some gems.
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
09:13 PM Bug #11754: Visibility scope is kept after lexical scope is closed
To provide some context, this creates issues with two gems I am using that have dynamically defined methods (that now seems to be incorrectly private in 2.3.0preview1) :
- paranoia (`really_destroy!` method defined in https://github.c...
j15e (Jean-Philippe Doyle)
05:49 PM Bug #11754: Visibility scope is kept after lexical scope is closed
Better example
~~~ruby
module X
def self.test_def(name)
define_method(name) {}
end
test_def :x
private
test_def :y
def pr; end
end
X.test_def :z
X.public_instance_methods
# 2.2.2 => [:x, :y, :z]
...
printercu (Max Melentiev)
05:42 PM Bug #11754 (Closed): Visibility scope is kept after lexical scope is closed
~~~
module X
def self.test_def
def x; end;
end
private
def y; end;
end
X.test_def
X.instance_methods
~~~
In 2.2 it returns [:x], in 2.3-preview1 it returns empty array. Is it ok?
printercu (Max Melentiev)
08:33 PM Revision 487748fa (git): * thread_pthread.c (register_ubf_list): renamed from
add_signal_thread_list.
* thread_pthread.c (unregister_ubf_list): renamed
from remove_signal_thread_list.
* thread_pthread.c (ubf_wakeup_all_threads): renamed from
ping_signal_thread_list.
* thread_pthread.c (ubf_wakeup_thread): rena...
kosaki (Motohiro KOSAKI)
08:33 PM Revision a014e9e8 (git): * test/ruby/test_rand.rb (TestRand#test_default_seed): add
srand case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:32 PM Revision 86af9bba (git): * random.c (InitVM_Random): move Random::DEFAULT initialization
bits to Init_Random_default.
* random.c (Init_Random_default): renamed from Init_Rndom2.
* random.c (Init_RandomSeedCore): renamed from Init_Random.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52816 b2dd03c8-39d4-4d8f-98ff-823fe69...
kosaki (Motohiro KOSAKI)
08:31 PM Revision 99c05fb3 (git): * random.c (Init_RandomSeed): move all Random::DEFAULT
construction bits to Init_RandomSeed2. Random::DEFAULT
and Ruby internal hashes are no longer shared their seed.
* random.c (Init_RandomSeed2): ditto. And, kill evil
rb_obj_reveal() stuff.
* random.c (init_hashseed): add MT argument....
kosaki (Motohiro KOSAKI)
08:31 PM Revision 052535be (git): * random.c (init_hashseed, init_siphash): extract initialize
functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:30 PM Revision 0c4e7767 (git): * configure.in: sort AC_CHECK_HEADERS() by alphabetical order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
08:29 PM Revision 12e059b1 (git): * random.c (init_randomseed): remove "initial" argument. It never
be used from outside of this function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:29 PM Revision 7104a473 (git): * lib/securerandom.rb (SecureRandom::gen_random): use /dev/urandom
for initialize OpenSSL's rand.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:29 PM Revision 07083767 (git): * ext/openssl/ossl_rand.c (ossl_rand_bytes): RAND_bytes could
be return -1 as an error. Therefore, added error handling.
* ext/openssl/ossl_pkey_dsa.c (dsa_generate): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:27 PM Revision 86caaefc (git): * include/ruby/util.h: remove a warning suppression C4723
(potential divide by zero) for VisualC++. It's meaningless.
Before r26197, there is ruby_div0() in this place and it
actually made divide by zero. But now it's just garbage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52809 b2...
kosaki (Motohiro KOSAKI)
08:27 PM Revision f7bd7d6f (git): * random.c: random_raw_seed don't use GRND_NONBLOCK. GRND_NONBLOCK
mean the result might not have an enough cryptic strength and
easy predictable. That's no good for SecureRandom.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
08:27 PM Revision 9401002f (git): * 2015-12-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:26 PM Revision dea685c7 (git): * missing/explicit_bzero.c: new file. define explicit_bzero.
* common.mk: add a rule for explicit.o.
* configure.in: detect explicit_bzero and memset_s.
* include/ruby/missing.h: add explicit_bzero.
* random.c (init_randomseed): use explicit_bzero() instead of
memset(). memset could be eliminate...
kosaki (Motohiro KOSAKI)
05:53 PM Revision 4e869246 (git): merge partially revision(s) 52391:
explicitly overwrite signal handling
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:36 PM Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints
Backported r51594 into `ruby_2_2` branch at r52804. nagachika (Tomoyuki Chikanaga)
10:51 AM Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints
usa san: Thank you for your notice.
Hmm, I will backport r51594.
nagachika (Tomoyuki Chikanaga)
05:35 PM Revision 4af525b1 (git): merge revision(s) 51594: [Backport #11444]
* io.c (rb_io_each_codepoint): raise an exception at incomplete
character before EOF when conversion takes place. [Bug #11444]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52804 b2dd03c8-39d4-4d8f-98ff-823fe...
nagachika (Tomoyuki Chikanaga)
04:55 PM Bug #11595: Time#utc? and Time#gmt? return misleading results based on $TZ
Yasuhiro Nakamura wrote:
> Anyway I write a patch.
> ...
To me it seems like a bug, since the expectation is that Time#utc? would return true for any time with an offset of 0
davidcelis (David Celis)
01:27 PM Bug #11595: Time#utc? and Time#gmt? return misleading results based on $TZ
Anyway I write a patch.
Is it a bug? or specification?
nkmrya (Yasuhiro Nakamura)
02:45 PM Bug #11753: Building ruby-git on Arch Linux eats all memory on ./configure
Bar Hofesh wrote:
> Hi,
> ...
Ok, using the "echo here and there" debug method I got to the part where it is getting stuck:
~~~sh
echo "Testing 1"
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
_as_can...
bararchy (Bar Hofesh)
02:27 PM Bug #11753 (Third Party's Issue): Building ruby-git on Arch Linux eats all memory on ./configure
Hi,
I'm trying to build Ruby from sources.
What I tried:
1) Build from git using git clone, autoconf, ./configure
2) Build with RVM versions 2.2.1, 2.2-head, 2.1.5, ruby-head
All have failed when reaching the "./configure" ...
bararchy (Bar Hofesh)
01:48 PM Bug #10891: /[[:punct:]]/ POSIX group broken (with string literals?)
Yui NARUSE wrote:
> It follows UTR#18's Standard Recommendation.
> ...
In general, it would be a reasonable choice.
However, in Ruby, the problem is that it's hard to guess the programmers intention from code,
because the behavior ...
shugo (Shugo Maeda)
09:42 AM Bug #10891 (Feedback): /[[:punct:]]/ POSIX group broken (with string literals?)
It follows UTR#18's Standard Recommendation.
http://www.unicode.org/reports/tr18/#punct
naruse (Yui NARUSE)
03:14 AM Bug #10891: /[[:punct:]]/ POSIX group broken (with string literals?)
How about to interpret `[[:punct]]` as `[\p{P}\p{S}]` for unicode strings so that `[[:punct]]` will be a superset of POSIX's one? shugo (Shugo Maeda)
01:44 PM Bug #11752 (Closed): Bug in Rational documentation
Example for the + operator states that 900+1=900.
~~~
Rational(900) + Rational(1) #=> (900/1)
~~~
Seen in
http://ruby-doc.org/core-1.9.2/Rational.html
and
http://ruby-doc.org/core-2.2.3/Rational.html
trygveflathen (Trygve Flathen)
01:25 PM Revision 4eeec486 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:34 PM Bug #11211: defined(foo.bar) calls respond_to_missing? everytime
ruby_2_1 r52802 merged revision(s) 50737. usa (Usaku NAKAMURA)
12:34 PM Revision 99bcf86e (git): merge revision(s) 50737: [Backport #11211]
* insns.def (defined): skip respond_to_missing? when
a method is available.
[Bug #11211]
* test/ruby/test_defined.rb: add a test for this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@...
U.Nakamura
12:28 PM Revision 7caf8a50 (git): * ext/digest/rmd160/rmd160.c: fixed commit mistake at r52797.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
12:20 PM Bug #11738: ARGF.readpartial raises a wrong exception
ruby_2_1 r52800 merged revision(s) 52745. usa (Usaku NAKAMURA)
12:19 PM Revision 6602bc19 (git): merge revision(s) 52745: [Backport #11738]
* io.c (argf_getpartial): should not resize str if the second
argument is not given.
[ruby-core:71668] [Bug #11738]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52800 b2dd03c8-39d4-4d8f-98ff-823fe69...
U.Nakamura
12:17 PM Bug #11401: Net::HTTP SSL session resumption does not send SNI
ruby_2_1 r52799 merged revision(s) 52682. usa (Usaku NAKAMURA)
12:17 PM Revision 041afd1c (git): merge revision(s) 52682: [Backport #11401]
* lib/net/http.rb: set hostname before call ossl_ssl_set_session.
[Bug #11401][ruby-core:70152][fix GH-964] Patch by @mkarnebeek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@52799 b2dd03c8-39d4-4d8f-98ff-823f...
U.Nakamura
12:15 PM Bug #11724 (Open): SNIでsessionが無効だったときにhostnameがサーバに送られない
むしろ ext/openssl においては問題が解決してないわけなのでopenにしておこうかと。 usa (Usaku NAKAMURA)
12:12 PM Bug #11416: TestEncodingConverter#test_newline_option fails under GC stress
ruby_2_1 r52798 merged revision(s) 51488,51489. usa (Usaku NAKAMURA)
12:12 PM Revision 1237e7a5 (git): merge revision(s) 51488,51489: [Backport #11416]
* transcode.c (rb_econv_open0): rb_econv_t::source_encoding_name
and rb_econv_t::destination_encoding_name should refer static
strings always or NULL. [ruby-core:70247] [Bug #11416]
git-svn-id: svn+ssh://ci.ruby-la...
U.Nakamura
12:08 PM Bug #3231: Digest Does Not Build
ruby_2_1 r52797 merged revision(s) 52694. usa (Usaku NAKAMURA)
12:08 PM Revision cb826f3f (git): merge revision(s) 52694: [Backport #3231]
* ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid
includeing ext/digest/extconf.h. [Bug #3231]
https://msdn.microsoft.com/library/36k2cdd4.aspx
* ext/digest/*/extconf.rb: remove ext/digest from i...
U.Nakamura
11:56 AM Bug #11722: Backport r52683 (Net::HTTP fix bug with "Expect: 100-continue" header)
ruby_2_1 r52796 merged revision(s) 52683,52684. usa (Usaku NAKAMURA)
11:56 AM Bug #11719: Backport request r52683
ruby_2_1 r52796 merged revision(s) 52683,52684. usa (Usaku NAKAMURA)
11:56 AM Revision 0f5bf067 (git): merge revision(s) 52683,52684: [Backport #11719] [Backport #11722]
* lib/net/http.rb: Fixed regression for Net::HTTP::PUT with "Expect-100"
header.
* test/net/http/test_http.rb: added test.
* Added missing reference of GitHub
header. [fix GH-949]
git-svn-id: svn+s...
U.Nakamura
11:48 AM Feature #11741: Migrate Ruby to Git from Subversion
Em 28-11-2015 20:25, Eric Wong escreveu:
> me@jonathanmoss.me wrote:
> ... There's a bunch of Redmine-specific tools the maintainers use (I
> haven't checked in depth); and as I said before: Redmine works with
> git, too. So perha...
rosenfeld (Rodrigo Rosenfeld Rosas)
01:19 AM Feature #11741: Migrate Ruby to Git from Subversion
GitLab Inc. would be very happy to support this effort in any way possible. We can help with the conversion, add features to GitLab of anything else needed.
Eric Wong wrote:
> me@jonathanmoss.me wrote:
> ...
1. Is this about the ter...
sytse (Sytse Sijbrandij)
12:38 AM Feature #11741: Migrate Ruby to Git from Subversion
me@jonathanmoss.me wrote:
> Eric, would you want to try Gitlab out with `w3m` before the
> switch?

The main site's Terms of Service (or any ToS) is still a problem
for me. Currently there is no ToS at all on our Redmine instance
...
normalperson (Eric Wong)
09:48 AM Bug #11751 (Closed): allow --with-libedit to work when a path is specified
Applied in changeset r52795.
----------
* ext/readline/extconf.rb: call dir_config("libedit")
if --enable-libedit is spcified. [Bug #11751]
patched by John Hein
naruse (Yui NARUSE)
04:47 AM Bug #11751: allow --with-libedit to work when a path is specified
See also https://svnweb.freebsd.org/ports/head/lang/ruby22/files/patch-ext_readline_extconf.rb?view=markup&pathrev=400142 rbj (John Hein)
04:40 AM Bug #11751 (Closed): allow --with-libedit to work when a path is specified
Adding dir_config("libedit") to ext/readline/extconf.rb allows the --with-libedit configuration knob to take a path (e.g., --with-libedit=/opt/libedit).
Patch against trunk attached.
rbj (John Hein)
09:48 AM Revision 6db72c01 (git): * ext/readline/extconf.rb: call dir_config("libedit")
if --enable-libedit is spcified. [Bug #11751]
patched by John Hein
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:11 AM Revision 794fb410 (git): parse.y: dispatch heredoc end
* parse.y (ripper_dispatch_heredoc_end): at the end of here
document, the terminator always should present. has_scan_event
is true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:36 AM Bug #11750: SEGV with Enumerator, yield and proc.
By bisecting, it raises `SytemStackError` or segfaults since r51243.
~~~
* vm_core.h: remove blockprocval field from rb_proc_t and rb_binding_t.
Instead of this field, mark given block in Proc at rb_env_t::env.
~~~
`Enumerator...
nobu (Nobuyoshi Nakada)
04:44 AM Revision 4c6dd77d (git): vm_eval.c: make dsym
* vm_eval.c (rb_throw, rb_catch): get rid of making static IDs,
use dynamic symbos instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:44 AM Revision 51964bf9 (git): symbol.c: rb_sym_intern
* symbol.c (rb_sym_intern): rename from rb_cstr_intern and add
variants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

11/29/2015

11:58 PM Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints
Tomoyuki Chikanaga wrote:
> I didn't backport r51594 because it introduce an incompatibility.
But without r51549, the test never pass on mswin.
See http://ruby-mswin.cloudapp.net/vc10-x64/ruby-2.2/log/20151129T090947Z.log.html.gz#ru...
usa (Usaku NAKAMURA)
08:22 AM Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepoints
Backported r51583 and r51638 into `ruby_2_2` at r52786.
I didn't backport r51594 because it introduce an incompatibility.
nagachika (Tomoyuki Chikanaga)
11:54 PM Revision 23ce0a42 (git): * 2015-11-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:53 PM Feature #11749 (Closed): [PATCH] variable.c: remove spurious #define for globals
Applied in changeset r52790.
----------
variable.c: remove spurious #define for globals
Removing the indirection helps me with readability, at
least. It doesn't seem like there are many other places
in the Ruby code where macros are u...
Anonymous
10:11 AM Feature #11749: [PATCH] variable.c: remove spurious #define for globals
Eric Wong wrote:
> @nobu: They appeared in r19781 when the *_{getter,setter,marker}
> ...
Yes, please fix it.
nobu (Nobuyoshi Nakada)
06:09 AM Feature #11749 (Closed): [PATCH] variable.c: remove spurious #define for globals
variable.c: remove spurious #define for globals
Removing the indirection helps me with readability, at
least. It doesn't seem like there are many other places
in the Ruby code where macros are used like this.
@nobu: They appea...
normalperson (Eric Wong)
11:53 PM Revision 9f986169 (git): variable.c: remove spurious #define for globals
Removing the indirection helps me with readability, at
least. It doesn't seem like there are many other places
in the Ruby code where macros are used like this.
[ruby-core:71735] [Feature #11749]
git-svn-id: svn+ssh://ci.ruby-lang.org...
Eric Wong
04:24 PM Bug #11750 (Closed): SEGV with Enumerator, yield and proc.
I found SEGV as follows.
```
% cat z.rb
def f
Enumerator.new {|y|
1000000.times {
yield
y.yield
}
}
end
def g
x = proc {}
f(&x)
end
e = g
e.each {}
% ./miniruby z.rb
(snip)
```
akr (Akira Tanaka)
04:16 PM Feature #11741: Migrate Ruby to Git from Subversion
Hi Martin,
I think my previous response may have come out wrong -- I do think that a service like Gitlab should degrade gracefully, but then again I think the extreme of viewing webpages through a terminal window should not be support...
maclover7 (Jon Moss)
05:58 AM Feature #11741: Migrate Ruby to Git from Subversion
Hello Jon,

On 2015/11/29 01:20, me@jonathanmoss.me wrote:
> Issue #11741 has been updated by Jon Moss.
>
>
> Hi Eric,
>
> I think it's unreasonable to ask a website to degrade and work normally without any GUI or use of Javascr...
duerst (Martin Dürst)
11:45 AM Revision 42225163 (git): SIGTERM should be also captured
because it will terminate the whole test process when it is
re-raised from this assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:10 AM Bug #11738: ARGF.readpartial raises a wrong exception
Backported into `ruby_2_2` branch at r52788. nagachika (Tomoyuki Chikanaga)
09:10 AM Revision 5925c930 (git): merge revision(s) 52745: [Backport #11738]
* io.c (argf_getpartial): should not resize str if the second
argument is not given.
[ruby-core:71668] [Bug #11738]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52788 b2dd03c8-39d4-4d8f-98ff-823fe69...
nagachika (Tomoyuki Chikanaga)
09:01 AM Bug #11674: `local_variables` returns buffer-overflow garbage with methods with > 10 keyword arguments
Backported into `ruby_2_2` branch at r52787. nagachika (Tomoyuki Chikanaga)
09:01 AM Revision 979ba5fc (git): merge revision(s) 52536: [Backport #11674]
* vm_eval.c (local_var_list_add): skip internal local variable
name by its type but not if it has a name. internal local
variable names are just unique per frame, not globally.
[ruby-core:71437] [Bug #11674...
nagachika (Tomoyuki Chikanaga)
08:21 AM Revision 6d8ed07d (git): merge revision(s) 51583,51638: [Backport #11444]
* io.c (rb_io_each_codepoint): read more data when read partially.
[ruby-core:70379] [Bug #11444]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
08:03 AM Bug #11724: SNIでsessionが無効だったときにhostnameがサーバに送られない
r52785 でひとまず r52682 は `ruby_2_2` には backport しましたが、openssl の変更がある予定ということで Backport 欄は残しておきます。 nagachika (Tomoyuki Chikanaga)
08:02 AM Bug #11401: Net::HTTP SSL session resumption does not send SNI
Backported into `ruby_2_2` branch at r52785. nagachika (Tomoyuki Chikanaga)
08:01 AM Revision 43739c72 (git): merge revision(s) 52682: [Backport #11401] [Backport #11724]
* lib/net/http.rb: set hostname before call ossl_ssl_set_session.
[Bug #11401][ruby-core:70152][fix GH-964] Patch by @mkarnebeek
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52785 b2dd03c8-39d4-4d8f-98ff-823f...
nagachika (Tomoyuki Chikanaga)
07:44 AM Bug #11416: TestEncodingConverter#test_newline_option fails under GC stress
r51488 and r51489 were backported into `ruby_2_2` branch at r52784. nagachika (Tomoyuki Chikanaga)
07:44 AM Revision ed2205ff (git): merge revision(s) 51488,51489: [Backport #11416]
* transcode.c (rb_econv_open0): rb_econv_t::source_encoding_name
and rb_econv_t::destination_encoding_name should refer static
strings always or NULL. [ruby-core:70247] [Bug #11416]
git-svn-id: svn+ssh://ci.ruby-la...
nagachika (Tomoyuki Chikanaga)
07:29 AM Bug #11338: [PATCH] iseq.c (iseq_data_to_ary): dump kw_arg as symbol
Backported into `ruby_2_2` branch at r52783. nagachika (Tomoyuki Chikanaga)
07:29 AM Revision c07ec843 (git): merge revision(s) 51190: [Backport #11338]
* iseq.c (iseq_data_to_ary): dump kw_arg as symbol
* test/-ext-/iseq_load/test_iseq_load.rb: test kw_arg roundtrip
[ruby-core:69891] [Bug #11338]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52783 b2...
nagachika (Tomoyuki Chikanaga)
02:25 AM Revision fc0c2d1c (git): version.c: remove ruby_engine_name
* ruby.c (load_file_internal, ruby_process_options): share
ruby_engine instead of literal strings.
* version.c (Init_version): remove internal `ruby_engine_name`,
but set the VM program name in addition to the global constant.
* vm...
nobu (Nobuyoshi Nakada)
12:13 AM Revision d6beaf32 (git): * 2015-11-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:13 AM Revision b71f6be0 (git): Corrected grammar errors [ci skip]
* NEWS: [DOC] Various grammar corrections and clarifications to
increase readability. [Fix GH-1115]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:06 AM Bug #11748 (Closed): [BACKPORT] ripper misses on_tstring_content callback result
2.2以降、on_tstring_contentコールバックの戻り値が捨てられています。
~~~
$ ruby2.0 -rripper -e 'p Ripper.sexp("<<E\nx\nE")'
[:program, [[:string_literal, [:string_content, [:@tstring_content, "x\n", [2, 0]]]]]]
$ ruby2.1 -rripper -e 'p Ripper.sexp("<<E\...
nobu (Nobuyoshi Nakada)

11/28/2015

10:29 PM Feature #11741: Migrate Ruby to Git from Subversion
me@jonathanmoss.me wrote:
> I think it's unreasonable to ask a website to degrade and work
> normally without any GUI or use of Javascript -- these are the core
> foundations of the web today, and in order to use the web, you must
>...
normalperson (Eric Wong)
04:20 PM Feature #11741: Migrate Ruby to Git from Subversion
Hi Eric,
I think it's unreasonable to ask a website to degrade and work normally without any GUI or use of Javascript -- these are the core foundations of the web today, and in order to use the web, you must use these technologies. I ...
maclover7 (Jon Moss)
06:30 PM Bug #11613: test_aspawn_too_long_path creates too many processes
Backporrted r52222,r52229,r52273,r52277,r52357 into `ruby_2_2` branch at r52779. nagachika (Tomoyuki Chikanaga)
06:29 PM Revision 8ad98918 (git): merge revision(s) 52222,52229,52273,52277,52357: [Backport #11613]
limit the number of FDs in a process for stress test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
06:16 PM Bug #11343: random.c: getrandom compile error with clang
Backported r51242 into `ruby_2_2` branch at r52778. nagachika (Tomoyuki Chikanaga)
06:16 PM Revision 95bfac2e (git): merge revision(s) 51242: [Backport #11343]
* gc.c (__has_feature): move into internal.h.
* internal.h (__has_feature): ditto.
* internal.h (__has_extension): new macro.
* internal.h (STATIC_ASSERT): use _Static_assert with
clang. [ruby-core:69...
nagachika (Tomoyuki Chikanaga)
05:37 PM Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
Right. I guess what I'm saying is that tabs shouldn't be treated as equivalent to spaces at all, since the number of spaces they are "equivalent" to is different for every developer, depending on what they have their editor set to displa... Ajedi32 (Ajedi32 W)
03:37 AM Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
Because we can not distinguish tabs and spaces on most editors, while we can distinguish 4 spaces and 8 spaces.
It's weird but has historical reason.
Matz.
matz (Yukihiro Matsumoto)
03:14 AM Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
I'm confused. Why are tabs being treated as equivalent to spaces at all? E.g. If I write:
```ruby
def hello
puts <<~README.inspect
<tab>Hello
<space><space><space><space><space><space><space><space>World!
README
end
e...
Ajedi32 (Ajedi32 W)
01:31 AM Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
I updated the patch to treat tabs as equal to 8 spaces.
This seems to work fine with the indentation produced by popular text editors (only tabs, only spaces, or tabs-then-spaces), with only one corner case I noticed, which is demonst...
bjmllr (Ben Miller)
02:38 PM Feature #11747: "bury" feature, similar to 'dig' but opposite
> inferred from the what the user is passing (such as a symbol or string for a hash or an integer for an array)
I don't think this is a good idea. I think it should rather depend on the class of the receiver.
{}.bury(:users, 0...
sawa (Tsuyoshi Sawada)
10:33 AM Revision 448d1d14 (git): parse.y: last content of heredoc
* parse.y (parser_here_document): store dispatched result of
on_tstring_content at the last fragment of a here document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:56 AM Feature #11737: Pass in expression to then block in `case expression`
Nobuyoshi Nakada wrote:
> It reminded me a rejected proposal:
> ...
I don't think so. It's not too different from what already works if you create a variable beforehand.
~~~ruby
e = Enumerator.new do |y| y << 1; y << 2; y << 3; en...
danielpclark (Daniel P. Clark)
12:10 AM Feature #11737: Pass in expression to then block in `case expression`
It reminded me a rejected proposal:
~~~ruby
case expr
when matcher => result
...
end
~~~
nobu (Nobuyoshi Nakada)
06:56 AM Revision ef44c0ad (git): ripper/lexer.rb: dispatch alias
* ext/ripper/lib/ripper/lexer.rb: alias same methods instead of
eval for each events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:43 AM Revision cf2b422f (git): ripper/core.rb: share handlers
* ext/ripper/lib/ripper/sexp.rb (SexpBuilderPP): share scanner
event handlers and most of parser event handlers with
SexpBuilder.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:26 AM Revision f8ecb823 (git): ripper/core.rb: dispatch alias
* ext/ripper/lib/ripper/core.rb: alias same methods instead of
eval for each events.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

11/27/2015

10:33 PM Feature #11747 (Feedback): "bury" feature, similar to 'dig' but opposite
How can it know what should be created, hash, array, or struct? nobu (Nobuyoshi Nakada)
08:16 PM Feature #11747 (Rejected): "bury" feature, similar to 'dig' but opposite
In Matz's recent Rubyconf talk, he used this example for the new 'dig' feature coming in Ruby 2.3:
~~~ruby
# we want this
data[:users][0][:name]
# we can do this w/o nil errors
data.dig(:users, 0, :name)
~~~
What I'm proposi...
dam13n (damien sutevski)
09:39 PM Bug #11519: "#{nil}" produces string as US-ASCII rather than current encoding
Backported into `ruby_2_2` branch at r52773. nagachika (Tomoyuki Chikanaga)
09:38 PM Revision aad72320 (git): merge revision(s) 51820: [Backport #11519]
* parse.y (literal_concat_gen, evstr2dstr_gen): keep literal
encoding beginning with an interpolation same as the source file
encoding. [ruby-core:70703] [Bug #11519]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
nagachika (Tomoyuki Chikanaga)
09:25 PM Bug #11369: Check length of selected NPN protocol
Backported r52227 and (partially) r52228 into `ruby_2_2` branch at r52772. nagachika (Tomoyuki Chikanaga)
09:24 PM Revision 950fd771 (git): merge revision(s) 52227,52228: [Backport #11369]
* ext/openssl/ossl_ssl.c (ssl_npn_select_cb): explicitly raise error
in ext/openssl instead of OpenSSL itself because LibreSSL
silently truncate the selected protocol name by casting the length
from int to u...
nagachika (Tomoyuki Chikanaga)
09:09 PM Bug #10969: public_send in combination with method_missing raises NameError instead of NoMethodError
Backported into `ruby_2_2` branch at r52771.
The `MISSING_NOENTRY` was introduced at r50743. I replaced `MISSING_NOENTRY` it to `0` to backport.
nagachika (Tomoyuki Chikanaga)
09:09 PM Revision 40e0921a (git): merge revision(s) 51427: [Backport #10969]
* vm_eval.c (send_internal): set method_missing_reason before
invoking overriding method_missing method so that the default
method_missing can achieve it properly.
[ruby-core:68515] [Bug #10969]
git-svn-id...
nagachika (Tomoyuki Chikanaga)
08:49 PM Bug #10686: Memory leaking from torture test of symbol GC
Backported r49813 and r52140 into `ruby_2_2` branch at r52770. nagachika (Tomoyuki Chikanaga)
08:49 PM Revision a6eea9be (git): merge revision(s) 49813,52140: [Backport #10686]
* test/ruby/test_symbol.rb: avoid a false positive in AIX.
* test/ruby/test_symbol.rb (test_symbol_fstr_leak): add a warm-up
code and check RSS to avoid false positive on AIX and false
negative on Mac OS X. [...
nagachika (Tomoyuki Chikanaga)
08:44 PM Bug #11271: TestObjSpace#test_trace_object_allocations_start_stop_clear occasional failure
Backported into `ruby_2_2` branch at r52769. nagachika (Tomoyuki Chikanaga)
08:43 PM Revision b908b2d6 (git): merge revision(s) 52128,52133: [Backport #11271]
* test/objspace/test_objspace.rb
(test_trace_object_allocations_start_stop_clear): clear object
allocation table first to get rid of erronous detection for obj3.
[ruby-dev:49095] [Bug #11271]
alloc...
nagachika (Tomoyuki Chikanaga)
08:33 PM Bug #11211: defined(foo.bar) calls respond_to_missing? everytime
Backported into `ruby_2_2` branch at r52768.
The patch to vm_insnhelper.c (vm_defined) in r52768 was applied to insns.def (defined) on `ruby_2_2`.
nagachika (Tomoyuki Chikanaga)
08:31 PM Revision b6f5c225 (git): merge revision(s) 50737: [Backport #11211]
* insns.def (defined): skip respond_to_missing? when
a method is available.
[Bug #11211]
* test/ruby/test_defined.rb: add a test for this fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5...
nagachika (Tomoyuki Chikanaga)
06:16 PM Bug #11744 (Closed): Open files being GC'ed while still in use
Great!
I'm glad to hear that.
naruse (Yui NARUSE)
04:35 PM Bug #11744: Open files being GC'ed while still in use
Actually, @nurse you are right!
It turns out that rb-inotify uses `IO.fd_for` in its code. At some point, the system starts recycling FD numbers, so we got the same FD number on our file as the rb-inotify object waiting to be GC'ed. W...
chancancode (Godfrey Chan)
09:22 AM Bug #11744: Open files being GC'ed while still in use
> We have found the issue
Looks like I spoke too soon! The issue is back with listen 3.0.5.
> ...
I don't *think* that's the case here, but I could be completely wrong.
In the [simplified reproduction script](https://github.com/...
chancancode (Godfrey Chan)
05:46 AM Bug #11744: Open files being GC'ed while still in use
In my experience, such false closing is caused by IO.for_fd without specifying autoclose: false.
You know Ruby's IO object automatically closes their fd on finalize.
It happens even when the object is created by IO.for_fd(fd) (or IO....
naruse (Yui NARUSE)
03:03 PM Revision b08bfaf6 (git): * 2015-11-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:03 PM Revision dab944e3 (git): fixup! * lib/net/http.rb (connect): detect closed connection and reconnect If the server closes a keep-alive http connection, the client socket reaches EOF. To avoid an EOFError, detect the closed connection and reconnect. Added test to ensure HTTP#post succeeds even if the keep-alive-connection has been closed by the server. by Kristian Hanekamp <kris.hanekamp@gmail.com> https://github.com/ruby/ruby/pull/1089 fix GH-1089
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:26 PM Revision 36326ceb (git): test_parser_events.rb: suppress a warning
* test/ripper/test_parser_events.rb (test_warn_cr_in_middle):
remove unused variable to suppress assigned-but-unused-variable
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:07 PM Revision d249be62 (git): * lib/net/http.rb (connect): detect closed connection and reconnect
If the server closes a keep-alive http connection, the client socket
reaches EOF. To avoid an EOFError, detect the closed connection and
reconnect.
Added test to ensure HTTP#post succeeds even if the
keep-alive-connection has bee...
naruse (Yui NARUSE)
12:31 PM Feature #11745: saving bits
dam i wanted to make a request to add a #[]= method similar to the #[] one, until i noticed that Bignum like others are fixed, so thats not so easily possible ...
but you can wrote a wrapper class that does have #[] and #[]= and store...
Hanmac (Hans Mackowiak)
10:26 AM Feature #11745: saving bits
Yui NARUSE wrote:
> Keep a string and store/manipulate those bits in it.
I also recommend to use Bignum if you don't have to change the table frequently.
Bignum#[] is really useful for the use case.
--
Yusuke Endoh <mame@ruby-l...
mame (Yusuke Endoh)
08:35 AM Feature #11745 (Closed): saving bits
Eike, we have done that kind of optimization for decades.
Matz.
matz (Yukihiro Matsumoto)
04:38 AM Feature #11745: saving bits
Keep a string and store/manipulate those bits in it. naruse (Yui NARUSE)
01:49 AM Feature #11745 (Closed): saving bits
Hi at the ruby team,
Sometimes we are still working with bits: these yes/no things.
But even a bit is an object, this is ruby!
I'm not even sure how bits are save in mri,
I believe they are all objects (which is good)
I believ...
eike.rb (Eike Dierks)
12:07 PM Bug #11746 (Closed): RDoc incorrect example call method on heredoc
The sample code for a call on a heredoc at http://ruby-doc.org/core-2.3.0_preview1/doc/syntax/literals_rdoc.html#label-Here+Documents
for
**To call a method on a heredoc place it after the opening identifier:**
I think it should ...
manuel (Jose Manuel Garcia)
02:22 AM Revision 6c0cf184 (git): parse.y: reduce ifdefs
* parse.y (dispatch_ignored_scan_event, has_delayed_token): more
macros to reduce ifdefs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

11/26/2015

06:25 PM Bug #11744: Open files being GC'ed while still in use
We have found the issue – apparently, listen 3.0.4 and below [doesn't actually teardown the inotify watchers](https://github.com/guard/listen/issues/353). Upgrading to 3.0.5 (which implemented the teardown) fixes the issue for us.
How...
chancancode (Godfrey Chan)
06:12 PM Bug #11744 (Closed): Open files being GC'ed while still in use
Hello!
We recently added a feature on Rails that uses the [`listen` gem](https://github.com/guard/listen) under-the-hood. Since we enabled those tests, we have been seeing random failures on Travis CI like [these](https://travis-ci.or...
chancancode (Godfrey Chan)
03:50 PM Bug #11743: r52758 以降 config.guess がダウンロードできない
証明書に問題を検出しているからこけているわけで、このよう場合に自動でfallbackするのはダメでしょう。
根本解決をせずに回避したいならば、wgetなりcurlなりで別に手で取ってきてtool下に置くなりするべきです。
さておき、gcc.gnu.orgは経験的にあまり強くないので、この機会にGitHubのmirrorから取得するようにしました。
もしかしたらこれでエラーが出なくなるかもしれません。
naruse (Yui NARUSE)
01:40 PM Bug #11743 (Closed): r52758 以降 config.guess がダウンロードできない
r52758 以降、以下のエラーで configu.guess がダウンロードできず、./configure できなくなりました。
~~~
./configure --prefix=/XXXXX
downloading config.guess ... downloader.rb:168:in `rescue in download': failed to download config.guess (RuntimeError)
SSL_connect re...
ngoto (Naohisa Goto)
03:41 PM Revision 37e6b8af (git): * 2015-11-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:40 PM Revision 8f026899 (git): Use more tough server: GitHub or repo.or.cz
https://gcc.gnu.org/wiki/GitMirror
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:13 PM Revision 81ece7f0 (git): increase additional nfiles
On recent my environment, it must be more than 11.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:36 PM Revision 778f32a1 (git): compile.c: tailcall opt for indexers
* compile.c (iseq_peephole_optimize): enable tail call
optimization for specialized indexers.
* compile.c (iseq_compile_each): blockiseq should be NULL, but not
Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52759 b2dd03c8-...
nobu (Nobuyoshi Nakada)
09:09 AM Revision a3ddead9 (git): downloader.rb: Downloader.https
* tool/downloader.rb (Downloader.https): extract a method instead
of a global variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:31 AM Revision 4afebfd2 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:31 AM Revision 9ed1d63f (git): * regcomp.c, regenc.c, regexec.c, regint.h, enc/unicode.c:
Merge Onigmo 58fa099ed1a34367de67fb3d06dd48d076839692
+ https://github.com/k-takata/Onigmo/pull/52
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:31 AM Revision 360b9835 (git): fixup! r52695
OpenSSL's SHA1 struct name is SHA_CTX (which is also used for SHA-0),
but function name is SHA1_Transform.
http://openssl.org/docs/man0.9.8/crypto/SHA1.html
also note that LibreSSL 2.3 remove the SHA-0 support but still support SHA-1.
...
naruse (Yui NARUSE)
08:20 AM Bug #11704 (Assigned): Refinements only get "used" once in loop
Daniel P. Clark wrote:
> I wrote a benchmark for testing different ways of implementing a `uniq` method and I chose to do it using refinements. I looped over the results in the benchmark and refined the method with 6 different refineme...
shugo (Shugo Maeda)
06:06 AM Bug #11742 (Closed): lib/webrick/utils.rb:196:in `register': ERROR RuntimeError: can't add a new key into hash during iteration
RubyCI上にて、たまに以下のFailureが発生しています。
~~~
1) Failure:
TestNetHTTP_v1_2_chunked#test_set_form [/home/rubyci/unstable11s/tmp/build/20151126T012513Z/ruby/test/net/http/test_http.rb:679]:
Expected /\A--(?<boundary>\S+)/ to match "<!DOCTYP...
ngoto (Naohisa Goto)
04:08 AM Feature #11741: Migrate Ruby to Git from Subversion
me@jonathanmoss.me wrote:
<snip>

> * Solution: Gitlab is a tool with great documentation and a great
> API, so learning should be quick. Gitlab is also much more visually
> appealing (IMO) as compared to Redmine.

Disclaim...
normalperson (Eric Wong)
02:41 AM Feature #11741: Migrate Ruby to Git from Subversion
Hi Yui,
I apologize for not finding previous Git to SVN discussions on the Redmine issue tracker. I did search for 'git subversion' on the Redmine issue tracker, but only 12 results came back, and none of them were the above mentioned...
maclover7 (Jon Moss)
01:15 AM Feature #11741: Migrate Ruby to Git from Subversion
Tony Arcieri wrote:
> It seems like this issue addresses at least some of the points raised in #10547, namely the initial steps of a plan to migrate to Git from SVN.
> ...
Why this is periodically discussed is because anyone doesn't fo...
naruse (Yui NARUSE)
12:35 AM Feature #11741: Migrate Ruby to Git from Subversion
It seems like this issue addresses at least some of the points raised in #10547, namely the initial steps of a plan to migrate to Git from SVN.
It also seems like this is an issue that should be periodically discussed, especially if a...
bascule (Tony Arcieri)
12:29 AM Feature #11741: Migrate Ruby to Git from Subversion
You should read discussion of ruby-core archive at https://bugs.ruby-lang.org/issues/10547#note-5 hsbt (Hiroshi SHIBATA)
12:06 AM Feature #11741 (Rejected): Migrate Ruby to Git from Subversion
Why you don't read previous discussion when you want to discuss about history management. naruse (Yui NARUSE)
01:17 AM Misc #10553 (Closed): Ruby 2.2.0 release engeneering
Ruby 2.2.0 is already released :) hsbt (Hiroshi SHIBATA)
01:01 AM Misc #11726 (Closed): [PATCH] Add a test case for `Coverage.peek_result`
hsbt (Hiroshi SHIBATA)
01:01 AM Misc #11732 (Closed): [PATCH] Coverage restart に関するテストケースの追加
hsbt (Hiroshi SHIBATA)
12:51 AM Revision 676c80d2 (git): * test/coverage/test_coverage.rb: Added test-case for Coverage.restart.
[Misc #11732][ruby-dev:49379]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:48 AM Revision a4ac5065 (git): * test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result
without Coverage.start. [Misc #11726][ruby-core:71622]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

11/25/2015

11:44 PM Feature #11741 (Rejected): Migrate Ruby to Git from Subversion
# Git to SVN
Converting Ruby wholesale from Subversion to Git (not necessarily Github!) has been a long time coming, and I think it's finally time to make the switch. Ruby already has an official Git repo up on Github, and the main co...
maclover7 (Jon Moss)
10:24 PM Revision 717e60c7 (git): * 2015-11-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:23 PM Revision 14920f93 (git): test/openssl/test_ssl.rb (test_copy_stream): new test
I was worried r52750 would break IO.copy_stream with things like
OpenSSL sockets which wrap IOs, but require data to be run through
through encryption/decryption filters. Apparently my worry
was unfounded, but perhaps this test will ens...
Eric Wong
06:56 PM Feature #11737: Pass in expression to then block in `case expression`
Since https://bugs.ruby-lang.org/issues/11734#note-3 has informed me the `_` is an IRB feature and Minitest uses `_()` in its test suite perhaps we should not use `_` for the case/when/then.
How about `__case__`
~~~ruby
case Enum...
danielpclark (Daniel P. Clark)
05:03 PM Feature #11735: Porting String#squish and String#squish! from Ruby on Rails' Active Support
I don't think the two features are the same, and would find both of them useful. deivid (David Rodríguez)
04:20 AM Feature #11735: Porting String#squish and String#squish! from Ruby on Rails' Active Support
First, indented heredoc will be achieved by [Feature #9098], this will not be needed.
Second, `squish!` feels to return `nil` if no white spaces, to me, like as `sub!` and so on.
Last, it's prohibited in C89 to initialize an aggreg...
nobu (Nobuyoshi Nakada)
01:59 PM Bug #11199: IO.copy_stream degrade that can't call pathname to pathname
That was fast, Nobu! Thanks!! deivid (David Rodríguez)
12:24 PM Bug #11199 (Closed): IO.copy_stream degrade that can't call pathname to pathname
Applied in changeset r52750.
----------
io.c: try to_io first
* io.c (copy_stream_body): try to_io conversion before read,
readpartial, and write methods. [ruby-dev:49008] [Bug #11199]
nobu (Nobuyoshi Nakada)
01:06 PM Bug #11602: Compile error on CentOS: Segmentation fault after "linking miniruby"
Robb Kidd wrote:
> The fix in r51626 for Bug #11457 applied directly to my working copy of 2.2.3 fixed the segfault on the CentOS 5 node I'd seen the error on in my environment.
> ...
Thanks for your reply. This solution is works for m...
Ruben_r (Ruben Ambarcumyanc)
01:00 PM Feature #11734: Improved ternary operator
Yurko Bregey wrote:
> Hans Mackowiak wrote:
> ...
you might did something wrong because on "ruby 2.3.0dev (2015-11-25 trunk 52749) [x86_64-linux]" it doesn't show any warning for me
Hanmac (Hans Mackowiak)
10:23 AM Feature #11734: Improved ternary operator
Nobuyoshi Nakada wrote:
> Maybe `some_long_expression&.to_s || 'foobar'` ?
@Nobuyoshi, thanx! safe navigation from 2.3 solves such tasks.
Anonymous
10:06 AM Feature #11734: Improved ternary operator
Hans Mackowiak wrote:
> why not:
> ...
think it's not good. Ruby 2.2.3p173 shows warning:
~~~
warning: found = in conditional, should be ==
~~~
Anonymous
09:34 AM Feature #11734: Improved ternary operator
Maybe `some_long_expression&.to_s || 'foobar'` ? nobu (Nobuyoshi Nakada)
05:10 AM Feature #11734: Improved ternary operator
@Daniel: _ with previous line result is a feature of IRB and PRY not ruby itself Hanmac (Hans Mackowiak)
12:23 PM Revision 7d92e5cf (git): io.c: try to_io first
* io.c (copy_stream_body): try to_io conversion before read,
readpartial, and write methods. [ruby-dev:49008] [Bug #11199]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:25 AM Bug #11740 (Closed): ObjectSpace.each_object exposes internal metaclasses
ObjectSpace.each_object exposes internal metaclasses and
this might result in assumptions being violated since the metaclass structure is not well preserved.
See the attached script for an example.
The #bla method should always be d...
Eregon (Benoit Daloze)
08:02 AM Revision 01236800 (git): iseq.h: rename member
* iseq.h (rb_compile_option_struct): rename the member
frozen_string_literal_debug as debug_frozen_string_literal.
[Feature #11725]
* ruby.c (proc_options): do not set $DEBUG and $VERBOSE only if no
arguments is given.
git-svn-id...
nobu (Nobuyoshi Nakada)
07:39 AM Revision 9b7d4d47 (git): add NEWS entry about --debug=frozen-string-literal
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
06:39 AM Bug #11739 (Rejected): OpenSSL::SSL::SSLServer doesn't negotiate ECDHE-* ciphersuites
I'm trying to configure an instance of OpenSSL::SSL::SSLServer that supports Elliptic curve Diffie–Hellman. No matter what combination of Ruby and OpenSSL versions I try the negotiation with the client fails.
Proof of concept:
https...
weeks (Branodn Weeks)
03:36 AM Revision 311a9eb0 (git): configure.in: color to ifchange
* configure.in: pass --color to ifchange from CONFIGURE_TTY for
reconfig.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:18 AM Revision 0bd90727 (git): test_objectspace.rb: missing tests from rubyspec
* test/ruby/test_objectspace.rb (test_each_object): incorporated
from rubyspec.
* test/ruby/test_objectspace.rb (test_each_object_enumerator):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52746 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
02:00 AM Bug #11738: ARGF.readpartial raises a wrong exception
Eric Wong wrote:
> 1.9.3, 2.0.0, and 2.1 branches segfault for me, even.
> ...
Thanks for your check.
I've fixed the bug in trunk, and have set the Backport field of this ticket.
shugo (Shugo Maeda)
01:58 AM Bug #11738 (Closed): ARGF.readpartial raises a wrong exception
Applied in changeset r52745.
----------
* io.c (argf_getpartial): should not resize str if the second
argument is not given.
[ruby-core:71668] [Bug #11738]
shugo (Shugo Maeda)
01:18 AM Bug #11738: ARGF.readpartial raises a wrong exception
1.9.3, 2.0.0, and 2.1 branches segfault for me, even.
Current bug is 2.2+

I might have time to look at this tomorrow if nobody beats me to it.
normalperson (Eric Wong)
01:07 AM Bug #11738 (Closed): ARGF.readpartial raises a wrong exception
ARGF.readpartial raises a RuntimeError when EOF is detected more than twice:
```
lexington:ruby$ cat t.rb
p ARGF.readpartial(16) rescue nil
p ARGF.readpartial(16)
lexington:ruby$ ruby t.rb /dev/null
t.rb:2:in `readpartial': can't...
shugo (Shugo Maeda)
01:57 AM Revision 94da8b17 (git): * io.c (argf_getpartial): should not resize str if the second
argument is not given.
[ruby-core:71668] [Bug #11738]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:56 AM Feature #10251: URI: Support wildcards (globbing) in no_proxy
+1 to resolve this. unk (sergio patino)

11/24/2015

11:40 PM Bug #11199: IO.copy_stream degrade that can't call pathname to pathname
Hi!
We run into this here: https://github.com/janko-m/shrine/commit/399adcecad64c66ca4ffb1b1619777ff8551e761. That test passes in 2.2.3 but fails in 2.3.0.preview1, apparently due to this issue. Is fixing this planned for 2.3.0?
Th...
deivid (David Rodríguez)
09:03 PM Feature #11737: Pass in expression to then block in `case expression`
Please fix the when scenario in the last example
~~~ruby
case Enumerator.new do |y| y << 1; y << 2; y << 3; end
when ->e{ 2.times{e.next}; true}
then _.peek
end == 3
~~~
danielpclark (Daniel P. Clark)
08:59 PM Feature #11737 (Rejected): Pass in expression to then block in `case expression`
Ruby's `case <expression>` scenario allows the expression to be tested in the `when` test with `:===`, but in the then block the expression is not accessible. Only if the expression has been assigned to a variable beforehand can it be c... danielpclark (Daniel P. Clark)
08:48 PM Feature #11735: Porting String#squish and String#squish! from Ruby on Rails' Active Support
> ~~~diff
> +static VALUE
> +rb_str_squish_bang(VALUE str)
> +{
> + static const char before_regex_source[] = "\\A[[:space:]]+";
> + static const char after_regex_source[] = "[[:space:]]+\\z";
> + static const char ...
normalperson (Eric Wong)
07:38 PM Feature #11735: Porting String#squish and String#squish! from Ruby on Rails' Active Support
I also just created a GitHub PR in case that will be easier to give feedback to the code: https://github.com/ruby/ruby/pull/1113
Thank you,
Prem
sikachu (Prem Sichanugrist)
07:36 PM Feature #11735 (Assigned): Porting String#squish and String#squish! from Ruby on Rails' Active Support
Hi,
I have been using this `String#squish` method so many time when I'm using Rails, and I think it should be a useful addition to core.
Here's the method on Rails' documentation: http://api.rubyonrails.org/v4.2.5/classes/String.ht...
sikachu (Prem Sichanugrist)
08:28 PM Feature #11734: Improved ternary operator
`&` is associated more with proc. I think `_` would be closer to the kind of thing you're looking for.
~~~ruby
some_long_expression = :baz
_ ? _.to_s : 'foobar'
# => "baz"
~~~
Although I tried in-lining it with a semicolon and...
danielpclark (Daniel P. Clark)
03:10 PM Feature #11734: Improved ternary operator
why not:
```ruby
(x = some_long_expression) ? x.to_s : 'foobar'
```
Hanmac (Hans Mackowiak)
02:33 PM Feature #11734 (Closed): Improved ternary operator
In ternary operator it would be nice to be able to pass expression result from *condition* into *value_if_true/value_if_false* in such way:
`some_long_expression ? &.to_s : 'foobar'`
where `&` refers to `some_long_expression`
Ins...
Anonymous
08:10 PM Bug #11736 (Closed): Float(arg) not consistent with documentation
Float(arg) → float
Returns arg converted to a float. Numeric types are converted directly, the rest are converted using arg.to_f. Converting nil generates a TypeError.
Strings are NOT converted using arg.to_f
~~~
'123_INVALID'.to...
bwheeler96 (Brian Wheeler)
04:10 PM Revision 1e662300 (git): bump patchlevel for previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
04:09 PM Revision 38535a30 (git): merge revision(s) 52694: [Backport #3231]
* ext/digest/sha1/sha1ossl.c: fix defs.h path to catch up changes in
r52739.[Bug #3231]
* ext/digest/rmd160/rmd160ossl.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52743 b2dd03c8-39d4-4d8f-9...
nagachika (Tomoyuki Chikanaga)
04:03 PM Bug #11663: Segfault when using multiple keywords if the first keyword is invalid
Backported into `ruby_2_2` branch at r52742. nagachika (Tomoyuki Chikanaga)
04:02 PM Revision 0ec0eb9c (git): merge revision(s) 52461: [Backport #11663]
* parse.y (kwd_append): fix segv after invalid keyword argument,
preceding keyword list is NULL when syntax error is there.
[ruby-core:71356] [Bug #11663]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_...
nagachika (Tomoyuki Chikanaga)
03:50 PM Bug #11513: IPAddr should reject invalid formats
r52244 and (partially) r50727 were backported into `ruby_2_2` branch at r52741. nagachika (Tomoyuki Chikanaga)
03:49 PM Revision e097b9b4 (git): merge revision(s) 52244: [Backport #11513]
* lib/ipaddr.rb, test/test_ipaddr.rb: Reject invalid address contained
EOL string. Patch by @kachick [fix GH-942][Bug #11513]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52741 b2dd03c8-39d4-4d8f-98ff-823fe69...
nagachika (Tomoyuki Chikanaga)
03:43 PM Bug #8543: new rb_iseq_load crash
Backported into `ruby_2_2` branch at r52740. nagachika (Tomoyuki Chikanaga)
03:42 PM Revision 66b2b435 (git): merge revision(s) 51816: [Backport #8543]
* compile.c (iseq_build_from_ary_body): register cdhash to the
iseq constant body instead of compile time mark array, not to
get GCed. [ruby-core:70708] [Feature #8543]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/b...
nagachika (Tomoyuki Chikanaga)
03:30 PM Bug #3231: Digest Does Not Build
Backported into `ruby_2_2` branch at r52739.
Add similar patch to ext/digest/sha2_sha2ossl.c.
nagachika (Tomoyuki Chikanaga)
03:28 PM Revision 2c30e876 (git): merge revision(s) 52694: [Backport #3231]
* ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid
includeing ext/digest/extconf.h. [Bug #3231]
https://msdn.microsoft.com/library/36k2cdd4.aspx
* ext/digest/*/extconf.rb: remove ext/digest from i...
nagachika (Tomoyuki Chikanaga)
03:05 PM Bug #11722: Backport r52683 (Net::HTTP fix bug with "Expect: 100-continue" header)
Backported into `ruby_2_2` branch at r52738. nagachika (Tomoyuki Chikanaga)
03:05 PM Bug #11719: Backport request r52683
Backported into `ruby_2_2` branch at r52738. nagachika (Tomoyuki Chikanaga)
03:04 PM Bug #11719 (Closed): Backport request r52683
Applied in changeset backport22:r52738.
----------
merge revision(s) 52683,52684: [Backport #11719] [Backport #11722]
* lib/net/http.rb: Fixed regression for Net::HTTP::PUT with "Expect-100"
header.
* test/net/http/test_http.rb: ...
nagachika (Tomoyuki Chikanaga)
03:04 PM Revision ae2b1d2f (git): merge revision(s) 52683,52684: [Backport #11719] [Backport #11722]
* lib/net/http.rb: Fixed regression for Net::HTTP::PUT with "Expect-100"
header.
* test/net/http/test_http.rb: added test.
* Added missing reference of GitHub
header. [fix GH-949]
git-svn-id: svn+s...
nagachika (Tomoyuki Chikanaga)
03:03 PM Revision ff838167 (git): * 2015-11-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision 06c04b38 (git): * configure.in: On Solaris, it is safe to define _LARGEFILE_SOURCE
when _FILE_OFFSET_BITS=64 is defined (= when 32-bit compile).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ngoto (Naohisa Goto)
01:12 PM Revision 17f2a12f (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:23 AM Bug #11718: Constant access on `nil`
This is a (intentional) bug. Because I expect nobody reveal such code :p
ko1 (Koichi Sasada)
07:12 AM Revision b0fb3ff1 (git): parse.y: ripper for warnings
* parse.y (parser_yylex): deal with magic comment warnings also in
ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:12 AM Revision 70d2b335 (git): parse.y: fix dispatch_scan_event
* parse.y (dispatch_scan_event): fix wrong macro at r52547.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 AM Feature #11181: Add a line directive to Ruby
I have changed the assignee from ruby-core (all committers) to Matz to make sure this doesn't show up in everybody's todo list. duerst (Martin Dürst)
01:00 AM Revision ba516bc3 (git): * lib/rubygems/installer.rb: Fix two double-word typos.
[ci skip][fix GH-1108] Patch by @jwworth
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:58 AM Bug #11733: Compile of ruby 2.2.3 fails on AIX 6.1 TL07 SP03
Another set of errors (why I gave up on modifying fs.c were these:
compiling /usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c
/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c: In function 'get_fsname':
/usr/work/src/ruby-2.2.3/ext/-test-/...
pedz (Perry Smith)
12:54 AM Bug #11733 (Closed): Compile of ruby 2.2.3 fails on AIX 6.1 TL07 SP03
The build on AIX fails in the ext/-test-/file directory with errors such as
compiling /usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c
/usr/work/src/ruby-2.2.3/ext/-test-/file/fs.c: In function 'get_fsname':
/usr/work/src/ruby-2.2.3/ex...
pedz (Perry Smith)
12:17 AM Revision 13a935b0 (git): Drop support for BeOS
* beos: Drop support for BeOS now that Haiku is stable.
[Fix GH-1112]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:16 AM Revision f7847ecb (git): internal.h: export rb_gc_for_fd
* internal.h (rb_gc_for_fd): move to export, as referred by
ext/socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:04 AM Revision e99cc601 (git): Add missing punctuation to File docs [ci skip]
* file.c: [DOC] add a missing period to File docs, to terminate
the sentence and separate from the next sentence. [Fix GH-1111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom