Project

General

Profile

Activity

From 10/05/2016 to 10/11/2016

10/11/2016

08:18 PM Feature #6284: Add composition for procs
Alexander Moore-Niemi wrote:
> Paul: what's the performance of your `compose`? If I have time later I can use https://github.com/mooreniemi/graph-function to try and see.
I ran the following benchmark with benchmark-ips:
~~~
requ...
mudge (Paul Mucur)
07:48 PM Feature #12810: Improve `Set#find_index` performance
Quoting the first line of http://ruby-doc.org/stdlib-2.3.1/libdoc/set/rdoc/Set.html:
> Set implements a collection of unordered values
This would mean the set {1,2,3} is exactly the same as the sets {1,3,2}, {2,1,3}, {2,3,1}, {3,1,...
herwin (Herwin W)
07:31 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
About the suggestions by Shyouhei Urabe: even though option 2 is very pragmatic (it solves the problem, keeps backwards compatibility and is a small change), the idea of the following code looks a bit off to me:
~~~ruby
str.gsub!(/\[...
herwin (Herwin W)
07:21 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
As reference: the e-mail Akira Tanaka mentioned can be found at http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/33553, or with a pretty terrible translation to English at https://translate.google.com/translate?sl=ja&tl=en&u=ht... herwin (Herwin W)
03:24 PM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
Shyouhei Urabe wrote:
>
> ...
Surprisingly, it may be possible.
```
% ruby -e '
p "abc".gsub(/b/) {|str| "(#{str})" }
String.prepend Module.new {
def gsub(*args)
super(*args) {|str| yield str, $~ }
end
}
p "abc".gsu...
akr (Akira Tanaka)
11:29 AM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
We looked at this issue in developer meeting today.
While matz's suggestion of new method was excavated from the past, myself and others argued possibility of extending the gsub method that exists today. Proposals include:
1. what...
shyouhei (Shyouhei Urabe)
08:54 AM Feature #12745: String#(g)sub(!) should pass a MatchData to the block, not a String
matz's old idea: add String#sg (or String#gs).
ruby-dev:33553
akr (Akira Tanaka)
06:45 PM Bug #12832 (Closed): Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
~~~ ruby
module Foo
private
def foo
"foo"
end
end
class Bar
extend Foo
class << self
public :foo
end
end
Bar.foo # => "foo"
Bar.method(:foo) # => #<Method: Class(Bar)#foo>
module Baz
end
c...
floehopper (James Mead)
06:36 PM Feature #9704: Refinements as files instead of modules
Shugo Maeda wrote:
> Monkey-patching style has another problem that super cannot be supported in monkey patching.
> ...
That last line just clicked with me, and I see old problem. This only works at one level. How would one write a ref...
trans (Thomas Sawyer)
06:15 PM Feature #12775: Random subset of array
This definition of `#sample` seems a bit limited. I know it aligns with the statical definition but it is very easy do another way: `shuffle.take(n)`. Also, the interface is a little odd because it can return an element or an Array. Mayb... trans (Thomas Sawyer)
05:29 PM Bug #12830: OpenSSL 1.1.0+ support?
Let me quote one paragraph:
> We do not want to keep 1.0.2 devel around as that could make it to look like the 1.0.2 is still fully "supported" in Fedora and there would be no incentive to switch to 1.1.0.
That basically means what...
vo.x (Vit Ondruch)
03:07 PM Bug #12830: OpenSSL 1.1.0+ support?
The upstream of ext/openssl (and the current Ruby trunk) supports OpenSSL 1.1.0 (#12324), but at the same time it dropped support for OpenSSL < 0.9.8. Since adding support for OpenSSL 1.1.0 was a non-trivial work due to the low compatibi... rhenium (Kazuki Yamaguchi)
01:12 PM Bug #12830 (Assigned): OpenSSL 1.1.0+ support?
hsbt (Hiroshi SHIBATA)
01:10 PM Bug #12830 (Closed): OpenSSL 1.1.0+ support?
What is the plan with OpenSSL 1.1.0+ support? I am asking, since per this announcement [1], the OpenSSL 1.1.0 landed today in Fedora Rawhide and Ruby CI immediately failed [2], [3]. I see that there is some upstream work on OpenSSL suppo... vo.x (Vit Ondruch)
05:23 PM Revision 2db9a0db (git): Test URI.find_proxy using env argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:13 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
Nobu, if a symlinked path would be removed from $LOADED_FEATURES from Ruby code, will all related internal references to the same file be cleared too? rosenfeld (Rodrigo Rosenfeld Rosas)
03:39 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
Shyouhei Urabe wrote:
> In order to do so a meeting attendee suggested to push both symlink-resolved and unresolved paths at once to `$LOADED_FEATURES` on the first call.
I think this explanation differs from that we discussed accura...
nobu (Nobuyoshi Nakada)
01:19 PM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
This could make it harder for auto-reloaders to unload a required file when require_relative is used... Doesn't seem like a great solution to this bug to me... Ruby could cache internally the real path when using "require" so that the se... rosenfeld (Rodrigo Rosenfeld Rosas)
11:07 AM Bug #10222: require_relative and require should be compatible with each other when symlinks are used
We looked at this issue in developer meeting today.
The ultimate reason why require and `require_relative` behaves differently is that while `require_relative` infers its argument's realpath every time, `require` doesn't.
This _was...
shyouhei (Shyouhei Urabe)
04:42 PM Revision a44f5878 (git): forgot to replace two occurences of ENV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:36 PM Revision ddadd139 (git): * 2016-10-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:36 PM Revision ed7b88e2 (git): `\s` includes `\t`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
04:01 PM Feature #12831 (Closed): /\X/ (extended grapheme cluster) can't pass unicode.org's GraphemeBreakTest
I'm trying to replace Rails's grapheme implementation (http://api.rubyonrails.org/classes/ActiveSupport/Multibyte/Unicode.html#method-i-unpack_graphemes) with Ruby's extended grapheme cluster (/X/).
https://github.com/rails/rails/issues...
mtsmfm (Fumiaki Matsushima)
01:21 PM Revision 269977b9 (git): bootstraptest/runner.rb: first line in the source
* bootstraptest/runner.rb (pretty): remove empty line at the
beginning only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:08 PM Bug #12829 (Closed): Compile error on cygwin (io.c)
Applied in changeset r56393.
----------
io.c: fix typo
* io.c (prep_io): fix typo of struct member name.
[ruby-core:77550] [Bug #12829]
nobu (Nobuyoshi Nakada)
06:58 AM Bug #12829 (Closed): Compile error on cygwin (io.c)
I get the following error when trying to compile the latest version of Ruby trunk on cygwin:
Thread model: posix
gcc version 5.4.0 (GCC)
compiling io.c
io.c: In function ‘prep_io’:
io.c:7378:4: error: ‘rb_io_t {aka struct rb_io_t}...
duerst (Martin Dürst)
01:08 PM Revision 446924cb (git): io.c: fix typo
* io.c (prep_io): fix typo of struct member name.
[ruby-core:77550] [Bug #12829]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:59 AM Feature #12142: Hash tables with open addressing
We (mainly ko1) had a deeper look at this issue in developer meeting today. Ko1 showed his microbenchmark result over the three (proposed two and the current) implementations. I don't have the result at hand right now so let me refrain... shyouhei (Shyouhei Urabe)
11:16 AM Feature #12732: An option to pass to `Integer`, `Float`, to return `nil` instead of raise an exception
We looked at this issue in developer meeting today.
It seems originally, ruby was designed under assumption that string to integer conversion in general could be covered 100% by either to_s or Integer(). Truth is we need the proposed...
shyouhei (Shyouhei Urabe)
11:11 AM Bug #4537: Incorrectly creating private method via attr_accessor
Just FYI we looked at it in developer meeting today and agreed this is a bug that have yet to be fixed. shyouhei (Shyouhei Urabe)
08:40 AM Bug #4537 (Assigned): Incorrectly creating private method via attr_accessor
shyouhei (Shyouhei Urabe)
08:39 AM Bug #4537 (Closed): Incorrectly creating private method via attr_accessor
shyouhei (Shyouhei Urabe)
11:07 AM Feature #12760: Optional block argument for `itself`
Thanks for the update! Haven't you discussed the probable another name for it?.. We just want it to be in language already. zverok (Victor Shepelev)
10:33 AM Feature #12760: Optional block argument for `itself`
FYI we looked at this issue at developer meeting today. Because matz was not there this extension still has chance, but the attendees thought `itself`'s block (if any) shall work like how `tap` works. So it might not be suitable for th... shyouhei (Shyouhei Urabe)
10:58 AM Feature #6783: Infinite loop in inspect, not overriding inspect, to_s, and no known circular references. Stepping into inspect in debugger locks it up with 100% CPU.
We looked at this ticket at developer meeting today and found several former tickets that was linked then. FYI #6733 is the most big-pictured feature request that ultimately solves this problem. Not yet implemented though. shyouhei (Shyouhei Urabe)
10:54 AM Feature #12664 (Assigned): Multiline pretty-printing of multiline strings
We looked at this issue in developer meeting today and Akira was positive about this proposal. I'm assigning to him. shyouhei (Shyouhei Urabe)
10:51 AM Bug #12594 (Assigned): The class does not inherit from a module the modules that were included after the inclusion
We at developer meeting looked at it again. Nobu thinks he can fix this so I'm assigning to him. He said to me this is low priority, though. shyouhei (Shyouhei Urabe)
10:49 AM Feature #11195: Add "no_proxy" parameter to Net::HTTP.new
We looked at this issue in developer meeting today.
This feature is not implemented yet. And attendees wondered if Net::HTTP is the right place to implement no_proxy because it is the lowest layer of HTTP processing in Ruby.
`uri/...
shyouhei (Shyouhei Urabe)
10:37 AM Feature #6647: Exceptions raised in threads should be logged
We looked at this issue at developer meeting today and John's proposal sounded reasonable. So there quite are possibilities to accept it I think.
Problem is however, we currently do not implement "report exception on thread GC"-mode ...
shyouhei (Shyouhei Urabe)
09:22 AM Feature #12747 (Assigned): Add TracePoint#callee_id
shyouhei (Shyouhei Urabe)
09:15 AM Bug #12780 (Assigned): BigDecimal#round returns different types depending on argument
shyouhei (Shyouhei Urabe)
08:41 AM Bug #12705: yielding args to a lambda uses block/proc rather than lambda/method semantics
lambda should be strict on number of arguments.
So, stabby lambda (and traditional lambda) should not expand
single array argument.
It works until ruby 2.2.
Ruby 2.2 introduce the bug.
```
% all-ruby -e '
def yield_test
yie...
akr (Akira Tanaka)
08:32 AM Bug #12705 (Assigned): yielding args to a lambda uses block/proc rather than lambda/method semantics
This (stabby lambda not raising exception) is a bug that should be fixed. shyouhei (Shyouhei Urabe)
07:53 AM Revision 1ab07408 (git): Add an optional argument, env, to URI.find_proxy.
* lib/uri/generic.rb (URI.find_proxy): Add an optional argument, env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:44 AM Revision ea8990d8 (git): pp prints a multiple lines string prettier.
* lib/pp.rb (String#pretty_print): Defined to print a string as
multiple lines.
[ruby-core:76800] [Feature#12664] proposed by Petr Chalupa.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
07:32 AM Bug #12678 (Assigned): No way to set a timeout for TLS handshake when using Net::SMTP
shyouhei (Shyouhei Urabe)
07:30 AM Bug #12674 (Assigned): io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeout
nobu (Nobuyoshi Nakada)
07:15 AM Feature #12656 (Assigned): Expand short paths with File.expand_path
shyouhei (Shyouhei Urabe)
07:13 AM Bug #12776 (Closed): Flaky test case: TestThread#test_thread_name
Seems OK, please backport. shyouhei (Shyouhei Urabe)
07:10 AM Bug #8996 (Assigned): pthread_mutex_lock EINVAL
shyouhei (Shyouhei Urabe)
07:09 AM Bug #12509 (Assigned): Using qsort_s in mingw-w64 causes failures
shyouhei (Shyouhei Urabe)
07:03 AM Bug #12652 (Assigned): For Dir.home encode passed user
shyouhei (Shyouhei Urabe)
07:00 AM Bug #12649 (Assigned): DateTime method calls hang
shyouhei (Shyouhei Urabe)
06:59 AM Bug #12828 (Closed): Check whether macro RUBY is okay for protecting ruby-specific onigumo extensions
It should be OK. nobu (Nobuyoshi Nakada)
06:35 AM Bug #12828 (Closed): Check whether macro RUBY is okay for protecting ruby-specific onigumo extensions
In issue #12386, I removed the ONIG_CASE_MAPPING macro because we thought that there was no need to keep the Ruby version of Onigumo in sync with the original version (see https://bugs.ruby-lang.org/issues/12386#note-1).
However, ther...
duerst (Martin Dürst)
06:02 AM Feature #12092 (Rejected): Allow Object#clone to yield cloned object before freezing
nobu (Nobuyoshi Nakada)
05:35 AM Revision ce2b7ae5 (git): * 2016-10-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:35 AM Revision 19b38f83 (git): Ruby 2.4.0 will not have rb_cFixnum and rb_cBignum is removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:31 AM Bug #12827 (Rejected): Add Boolean data type.
Do you have anything to add to https://bugs.ruby-lang.org/issues/12515 ? shyouhei (Shyouhei Urabe)
02:22 AM Bug #12827 (Rejected): Add Boolean data type.
It's not clear to me why there isn't a Boolean class which can have values true and false.
There are benefits to this. An example of where this is an issue is people who write ORM. For example, in `sequel` gem, they use "TrueClass" fo...
ioquatix (Samuel Williams)
01:12 AM Bug #12814: Pathname#each_child(false) produces unusable file paths
It's true you can't infer a realpath from `with_directory=false`-yielded file paths. Yes. But isn't it intentional? You requested to cut where the path was from. Pretty natural you can no longer infer its origin.
The RDoc says it ...
shyouhei (Shyouhei Urabe)
12:57 AM Feature #12817: Consider adding method .sample() on class Hash (if this was not yet proposed)
Hash#sample was proposed by you, Robert. https://bugs.ruby-lang.org/issues/12586
Is this your second challenge? That's completely OK but can I close the former one for housekeeping?
shyouhei (Shyouhei Urabe)
12:26 AM Bug #12826 (Third Party's Issue): Segmentation fault
The bug resides at `/usr/lib/libpixman-1.so.0(pixman_lookup_composite_function+0x3b) [0x42067eb]`. It is most possibly a pixman's bug. shyouhei (Shyouhei Urabe)
12:01 AM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
A typo in `prime?` method:
```
return false => return false if
```
jzakiya (Jabari Zakiya)

10/10/2016

11:03 PM Feature #12659: Readline: expose rl_char_is_quoted_p setting
Nobuyoshi Nakada wrote:
> Applied in changeset r56326.
Thank you!
georgebrock (George Brocklehurst)
06:39 PM Bug #12826 (Third Party's Issue): Segmentation fault
INFO: icm_manage_ip: Starting Up
/usr/pack/icmutil-5.0-sw/x86_64-Linux-2.6/icmUtil/config/createip_initializer.rb:36: [BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
-- Control frame information ----...
bugsandbunny (Hendrick Chan)
05:15 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
Thanks for your explanation. I understood (after looking at the source code) what was being done,
and how it was being done, but from a user perspective I was inquiring *why* it was being done that way.
Also purely from a user perspe...
jzakiya (Jabari Zakiya)
12:21 PM Bug #12825 (Rejected): Time.parse doesn't work when using T as time delimiter and only hours are specified
Thomas Mayrhofer wrote:
> When using the T delimiter instead of \s the hour isn't parsed correctly.
> ...
'T' is used by ISO-8601, but the former is invalid for it and that part is ignored.
In the latter case, a word "10" is fallen b...
nobu (Nobuyoshi Nakada)
09:22 AM Bug #12825 (Rejected): Time.parse doesn't work when using T as time delimiter and only hours are specified
When using the T delimiter instead of \s the hour isn't parsed correctly.
~~~ ruby
require 'time'
Time.parse('2000-01-01T10') # => 2000-01-01 00:00:00 +0100
Time.parse('2000-01-01 10') # => 2000-01-01 10:00:00 +0100
~~~
When t...
webpapaya (Thomas Mayrhofer)
06:22 AM Revision 8c3af8ec (git): ruby.c: bind fd before waiting
* ruby.c (open_load_file): bind the open fd to an IO instance
before waiting FIFO, not to leak the fd if interrupted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:14 AM Revision a28d3d59 (git): test_require.rb: use assert_separately
* test/ruby/test_require.rb (test_loading_fifo_threading_raise):
use assert_separately.
* test/ruby/test_require.rb (test_loading_fifo_threading_success):
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56387 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
03:40 AM Revision 3ef1149b (git): ruby.c: compare with EXEEXT
* ruby.c (open_load_file): compare with EXEEXT instead of hard
coded name, and do not match with mere EXEEXT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:40 AM Revision 18d0bf95 (git): ruby.c: open in binary mode to load
* ruby.c (open_load_file): open in binary mode if available, as
parser deals with EOLs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:37 AM Revision e1799442 (git): * 2016-10-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:37 AM Revision 047604ad (git): io.c: reduce isatty on Cygwin [ci skip]
* io.c (prep_io): reduce isatty call (and its system call) on
Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/09/2016

02:30 PM Feature #6284: Add composition for procs
I wrote a gem with a C extension of `Proc#compose`: https://github.com/mooreniemi/proc_compose#usage
What motivated me was `map f (map g xs) = map (f . g) xs`, and what I still don't understand (being a newbie to extending Ruby or und...
why-capslock-though (Alexander Moore-Niemi)
02:05 PM Revision dd2ebf4d (git): replace Fixnum with Integer in rdoc [ci skip]
* array.c, class.c: Fixed documentation where Fixnum was referred
directly to use Integer, as Fixnum and Bignum are now unified
into Integer and direct usage is deprecated. [Fix GH-1459]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/...
nobu (Nobuyoshi Nakada)
01:44 PM Bug #12823 (Closed): compile issues 2.2.5 with cygwin
nobu (Nobuyoshi Nakada)
01:02 PM Bug #12823: compile issues 2.2.5 with cygwin
Backport r55232 nobu (Nobuyoshi Nakada)
06:41 AM Bug #12823 (Closed): compile issues 2.2.5 with cygwin
Type error in ./missing/crypt.c
crastub63 (Craig Stuber)
01:09 PM Bug #12824 (Third Party's Issue): Getting sqlite3 Segmentation fault at 0x00000000000110
nobu (Nobuyoshi Nakada)
10:39 AM Bug #12824 (Third Party's Issue): Getting sqlite3 Segmentation fault at 0x00000000000110
on running test cases, when failing test case it gives Segmentation fault
at* /.rvm/gems/ruby-2.3.1/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/sqlite3_adapter.rb:27:*
here is my system configuration -
OS - OS...
rb.rana (Ram Bharose)
09:42 AM Revision 41f7aa64 (git): vm_insnhelper.c: update assertion [ci skip]
* vm_insnhelper.c (callable_class_p): update assertion as callable
class may be T_MODULE or I_ICLASS which refines a module since
r56213. [Feature #12534]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56381 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
02:57 AM Revision a23878c3 (git): vm_method.c: update assertion [ci skip]
* vm_method.c (prepare_callable_method_entry): update assertion
as defined_class may be T_MODULE not only I_ICLASS since r56213.
[Feature #12534]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56380 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
02:37 AM Revision 95c044c4 (git): * 2016-10-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:37 AM Revision 8459ceb8 (git): vm_core.h: stringify in VM_ASSERT
* vm_core.h (VM_ASSERT): stringify expr here before expansion in
RUBY_ASSERT_WHEN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/08/2016

02:21 PM Feature #5531: deep_value for dealing with nested hashes
I believe this has recently been implemented as `Hash#dig`. dan.erikson (Dan Erikson)
12:17 PM Bug #12822 (Closed): Backport r56374 (fix monthly log rotate with DST)
バックポート管理用チケットです。 nagachika (Tomoyuki Chikanaga)
07:45 AM Bug #12821 (Closed): Object converted to Hash unexpectedly under certain method call
Hi,
I saw a bit strange behavior (at least for me) with the code below; an object given as an argument to a method with a default value and a keyword argument becomes `Hash` class if the object has '`to_hash`' method with ruby >= 2.2,...
tanahiro (Hiroyuki Tanaka)
06:35 AM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
I thought I was quite clear, but I will try to be clearer.
`n.prime_divison` returns a factorization of `n` such that when you take their product of the powers you get back `n`. Trying to express this mathematically:
n = ∏ f_i...
marcandre (Marc-Andre Lafortune)
04:08 AM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
I am confused some by these recent comments, and would appreciate clarification.
Since 1 is not prime and returns [] then for mathematical consistency and correctness so should -1.
I don't understand how the code I presented create...
jzakiya (Jabari Zakiya)
02:41 AM Feature #12820: Shorter syntax for assigning a method argument to an instance variable
Matthew Kerwin wrote:
> Is this now the most-duplicated feature request in Ruby?
By crystal?
nobu (Nobuyoshi Nakada)
01:54 AM Revision 1bbe67f5 (git): memory_status.c: Win32 API
* ext/-test-/memory_status/memory_status.c (read_status): use
Win32 GetProcessMemoryInfo API.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:34 AM Revision f0e1d723 (git): memory_status.c: system call
* ext/-test-/memory_status/memory_status.c: get memory sizes by
mach task_info system call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 AM Feature #12650: Use UTF-8 encoding for ENV on Windows
If you could rethink the plan to wait until Ruby 3, that would be great.
I would expect Ruby to normalize on UTF-8 strings everywhere internally, and only convert to local codepage on the boundary (such as writing to console, file, et...
Iristyle (Ethan Brown)
12:06 AM Revision 75838104 (git): * 2016-10-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:06 AM Revision 8fc170a3 (git): logger: fix monthly log rotate with DST
* lib/logger.rb (Logger::Period#next_rotate_time): fix monthly log
rotate when DST is applied during a month of 31 days.
[Fix GH-1458]
With DST the month of october can actually last more than 31 days.
It can last 31 days plus 1 hou...
nobu (Nobuyoshi Nakada)

10/07/2016

09:35 PM Feature #12820: Shorter syntax for assigning a method argument to an instance variable
See:
* #12578 Instance Variables Assigned In parameters ( ala Crystal? )
* #5825 Sweet instance var assignment in the object initializer
* #8563 Instance variable arguments
* #12023 Allow ivars to be used as method arguments
Is th...
phluid61 (Matthew Kerwin)
05:46 PM Feature #12820 (Rejected): Shorter syntax for assigning a method argument to an instance variable
Hello,
The pattern:
~~~ruby
class Person
def initialize(name:)
@name = name
@age = 0
end
end
~~~
is so common, that Cristal Programming Language has a shortcut for it:
https://crystal-lang.org/docs/syntax_an...
fornellas (Fabio Pugliese Ornellas)
05:30 PM Bug #12819 (Third Party's Issue): Sporadic BUG after upgrading to macOS Sierra
Seems like that sqlite3 (or the binding for it) has been broken on the new mac OS. nobu (Nobuyoshi Nakada)
03:59 PM Bug #12819 (Third Party's Issue): Sporadic BUG after upgrading to macOS Sierra
Since upgrading to macOS Sierra, it sporadically throws up a bug when performing '$ rails test'. Restarting the terminal gets rid of the bug for a short while but it usually keeps back in after one or two '$ rails test'
I have also no...
mk6488 (Mike Katholnig)
01:35 PM Feature #5903: Optimize st_table (take 2)
I think, this could be closed in favor of https://bugs.ruby-lang.org/issues/12142 funny_falcon (Yura Sokolov)
01:24 PM Feature #8158: lightweight structure for loaded features index
I've changed implementation a bit:
Because https://bugs.ruby-lang.org/issues/12142 likely to be accepted,
I've used st_table with numtable instead of separate datastructure.
So patch now is shorter.
https://bugs.ruby-lang.org/attac...
funny_falcon (Yura Sokolov)
12:14 PM Feature #12180: switch id_table.c variant
Please, reconsider benchmarking it with realworld applications. funny_falcon (Yura Sokolov)
11:21 AM Revision d94ea30a (git): gc.c: fix GC_PROFILE_DETAIL_MEMORY
* gc.c (gc_prof_setup_new_record): fix the condition to get
rusage.
* gc.c (gc_profile_dump_major_reason): remove undefined flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:24 AM Revision 5dd01af2 (git): ext/win32ole/*.c, ext/win32ole/win32ole.h: use RB_INT2FIX instead of
INT2FIX, and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
10:08 AM Bug #11873: Syntax error and parse problem when calling a method without parentheses
Will this change be backported? whitequark (whitequark *)
10:08 AM Bug #12669: syntax error at assinments of command
Will this change be backported? whitequark (whitequark *)
05:28 AM Bug #12818 (Third Party's Issue): [Segmentation fault] - sqlite3?
Duplicated issue as #12804. hsbt (Hiroshi SHIBATA)
03:31 AM Bug #12818 (Third Party's Issue): [Segmentation fault] - sqlite3?
Could someone have a look at this?
I have no ideia why this is happening.
Running via Spring preloader in process 33658
/usr/local/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/sqlite3_adapter.r...
thiagoisaias (Thiago Isaias)
05:18 AM Revision 6b35c34c (git): * basictest/test.rb: Adjust spaces in class declarations
with inheritance. [fix GH-1227] Patch by @adrfer
* lib/irb/*: ditto.
* lib/prime.rb: ditto.
* lib/shell/builtin-command.rb: ditto.
* object.c: ditto.
* sample/*.rb: ditto.
* test/-ext-/method/test_arity.rb: ditto.
git-svn-id: svn+ssh://...
hsbt (Hiroshi SHIBATA)
02:57 AM Bug #12816 (Third Party's Issue): After upgrade to Mac OS Sierra, segmentation faults occur during rails/bin console
Marked as a dup of #12807. shyouhei (Shyouhei Urabe)

10/06/2016

09:27 PM Feature #11286: [PATCH] Add case equality arity to Enumerable's sequence predicates.
I like this one in particular:
some_strings.none?(/aeiou/i)
I am not so sure about:
nums.grep(5..10)
But I have no strong feelings either way. I do disagree with the
statement "syntactic noise incurred by opening a b...
shevegen (Robert A. Heiler)
12:22 AM Feature #11286: [PATCH] Add case equality arity to Enumerable's sequence predicates.
Why is this still open a year later?
Matz? A ruling?
zenspider (Ryan Davis)
09:14 PM Feature #12817 (Open): Consider adding method .sample() on class Hash (if this was not yet proposed)
Hello ruby core team and all who may read this.
Some time ago, I think in ruby 1.8.x, the method .sample() was added
to class Array. I think before this addition, it was a bit more cumbersome
to get a random entry from an array - I ...
shevegen (Robert A. Heiler)
05:48 PM Revision a5b3244d (git): * version.h: patchlevel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:48 PM Revision 67351ac6 (git): * lib/rubygems/ssl_certs/GlobalSignRootCA.pem: add for RugyGems.org.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@56369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
05:45 PM Revision 34bf02cb (git): * 2016-10-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:45 PM Revision 04089768 (git): * lib/rubygems/ssl_certs/GlobalSignRootCA.pem: add for RubyGems.org.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
05:09 PM Revision 87d7a066 (git): * 2016-10-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:09 PM Revision fc414c1f (git): * ChangeLog: fix a typo at r56363.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
03:49 PM Bug #12816 (Third Party's Issue): After upgrade to Mac OS Sierra, segmentation faults occur during rails/bin console
When the rails/bin console is opened and utilized, segmentation faults will occur much of the time when, for instance, returning an array of all articles (Article.all). The segmentation fault can also occur with the command "bin/rake db:... swoozie14 (Sophia Wu)
02:10 PM Bug #12814: Pathname#each_child(false) produces unusable file paths
Sorry, I over edited my post. Argument to pathname is some existing folder, even `'..'` produces the error.
~~~ ruby
>> Pathname.new('..').each_child(false) { |f| p f.realpath }
~~~
~~~none
Errno::ENOENT: No such file or directory...
tao (Mr. Tao)
12:56 PM Bug #12814 (Feedback): Pathname#each_child(false) produces unusable file paths
I can't reproduce it.
What exception raised exactly?
nobu (Nobuyoshi Nakada)
11:38 AM Bug #12814 (Rejected): Pathname#each_child(false) produces unusable file paths
I tried to iterate over items in a directory with `each_child` testing each item whether it is a directory or not with `directory?`. This was working just fine until I added **`false`** as an argument to `each_child`.
~~~ ruby
Pathna...
tao (Mr. Tao)
12:33 PM Bug #12815 (Closed): Integer#digits's error message different when base is Fixnum or Bignum
Is this intended?
```
% ruby -ve '60.upto(65){|n| 1.digits(-(1<<n)) rescue p $! }'
ruby 2.4.0dev (2016-10-06 trunk 56364) [x86_64-linux]
#<ArgumentError: invalid radix -1152921504606846976>
#<ArgumentError: invalid radix -23058430...
znz (Kazuhiro NISHIYAMA)
12:15 PM Revision 1c513d70 (git): Fix cmd is referenced but not assigned
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:29 AM Bug #12811 (Closed): SyntaxError does not have a backtrace in 2.3+
Applied in changeset r56363.
----------
load.c: setup syntax error backtrace
* load.c (rb_require_safe): SyntaxError created by the parser just
has the mesage and needs to set up the backtrace.
[ruby-core:77491] [Bug #12811]
nobu (Nobuyoshi Nakada)
08:29 AM Revision d3cde816 (git): load.c: setup syntax error backtrace
* load.c (rb_require_safe): SyntaxError created by the parser just
has the mesage and needs to set up the backtrace.
[ruby-core:77491] [Bug #12811]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56363 b2dd03c8-39d4-4d8f-98ff-823f...
nobu (Nobuyoshi Nakada)
06:53 AM Revision 24b37eb0 (git): load.c: fix load/require context
* load.c (rb_load_internal0): load/require is not the main
script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:46 AM Revision ef617d50 (git): bisect.sh: improve
* tool/bisect.sh: make srcs before building.
* tool/bisect.sh: quote expansions.
* tool/bisect.sh: skip build if chdir and Makefile failed.
* tool/bisect.sh: fail at unknown command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@...
nobu (Nobuyoshi Nakada)
04:45 AM Feature #2172 (Closed): Enumerable#chunk with no block
Closing, created #12813 instead. marcandre (Marc-Andre Lafortune)
04:43 AM Feature #12813 (Closed): Calling chunk_while, slice_after, slice_before, slice_when with no block
Currently, `chunk_while`, `slice_after`, `slice_before`, `slice_when` all require a block.
If one needs the index within the block, there is no good way to do this; `enum.each_with_index.chunk_while` would have indices in the results,...
marcandre (Marc-Andre Lafortune)
04:35 AM Revision ea7a3644 (git): * enum.c: [DOC] Improve doc [ci-skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
03:53 AM Revision 0fe40d4b (git): test_io.rb: split test_gets_rs
* test/ruby/test_io.rb (test_gets_rs): split for each record
separators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:44 AM Bug #12808 (Closed): Ruby builds do not produce Process::UPTIME constant on macOS Sierra
It will be a Ruby 2.4 feature by r56200. naruse (Yui NARUSE)
03:32 AM Bug #12772 (Closed): stderr: /home/webui/production/vendor/bundle/ruby/2.1.0/gems/ref-1.0.2/lib/ref/weak_reference/pure_ruby.rb:45: [BUG] Segmentation fault at 0x00000000000018
Hmm, it sounds ref's issue.
Anyway I close this.
naruse (Yui NARUSE)
03:30 AM Bug #12812: Added Coverage#result=
This patch url will stay up to date better than a file attachment. I'm getting feedback from Nobu and fixing things:
https://github.com/ruby/ruby/pull/1456.patch
zenspider (Ryan Davis)
12:32 AM Bug #12812 (Assigned): Added Coverage#result=
hsbt (Hiroshi SHIBATA)
12:24 AM Bug #12812 (Rejected): Added Coverage#result=
Originally submitted here: https://github.com/ruby/ruby/pull/1456
This exposes Coverage.result in a slightly more writeable way and allows coverage analysis to reset to a baseline in a safe way.
Note, I wasn't able to figure out ho...
zenspider (Ryan Davis)
03:27 AM Bug #12806 (Assigned): Compiling ruby 2.3.1 on HPUX 11.31 ia64 breaks in segmentation fault
naruse (Yui NARUSE)
02:38 AM Revision 631f8da9 (git): * ext/readline/extconf.rb: Update error message with correct words.
[fix GH-1453][ci skip] Patch by @magikid
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:04 AM Revision a566bc0a (git): uri/common.rb: Update URI::WEB_ENCODINGS_ [ci skip]
* lib/uri/common.rb (WEB_ENCODINGS_): split command lines and
append a trailing comma.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:01 AM Revision 48f91182 (git): Update URI WEB_ENCODINGS_ hash, and fix documented cmd to
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:53 AM Revision 364a0879 (git): * enum.c: Add reduce/inject alias note.
[fix GH-1400][ci skip] Patch by @getaaron
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
01:30 AM Revision dd3b3d71 (git): thread.c: check coverage values
* thread.c (update_coverage): check coverage values, and ignore
non-fixnum values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:19 AM Revision 20e7f819 (git): * 2016-10-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:19 AM Revision 94162194 (git): io.c: use RB_INTEGER_TYPE_P
* io.c (fptr_finalize): use dedicated macro RB_INTEGER_TYPE_P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/05/2016

09:04 PM Bug #12811 (Closed): SyntaxError does not have a backtrace in 2.3+
SyntaxError's do not have a backtrace in Ruby 2.3.0, 2.3.1 and 2.3.0-preview1. To reproduce, place both of the attached scripts in the same directory and run `ruby repro.rb`. In Ruby 2.3+ no backtrace is printed. In Ruby 2.2.4p230, a nor... ametcalf (Andrew Metcalf)
05:34 PM Feature #12810 (Rejected): Improve `Set#find_index` performance
Hello everyone!
I've toyed a bit with the `Set` class lately and have found some performance issues with method `find_index`. Github gist here: https://gist.github.com/thomascharbonnel/f023ca137f2b2b7021cbe2d580485cd4
I'm thinking ...
Asche (Thomas Charbonnel)
04:33 PM Feature #12553: IO.readlines(filename, chomp: true)
Nobuyoshi Nakada wrote:
> とりあえず。
> ...
これだと以下の通り\rが除かれないので、除かれた方がいいな。
```
% ruby -e'$><<"abc\r\ndef\r\nghi"'|./miniruby -e'p $<.each_line(chomp:true).to_a'
["abc\r", "def\r", "ghi"]
% ruby -e'$><<"abc\r\ndef\r\nghi"'|./miniruby -...
naruse (Yui NARUSE)
03:48 PM Bug #12809 (Rejected): passing a proc to Kernel#lambda does not create a lambda
I would expect the following:
~~~
p = proc { |a| a * 2 }
l = lambda(&p)
puts l.lambda? # => true
l.call(1, 2) # => ArgumentError
~~~
But it does not, basically `l` there looks very much like a non-lambda proc (another test is ...
sylvain.joyeux (Sylvain Joyeux)
02:45 PM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
lol, I confused it with &, even if that didn't make any sense, sorry. marcandre (Marc-Andre Lafortune)
08:20 AM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
I meant `return [] if self == 0 or self == 1` (corrected on the tracker). Eregon (Benoit Daloze)
08:13 AM Feature #12676: Significant performance increase, and code conciseness, for prime_division method in prime.rb
Marc-Andre Lafortune wrote:
> Nobuyoshi Nakada wrote:
> ...
It has to allocate another Bignum, with just one bit changed (it's |, not &, (1<<100)|1 is (1<<100)+1).
I would recommend the much clearer and efficient `return [] if self ==...
Eregon (Benoit Daloze)
12:36 PM Revision e0aaf5f5 (git): Update freenode server name [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:02 AM Revision 5c200b9a (git): * lib/net/http/response.rb: Improve document readability.
[fix GH-1411][ci skip] Patch by @stz-seongheon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
07:01 AM Revision 8b583a01 (git): test_io.rb: workaround for Docker
* test/ruby/test_io.rb (test_ioctl_linux2): tty device may not
work on Docker.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:43 AM Revision e3e17eb9 (git): node.c: flatten NODE_BLOCK [ci skip]
* node.c (dump_node): flatten statements in NODE_BLOCK.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:27 AM Revision 82dd0828 (git): * range.c: Add docs for max/min behavior with exclusive range.
[fix GH-1433][ci skip] Patch by @BM5k
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:57 AM Revision 40435650 (git): * ext/socket/*.c: Add proper require for example to work.
[fix GH-1378][ci skip] Patch by @schneems
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:51 AM Revision 0d81bbcb (git): Added missing contributor name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
02:47 AM Revision 9fff0f94 (git): * io.c: Fixed equivalent ruby code with core implemention.
[fix GH-1429][ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:36 AM Revision 22de22b2 (git): * lib/delegate.rb: Added missing spaces and Removed needless spaces.
[fix GH-1454][ci skip] Patch by @bogdanvlviv
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
 

Also available in: Atom