Project

General

Profile

Activity

From 11/13/2014 to 11/19/2014

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)

11/15/2014

10:48 PM Feature #10423: [PATCH] opt_str_lit*: avoid literal string allocations
2 patch series:

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

2. http://80x24.org/spew/m/opt_str_lit-v8@1.txt
(enable new optimizations)

Changes since -v7:

* opt_s...
normalperson (Eric Wong)
06:51 PM Bug #10476: String.strip remove characters different than pure whitespace
How about something like this? Anonymous
04:17 PM Bug #10479: OpenSSL not upgrading to 1.0.1j while recompiling Ruby.
As Pramod said, `--with-openssl-dir` is not an option in 1.9.3.
./configure --with-openssl-dir=/usr/local/Cellar/openssl/1.0.1j
configure: WARNING: unrecognized options: --with-openssl-dir
I'm not sure when that option was added, ...
jaredbeck (Jared Beck)
03:46 PM Revision 2a87fded (git): * common.mk: Specify dependencies for generated C sources.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:33 PM Revision c2e08274 (git): add an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:09 PM Revision 1073e5d0 (git): * 2014-11-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:08 PM Revision 32dc9e46 (git): * common.mk: parse.o depends on parse.y before parse.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:23 PM Feature #10480: Allow a catch-all approach to capture throws and rethrow them in a separate context
Thank you, Nobu! rosenfeld (Rodrigo Rosenfeld Rosas)
07:28 AM Feature #10480 (Closed): Allow a catch-all approach to capture throws and rethrow them in a separate context
Applied in changeset r48433.
----------
vm_eval.c: UncaughtThrowError
* vm_eval.c (rb_throw_obj): throw UncaughtThrowError instead of
ArgumentError. [Feature #10480]
nobu (Nobuyoshi Nakada)
02:11 PM Revision 6afabcb4 (git): * common.mk: No need to declare dependencies which
will be detected by inference rules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:06 PM Bug #10514 (Feedback): webrick fails with connection error when checking if socket is closed
The socket is not closed.
Errno::ECONNRESET is caused by a system call.
It is not possible if the socket is already closed.
"[2014-11-14 23:36:06]" is a header of webrick log.
So, webrick rescue the exception and logged it.
I ...
akr (Akira Tanaka)
12:39 PM Feature #10498: Make `loop` yield a counter
Franck Verrot wrote:
> I might have overlooked them, but I can't find any reference to any other`*_with_index` method than `each_with_index`. Are they in Ruby core or in an external gem?
`each_with_index` does exist, but concerning `...
joffreyjaffeux (Joffrey Jaffeux)
12:29 PM Revision 9f4ab1c6 (git): * test/rexml/test_document.rb: Indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
11:49 AM Revision 7cd76ab0 (git): * internal.h: Include ruby.h and ruby/encoding.h to be
includable without prior inclusion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:47 AM Revision 64f9f1ba (git): * test/rexml/test_document.rb
(REXMLTests::TestDocument::EntityExpansionLimitTest):
Group tests by general entity and parameter entity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
11:45 AM Revision a38971c5 (git): * test/rexml/test_document.rb
(REXMLTests::TestDocument::EntityExpansionLimitTest): Define
test XML in each test method because (1) each XML in used only
one test and (2) related data and code should be close.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4...
Sutou Kouhei
11:40 AM Revision a5406b87 (git): * test/rexml/test_document.rb
(REXMLTests::TestDocument::EntityExpansionLimitTest):
Use one test method for one test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
11:30 AM Revision a895babb (git): Modify parts only marked as autogenerated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:17 AM Revision a4a2fbdf (git): * test/rexml/test_document.rb
(REXMLTests::TestDocument::EntityExpansionLimitTest): Use
setup and teardown instead of ensure in test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
11:14 AM Revision dd547e1b (git): Mark auogenerated part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:13 AM Revision 9fb2d21d (git): * test/rexml/test_document.rb
(REXMLTests::TestDocument::EntityExpansionLimitTest): Indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
11:12 AM Revision f2588e1c (git): * test/rexml/test_document.rb (REXMLTests::TestDocument): Group
entity expansion limit related tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
11:09 AM Revision 1e326bb0 (git): * test/rexml/test_document.rb (REXMLTests::TestDocument::BomTest):
Fix wrong parent class. It doesn't need inherit tests in
TestDocument class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Sutou Kouhei
10:51 AM Revision 46ce7c43 (git): * lib/mkmf.rb (depend_rules): support comments during a line.
* lib/mkmf.rb (depend_rules): apply RULE_SUBST even if the dependency
file contains path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:46 AM Revision c93dd36e (git): revert previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
10:43 AM Revision b5cda0ff (git): * lib/mkmf.rb (depend_rules): support comments during a line.
* lib/mkmf.rb (depend_rules): apply RULE_SUBST even if the dependency
file contains path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
10:28 AM Revision 57682b05 (git): * common.mk: Remove comments in Dependency lines.
Notified by usa.
* enc/depend: Ditto.
* ext/**/depend: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:28 AM Revision 558b9191 (git): vm_eval.c: UncaughtThrowError
* vm_eval.c (rb_throw_obj): throw UncaughtThrowError instead of
ArgumentError. [Feature #10480]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:55 AM Bug #10483 (Feedback): Latest Ruby 2.1.4 update introduced backwards incompatible change related to boolean evaluation
nobu (Nobuyoshi Nakada)
05:16 AM Revision abd5ba5a (git): * 2014-11-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:15 AM Revision 8727eb77 (git): * tool/update-deps: Extend to fix dependencies.
* common.mk: Dependencies updated by tool/update-deps.
* enc/depend: Ditto.
* ext/**/depend: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)

11/14/2014

11:52 PM Bug #10514 (Closed): webrick fails with connection error when checking if socket is closed
In this version and previous
/usr/local/rvm/rubies/ruby-2.1.3/lib/ruby/2.1.0/webrick/httpserver.rb
If the socket is closed early then the sock.eof? fails with a connection reset error
80 raise HTTPStatus::EOFError if ...
digininja (Robin x)
11:35 PM Feature #10498: Make `loop` yield a counter
Martin Dürst wrote:
> Shouldn't the version of loop that yields a number be called loop_with_index, to correspond with others such as each_with_index, map_with_index, and so forth? Maybe with a little bit of magic, that can be made to h...
cesario (Franck Verrot)
10:42 PM Feature #10498: Make `loop` yield a counter
I agree with Martin, this should be Kernel#loop_with_index phluid61 (Matthew Kerwin)
10:28 PM Feature #10498: Make `loop` yield a counter
Marc-Andre Lafortune wrote:
> Chris Seaton wrote:
> ...
This indeed was a mistake, I've re-submitted a new patch.
So now the counter starts at 0 and will eventually become a Bignum when bigger than FIXNUM_MAX.
cesario (Franck Verrot)
11:34 PM Bug #10512 (Rejected): Time.at produces imprecise nsec values
It is because the float value 0.0000002 is less than 0.0000002.
```
% ruby -e 'p((Rational(0.0000002) * 1000000000).floor)'
199
```
Time records 0.0000002 as Rational(0.0000002).
It is the most precious record according to the ...
akr (Akira Tanaka)
07:19 PM Bug #10512 (Rejected): Time.at produces imprecise nsec values
I'm working on improving JRuby parity with MRI, and I've found what I think is a bug in MRI and its test suite. test_time.rb, in test_at asserts:
assert_equal(199, Time.at(0.0000002).nsec)
This passes under MRI, but fails under...
cheald (Chris Heald)
10:29 PM Misc #10513 (Assigned): instance_eval yields the receiver, but is documented to yield no arguments
instance_eval yields the receiver, but is documented as yielding no arguments.
I searched the bug reports before writing this up and found bug #2476 which was closed with a message that contained "instance_eval yields the receiver in ...
ctm (Cliff Matthews)
04:24 PM Bug #10488: Consistency of Module#const_defined? and constant lookup
Regarding the first point, here `const_defined?` is consistent with `const_get`:
```ruby
X = 1
Module.new.const_get(:X) #=> 1
```
In general the constants API seems to be "closer" to the algorithm that resolves constant names th...
fxn (Xavier Noria)
01:31 PM Bug #10511: fix for #9940 causes dramatic performance regression
Thank you for your report.
Could you make small benchmark program to debug it?
ko1 (Koichi Sasada)
01:13 PM Bug #10511 (Closed): fix for #9940 causes dramatic performance regression
Originally reported against debase gem (https://github.com/denofevil/debase/issues/16)
After fix for #9940 running anything under debugger became about 4 times slower.
I've verified that we I revert the fix performance is restored.
To...
os97673 (Oleg Sukhodolsky)
12:42 PM Feature #10508: Return enumerator in TSort iterators
If you mean these .to_a calls, i have created dummy benchmark: https://gist.github.com/Ptico/a16a5fe221de91166c31 and it looks good ptico (Andrey Savchenko)
02:07 AM Feature #10508: Return enumerator in TSort iterators
Unnecessary Enumerator slows the performance down. nobu (Nobuyoshi Nakada)
12:27 AM Feature #10508: Return enumerator in TSort iterators
Looks good. marcandre (Marc-Andre Lafortune)
10:08 AM Revision 03bbcf01 (git): fix typos and spaces [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:08 AM Revision 3cb9b550 (git): add missing filename [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
10:08 AM Revision bedd96fa (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:05 AM Bug #10229: RFC 5649 implementation in OpenSSL breaks Ruby.
Hi Martin, any change you can take a look into this? vo.x (Vit Ondruch)
08:37 AM Revision a73d8cd1 (git): * tool/update-deps: Support GNU Make 4.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:17 AM Revision 8ef4bdcd (git): I'm not good at English, but try to accept your hope.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
07:59 AM Revision 7a699d8b (git): gc.c: check arguments
* gc.c (default_proc_for_compat_func): check arguments number and
type, and get rid of reentering this default proc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:35 AM Revision a84b2a6a (git): * gc.c (gc_stat_internal): support comatible layer for
GC.stat(symbol) type acess.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:29 AM Feature #9924 (Closed): Revisitting GC.stat keys
Applied in changeset r48423.
----------
* gc.c (gc_stat_internal): add compatible layer.
From Ruby 2.2, keys of GC.stat are changed [Feature #9924].
To provide compatible layer, GC.stat add a default_proc
(if default_proc of given...
ko1 (Koichi Sasada)
07:29 AM Revision 5d5c95f2 (git): * gc.c (gc_stat_internal): add compatible layer.
From Ruby 2.2, keys of GC.stat are changed [Feature #9924].
To provide compatible layer, GC.stat add a default_proc
(if default_proc of given Hash object is not set).
At first use of this compatible layer of interpreter process,
...
ko1 (Koichi Sasada)
06:55 AM Revision ab157670 (git): id.def: attrset
* defs/id.def: add attrset IDs, which no longer shares serial
numbers with local name IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:03 AM Revision b2acfab2 (git): * NEWS: mention about IO#nonblock_{read,write} of Windows' pipe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
03:38 AM Revision 2eefb48f (git): proc.c: adjust argument type
* proc.c (proc_new): adjust `is_lambda` argument type to
`rb_vm_make_proc_lambda` to suppress a warning by VC6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:13 AM Misc #10502 (Closed): Removing obsolete prot_tag comment
nobu (Nobuyoshi Nakada)
02:11 AM Feature #10426: A predicate to express congruence
How about `similar?` or `analog?` ? nobu (Nobuyoshi Nakada)
02:08 AM Feature #10510 (Closed): Remove REXML instead of patching it
There have been at least 3 rexml vulerabilities to date,
having to patch ruby just to make sure it's not being used is taking a lot
of time/effort.

Afaik most people do not use xml anyway (and especially not rexml), just
for ...
grosser (Michael Grosser)
02:00 AM Misc #10500 (Rejected): Improve Pathname.glob documentation
nobu (Nobuyoshi Nakada)
01:44 AM Revision 4314ded8 (git): * gc.c: guard by #if/#endif with GC_ENABLE_INCREMENTAL_MARK
to hide unused codes.
* gc.c: similar to GC_ENABLE_LAZY_SWEEP.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
01:23 AM Revision c5f8d9c9 (git): vm_eval.c (rb_eval_cmd): use pre-defined idCall
No need to use rb_intern, here. Reduces size slightly on x86-64:
$ ~/linux/scripts/bloat-o-meter ruby.before ruby.after
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31 (-31)
function old new de...
Eric Wong
12:26 AM Bug #10509 (Closed): [PATCH] vm_eval.c (rb_yield_splat): add missing GC guard
Applied in changeset r48417.
----------
vm_eval.c (rb_yield_splat): add missing GC guard
Nobody uses this function in our source tree, but maybe this
bug is triggered by certain C extensions.
[Bug #10509]
Anonymous
12:24 AM Bug #10509 (Closed): [PATCH] vm_eval.c (rb_yield_splat): add missing GC guard
Nobody uses this function in our source tree, but maybe this
bug is triggered by certain C extensions.
normalperson (Eric Wong)
12:26 AM Revision f0208a89 (git): vm_eval.c (rb_yield_splat): add missing GC guard
Nobody uses this function in our source tree, but maybe this
bug is triggered by certain C extensions.
[Bug #10509]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Eric Wong

11/13/2014

11:12 PM Revision 30a69a59 (git): * gc.c: fix build error caused by implicit conversion with clang.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
09:55 PM Feature #10501 (Closed): [PATCH] insns.def (opt_succ): remove Time#succ optimization
Applied in changeset r48415.
----------
insns.def (opt_succ): remove Time#succ optimization
Time#succ is a deprecated method and not frequently used, so this wastes
icache in vm_exec_core. Using bloat-o-meter in the Linux kernel sourc...
Anonymous
04:27 PM Feature #10501: [PATCH] insns.def (opt_succ): remove Time#succ optimization
+1
ko1 (Koichi Sasada)
09:55 PM Revision 6c0a375c (git): insns.def (opt_succ): remove Time#succ optimization
Time#succ is a deprecated method and not frequently used, so this wastes
icache in vm_exec_core. Using bloat-o-meter in the Linux kernel source
to shows a small reduction on my x86-64 system:
$ ~/linux/scripts/bloat-o-meter ruby.before...
Eric Wong
09:08 PM Feature #10508 (Closed): Return enumerator in TSort iterators
Return an Enumerator if no block is given for:
* TSort.tsort_each
* TSort.each_strongly_connected_component
* TSort.each_strongly_connected_component_from
ptico (Andrey Savchenko)
08:31 PM Revision 97c2eac2 (git): * gc.c: refactoring.
* gc.c: use GC_ENABLE_INCREMENTAL_MARK instead of USE_RINCGC.
* gc.c (gc_start): check FORCE_MAJOR_GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
08:16 PM Revision b887f4fb (git): * gc.c: Tuning RincGC parameters.
Before this patch, gc_marks_step() marks (white -> grey) fixed
number objects. However, this strategy does not fit practical
cases, for example too slow to make progres.
This patch changes this strategy how many objects the
gc_ma...
ko1 (Koichi Sasada)
06:22 PM Bug #10507: URI Error: bad URI(is not URI?) in Ruby 2.0.0, 2.1.5, 2.2.0preview1
Encode + URI + open.
```
ruby -v -ruri -e "open(URI(URI.encode 'http://localhost:3000/?url=google.com&clipRect={"top":0,"left":0,"width":1050,"height":700}'))"
ruby 2.0.0p598 (2014-11-13) [x86_64-darwin13.3.0]
-e:1:in `<main>': war...
JuanitoFatas (Juanito Fatas)
06:08 PM Bug #10507 (Closed): URI Error: bad URI(is not URI?) in Ruby 2.0.0, 2.1.5, 2.2.0preview1
This url is used to get a screenshot from a [web service](https://github.com/fzaninotto/screenshot-as-a-service) and specify the dimensions.
### Ruby 2.0.0p598
```
ruby -v -ruri -e "URI 'http://localhost:3000/?url=google.com&cli...
JuanitoFatas (Juanito Fatas)
05:52 PM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
@Nobuyoshi Nakada san, @ Recursive Madman san, @Shota Fukumori san.
I'm honored to get such nice comments, thank so much.
OK, I'm not sure I'll use `["RUBY", "Ruby"].map(&:downcase).inject(:==)` or `%w(RUBY Ruby).map(&:downcase).uniq...
gogotanaka (Kazuki Tanaka)
12:04 PM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
I think this is actually a duplicate of #10426 except the method name.
Why did you create another ticket instead of adding a comment to that ticket?
--
Yusuke Endoh <mame@ruby-lang.org>
mame (Yusuke Endoh)
08:34 AM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
`%w(RUBY Ruby).map(&:downcase).uniq.size == 1` covers multiple elements, but note that the original proposal doesn't cover such situation. sorah (Sorah Fukumori)
08:27 AM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
Nobuyoshi Nakada wrote:
> You can write:
> ...
In my opinion this is not a nice use of `inject`, since it won't work for arrays with > 2 elements.
recursive-madman (Recursive Madman)
08:16 AM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
You can write:
~~~ruby
["RUBY", "Ruby"].map(&:downcase).inject(:==)
~~~
nobu (Nobuyoshi Nakada)
03:35 AM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
@Shota Fukumori san
ok. I know you prefer later one.
And there are some people(included me) who prefer former one.
I never mention that which is minority or majority, but we can think about supporting both.
As far as I know, Ruby h...
gogotanaka (Kazuki Tanaka)
03:16 AM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
At least for me, later one: `func(obj1.method1.method2) == func(obj2.method1.method2)` is better. sorah (Sorah Fukumori)
03:04 AM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
@Shota Fukumori san
Thank you for your comment :)
I got your point, as you said `a % 2 == b % 2` is tottaly obvious for anybody,
On the other hand, `a.eql?(b) { |n| n % 2 }` looks little bit strange.
(note: I belive `a.eql?(b) {...
gogotanaka (Kazuki Tanaka)
02:21 AM Feature #10505: [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
This syntax helps writability but hard to read. We'll have to know that eql? takes an block and behaves like so...
IMO, I don't like such shorthand supports *only* writability.
sorah (Sorah Fukumori)
12:31 AM Feature #10505 (Open): [PATCH 2/n] 同相条件を扱いたい./Object#eql? with block. (ja/en)
English follows japanese
## 文脈
両辺に同じ処理を施してその同値性を確かめたいという場面は往々にしてあると思います.
```ruby
a % 2 == b % 2
a.abs == b.abs
"RUBY".downcase == "Ruby".downcase
```
この際、施す処理を両辺に書くのは嫌だというのが今回のチケットの主たるモチベーションになります.
特に長い処理ともなると尚更だと思...
gogotanaka (Kazuki Tanaka)
04:32 PM Revision 5a79fda5 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:32 PM Bug #10112 (Closed): NET::IMAP fails to parse uid_search/search response with MODSEQ search criteria
Applied in changeset r48411.
----------
* lib/net/imap.rb (search_response): parse MODSEQ in SEARCH
responses properly. [ruby-core:64203] [Bug #10112]
shugo (Shugo Maeda)
04:32 PM Revision 772e9778 (git): * lib/net/imap.rb (search_response): parse MODSEQ in SEARCH
responses properly. [ruby-core:64203] [Bug #10112]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:23 PM Bug #10412: DNS Resolv broken when resolv.conf has option ndots > 1
Hi,
This should be a simple fix with the noted patch; is it possible for someone to have a look and see if it's fit for inclusion?
Thank you!
fmhirtz (Frank Hirtz)
04:06 PM Revision e84e56db (git): * 2014-11-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:05 PM Revision fb2008a7 (git): * test/lib/envutil.rb: Moved from test/ruby/.
* test/lib/find_executable.rb: Ditto.
* test/lib/memory_status.rb: Ditto.
* test/lib/test/unit.rb: require envutil.
* test/: Don't require envutil in test files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4...
akr (Akira Tanaka)
03:26 PM Feature #10506 (Rejected): Imprve Enumerator.any? behavior
In other words, any? already has behavior when there is no block:
It uses an identity block { |e| e } as said in the documentation.
So it checks if there is any truthy member in the enumerable.
Changing it is unbearable for compatib...
Eregon (Benoit Daloze)
02:21 PM Feature #10506: Imprve Enumerator.any? behavior
It probably should have returned an enumerator, but that wasn't as systematic then.
The problem with your proposal is breaking compatibility. I'm quite certain this will be rejected, but I'll let Matz do it.
In the meantime, know t...
marcandre (Marc-Andre Lafortune)
12:40 PM Feature #10506 (Rejected): Imprve Enumerator.any? behavior
IMHO the API `Enumerable.any?` behavior could be improved in the following manner:
any? { |obj| block } → true or false
any? → an_enumerator
This would allow to do things like
[].any?.with_index { |obj, index| }
...
thomas.sevestre (Thomas Sevestre)
01:39 PM Revision 23ccbdf5 (git): merge revision(s) 48402:
* lib/rexml/document.rb: add REXML::Document#document.
reported by Tomas Hoger <thoger@redhat.com> and patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@48406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:36 PM Revision e6561ee1 (git): merge revision(s) r48402:
* lib/rexml/document.rb: add REXML::Document#document.
reported by Tomas Hoger <thoger@redhat.com> and patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@48404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:35 PM Revision d6ea8d18 (git): merge revision(s) 48402:
* lib/rexml/document.rb: add REXML::Document#document.
reported by Tomas Hoger <thoger@redhat.com> and patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:29 PM Revision 2e8f953d (git): * lib/rexml/document.rb: add REXML::Document#document.
reported by Tomas Hoger <thoger@redhat.com> and patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:04 PM Revision b19c39f9 (git): * test/monitor/test_monitor.rb: Use assert_join_threads.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:46 PM Revision 3864eb82 (git): * test/openssl: Don't specify port number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:28 PM Revision 1e502d2a (git): * test/openssl/ssl_server.rb: Unused file removed.
It is not used since r16111, Ruby 1.9.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
12:27 PM Misc #10500: Improve Pathname.glob documentation
My bad! I didn't know about this syntax. This usage here makes perfect
sense, because `/*` wouldn't be allowed in the actual C comment for
this method.
None of my other suggested changes are relevant or useful.
Please close this is...
tj (Thibault Jouan)
07:41 AM Misc #10500: Improve Pathname.glob documentation
~~~
"config/" "*.rb"
~~~
Is in fact valid syntax, and equivalent to
~~~
"config/*.rb"
~~~
recursive-madman (Recursive Madman)
09:51 AM Bug #10504 (Assigned): Gracefully handle CSV IO file descriptor problems
nobu (Nobuyoshi Nakada)
12:14 AM Bug #10504 (Closed): Gracefully handle CSV IO file descriptor problems
This patch allows `CSV.open` to more gracefully handle user error. Because the IO object is passed to the user-provided block it's entirely possible the IO object can be closed before the block finishes. This would raise an error in the ... jackdanger (Jack Danger)
09:50 AM Revision 07da5b29 (git): eval.c: obsolete comment [ci skip]
* eval.c (rb_ensure): remove obsolete prot_tag comment. patch by
Jack Danger at [ruby-core:66238]. [misc #10502]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:31 AM Bug #10427: The WebKit of QtRuby crashed
I've got a feeling this has more to do with the gem than it does with Ruby itself.
Typically, that issue occurs whenever you call ruby code from a non-Ruby created thread.
superdealloc (Andre Medeiros)
09:10 AM Revision 2a754a73 (git): proc.c: make lambda directly
* vm.c (rb_vm_make_proc_lambda): similar to rb_vm_make_proc() with
is_lambda argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:01 AM Feature #9528: mathn.rb library
I wasn't aware of the existence of the gamma function before reading Your comment. I guess I got a bit smarter due to Your comment. Thank You for that. :-)
According to some sources, including the
http://mathworld.wolfram.com/G...
martin_vahi (Martin Vahi)
05:31 AM Revision 787b98e3 (git): * test/bigdecimal/test_bigdecimal.rb: Add test for mult by nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e headius (Charles Nutter)
04:28 AM Feature #10423: [PATCH] opt_str_lit*: avoid literal string allocations
normalperson@yhbt.net wrote:
> But I am thinking of trying an entirely different approach to this
> optimization (also able to target non-cfunc)

I had an idea to do lazy/late rb_str_resurrect before ci->call by
defining + settin...
normalperson (Eric Wong)
03:44 AM Revision d21daa2b (git): internal.h: define
* internal.h (STATIC_ASSERT): fix missing preprocessor directive.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:18 AM Revision e9885185 (git): * rb_w32_fstat{,i64}: speed up. adjuting timestamps in this function
is to get rid of the side effect of ENV["TZ"]. then, if ENV["TZ"] is
not set, no need to adjust. this change makes File#stat about 60%
faster.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48394 b2dd03c8-39d4-4d8f-98ff-823fe6...
U.Nakamura
02:56 AM Revision 54af8757 (git): internal.h: STATIC_ASSERT
* st.c: include "internal.h" for STATIC_ASSERT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:44 AM Feature #10498: Make `loop` yield a counter
Shouldn't the version of loop that yields a number be called loop_with_index, to correspond with others such as each_with_index, map_with_index, and so forth? Maybe with a little bit of magic, that can be made to happen? duerst (Martin Dürst)
12:06 AM Feature #10503 (Open): introduce InvalidPercentEncoding error for failed URI parsing
Currently an ArgumentError is raised if a URI has an invalid percent encoding. This makes it difficult to rescue safely. Here I'm adding a patch to introduce an InvalidPercentEncoding error that would help applications rescue and handle ... jackdanger (Jack Danger)
 

Also available in: Atom