Project

General

Profile

Activity

From 11/16/2014 to 11/22/2014

11/22/2014

11:47 PM Revision 237162a3 (git): test_variable.rb: suppress warnings
* test/ruby/test_variable.rb (ruler4): suppress warning.
(test_global_variable_poped, test_constant_poped): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:47 PM Revision 7fed49d2 (git): * 2014-11-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:46 PM Revision 4f160fa0 (git): io.c: remove redundant assignment
* io.c (rb_io_sysread): Remove redundan assignment of 'n'.
[Fix GH-767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:23 PM Bug #10536: RubyDoc example for Enumerable#map incorrect
That's intentional, both methods are aliases (note that the documentation for #collect and #map is the same). stomar (Marcus Stollsteimer)
05:03 PM Bug #10536: RubyDoc example for Enumerable#map incorrect
```collect``` is shown in the example section instead of ```map```
This is fully the case for the 2.0 doc (http://ruby-doc.org/core-2.0/Enumerable.html#method-i-map) and partially the case for the 2.1 doc (http://ruby-doc.org/core-2.1...
eebbesen (Eric Ebbesen)
05:00 PM Bug #10536 (Rejected): RubyDoc example for Enumerable#map incorrect
`collect` is shown in the example section instead of `map`
This is fully the case for the 2.0 doc (http://ruby-doc.org/core-2.0/Enumerable.html#method-i-map) and partially the case for the 2.1 doc (http://ruby-doc.org/core-2.1.0/Enume...
eebbesen (Eric Ebbesen)
09:58 PM Bug #10535: Potential uninitialized reference pipe_open() in io.c
asmaloney@gmail.com wrote:
> IF !defined(HAVE_WORKING_FORK) and !defined(HAVE_SPAWNV), THEN argc
> and argv are declared. (lines 5938, 5939)
> Unless I'm missing something in the #if #else #endif fiesta, they
> don't seem to be init...
normalperson (Eric Wong)
02:46 PM Bug #10535 (Closed): Potential uninitialized reference pipe_open() in io.c
(From git commit f5063b7ea7e774519602f7a112d9acf536a1da33 of 22 November 2014.)
In **io.c** in the following function:
~~~
static VALUE
pipe_open(VALUE execarg_obj, const char *modestr, int fmode, convconfig_t *convconfig)
~~~...
asm (Andy Maloney)
09:27 AM Bug #10046: OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
You would need to have OpenSSL built with this patch:
http://pkgs.fedoraproject.org/cgit/openssl.git/tree/openssl-1.0.1h-disable-sslv2v3.patch
This patch is now applied in openssl-1.0.1j-3.fc22 in Fedora Rawhide. I would not be sur...
vo.x (Vit Ondruch)
02:11 AM Bug #10046 (Assigned): OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
I can't reproduce these test failures, but this patch looks ok to me zzak (zzak _)
08:59 AM Feature #10481: Add "if" and "unless" clauses to rescue statements
Awesome, thanks! I was having trouble building trunk on OS X, so (I believe) I based it off of 2.1.5. Quite a bit more's changed than I had anticipated.
Thanks for writing up tests as well!
javawizard (Alex Boyd)
08:48 AM Feature #10481 (Assigned): Add "if" and "unless" clauses to rescue statements
Your patch seems based on pretty old revision.
I made updated version: https://github.com/nobu/ruby/compare/Feature%2310481-conditional-rescue
nobu (Nobuyoshi Nakada)
08:28 AM Bug #8543: new rb_iseq_load crash
billk@cts.com wrote:
> But ultimately, the result of the manual bisect was:
>
> 66d247bcb50a29769ff940100223544c125521aa is the first bad commit
> commit 66d247bcb50a29769ff940100223544c125521aa
> Author: ko1 <ko1@b2dd03c8-39d4-4d...
normalperson (Eric Wong)
01:08 AM Bug #8543: new rb_iseq_load crash
Eric Wong <normalperson@yhbt.net> wrote:
> Work-in-progress fix here, can you please test?
> http://80x24.org/spew/m/rb_iseq_load_fix-wip@v0.txt

Don't bother with that, I forgot to test iseq-load-test3-file.rb
hello.rb works fine,...
normalperson (Eric Wong)
12:08 AM Bug #8543: new rb_iseq_load crash
Work-in-progress fix here, can you please test?
http://80x24.org/spew/m/rb_iseq_load_fix-wip@v0.txt
Thanks.
normalperson (Eric Wong)
07:10 AM Revision f5063b7e (git): dummyparser.rb: on_rescue
* test/ripper/dummyparser.rb (on_rescue): add to turn exception
class list into NodeList, to test exception class list.
* test/ripper/test_parser_events.rb (test_rescue_class): add
missing test.
git-svn-id: svn+ssh://ci.ruby-lang.o...
nobu (Nobuyoshi Nakada)
07:10 AM Revision d551e813 (git): common.mk: keep verconf.h if unchanged
* common.mk (verconf.h): update only when changed to reduce
unnecessary recompiling loadpath.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:22 AM Bug #10533: HTTP reconnection with SNI does not send correct hostname
Ultimately I think this may be an OpenSSL bug.
Looking at the ClientHello message for the second connection (which uses session resumption) no ServerNameIndication extension is present. Without this the server won't be able to respon...
drbrain (Eric Hodel)
04:49 AM Bug #10467: net/http reconnects without SNI
This looks to be a duplicate now of #10533, which has a patch dissolve (Ben Roberts)
12:54 AM Revision 3ca77ee9 (git): * tool/make-snapshot: Specify PWD macro for make.
PWD environment variable may not exist.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

11/21/2014

11:02 PM Bug #10533 (Assigned): HTTP reconnection with SNI does not send correct hostname
drbrain (Eric Hodel)
11:01 PM Bug #10533: HTTP reconnection with SNI does not send correct hostname
If session resumption is requested with an expired SSL session on an SNI server then the handshake goes wrong and the connection fails as above.
The attached patch only attempts session resumption if the session is still valid.
drbrain (Eric Hodel)
03:41 AM Bug #10533 (Closed): HTTP reconnection with SNI does not send correct hostname
When reconnecting after connection timeout on an SNI connection the server name is not sent during reconnect which results in a failed reconnection:
~~~
$ cat test.rb
require 'net/http'
uri = URI 'https://david.shanske.com'
Net:...
drbrain (Eric Hodel)
08:04 PM Revision 570c028c (git): * lib/resolv.rb: fall back if canonicalization fails.
Thanks Vit Ondruch for the patch! [ruby-core:65836]
* test/resolv/test_dns.rb: test for patch
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
06:49 PM Bug #10526: [DOC] Revise documentation in object.c
Adding a patch based on the latest trunk, replacing the originally submitted one. stomar (Marcus Stollsteimer)
05:51 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Nobuyoshi Nakada wrote:
> With your patch, the condition is checked *after* matching against the exception classes, not a part of the matching, right?
> ...
They're checked after checking for a match against the exception classes, so t...
javawizard (Alex Boyd)
05:23 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Intersting.
With your patch, the condition is checked *after* matching against the exception classes, not a part of the matching, right?
Which behavior is preferred?
nobu (Nobuyoshi Nakada)
05:34 PM Feature #10444: [PATCH 3/3] Vector#[] returns new vector if argument is range.
@Marc-Andre Lafortune
OK, it does make sense. Thank you for your time.
gogotanaka (Kazuki Tanaka)
02:19 PM Feature #10444 (Rejected): [PATCH 3/3] Vector#[] returns new vector if argument is range.
gogo tanaka wrote:
> But I think there is no reason `Vector[1,2,3][0..1]` returns not `Vector` but `Array`.
I agree completely, and don't I think it was intended. The doc states "Returns element number +i+" too.
marcandre (Marc-Andre Lafortune)
04:11 PM Revision 8eb0c810 (git): get rid of inadvertent ID creation
* object.c (rb_mod_const_get, rb_mod_const_defined): ditto.
* variable.c (rb_const_missing, rb_mod_const_missing): call
const_missing without new ID to get rid of inadvertent ID
creation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
03:58 PM Revision df06c284 (git): * 2014-11-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:58 PM Revision 4ecdc8f5 (git): common.mk: use PWD with nmake
* common.mk (ext/ripper/ripper.c): move MAKEDIR to Makefile.sub.
* win32/Makefile.sub (PWD): set to $(MAKEDIR), nmake built-in macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:40 PM Feature #10523 (Rejected): Suggestion for new Array.delete_to method
I prefer Array#partition for its immutability.
Matz.
matz (Yukihiro Matsumoto)
03:37 PM Bug #10046: OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
Sorry, it fixes just one of the two issues :/ vo.x (Vit Ondruch)
03:16 PM Bug #10046: OpenSSL::TestSSLSession#test_ctx_server_session_cb and OpenSSL::TestSSLSession#test_ctx_client_session_cb test failures
This patch is fixing the issue for me. vo.x (Vit Ondruch)
02:32 PM Bug #10534: Enumerator methods other than "next" do not always respect "peek"
`next` and `peek` indeed live in their little world described as "external enumeration" in the documentation.
The documentation of `next` and `next_values` states:
* Note that +next_values+ does not affect other non-external enume...
marcandre (Marc-Andre Lafortune)
11:38 AM Bug #10534 (Rejected): Enumerator methods other than "next" do not always respect "peek"
It seems like using "peek" and then calling other methods on the Enumerator consumes the value that was peeked at. While `next` correctly returns the peeked-at value the next time it is called, other Enumerator methods such as `to_a` and... jnicklas (Jonas Nicklas)
10:34 AM Revision 31f9c8c0 (git): * common.mk (ext/ripper/ripper.c): revert about srcdir and top_srcdir.
* common.mk (ext/ripper/ripper.c): use $(PWD) for Unix,
$(MAKEDIR) for Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:00 AM Revision 78fad837 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:12 AM Revision 2aaba598 (git): * tool/update-deps: Refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:27 AM Revision 539b39af (git): * win32/Makefile.sub (top_srcdir): added because lacking this macro causes
build error at r48526.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:04 AM Revision 6ca202fc (git): Update dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:04 AM Revision 1199bae1 (git): Forgot to commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:04 AM Revision 8d7f9b0e (git): * tool/update-deps (in_makefile): Use FILES_NEED_VPATH and
FILES_CONFUSING.
* ext/objspace/extconf.rb: Add VPATH for id.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:10 AM Revision 72de767e (git): common.mk: fix dependencies
* common.mk (ext/ripper/ripper.c): fix dependencies for the case
to make ripper.y and id.h under the build directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

11/20/2014

11:45 PM Revision c2bd5491 (git): * common.mk (ext/ripper/ripper.c): id.h in VPATH may exist in the build
directory.
* common.mk (ext/ripper/ripper.c): $(RM) was not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:28 PM Feature #10532: [PATCH] accept_nonblock supports "exception: false"
normalperson@yhbt.net wrote:
> I also intend to support this in the "openssl" extension as well as

accept_nonblock for openssl:
http://80x24.org/spew/m/f453956f3b04d2445e54d3141cc564a2529ce0f7.txt

Also pushed to the "more_nonblo...
normalperson (Eric Wong)
07:48 PM Feature #10532 (Closed): [PATCH] accept_nonblock supports "exception: false"
This is analogous to functionality found in IO#read_nonblock and
IO#wait_nonblock. Raising exceptions for common failures on
non-blocking servers is expensive and makes $DEBUG too noisy.
This also increases performance slightly, se...
normalperson (Eric Wong)
06:54 PM Feature #10444: [PATCH 3/3] Vector#[] returns new vector if argument is range.
@Marc-Andre Lafortune
Thank for reply.
OK, I got your point. Actually I'm not sure anyone want to do this.
But I think there is no reason `Vector[1,2,3][0..1]` returns not `Vector` but `Array`.
thanks.
gogotanaka (Kazuki Tanaka)
06:52 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Robert Klemme wrote:
> Do you have an idea of the runtime performance impact? I mean, a type check (as done today) is fast and effort cannot change. But with your proposal arbitrary code can be executed as part of the test. If you do...
javawizard (Alex Boyd)
03:09 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
Alex Boyd wrote:
> I'd like to propose a syntax change: allow boolean "if" and "unless" clauses to follow a rescue statement.
> ...
Do you have an idea of the runtime performance impact? I mean, a type check (as done today) is fast ...
rklemme (Robert Klemme)
12:30 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
A second patch, to fix an uninitialized variable I noticed just after I'd uploaded the first. javawizard (Alex Boyd)
12:23 PM Feature #10481: Add "if" and "unless" clauses to rescue statements
A patch.
I've only tested the Ripper bits cursorily, so I could very well have missed something - feedback in that particular direction would be appreciated.
I'm also not sold on the format of NODE_RESCOND in node.c, but I can't th...
javawizard (Alex Boyd)
06:47 PM Feature #10445: [PATCH 3/3] Extend Matrix#[]
@Marc-Andre Lafortune
Thank you for reply.

OK, the answer is when we expect `Matrix` to behave something like `Array`, I mean..
```ruby
[1,2,3,4][1..2]
#=> [2,3]
Matrix[[1,2,3],[4,5,6],[7,8,9]][0..1, 0..1]
#=> Matrix[[1,2...
gogotanaka (Kazuki Tanaka)
05:20 PM Feature #10528: Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
I forgot to mention other usual cases when lines should be implicitly continued: after a dot, after an operator symbol, etc. alexeymuranov (Alexey Muranov)
11:14 AM Feature #10528 (Open): Allow line breaks instead of commas in arrays, hashes, argument lists, etc.
Since the seemingly reasonable proposal #8956 has been rejected because it "diverged so far from the original", i will dare to propose another version here.
I suggest to automatically convert line breaks inside parentheses `(...)`, in...
alexeymuranov (Alexey Muranov)
03:39 PM Revision c1bad604 (git): * ext/openssl/lib/openssl/x509.rb
(OpenSSL::X509::Name::RFC2253DN::StringChar): get rid of a false
positive assertion in ripper's test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:36 PM Revision a23e9c7f (git): * ChangeLog: missed at r48518.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:35 PM Revision 518ef569 (git): * ChangeLog: missed at r48516.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:29 PM Revision 9bbfca81 (git): * lib/net/imap.rb (Net::IMAP::ResponseParser::BEG_REGEXP): no need to use embbed
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:19 PM Revision 947de1ce (git): * 2014-11-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:19 PM Revision 0a71befc (git): * lib/uri/mailto.rb (URI::MailTo::EMAIL_REGEXP): should escape `#`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
02:27 PM Revision 0dc240e7 (git): Fix a variable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:18 PM Revision 1b2109f6 (git): * tool/update-deps: Insert all dependencies found by compiler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:45 PM Revision cc7ad0f6 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:15 AM Feature #8956: Allow hash members delimited by \n inside of {}
I have proposed another version: #10528. alexeymuranov (Alexey Muranov)
08:19 AM Bug #10300: Encoding error in conversion from UTF-16LE to UTF-8 to CP850
Nobuyoshi Nakada wrote:
> Or from `FormatMessage`?
> ...
Thanks that solved the issue!
ggrossetie (Guillaume GROSSETIE)
08:04 AM Revision 37d0c509 (git): * test/psych/json/test_stream.rb (Psych::JSON::TestStream::test_list_to_json):
escape `]`.
* test/psych/test_json_tree.rb (Psych::JSON::TestJSONTree#test_list_to_json):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:56 AM Revision 9d38d655 (git): * test/ripper/test_files.rb: set filename.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:52 AM Revision 219e4fcb (git): * ext/nkf/depend (nkf.o): add nkf.c as dependency.
bsdmake tries to make nkf.o with nkf-utf8/nkf.c without this.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)

11/19/2014

11:57 PM Revision 1bfee277 (git): test_vector.rb: fix exception class
* test/matrix/test_vector.rb (test_independent): fix exception
class path, Vector does not have its own TypeError. [#10451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:54 PM Revision 6f4e3f05 (git): parse.y: shrink parser_params
* parse.y (struct parser_params): reduce size by reordering
members and an unused member.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:31 PM Bug #10526 (Closed): [DOC] Revise documentation in object.c
* #inspect: be more specific about generated string, remove obsolete example
* #nil?: use code examples instead of different call-seq's
* #tap: clarify what is yielded
* Integer(): be more specific about to_int and to_i, remove refere...
stomar (Marcus Stollsteimer)
09:28 PM Bug #10460: Segfault instead of stack level too deep
arne@arnebrasseur.net wrote:
> Mutant will often generate "broken" code, that's how it works, so
> endless recursion could be the result. It needs to be able to detect
> somehow that things go wrong. A segfault is actually not the bi...
normalperson (Eric Wong)
09:13 PM Bug #10460: Segfault instead of stack level too deep
That makes sense, I agree with your point. Having a nicer error message on broken code isn't a big deal.
There is an actual use case beyond "a nicer error message" though.
Me and others make heavy use of mutation testing with Mutan...
plexus (Arne Brasseur)
07:58 AM Bug #10460: Segfault instead of stack level too deep
arne@arnebrasseur.net wrote:
> Was it rude to set this as "Priority: High"? A random segfault seems
> important but it also seems very few tickets are actually marked as
> high priority.

I don't think it is rude to set "Priority: ...
normalperson (Eric Wong)
06:11 PM Bug #10437 (Closed): ruby -c and ripper inconsistency: /*/
Applied in changeset r48507.
----------
ChangeLog: add issue ref
* ChangeLog: r48504 fixed [ruby-dev:48714] [Bug #10437]
nobu (Nobuyoshi Nakada)
06:11 PM Revision 4cb3f72f (git): ChangeLog: add issue ref
* ChangeLog: r48504 fixed [ruby-dev:48714] [Bug #10437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:57 PM Feature #10444 (Feedback): [PATCH 3/3] Vector#[] returns new vector if argument is range.
I feel the idea is similar to #10445 (although not as dubious)
I'm curious as to when one would want to do this and actually get a Vector.
marcandre (Marc-Andre Lafortune)
05:54 PM Feature #10445 (Feedback): [PATCH 3/3] Extend Matrix#[]
I understand the idea, but I'm not convinced.
Currently, [] is a simple access to the elements of a matrix. This proposal makes it more complex and changes completely the type of return depending on the arguments. The main question is...
marcandre (Marc-Andre Lafortune)
05:48 PM Feature #10451 (Closed): [PATCH 3/3] Implement Vector.independent? and Vector#independent?
Great patch, thanks! marcandre (Marc-Andre Lafortune)
05:44 PM Revision 387e0dbe (git): * lib/matrix.rb: Vector#independent? and associated class method
patch by gogo tanaka [#10451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:34 PM Feature #10442 (Closed): Helper methods to Vector class
Thanks for the revised patch!
I've committed it almost as is (I changed the constant in the doc for Math::PI / 2) and made a slight optimization
marcandre (Marc-Andre Lafortune)
05:32 PM Revision 4da89e19 (git): * lib/matrix.rb: Add Vector#angle_with
Patch by Egunov Dmitriy [#10442]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:10 PM Revision 098127dc (git): parse.y: regexp error in ripper
* parse.y (ripper_flush_string_content, parser_parse_string):
preserve parsed string content.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:09 PM Revision 3cdbc18f (git): parse.y: ripper_new_yylval
* parse.y (ripper_new_yylval): abstract function to create ripper
wrapper, and make it able to hold another object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:01 PM Revision a80d5462 (git): parse.y: predefined ID
* parse.y (reg_named_capture_assign_gen): use predefined ID
instead of rb_intern.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:57 PM Revision fdc41af7 (git): * internal.h (ruby_init_setproctitle): Declare here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:26 PM Revision 595ce95d (git): parse.y: append directly to delayed content
* parse.y (parser_here_document): append byte sequence directly to
the delayed content instead of creating an intermediate string
object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:19 PM Revision 3a2d2af0 (git): common.mk: fix build error
* common.mk (ext/ripper/ripper.c): VPATH is always ../.. from
ext/ripper.
* ext/ripper/depend (.y.c): VPATH is not needed for an
intermediate file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48499 b2dd03c8-39d4-4d8f-98ff-823...
nobu (Nobuyoshi Nakada)
03:06 PM Revision 5a7b14b5 (git): * 2014-11-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision 4daa0fce (git): common.mk: ims=nil option
* common.mk (update-gems): use ims=nil option.
* tool/downloader.rb (Downloader.download): show the message if no
need to download in verbose mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48497 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
02:42 PM Bug #10525 (Rejected): SegFault with mysql2 gem
You use the extension for 2.0.0 from 2.1.
You have to install mysql2 for 2.1
nobu (Nobuyoshi Nakada)
04:02 AM Bug #10525 (Rejected): SegFault with mysql2 gem
I received this segfault when executing the command
`bundle exec rake db:migrate`
tadlambjr (Tad Lamb)
12:12 PM Revision a77e25ec (git): * common.mk (ext/json/parser/parser.c): don't touch parse.c,
ruby repo is a downstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:38 AM Revision 85c464c5 (git): * common.mk (ext/ripper/ripper.c): use $(PWD) to get
<build-directory>/ext/ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:15 AM Revision 501656c4 (git): * tool/downloader.rb (RubyGems.download): Don't download gem if the
version is already downloaded. A gem file is versioned and
it must be identical if the version is the same.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:00 AM Revision 926b9e05 (git): * common.mk (ext/ripper/ripper.c): pass build directory as VPATH.
* ext/ripper/depend (.y.c): use VPATH for y.tab.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:55 AM Revision a494ed41 (git): Add comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:52 AM Bug #10524 (Closed): %I segfaults with --dump=parsetree
[ruby-core: 66343]では最適化のバグとして報告されていますが、
`--dump=parsetree` オプションを使うとSEGVするので、
r48484をバックポートしてください。
nobu (Nobuyoshi Nakada)
01:20 AM Bug #10509: [PATCH] vm_eval.c (rb_yield_splat): add missing GC guard
Backported r48417 into `ruby_2_0_0` at r48491. usa (Usaku NAKAMURA)
01:20 AM Revision 3827ce9d (git): merge revision(s) 48417: [Backport #10509]
* vm_eval.c (rb_yield_splat): add missing GC guard
[Bug #10509]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:08 AM Revision 16ba3604 (git): prelude.c.tmpl: strip prefix
* template/prelude.c.tmpl (Prelude#translate): strip VPATH prefix
from prelude names, so that srcdir diffrences do not make the
generated code diffrent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48490 b2dd03c8-39d4-4d8f-98ff...
nobu (Nobuyoshi Nakada)

11/18/2014

10:46 PM Revision 56d8b870 (git): * win32/win32.c (rb_w32_write): should set the error of
GetOverlappedResult()'s, not WriteFile()'s (it's always
ERROR_IO_PENDING, of course).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:22 PM Bug #10511: fix for #9940 causes dramatic performance regression
```
ruby 2.2.0dev (2014-11-17 trunk 48465) [i386-mswin32_110]
21.466000 0.000000 21.466000 ( 21.572857)
ruby 2.0.0p402 (2014-02-11 revision 44911) [i386-mswin32_110]
13.634000 0.000000 13.634000 ( 13.737744)
```
I try o...
ko1 (Koichi Sasada)
05:35 AM Bug #10511: fix for #9940 causes dramatic performance regression
I've tried the simple benchmark with 2.1.3 I've built myself and results are:
9.420000 0.010000 9.430000 ( 9.449823)
Than I've removed for #9940, rebuilt 2.1.3 and results are
8.200000 0.030000 8.230000 ( 8.265794)
os97673 (Oleg Sukhodolsky)
10:17 PM Revision 43a5972a (git): * gc.c (gc_record): add information for debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:17 PM Revision 4a447965 (git): * common.mk: revert r48486 because it breaks mswin build. start over.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
08:28 PM Revision 0f6015c4 (git): common.mk: remove srcdir prefix
* common.mk (PRELUDE_SCRIPTS): since tool/generic_erb.rb searches
files in VPATH, srcdir prefix is not needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:51 PM Revision 664874ce (git): * debug.c (set_debug_option): need the declaration.
* debug.c (set_debug_option): use the same macro with the implementation
at win32/win32.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:16 PM Revision 50234929 (git): parse.y: fix literal symbol list node type
* parse.y (symbol_list): fix the node type of literal symbol list
with no interpolation. [ruby-core:66343]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:33 PM Feature #10498: Make `loop` yield a counter
Franck Verrot wrote:
> Robert Klemme wrote:
> ...
No, because that is specifically designed for iterating a fixed number of times.
rklemme (Robert Klemme)
04:24 PM Feature #10498: Make `loop` yield a counter
Robert Klemme wrote:
> > [...] I wasn't able to find a way to fine-tune this based on the block's arity as mentioned previously.
> ...
I meant in C but yes, given we could have `Kernel#loop_with_index` implemented in Ruby, it would be ...
cesario (Franck Verrot)
02:47 PM Feature #10498: Make `loop` yield a counter
Franck Verrot wrote:
> Hi Robert, thanks for taking time reading the ticket.
You're welcome!
> ...
"can"!
> > We incur the cost of counting (especially when the figure leaves Fixnum space) on all infinite loops.
> ...
That see...
rklemme (Robert Klemme)
02:31 PM Feature #10498: Make `loop` yield a counter
Hi Robert, thanks for taking time reading the ticket.
Robert Klemme wrote:
> I am actually against this feature. Reason: an infinite loop does not need a counter.
Most examples I can find about it (and use personally when teach...
cesario (Franck Verrot)
03:49 PM Feature #10523: Suggestion for new Array.delete_to method
Oops, in that last code example, I meant: a.delete_to(b). garysweaver (Gary Weaver)
03:44 PM Feature #10523 (Rejected): Suggestion for new Array.delete_to method
Array's delete and delete_at return the deleted item from an array, so it would seem as though Array should allow some sort of delete method that could take a block and would return the deleted items that matched as an array.
Currentl...
garysweaver (Gary Weaver)
03:28 PM Revision 20fe728a (git): Dependencies updated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:26 PM Revision 196c8690 (git): * tool/update-deps: Sort dependencies.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:24 PM Revision 4ac7afa5 (git): * enc/encdb.c: Include internal.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:13 PM Revision 2b9191e5 (git): * internal.h: Gather declarations in non-header files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:11 PM Revision cebd7eca (git): * 2014-11-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:11 PM Revision 5cf688a5 (git): test_exception.rb: missing test
* test/ruby/test_exception.rb (test_name_error_info): add missing
test of NoMethodError and NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:58 PM Revision 714fd78f (git): * debug.c (SET_WHEN): Don't declare debug variables here.
ruby_initial_gc_stress_ptr is changed int* to VALUE* at r41406.
* internal.h (ruby_initial_gc_stress_ptr): Declared.
(ruby_enable_coredump): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48477 b2dd03c8-39d4-4d8f-98ff-823...
akr (Akira Tanaka)
01:53 PM Bug #10460: Segfault instead of stack level too deep
Was it rude to set this as "Priority: High"? A random segfault seems important but it also seems very few tickets are actually marked as high priority. plexus (Arne Brasseur)
12:52 PM Feature #10442: Helper methods to Vector class
ping Clamoris (Egunov Dmitriy)
09:10 AM Revision 8463a908 (git): * include/ruby/io.h (FMODE_WSPLIT): Removed. The write() system call
is not required to split. It was useful to avoid whole process
blocking in Ruby 1.8 but not useful since write() is invoked without
GVL.
(FMODE_WSPLIT_INITIALIZED): Ditto.
* io.c (wsplit_p): Removed.
(io_writable_length): Remov...
akr (Akira Tanaka)
01:38 AM Revision b3eaacde (git): test_module.rb: fix encoding
* test/ruby/test_module.rb (test_const_set_invalid_name): warning
message encoding depends on Encoding.default_internal.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:14 AM Bug #10479: OpenSSL not upgrading to 1.0.1j while recompiling Ruby.
no i am still not able to find an alternative. Please help me if there's any pramod-sharma (Pramod Sharma)
12:23 AM Bug #10522: SSL_VERSION not handled properly in Net::Http, OpenSSL libraries
This has become quite a problem due to POODLE and the systematic phasing out of SSLv3 support from many of the APIs we use in production.
We use the following abstracted gems that sit atop net/http & openssl:
* RestClient
* Typhoeus...
dresselm (Matt Dressel)
12:18 AM Bug #10429: Ruby 2.x exponents produce wildly varying precision for integers vs decimals
Thank you. I will add some additional thoughts. dresselm (Matt Dressel)

11/17/2014

10:22 PM Bug #10429: Ruby 2.x exponents produce wildly varying precision for integers vs decimals
Matt Dressel wrote:
> What do I need to do to get someone to look at this?
You would better show us your expectation. You are just saying something is strange. If you think it's wrong instead of just being strange, tell us how you ...
shyouhei (Shyouhei Urabe)
09:19 PM Bug #10429: Ruby 2.x exponents produce wildly varying precision for integers vs decimals
What do I need to do to get someone to look at this? dresselm (Matt Dressel)
09:16 PM Bug #10522 (Rejected): SSL_VERSION not handled properly in Net::Http, OpenSSL libraries
https://github.com/ruby/ruby/pull/762/files
While using the Faraday gem with the default net/http adapter, we are passing an explicit ssl_version to net/http, however we still received handshake warnings from the server suggesting tha...
dresselm (Matt Dressel)
09:08 PM Revision 9763fb84 (git): .gdbinit: update for r47913
* .gdbinit (rp): update for r47913. RSymbol has id, so needs mask
by scope mask.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:44 PM Feature #10498: Make `loop` yield a counter
I am actually against this feature. Reason: an infinite loop does not need a counter. We incur the cost of counting (especially when the figure leaves Fixnum space) on _all_ infinite loops. For loops that have a fixed condition on the... rklemme (Robert Klemme)
01:38 PM Feature #10498: Make `loop` yield a counter
I always thought it would be most convenient if all loops had an intrinsic counter `$i`.
trans (Thomas Sawyer)
01:12 PM Feature #10498: Make `loop` yield a counter
How about `Numeric#step`?
~~~
>> 0.step.take(3)
=> [0, 1, 2]
> ...
=> [1, 2, 3]
~~~
znz (Kazuhiro NISHIYAMA)
09:42 AM Feature #10498: Make `loop` yield a counter
> I think having loop yield a counter is very useful, but it should check #arity != 0 for backwards compatibility.
You are right. +1
funny_falcon (Yura Sokolov)
07:51 AM Feature #10498: Make `loop` yield a counter
>
> ...
If existing code passes a lambda (or anything else with argument checking), it would damage them.
I think having loop yield a counter is very useful, but it should check `#arity != 0` for backwards compatibility.
recursive-madman (Recursive Madman)
06:40 PM Revision 88212206 (git): test_inadvertent_creation.rb: split test
* test/-ext-/symbol/test_inadvertent_creation.rb: split
test_module_const_defined? from test_module_const_get, and
assertion for the latter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:23 PM Revision 358840fa (git): object.c: fix error message
* object.c (check_setter_id): show the original argument instead
of nil on TypeError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 PM Revision 78397301 (git): * 2014-11-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:20 PM Revision 4e48b642 (git): symbol.c: symbol type predicate functions
* symbol.h (is_{local,global,instance,attrset,const,class,junk}_sym):
fix ID type names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:46 PM Bug #10511: fix for #9940 causes dramatic performance regression
I was not able to achieve 4x on a simple benchmark, but the difference is quite big:

require 'benchmark'

N = 10000
RECURSION = 1000

def recurse(i)
recurse(i - 1) if i > 0
end
TraceP...
denofevil (Dennis Ushakov)
03:41 PM Bug #10485: NoMethodError "undefined method `initialize_copy'" when trying to execute Queue#dup
> Not all methods in super classes always work on all subclasses.
If a method that works on a superclass doesn't work on a subclass, I would expect the subclass to at least mark it as `private` and definitely not segfault.
recursive-madman (Recursive Madman)
11:18 AM Revision aed7a09a (git): ext/win32ole/win32ole_event.c: use typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e suke (Masaki Suketa)
03:55 AM Revision d35a2bd4 (git): * lib/rubygems/*, test/rubygems/*: Update to RubyGems 2.4.4
master (2f6e42e).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:42 AM Revision 1133596e (git): timeout.rb: same object across fiber
* lib/timeout.rb (Timeout::ExitException.catch): do not freeze the
exception for tag, so that the same object can be passed to the
target fiber without duplication to attach backtrace at raise.
git-svn-id: svn+ssh://ci.ruby-lang.org...
nobu (Nobuyoshi Nakada)

11/16/2014

09:13 PM Revision 0884d0b9 (git): proc.c: fix method proc binding location
* proc.c (proc_binding): use the original iseq on a binding from
proc from method object to get the location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:11 PM Revision 85ba5168 (git): string.c: escape a backslash [ci skip]
* string.c (rb_str_count): [DOC] add a backslash to escape a
backslash itself. [ruby-core:66321]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:17 PM Revision d312b467 (git): * 2014-11-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:17 PM Revision 6f752799 (git): proc/receiver.c: commit miss
* ext/-test-/proc/receiver.c: wrapper for rb_current_receiver.
[Feature #10195]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:55 PM Bug #10520 (Closed): Resolv fails on additional resources when quering address records
This works:
~~~
Resolv::DNS.open(nameserver: ['8.8.8.8'] ) { |dns| dns.getresources('wikileaks.org', Resolv::DNS::Resource::IN::A) }
~~~
This fails:
~~~
Resolv::DNS.open(nameserver: ['217.219.179.10'] ) { |dns| dns.getresourc...
corny (Mr Corn)
02:22 PM Bug #10475: Array#flatten should not accept a nil argument
`flatten` also accepts `Float` values, apparently using `to_i` (aka. `truncate`) to convert to `Integer`.
arr.flatten(0.9)
=> [1, [2, [3, [4, 5]]]]
arr.flatten(1.1)
=> [1, 2, [3, [4, 5]]]
arr.flatten(-0.9)
...
jaredbeck (Jared Beck)
12:39 PM Bug #10518: String "delete" method does not remove some characters from input string
Sorry, I did not realize the dash character stays for range and, as such, must be escaped.
This is probably convenient in some cases, however it might be "dangerous" in other circumstances.
Anyway, this is the way Ruby works, so I thin...
sergio.gallelli (Sergio Gallelli)
12:21 PM Bug #10518: String "delete" method does not remove some characters from input string
Aha, the code tags do not appear here on bugs.ruby-lang.org, but if you click on the
link above at:
http://www.ruby-doc.org/core-2.1.4/String.html#method-i-count
then you can see them.
shevegen (Robert A. Heiler)
12:20 PM Bug #10518: String "delete" method does not remove some characters from input string
I looked at the String#count documentation:
http://www.ruby-doc.org/core-2.1.4/String.html#method-i-count
Allow me to copy paste from it:
"Each other_str parameter defines a set of characters to count. The intersection of these ...
shevegen (Robert A. Heiler)
12:18 PM Bug #10518: String "delete" method does not remove some characters from input string
sergio.gallelli@gmail.com wrote:
> irb(main):001:0> str = 'A-B'
> => "A-B"
> irb(main):002:0> str.delete ' -#'
> => "A-B"

' -#' is interpreted as: range of characters from ' ' (space) to '#'.
See String#count documentation

I ...
normalperson (Eric Wong)
12:18 PM Bug #10518: String "delete" method does not remove some characters from input string
need to escape the -
irb(main):001:0> str = 'A-B'
=> "A-B"
irb(main):002:0> str.delete ' \\-#'
=> "AB"
because with ' -#' i think you cant to remove from " " to "#"
Hanmac (Hans Mackowiak)
11:39 AM Bug #10518 (Rejected): String "delete" method does not remove some characters from input string
This bug affects all Ruby versions I tried, i.e. 2.0.0 and 2.1.4 on Windows and 2.1.5 on Linux
In some cases the String "delete" method does not remove all the characters from the input string I ask for removal.
The problem seems to de...
sergio.gallelli (Sergio Gallelli)
12:34 PM Feature #10519: TLS Renegotiation
Also implemented in python at: http://pythonhosted.org//pyOpenSSL/api/ssl.html#OpenSSL.SSL.Connection.renegotiate bararchy (Bar Hofesh)
12:24 PM Feature #10519 (Open): TLS Renegotiation
Hello,
It seems that the ability to force renegotiation as a client is missing or not exposed.
The ability is implemented in OpenSSL's s_client as the "R" character when the connection is established.
It will be great if that can b...
bararchy (Bar Hofesh)
10:52 AM Feature #10498: Make `loop` yield a counter
~~~
> LOOP = 2**1000
=> 107150860718626732094842504906000181056140481170553360744375038837035105112493612249319837881569585812759467291755314682518714528569231404359845775746985748039345677748242309854210746050623711418779541821530464...
funny_falcon (Yura Sokolov)
10:48 AM Feature #10498: Make `loop` yield a counter

~~~
> loop.with_index.take(10)
=> [[nil, 0], [nil, 1], [nil, 2], [nil, 3], [nil, 4], [nil, 5], [nil, 6], [nil, 7], [nil, 8], [nil, 9]]
> ...
0
=> nil
~~~
funny_falcon (Yura Sokolov)
10:38 AM Revision de870875 (git): vm_eval.c: rb_current_receiver
* vm_eval.c (rb_current_receiver): new function to return the
receiver in the current control frame. [Feature #10195]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:11 AM Feature #10195 (Closed): Alternative to rb_proc_new that provides access to self, super and passed block
Applied in changeset r48461.
----------
ext/-test-/proc/super.c: rename
* ext/-test-/proc/super.c: renamed the file and maker method.
[Feature #10195]
nobu (Nobuyoshi Nakada)
10:11 AM Revision b1acfbc1 (git): ext/-test-/proc/super.c: rename
* ext/-test-/proc/super.c: renamed the file and maker method.
[Feature #10195]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:11 AM Revision f45e0d53 (git): timeout.rb: use UncaughtThrowError
* lib/timeout.rb (Timeout::ExitException#exception): rescue
UncaughtThrowError which is specific for throw, instead of
ArgumentError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:28 AM Feature #10423: [PATCH] opt_str_lit*: avoid literal string allocations
Updated 2/2 in patch series, 1/2 unchanged:

1. http://80x24.org/spew/m/opt_str_lit-v8-prepare@0.txt
(allow disabling existing optimizations) [unchanged]

2. http://80x24.org/spew/m/opt_str_lit-v9@1.txt
Changes since -v8:
...
normalperson (Eric Wong)
09:22 AM Revision 5b85fbd9 (git): tool/update-deps: warning to disable ccache
I spent several minutes wondering why -save-temps=obj was
not taking effect, hopefully this saves somebody else the
trouble.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong
08:33 AM Revision e1360344 (git): vm_eval.c: define IDs
* vm_eval.c (Init_vm_eval): define :tag and :value in advance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:33 AM Revision c01aaf60 (git): id.def: move IDs for exception
* defs/id.def: add :mesg and :exception and move from other
sources.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:13 AM Bug #10223 (Closed): Stack level too deep in CSV when parsing long line
nobu (Nobuyoshi Nakada)
05:20 AM Bug #10517 (Third Party's Issue): segfault in yajl-ffi while running tests
Occurred in a library using ffi.
You should report to ffi-yajl.
nobu (Nobuyoshi Nakada)
03:11 AM Bug #10517 (Third Party's Issue): segfault in yajl-ffi while running tests
Running my tests I got this stack segfault.
```
/home/gregf/.bundles/knife-digital_ocean/ruby/2.1.0/gems/ffi-yajl-1.2.0/lib/ffi_yajl/parser.rb:63: [BUG] Segmentation fault at 0x00000000000014
ruby 2.1.5p273 (2014-11-13 revision 4840...
gregf (Greg Fitzgerald)
04:42 AM Feature #10510: Remove REXML instead of patching it
What about gem-ification of rexml and allow patches be distributed as gems that can be updated?
(like default gems: json, psych, etc)
I think the introduction of default gem for rexml falls into minor version changes and will allow...
luislavena (Luis Lavena)
04:38 AM Feature #10510: Remove REXML instead of patching it
I believe semantic versioning prevents doing this until Ruby 3 is released (many years from now) but I agree that this issue should be added to the Ruby 3 roadmap. sferik (Erik Michaels-Ober)
04:12 AM Revision 30a5ce73 (git): * common.mk (CCAN_LIST_INCLUDES): Unused variable removed.
(ENCODING_H_INCLUDES): Ditto.
(PROBES_H_INCLUDES): Ditto.
(VM_CORE_H_INCLUDES): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:09 AM Revision e96274f6 (git): test/ruby/test_io.rb: remove unnecessary begin/end
Unnecessary since r47422 when the "rescue IOError" clause
was removed.
* test/ruby/test_io.rb (test_readpartial_locktmp):
remove unnecessary begin/end
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48455 b2dd03c8-39d4-4d8f-98ff-82...
Eric Wong
02:06 AM Revision f4330f7f (git): Revert r48450.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
 

Also available in: Atom