Activity
From 10/03/2017 to 10/09/2017
10/09/2017
- 07:00 PM Revision 4e1fe535 (git): * 2017-10-10
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:00 PM Revision 4c6335e9 (git): webrick: avoid needless wakeup from IO.select
- Since r51231 ("webrick/server.rb: stop immediately"),
there is no need to poll on the @status change every
two seconds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:37 PM Bug #13284 (Open): IA64 ruby 2.4 miniruby segfault
- Hello
Sorry for delay, but ruby-2.4.2 still has this issue. May be something wrong with size argument?
[ruby-2.4.2]$ gdb ./miniruby
GNU gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
Copyright 2004 Free Software Foundation, Inc.
(gdb) ... -
11:20 AM Revision 310e91f5 (git): Remove unused test files related `$SAFE>=2`
- unused since r14024
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:18 AM Bug #13988: ruby-doc.org for 2.4.x shows 2.5.0
- Thanks, I missed the email for some reason.
@sos4nt Could you report the problem at that email? -
10:42 AM Bug #13988: ruby-doc.org for 2.4.x shows 2.5.0
- > Does anyone know how to contact the ruby-doc administrators?
I could not find it from the website.
Main page has:
> ...
and also:
> Ruby-doc.org is hosted and maintained by [James Britt](http://www.jamesbritt.com/) and the [N... -
10:10 AM Bug #13988: ruby-doc.org for 2.4.x shows 2.5.0
- Does anyone know how to contact the ruby-doc administrators?
I could not find it from the website. -
03:39 AM Bug #13990 (Assigned): Remove obsoleted Ruby code from lib/rdoc/ruby_token.rb from 2.3 and 2.4
-
02:49 AM Bug #13990 (Closed): Remove obsoleted Ruby code from lib/rdoc/ruby_token.rb from 2.3 and 2.4
- Symbol document at docs.ruby-lang.org/en is broken.
* https://docs.ruby-lang.org/en/2.4.0/Symbol.html
The reason is RDoc::RubyToken::Symbol in lib/rdoc/ruby_token.rb was aliased to ::Integer.
lib/rdoc/ruby_token.rb was deleted f... -
03:08 AM Bug #13631 (Closed): Cannot disable site and vendor directories
- Applied in changeset trunk|r60141.
----------
verconf.h.tmpl: site and vendor directories
* template/verconf.h.tmpl: disable site and vendor directories
when removed. based on the path by arnoldwald (arnold w) at
[ruby-core:81563]... - 03:08 AM Revision 11b147ec (git): * 2017-10-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:08 AM Revision c8d45bdd (git): verconf.h.tmpl: site and vendor directories
- * template/verconf.h.tmpl: disable site and vendor directories
when removed. based on the path by arnoldwald (arnold w) at
[ruby-core:81563]. [Bug #13631]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60141 b2dd03c8-39d4-4d8f-... -
02:51 AM Bug #12674 (Rejected): io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeout
- `IO#wait_readable` should return the receiver at EOF, since 2.3.
`nil` before EOF is the behavior of the OS. -
02:13 AM Bug #13917: Comparable#clamp is slower than using Array#min,max.
- It was same or slower with gcc 7.2.0.
benchmark results:
Execution time (sec)
name |ruby 2.5.0dev (2017-10-08 trunk 60140) [x86_64-linux]|built-ruby
-------------------------|----------------------------------...
10/08/2017
-
10:38 PM Bug #13988 (Rejected): ruby-doc.org for 2.4.x shows 2.5.0
- ruby-doc is not our web resouce. Please report its administrator.
-
07:22 PM Bug #13988 (Rejected): ruby-doc.org for 2.4.x shows 2.5.0
- The documentation at ruby-doc.org for Ruby 2.4.x shows Ruby 2.5.0 features, e.g:
http://ruby-doc.org/core-2.4.0/String.html#method-i-each_grapheme_cluster
http://ruby-doc.org/core-2.4.1/String.html#method-i-each_grapheme_cluster
htt... -
10:36 PM Bug #13989 (Rejected): WEBrick testing, circular requires
-
09:23 PM Bug #13989: WEBrick testing, circular requires
- Sorry, my mistake, confusing test libraries --
```
ruby -v --disable-gems runner.rb -I. --show-skip webrick
```
should be
```
ruby -v --disable-gems runner.rb -I./lib --show-skip webrick
```
Please close. Thanks again. -
07:40 PM Bug #13989 (Rejected): WEBrick testing, circular requires
- Lately I've been bouncing around, trying to help with windows/MinGW builds of extension gems.
Today, after loading my current build, I ran a few command line tests. The following seems to have some issues with circular requires -
... -
09:13 AM Revision cb69638d (git): Removed unnecessary json loading.
- It causes test fail on http://ci.rvm.jp/results/trunk-test@frontier/101990
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:00 AM Revision 6064132c (git): Remove unnecessary `require 'thread'`
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:02 AM Bug #13987: Ripper.sexp named parameters with default values, double splat parameter
- The latter is the change by [Feature #12387].
-
06:01 AM Bug #13987 (Closed): Ripper.sexp named parameters with default values, double splat parameter
- Applied in changeset trunk|r60138.
----------
parse.y: fix a typo
* parse.y (f_kw): fix typo. needs the argument value, not the
label twice. [ruby-core:83174] [Bug #13987] -
12:58 AM Bug #13987 (Closed): Ripper.sexp named parameters with default values, double splat parameter
- The following is the pertinent section from `Ripper.sexp("def hello(bln: true, int: 1, str: 'str', sym: :sym) end")`. Info about default values is missing:
```
ruby 2.5.0dev (2017-10-07 trunk 60132) [x64-mingw32]
[[:@label, "bln:... -
06:00 AM Revision 838a9163 (git): parse.y: fix a typo
- * parse.y (f_kw): fix typo. needs the argument value, not the
label twice. [ruby-core:83174] [Bug #13987]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:14 AM Revision 6a34a8c4 (git): .gdbinit: newline at rp_id [ci skip]
- * .gdbinit (rp_id): add a newline.
* .gdbinit (print_id): should not print a newline here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:32 AM Revision 4667f7ba (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:32 AM Revision 3b1d6fc1 (git): * remove trailing spaces, append newline at EOF.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:32 AM Revision 0ab1c69e (git): * 2017-10-08
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:32 AM Revision c00e8432 (git): Merge rubygems master.
- This is RC version of Rubygems 2.7.0.
https://github.com/rubygems/rubygems/commit/688fb7e83c13c3fe7c2bb03c49a2db4c82852aee
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/07/2017
-
11:13 PM Bug #13986 (Feedback): Integer#fdiv with Complex returns unexpected value
- 5.5 (5 5) wrote:
> 期待は,それぞれ
> ...
2.4の結果がおかしいのは確かですが、その期待は本当に正しいんでしょうか。
ドキュメント上は以下のように単にfloatを返すことになっています。
> int.fdiv(numeric) -> float
> ...
trunkでは`Complex(1.0, 0.0).to_f`と同様例外になります。 -
01:49 PM Bug #13986 (Closed): Integer#fdiv with Complex returns unexpected value
- Ruby 2.4 では,`Integer#fdiv` に `Complex` オブジェクトを与えると,期待と違う値が得られる場合があります。
```ruby
p 1.fdiv(1+0i) #=> -1.404447761611185e+306
p 1.fdiv(1i) #=> -1.0e-323
```
期待は,それぞれ
```ruby
Complex(1.0, 0.0)
Complex(0.0, -1.0)
```
でした。
... -
08:25 AM Bug #13966: configure.in still needed ?!
- kernigh (George Koehler) wrote:
> The file ext/rbconfig/sizeof/depend should contain the string `configure.ac`, not `configure.in`. This was changed by git commit 3133a5c (svn r60062). I wonder if your copy of that file is too old?
T... -
01:12 AM Bug #13966: configure.in still needed ?!
- The file ext/rbconfig/sizeof/depend should contain the string "configure.ac", not "configure.in". This was changed by git commit 3133a5c (svn r60062). I wonder if your copy of that file is too old?
-
04:15 AM Feature #7792: Make symbols and strings the same thing
- I found the old issue here too from the blog article. :)
However had, I do not think that frozen strings would be the same (semantic-wise) as Symbols so I am
not sure that this would lead to a reconsideration of the String/Symbol dis... - 02:23 AM Revision 6b05153a (git): * 2017-10-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:23 AM Revision c560c7b1 (git): zlib.c: ensure to free
- * ext/zlib/zlib.c (zlib_gunzip): gz0 is a structure variable on
the stack, no longer valid after exit by an exception. ensure
to free instead. [Bug #13982]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60131 b2dd03c8-39d4-4d8f... -
01:25 AM Feature #13936: Make regular expressions debugable
- Do other languages, like Perl, have a feature for debugging regular expressions?
10/06/2017
-
08:59 PM Feature #13985 (Closed): Avoid exception for #dup/#clone on Rational and Complex
- Since #12979, true/false/nil/Integer/Float just return themselves on #dup/#clone.
But it seems a few were missed, notably mentioned in https://bugs.ruby-lang.org/issues/12979#note-15.
Rational and Complex seems obvious candidates f... -
08:58 PM Feature #13984 (Closed): BigDecimal should be immutable/frozen and return itself on #dup
- Currently, BigDecimal instances are not frozen, and supports #dup by returning a new instance.
In the spirit of #12979 and #13983, I think BigDecimal instances should always be frozen.
Then BigDecimal#dup/clone should just return the... -
08:53 PM Feature #13983 (Closed): Rational and Complex should be frozen
- Since they basically are value types.
They also do not support #dup currently:
> 1r.dup
TypeError: can't copy Rational
from `initialize_copy'
> 1i.dup
TypeError: can't copy Complex
from `initialize_copy... -
08:40 PM Feature #12979: Avoid exception for #dup on Integer (and similar cases)
- I believe this should make it to the NEWS file on the 2_4 branch, could somebody do it?
-
02:53 PM Bug #10862 (Closed): Fix shell quoting example in ri.1 manual
- Fixed by r58410
-
02:35 PM Feature #10861 (Closed): Have ./configure try mandoc when trying to detect manpage type
- Fixed by r60129
-
01:41 PM Bug #13982 (Closed): Memory leak in Zlib.gunzip
- Applied in changeset trunk|r60130.
----------
zlib.c: memory leak in gunzip
* ext/zlib/zlib.c (zlib_gunzip): clear zstream to fix memory leak.
[ruby-core:83162] [Bug #13982] -
12:36 PM Bug #13982 (Closed): Memory leak in Zlib.gunzip
- Zlib.gunzip which was added in Ruby 2.4 seems to leak memory every time it is called.
```
$ ruby -rzlib -e'END{puts File.readlines("/proc/self/status").grep(/RSS/)}' -e'd=Zlib.gzip("data"); 100_000.times{Zlib.gunzip(d)}'
VmRSS: 82... -
01:41 PM Revision b268da23 (git): zlib.c: memory leak in gunzip
- * ext/zlib/zlib.c (zlib_gunzip): clear zstream to fix memory leak.
[ruby-core:83162] [Bug #13982]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:35 PM Bug #13921 (Closed): buffered read_nonblock doesn't work as expected using SSLSocket
- chucke (Tiago Cardoso) wrote:
> rhenium, thank you for the link to the openssl issue, I just tested, and I can confirm that it solves the issue! Indeed I had problems with data left in the destination buffer passed as argument, as my ex... -
12:17 PM Feature #13979: Ruby doesn't give error on keyword arguments that you can't refer to
- Eregon (Benoit Daloze) wrote:
> @nobu Is there any value to support such keyword arguments?
> ...
I've heard the example that Rails (maybe ActiveSupport?) had used `if:` as short for "interface".
`Binding#local_variable_get` does not ... -
10:51 AM Feature #13979: Ruby doesn't give error on keyword arguments that you can't refer to
- Thank you nobu, I didn't know about Binding#local_variable_get
-
08:57 AM Feature #13979: Ruby doesn't give error on keyword arguments that you can't refer to
- @nobu Is there any value to support such keyword arguments?
I think an early error might be less surprising here.
On the callee side, I think it's a lot more practical to use **keyrest in such a case like keyrest.fetch(:class, 1). -
12:58 AM Feature #13979 (Rejected): Ruby doesn't give error on keyword arguments that you can't refer to
- Use `Binding#local_variable_get`.
-
11:59 AM Feature #12533: Refinements: allow modules inclusion, in which the module can call internal methods which it defines.
- How about redefining `#include` in the context of refine as what would be expected of the new `#inject` method? I get that the semantics of module inclusion differ in both context regarding inheritance hierarchy order, but I'm still thin...
-
11:17 AM Feature #13981 (Closed): in configure, detect mandoc and set MANTYPE=doc
- Applied in changeset trunk|r60129.
----------
configure.ac: detect mandoc and set MANTYPE=doc
OpenBSD uses mandoc [Feature #13981] [ruby-core:83146]
Note: AC_PATH_PROGS_FEATURE_CHECK is autoconf 2.62 feature,
but current CRuby declares... -
04:13 AM Feature #13981 (Closed): in configure, detect mandoc and set MANTYPE=doc
- My OpenBSD machine uses `mandoc` to format manuals. Ruby's configure guesses MANTYPE=doc or MANTYPE=man after looking for `nroff` or `awf`, but doesn't know `mandoc`. I attach a patch to teach configure.ac about mandoc. This patch change...
-
11:17 AM Revision 4f966c0a (git): configure.ac: detect mandoc and set MANTYPE=doc
- OpenBSD uses mandoc [Feature #13981] [ruby-core:83146]
Note: AC_PATH_PROGS_FEATURE_CHECK is autoconf 2.62 feature,
but current CRuby declares AC_PREREQ(2.67); it's safe to use.
Patched by kernigh (George Koehler)
git-svn-id: svn+ssh://c... -
10:35 AM Feature #5964: Make Symbols an Alternate Syntax for Strings
- My only point was that symbols are not meant to be operated on the same as strings, because they do serve different purposes. They can serve as a kind of lightweight type-safety when you are dealing with an internal identifier, but in pr...
-
12:55 AM Feature #5964: Make Symbols an Alternate Syntax for Strings
- Ajedi32 (Andrew M) wrote:
> I can even imagine a reasonable use-case for both of those methods. For example, converting the name of an attribute reader method to the name of its corresponding setter (`:name + '='`), or grabbing the valu... -
08:09 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- I think `&[symbol, *args]` can be a natural extension to `&symbol`, as they are both a shorthand for `{ |_| _.__send__(*object) }`.
For Array to provide #to_proc would be just a little bit weird convention for greater convenience, jus... -
05:27 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- nobu (Nobuyoshi Nakada) wrote:
> jwmittag (Jörg W Mittag) wrote:
> ...
In Jörg's proposals, array elements are indeed not arguments, they are return values. Index values are arguments. -
01:03 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- jwmittag (Jörg W Mittag) wrote:
> I disagree: responding to `to_proc` in Ruby more or less means "I am a function-like thing". And arrays *are* function-like things, they are basically functions from their indices to their values. Havin... -
12:53 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- knu (Akinori MUSHA) wrote:
> Wouldn't Array#to_proc make sense?
> ...
I disagree: responding to `to_proc` in Ruby more or less means "I am a function-like thing". And arrays *are* function-like things, they are basically functions from... -
07:40 AM Bug #13980: Rounding failure on i686 (i386).
- Fedora 25 using gcc-6.4.1-1.fc25.i686. This is example of the failing build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=22237224
-
04:00 AM Bug #13980 (Feedback): Rounding failure on i686 (i386).
- I can't reproduce it with gcc 7.2.0 on Ubuntu 17.10.
Which distribution and compiler are you using? -
01:55 AM Bug #13980 (Closed): Rounding failure on i686 (i386).
- Revision 58513 introduced rounding failure:
```
1) Failure:
TestFloat#test_round_with_precision [/builddir/build/BUILD/ruby-2.3.5/test/ruby/test_float.rb:448]:
<5.02> expected but was
<5.01>.
15981 tests, 2235227 assertions, 1 ... -
06:11 AM Revision f52a4913 (git): .gdbinit: print_id in rp_id [ci skip]
- * .gdbinit (rp_id): use print_id instead of calling
lookup_id_str() in a debugger context.
* symbol.c (ID_ENTRY_UNIT): made visible to debuggers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60128 b2dd03c8-39d4-4d8f-98ff-823fe69... -
05:55 AM Bug #13973 (Closed): super_method fails on some UnboundMethods
- Applied in changeset trunk|r60127.
----------
proc.c: super_method of included method
* proc.c (method_super_method): search the next super method along
the included ancestor chain. [ruby-core:83114] [Bug #13973]
* vm_method.c (rb_... -
05:55 AM Revision a15028bc (git): proc.c: super_method of included method
- * proc.c (method_super_method): search the next super method along
the included ancestor chain. [ruby-core:83114] [Bug #13973]
* vm_method.c (rb_callable_method_entry_without_refinements):
return the defined class.
git-svn-id: svn... -
05:55 AM Revision 581c0231 (git): proc.c: prefer name method result to inspect
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:15 AM Revision 9de6c712 (git): No more ubygems in trunk
- [Fix GH-1711]
Author: MSP-Greg <MSP-Greg@users.noreply.github.com>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/05/2017
-
10:29 PM Bug #13841: Segmentation fault in Ruby CFUNC :to_s
- I get this somewhat inconsistently when running chef-solo on ubuntu 16.04.
Ruby version ruby 2.3.5p376 (2017-09-14 revision 59905) [x86_64-linux-gnu]
It will happen for a while, but eventually it will stop happening. It seems to be... -
10:17 PM Bug #13921: buffered read_nonblock doesn't work as expected using SSLSocket
- rhenium, thank you for the link to the openssl issue, I just tested, and I can confirm that it solves the issue! Indeed I had problems with data left in the destination buffer passed as argument, as my example above shows.
But I stil... - 09:53 PM Revision e810b5c9 (git): * 2017-10-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 09:53 PM Revision 0d2ab887 (git): webrick: avoid unnecessary IO#sync= call
- Sockets and pipes are always created with FMODE_SYNC flag
already set (otherwise many things would be broken).
* lib/webrick/server.rb (accept_client): remove unnecessary
IO#sync= call
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun... -
09:48 PM Feature #13979 (Rejected): Ruby doesn't give error on keyword arguments that you can't refer to
- You can't use keywords as names for normal arguments. For example all of these give a syntax error:
~~~ruby
def foo(class); end
def foo(def); end
def foo(if); end
# ... other keywords too
~~~
The reason is that there's no way ... -
09:26 PM Feature #5964: Make Symbols an Alternate Syntax for Strings
- avit (Andrew Vit) wrote:
> methods like `:a + :b` or `:c.upcase` make no sense.
They do make sense though. In fact, I can easily tell exactly what those methods should return just by their names. Are you saying you can't?
I can ev... -
08:00 PM Feature #5964: Make Symbols an Alternate Syntax for Strings
- sheerun (Adam Stankiewicz) wrote:
> Did it change since ruby got frozen string? Is there much difference between frozen string and symbol?
They are still semantically different objects: methods like `:a + :b` or `:c.upcase` make no s... -
06:21 PM Feature #5964: Make Symbols an Alternate Syntax for Strings
- matz (Yukihiro Matsumoto) wrote:
> In Ruby, Symbols annd Strings are different in both semantics and behavior (and implementation).
> ...
Did it change since ruby got frozen string? Is there much difference between frozen string and sy... -
08:38 PM Bug #13978: Remove Bundler from StdLib
- hsbt (Hiroshi SHIBATA) wrote:
> >Bundler was merged directly into StdLib on the grounds of "Rubygems itself is going to depend on bundler." but that is nowhere close IMO. Looking at diff between RubyGems 2.6 and master 2, there is nothi... -
10:09 AM Bug #13978 (Rejected): Remove Bundler from StdLib
- >Bundler was merged directly into StdLib on the grounds of "Rubygems itself is going to depend on bundler." but that is nowhere close IMO. Looking at diff between RubyGems 2.6 and master 2, there is nothing more then one condition. That ...
-
08:55 AM Bug #13978 (Rejected): Remove Bundler from StdLib
- While I acknowledge people are using Bundler and it provides valuable services, I hate to point out that Bundler was merged to the StdLib on the grounds of "rubygems team has plan to migrate bundler into rubygems at rubygems 3.0." [1], b...
-
06:19 PM Feature #7792: Make symbols and strings the same thing
- @shyouhei @matz Could this be revisited as ruby now has frozen strings? They behave pretty much the same as symbols.
Here's an article worth read: http://blog.arkency.com/could-we-drop-symbols-from-ruby/ -
11:17 AM Bug #13976 (Closed): SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2
-
08:01 AM Bug #13976: SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2
- sorry, duplicate of https://bugs.ruby-lang.org/issues/13939
feel free to delete this ticket. -
07:58 AM Bug #13976 (Closed): SyntaxError if curly brace block follows args without parentheses, introduced in 2.4.2
- ```ruby
# ruby 2.4.1
p :bar do end # => :bar
p :bar {} # => :bar
# ruby 2.4.2
p :bar do end # => :bar
p :bar {} # => SyntaxError: syntax error, unexpected '{', expecting end-of-input
```
In the wild this will mainly affect rs... -
10:44 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- > Wouldn't Array#to_proc make sense?
For me, it looks confusing. Array is (usually) a set of _homogenous_ objects, so my first guess for `Array#to_proc` would be this:
```ruby
[100,200,300].map(&%i[to_s reverse to_i])
```
(chain... -
03:35 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
- Wouldn't Array#to_proc make sense?
```ruby
class Array
def to_proc
proc { |x| x.__send__(*self) }
end
end
[100, 200, 300].map(&[:to_s, 16])
# => ["64", "c8", "12c"]
```
-
10:24 AM Feature #12648: `Enumerable#sort_by` with descending option
- Another path could be to introduce the sense of "reversed object".
I don't yet have a good name for the method that wouldn't cause name clash, but here it goes.
```ruby
module Comparable
class ReversedObject
include Compar... -
10:00 AM Feature #12648: `Enumerable#sort_by` with descending option
- Something like this can be a solution for sorting with multiple keys with separate ordering directions.
```ruby
module Comparable
class SortableTuple < Array
include Comparable
attr_reader :orderings
def initial... -
10:11 AM Bug #13977 (Rejected): 0 should be treated as FALSE
- Anon92929 (Anon Ymous) wrote:
> 0 is false, 1 is true.
Every programming language has its own convention. For example, in shell programming, 0 is true, and 1 (and any other numeric values except 0) are false.
In Ruby, only `false`... -
08:46 AM Bug #13977 (Rejected): 0 should be treated as FALSE
- 0 is false, 1 is true.
It is beyond stupidity that this even needs to be addressed. Fix this please. -
08:32 AM Bug #13975 (Closed): standard library になった bundler で bundle gem を実行できない
- Applied in changeset trunk|r60122.
----------
Fixed broken `bundle gem` command.
This patch is provided by @gyugyu (Yusuke Yagyu)
* Remove README* entry from no_install that there is no README* files except README.md.tt
* Rename... -
06:09 AM Bug #13975 (Assigned): standard library になった bundler で bundle gem を実行できない
- 報告ありがとうございます。再現を確認しました。
パッチですが、rbinstall.rb の変更だけ問題ないか確認してマージしようと思います。 -
05:30 AM Bug #13975 (Closed): standard library になった bundler で bundle gem を実行できない
- https://github.com/ruby/ruby/pull/1710
Ruby 2.5.0 から bundler が standard library となるようですが、
現在の standard library として同梱されている bundler では必要なテンプレートファイルが不足しており、
bundle gem コマンドでの gem 作成が、本来発生しないはずのエラーで終了してしまいます。
~~~
~/s/github.com ❯❯❯ ... -
08:32 AM Revision 5b3d137b (git): Fixed broken `bundle gem` command.
- This patch is provided by @gyugyu (Yusuke Yagyu)
* Remove README* entry from no_install that there is no README* files except README.md.tt
* Rename .travis.yml.tt to travis.yml.tt like gitignore.tt
[Bug #13975][ruby-dev:50278][fi... -
06:33 AM Bug #13962: Change http://unicode.org to https
- normalperson (Eric Wong) wrote:
> Regardless of HTTPS or not; can we keep known-good
> ...
Unicode is currently looking at adding checksums. We should definitely integrate these into our process when they are available.
Also, ple... -
05:51 AM Bug #13962: Change http://unicode.org to https
- duerst@it.aoyama.ac.jp wrote:
> Just an intermediate report: HTTPS is available only since
> about a week, and the Unicode Consortium wants to check things
> a bit more before the availability is officially confirmed and
> announced... -
02:45 AM Bug #13962: Change http://unicode.org to https
- Just an intermediate report: HTTPS is available only since about a week, and the Unicode Consortium wants to check things a bit more before the availability is officially confirmed and announced. I'll wait until that time.
-
02:56 AM Misc #13974 (Closed): Make sure Unicode files are only downloaded once, not repeatedly, for continuous integration
- People from the Unicode Consortium pointed out to me that we shouldn't repeatedly download the Unicode data files for continuous integration. I know that we are fine for compiling updates, e.g. locally.
What I want to help somebody ch... -
02:35 AM Revision 09e60b5a (git): io.c: [DOC] about buffering [ci skip]
- * io.c (rb_file_initialize): [DOC] stated that non-tty file is
buffered by the default, and added links to related methods.
[ruby-core:83081] [Bug #13965]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60121 b2dd03c8-39d4-4d8f-98... -
02:01 AM Bug #13973 (Closed): super_method fails on some UnboundMethods
- `super_method` fails to go up the ancestry chain for methods that are only defined in included modules:
~~~ ruby
module A
def foo
end
end
module B
def foo
end
end
class C
include A
include B
end
class D
... -
01:53 AM Bug #13971 (Closed): Ripper changes sexp - class methods
- Applied in changeset trunk|r60120.
----------
parse.y: fix KWD2EID
* parse.y (KWD2EID): should respect the previous callback result
for keywords. [ruby-core:83106] [Bug #13971] -
01:53 AM Revision 80855409 (git): parse.y: fix KWD2EID
- * parse.y (KWD2EID): should respect the previous callback result
for keywords. [ruby-core:83106] [Bug #13971]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:43 AM Revision d002f230 (git): Fixed invalid gemspec.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 01:30 AM Revision 5146c363 (git): * 2017-10-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:30 AM Revision a6ac6e00 (git): Followed up [ruby-core:83093]. Update gemspec attributes.
- Added metadata for rubygems.org.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/04/2017
-
08:47 PM Bug #13972 (Closed): [PATCH] document File.{setuid?,setgid?,sticky?} support for IO objects
- Supporting bare IO objects which do not respond to #to_path
was accidentally introduced in r60108, but it seems harmless
enough.
* file.c (rb_file_setuid_p): rdoc for IO object support
(rb_file_sgid_p): ditto
(rb_file_sticky_p... -
05:52 PM Bug #13965: Surprising behavior when using Tempfile.open
- Could a small documentation blurb alleviate future headaches for other users?
If the docs had said something like "Due to buffering, the contents of a file may be incomplete until flushed" I would not have been (so) surprised. -
03:19 PM Bug #13971 (Closed): Ripper changes sexp - class methods
- nobu, thank you for the fixes. I apologize; I missed some in the 1st report.
Code:
```ruby
# frozen_string_literal: true
require 'ripper'
require 'pp'
puts "\n#{RUBY_DESCRIPTION}"
puts "\nmodule T ; def self.test... -
01:29 PM Bug #13970 (Rejected): Base64 urlsafe_decode64 unsafe use of tr.
- A lot of the base64 module lacks duck typing or nice errors.
For example the `urlsafe_decode64` function never checks `str` is something that behaves like a string and will respond to `tr`.
If you pass `nil` by mistake you end up wit... -
11:11 AM Feature #13969 (Closed): Dir#each_child
- Dir has class method pairs: `Dir.entries` / `Dir.children`, `Dir.foreach` / `Dir.each_child`.
But instance method is `Dir#each` only.
How about adding `Dir#each_child`? -
08:19 AM Bug #13906: homepage in gemspec
- It seems better to link to the place where the development of these libraries happen.
-
03:01 AM Bug #13906: homepage in gemspec
- I don't understand, what's wrong with homepage being ruby-lang.org?
-
06:53 AM Feature #13936: Make regular expressions debugable
- shevegen (Robert A. Heiler) wrote:
> I remember that I ran into encoding-related problems with regexes which were not trivial to resolve for me back then.
> ...
I think this is a valid concern, but not directly related to the issue h... -
02:26 AM Feature #13936: Make regular expressions debugable
- Trunk version (with TOC):
https://msp-greg.github.io/ruby_trunk/Core/Regexp.html -
06:47 AM Revision 2afb729f (git): parse.y: fix var_field
- * parse.y (mlhs_node): dispatch var_field as well as lhs.
* parse.y (lhs, var_hs): dispatch var_field before assignable
check so it is inside assign_error at a wrong assignment, as
well as backref_assign_error.
* parse.y (var_field... -
06:41 AM Bug #13966: configure.in still needed ?!
- nobu (Nobuyoshi Nakada) wrote:
> By running `./config.status`, Makefile should be updated.
I get the following ouput when I run `./config.status` (in the main directory):
config.status: creating GNUmakefile
config.status: creating ... -
06:21 AM Misc #13968: [Ruby 3.x perhaps] - A (minimal?) static variant of ruby
- Looking at common.mk, there are various places with the text "static". I'm not an expert in makefiles, but static compilation may already work.
-
05:48 AM Revision 3be41283 (git): parse.y: reserved words as <id>
- * parse.y (reswords): declare reserved words as <id> to remove
extra cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:30 AM Revision b17a16c2 (git): test_sexp.rb: test for fname
- * test/ripper/test_sexp.rb (test_def_fname): test for fname in def
statement. [ruby-core:83089] [Bug #13967]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:43 AM Bug #13967 (Closed): Recent Ripper changes, sexp broken?
- Applied in changeset trunk|r60113.
----------
parse.y: Revert r60102
* parse.y (op): do not set event ID here to dispatch on_op.
[ruby-core:83089] [Bug #13967] -
04:43 AM Revision 8e03b79e (git): parse.y: Revert r60102
- * parse.y (op): do not set event ID here to dispatch on_op.
[ruby-core:83089] [Bug #13967]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:05 AM Feature #13958 (Closed): [PATCH] Dir.empty? releases GVL - Applied in changeset trunk|r60111.
----------
Dir.empty? releases GVL
This converts all slow syscalls in the Dir.empty? implementation
to release GVL. We avoid unnecessarily GVL release and
reacquire for each slow call (opendir, readd... - 12:04 AM Revision 1ff78c78 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:04 AM Revision 1e14126b (git): Dir.empty? releases GVL
- This converts all slow syscalls in the Dir.empty? implementation
to release GVL. We avoid unnecessarily GVL release and
reacquire for each slow call (opendir, readdir, closedir) and
instead only release and acquire the GVL once in the c...
10/03/2017
-
11:58 PM Feature #13936: Make regular expressions debugable
- I am inclined to agree with Martin. In general introspection is awesome; I remember many years ago having used Steve Dekorte's Io language; the syntax was not so nice of his language, but the introspection was really nice (I think that w...
-
11:48 PM Feature #13963 (Closed): [PATCH] file.c: release GVL around lstat(2) - Applied in changeset trunk|r60110.
----------
file.c: release GVL around lstat(2)
Like stat(2), lstat(2) can be expensive on slow filesystems and
should not block other threads. There should be a minor, but
not significant slowdowns i... - 11:47 PM Revision fbb34327 (git): file.c: release GVL around lstat(2)
- Like stat(2), lstat(2) can be expensive on slow filesystems and
should not block other threads. There should be a minor, but
not significant slowdowns in single-threaded performance similar
to benchmarks around the more-portable stat(2)... - 11:47 PM Revision 15edf2b3 (git): * 2017-10-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 11:47 PM Revision 27cced70 (git): file.c: release GVL in File.{setuid?,setgid?,sticky?}
- * file.c (check3rdbyte): use rb_stat to release GVL
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:21 PM Feature #13697: [PATCH]: futex based thread primitives
- normalperson@yhbt.net wrote:
> https://bugs.ruby-lang.org/issues/13697
> Assigning to kosaki since he wrote the current GVL.
> I'm hoping single-core vm_thread_pass benchmark can be
> improved, but I'm not sure...
Can anybody els... -
08:42 PM Misc #13968 (Open): [Ruby 3.x perhaps] - A (minimal?) static variant of ruby
- Hello ruby core team and everyone else,
I think this has been brought up before, in one way or the other, but
just in case it was not, or not in this context, I would like to **propose
that ruby can be compiled statically**.
Matz... -
07:24 PM Bug #13967 (Closed): Recent Ripper changes, sexp broken?
- With some recent changes, (svn 60103 +), Ripper.sexp has changed. With 60103 +, the second lex shown below no longer has the method name. Old version shows `[:@op, "<<", [1, 4]]`, new version shows simply `:on_op`
Code:
```ru... -
01:18 PM Bug #13956: Segmentation fault when calling Method#using with a non-module argument and block
- `using` は top level (`main`) の特異メソッド (と `Module#using`) なので、`Object` のインスタンスメソッドより優先されるため、上書きするなら `def self.using` にする必要があるようです。
```
% ruby -e 'p method(:using)'
#<Method: main.using>
% ruby -e 'def m;end;p method(:m)'
#<Method: ... -
01:06 PM Feature #8661: Add option to print backtrace in reverse order (stack frames first and error last)
- I object the current behavior which prints backtrace in reverse order for STDERR. It is confusing.
-
12:36 PM Bug #13966: configure.in still needed ?!
- By running `./config.status`, Makefile should be updated.
-
09:04 AM Bug #13966 (Closed): configure.in still needed ?!
- When compiling trunk on cygwin, I get the following error:
```
make[2]: Entering directory '/cygdrive/c/Data/ruby/ext/rbconfig/sizeof'
make[2]: *** No rule to make target '../../.././configure.in', needed by 'sizes.c'. Stop.
make[... -
12:06 PM Revision 5f6b0422 (git): Fix leaked file descriptor
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:51 AM Revision 7f6e18fa (git): test_parser_events.rb: backref_assign_error
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:56 AM Revision 1ef2ca5a (git): parse.y: extract callback results
- * parse.y: stripping wrapping NODEs from ripper callback results,
when storing in Array objects. NODEs must not appear in Ruby
level.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:47 AM Revision 75318f31 (git): parse.y: set ripper event IDs to keyword variables
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:44 AM Bug #13965 (Rejected): Surprising behavior when using Tempfile.open
- Yes, it's a nature of buffering.
-
12:17 AM Bug #13965: Surprising behavior when using Tempfile.open
- To workaround the unexpected behavior, either use `IO#sync = true` or `IO#flush` after writing to the file.
-
12:12 AM Bug #13965: Surprising behavior when using Tempfile.open
- This appears to be the behavior of `File.open` + block, as well:
```
>> File.open("/tmp/test.txt","w+"){|f| (1..10000).each { |i| f.puts i }; `tail -n1 #{f.path}` }
=> "8416"
``` -
12:03 AM Bug #13965 (Rejected): Surprising behavior when using Tempfile.open
- I was trying to write the contents of an array to a Tempfile using the #open() + block syntax: Tempfile.open { |f| my_array.each { |item| f.puts item }}
However, I was finding that only *most* of the items were being written to the fi... - 01:38 AM Revision 3efbda77 (git): * 2017-10-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:38 AM Revision e8e5a450 (git): parse.y: set ripper event ID symbols to operators
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e