Project

General

Profile

Activity

From 02/26/2016 to 03/03/2016

03/03/2016

11:27 PM Bug #12139: return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows.
Sorry, I've forgotten to note that `Random.raw_seed` is Ruby 2.3 feature. usa (Usaku NAKAMURA)
10:42 PM Bug #12139: return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows.
`Random.raw_seed` is an alternative to `OpenSSL::Random.random_seed`.
This calls `CryptGenRandom` internally.
BTW, I could not reproduce the problem on my environment (x64-mswin64, Win7, OpenSSL 1.0.2f).
Calling `OpenSSL::Random.ran...
usa (Usaku NAKAMURA)
10:11 PM Bug #12139: return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows.
Yui NARUSE wrote:
> Your issue sounds related with https://wiki.openssl.org/index.php/Random_Numbers#Windows_Issues
> ...
CryptGenRandom would be an excellent solution in my opinion :)
Justin (Justin Ward)
10:06 PM Bug #12139: return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows.
Nobuyoshi Nakada wrote:
> Maybe the entropy pool exhausted?
> ...
In the 22 seconds it takes rails to load i am usually writing code, so OpenSSL does not get woken up by keyboard or mouse activity.
Justin (Justin Ward)
08:27 AM Bug #12139: return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows.
Your issue sounds related with https://wiki.openssl.org/index.php/Random_Numbers#Windows_Issues
But [Bug 2100 the heap walk issue](https://rt.openssl.org/Ticket/Display.html?id=2100&user=guest&pass=guest) is closed.
Anyway maybe Secu...
naruse (Yui NARUSE)
08:26 AM Bug #12139 (Feedback): return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows.
Maybe the entropy pool exhausted?
Does moving mouse or typing keyboard wake up OpenSSL?
nobu (Nobuyoshi Nakada)
05:45 AM Bug #12139 (Closed): return OpenSSL::Random.random_bytes(n) call takes to long. OpenSSL:: bug on windows.
I have been a windows dev for a while now. I have never solved this rails startup issue. Running one Rspec test takes rails 22 seconds to load on my PC. When I (temporarily) comment out the line in securerandom.rb and replace it with a h... Justin (Justin Ward)
09:29 PM Feature #12141: send and __send__
Sorry, hard time editing/formating my post !
:-(
But I hope you understand what I mean !
hermes128 (Sebastian Herm)
09:21 PM Feature #12141: send and __send__
[deleted by author] hermes128 (Sebastian Herm)
09:17 PM Feature #12141 (Open): send and __send__
Hi guys !
We have this concept of sending messages to objects with `Object#send`, and that's fine, but often a child class defines its own send method, so that's why we have this ugly `Object#__send__` hack.
So, I suggest dropping ...
hermes128 (Sebastian Herm)
09:05 PM Revision f1321bd6 (git): * 2016-03-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:05 PM Revision e5fc06cd (git): * test/ruby/test_io_m17n.rb (test_each_codepoint_need_more): Bump
timeout up to 10s for slower platforms and impls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
headius (Charles Nutter)
08:03 PM Bug #11844: Please update unicode-licensed files (license issue)
Another thing - you're saying your copies of the files were modified. If the -data- inside them was modified, does that mean you're not compliant because you're not "supporting the Unicode Standard" as defined back then? zeha (Christian Hofstaedtler)
08:02 PM Bug #11844: Please update unicode-licensed files (license issue)
The non-free problem is with this line: "supplied in this file in the creation of products supporting the Unicode Standard" - which implies that you can't use this file to produce stuff not supporting / not complying with "the Unicode St... zeha (Christian Hofstaedtler)
05:46 PM Bug #12140 (Closed): Serialization of OpenStruct objects with YAML fails
Indeed, it's a dupe of #11884. marcandre (Marc-Andre Lafortune)
04:13 PM Bug #12140: Serialization of OpenStruct objects with YAML fails
Maybe it's a dup of https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/53366
jmanrubia (Jorge Manrubia)
04:04 PM Bug #12140 (Closed): Serialization of OpenStruct objects with YAML fails
When deserializing a serialized YAML open-struct object, it fails with an exception `NoMethodError: undefined method `key?' for nil:NilClass`.
This breaks `serialized` attributes in Rails 3.2 with Ruby 2.3.
To reproduce:
~~~
re...
jmanrubia (Jorge Manrubia)
09:49 AM Misc #12124: Use Automake
Just I remind,
Ruby's Makefile must support nmake.
I know automake can generate Makefile which runs with bsdmake, but don't know with nmake.
naruse (Yui NARUSE)
08:31 AM Revision e87d9a43 (git): parse.y: split nextc
* parse.y (parser_nextline, parser_cr): split less frequent paths
from parser_nextc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:42 AM Revision f6347e38 (git): parse.y: cr_seen flag
* parse.y (parser_params): turn last_cr_line into cr_seen flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:22 AM Feature #11666: IPAddr#private?
As far as I understand RFC4193 never defines its range being "private". There also are other private-ish address ranges e.g. fd00::/8. And what about v4-mapped v6 addresses? IPv6's situation is complicated (at least to me). I'd sugge... shyouhei (Shyouhei Urabe)
05:41 AM Bug #12100 (Closed): CSV converters fail when using single arg proc
closing as per request shyouhei (Shyouhei Urabe)
05:10 AM Feature #12093: Eval InstructionSequence with binding
"ISeq#compile's need of binding" means a template engine cannot cache compiled ISeqs for later invocation, right? I doubt the benfit of compile's taking bindings. shyouhei (Shyouhei Urabe)
05:09 AM Bug #11587 (Closed): Make OpenStruct#new_ostruct_member and #modifiable fully private API
Applied in changeset r53987.
----------
ostruct.rb: make internal methods private
* lib/ostruct.rb (modifiable?, new_ostruct_member!, table!):
rename methods for internal use with suffixes and make private,
[ruby-core:71069] [Bug #...
nobu (Nobuyoshi Nakada)
05:09 AM Revision 7c89ca54 (git): ostruct.rb: make internal methods private
* lib/ostruct.rb (modifiable?, new_ostruct_member!, table!):
rename methods for internal use with suffixes and make private,
[ruby-core:71069] [Bug #11587]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53987 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
04:38 AM Feature #8921: Allow select, reject, etc to accept a regex
Do you still need this? We now have grep_v which resembles your reject example. shyouhei (Shyouhei Urabe)
03:08 AM Revision 09fefc2e (git): * 2016-03-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:08 AM Revision 80a8390c (git): test/unit: not return the cursor if verbose
* test/lib/test/unit.rb (update_status): do not return the cursor
if verbose mode, not results and times to overwrite test names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/02/2016

06:08 PM Feature #12138 (Feedback): Support `Kernel#load_with_env(filename, cbase: SomeMod, cref: someMod, binding: SomeMod) # => obj`
Ruby's `require` and `load` methods currently only return `true`, which means that any code being loaded must affect the global namespace, or have the global namespace affected for it to interact with.
This means that to load data, li...
josh.cheek (Josh Cheek)
05:58 PM Bug #12137 (Closed): Ruby2.3 blk.binding crashes instead of giving "Can't create Binding from C level Proc (ArgumentError)"
The following code raises an ArgumentError on 2.2. On 2.3, it crashes in binding.
~~~ruby
def repro(&blk)
blk.binding
nil
end
repro(&:succ)
~~~
Output 2.2:
~~~
crash.rb:2:in `binding': Can't create Binding from C le...
zeha (Christian Hofstaedtler)
03:24 PM Bug #12135 (Feedback): OptParse rejects --longopt= with a zero-length argument.
What is "C's OptParse"? nobu (Nobuyoshi Nakada)
10:57 AM Bug #12135 (Closed): OptParse rejects --longopt= with a zero-length argument.
OptParse diverges from C's OptParse by rejecting a zero-length argument given to a long option.
C accepts it:
~~~
$ ./a.out --delete=
option delete with arg ''
~~~
Ruby fails:
~~~
OptionParser::InvalidArgument: invalid ar...
Warwick (Tim Baverstock)
02:07 PM Bug #12127 (Third Party's Issue): LANG environment is not respected
Yui NARUSE wrote:
> I can't reproduce it.
> ...
~~~
$ ruby -ve "p Encoding.find('locale');puts ''.encoding"
ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux]
#<Encoding:US-ASCII>
US-ASCII
~~~
Actually, I suspect this my h...
vo.x (Vit Ondruch)
12:53 PM Bug #12136: OpenStruct.new(format: :bar).send :format # => too few arguments
It's this commit: https://github.com/ruby/ruby/blob/7fa21558051e5412dcb790f528e392476edd4389/lib/ostruct.rb
By defining the getters and setters lazily the Kernel, Object and BasicObject instance methods shine through and #method_missi...
niko (Niko Dittmann)
11:19 AM Bug #12136 (Closed): OpenStruct.new(format: :bar).send :format # => too few arguments
#send(:format) to an OpenStruct with a field named :format raises an ArgumentError in Ruby 2.3.0:
~~~
OpenStruct.new(format: :bar).send :format
ArgumentError: too few arguments
~~~
It works as expected in ruby 2.2.1p85 (2015-02-...
niko (Niko Dittmann)
12:27 PM Feature #11527: IPAddr#mask_addr isn't a method
There is a proposal for a fix on https://github.com/ruby/ruby/pull/1269 (see https://bugs.ruby-lang.org/issues/11210) herwinw (Herwin Quarantainenet)
12:12 PM Feature #11210: IPAddr has no public method to get the current subnet mask
Assigning this to the official maintainer of ipaddr.
Or should it be assigned to matz?
Could this be decided at the next Developer meeting or sooner?
See https://github.com/ruby/ruby/pull/1269 for the patch.
Eregon (Benoit Daloze)
11:16 AM Feature #12134: Comparison between `true` and `false`
for the first case you can use #partition
```ruby
[7, 6, 5, 4, 3, 2, 1].partition{|e| Prime.prime?(e) }.flatten
# => [7, 5, 3, 2, 6, 4, 1]
```
Hanmac (Hans Mackowiak)
10:56 AM Feature #12134 (Open): Comparison between `true` and `false`
There are some needs to sort elements depending on whether they satisfy certain condition expressed as a predicate. For example, to place prime numbers before others:
~~~RUBY
require "prime"
[7, 6, 5, 4, 3, 2, 1].sort_by{|e| Prime.p...
sawa (Tsuyoshi Sawada)
07:49 AM Bug #10746 (Rejected): ruby bundles files that requires minitest/testunit (removed from library on 2.2.0)
hsbt (Hiroshi SHIBATA)
07:43 AM Bug #10914 (Rejected): Always reproducible crash on FreeBSD with unicorn and 2.2.0p0 (2.1.5p273 too)
hsbt (Hiroshi SHIBATA)
07:28 AM Revision 0534b970 (git): vm_eval.c: call method_missing by method entry
* vm_eval.c (method_missing): call by found method entry and get
rid of searching the same method entry twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:18 AM Revision be8005b9 (git): vm_eval.c: method_missing by method_missing
* vm_eval.c (vm_call0_body): calling method_missing method is
method_missing().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:03 AM Revision 61b9074c (git): test/unit: return the cursor
* test/lib/test/unit.rb (update_status): keep the cursor to the
beginning of the line for each update, so that unexpected output
like an error message will overwrite but not be concatenated to
the status.
git-svn-id: svn+ssh://ci....
nobu (Nobuyoshi Nakada)
06:19 AM Bug #9369 (Closed): Using XMLScanStreamParser in xmlrpc/parser may result in parse errors
Applied in changeset r53981.
----------
* lib/xmlrpc.rb: Removed broken parser named XMLScanStreamParser.
It's not works with current Ruby version.
[fix GH-1271][ruby-core:59588][Bug #9369]
* lib/xmlrpc/config.rb: ditto.
* lib/xmlrp...
hsbt (Hiroshi SHIBATA)
06:19 AM Revision a2845a44 (git): * lib/xmlrpc.rb: Removed broken parser named XMLScanStreamParser.
It's not works with current Ruby version.
[fix GH-1271][ruby-core:59588][Bug #9369]
* lib/xmlrpc/config.rb: ditto.
* lib/xmlrpc/parser.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53981 b2dd03c8-39d4-4d8f-98ff-823fe69b...
hsbt (Hiroshi SHIBATA)
06:12 AM Bug #9370 (Closed): Parse error when using XMLTreeParser in xmlrpc
Applied in changeset r53980.
----------
* lib/xmlrpc.rb: Removed broken parser named XMLTreeParser.
Required gem of its parser didn't compile on newer Ruby versions.
[fix GH-1271][ruby-core:59590][Bug #9370]
* lib/xmlrpc/config.rb: ...
hsbt (Hiroshi SHIBATA)
06:12 AM Revision d8e3a924 (git): * lib/xmlrpc.rb: Removed broken parser named XMLTreeParser.
Required gem of its parser didn't compile on newer Ruby versions.
[fix GH-1271][ruby-core:59590][Bug #9370]
* lib/xmlrpc/config.rb: ditto.
* lib/xmlrpc/parser.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53980 b2dd03c8...
hsbt (Hiroshi SHIBATA)
03:42 AM Bug #12056: kwarg is not allowed after `return`
cf https://docs.google.com/document/u/2/d/1rj7ODOCSfcsQeBd6-p-NiVwqxDUg05G66LwDOkKOGTw/pub
Matz is negative to this.
shyouhei (Shyouhei Urabe)

03/01/2016

08:31 PM Feature #12133 (Feedback): Ability to exclude start when defining a range
An intuitive, approach would be to allow defining ranges like so:
~~~
[1..10]
[1..10)
(1..10]
(1..10)
~~~
... where a square bracket indicates boundary inclusion and a parenthesis represents boundary exclusion. The syntax ther...
slash_nick (Ryan Hosford)
03:29 PM Bug #12088: Segmentation fault at 0x00000000000000 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
2.2.2 is outdated. nobu (Nobuyoshi Nakada)
02:48 PM Bug #12088: Segmentation fault at 0x00000000000000 ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
Upgraded to 2.2.2
BTW. We'r using CentOS 6.6. libc2.12
Just faced with problem again:
~~~
*** glibc detected *** ruby: double free or corruption (fasttop): 0x00007f9ea5118d30 ***
======= Backtrace: =========
/lib64/libc.so.6(+...
twKrash (Maksim Dvoryanchenko)
03:00 PM Revision a400386d (git): * 2016-03-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision 6d2c4e7b (git): Fix pull request number [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:43 PM Revision 58f7563d (git): vm_method.c: fix assertion
* vm_method.c (prepare_callable_method_entry): assert same
condition only once for each case, not twice for module instance
method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:32 PM Bug #12132 (Closed): Crash during tests
After updating a rails application to 2.3 I am experiencing intermittent crashes when I run `bundle exec rspec` chills42 (Craig Hills)
11:00 AM Feature #10617: Change multiple assignment in conditional from parse error to warning
I find this really unintuitive and share some of 'bug hit's exasperation. It's clear that the return value, like everything, is either truthy or falsey, why treat this differently to everything else in Ruby?
It's particularly annoying...
mikecmpbll (Mike Campbell)
10:40 AM Bug #12131 (Closed): Should defining singleton_method_added call itself?
This seems surprising:
~~~
obj = Object.new
def obj.singleton_method_added(n)
p n
end
def obj.new_singleton_method; end
~~~
outputs
~~~
:singleton_method_added
:new_singleton_method
~~~
Eregon (Benoit Daloze)
06:45 AM Bug #12130 (Closed): WEBrick::HTTPProxy closes connection when the socket is not writable temporally
`WEBrick::HTTPProxy#do_CONNECT` closes connection when `Errno::EAGAIN` or `Errno::WOULDBLOCK` occurred.
These exceptions will raise when the socket is not writable temporally.
I expect that the proxy will wait until the socket will be ...
labocho (Keisuke NISHI)
06:15 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
For a similar proposal, please cf. #10394. sawa (Tsuyoshi Sawada)
02:41 AM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
Yes, `&:to_s(16)` is exactly my (rejected) proposal. nobu (Nobuyoshi Nakada)
04:08 AM Bug #12127: LANG environment is not respected
I can't reproduce it.
Could you show `ruby/ruby -ve "p Encoding.find('locale');puts ''.encoding"`?
naruse (Yui NARUSE)
02:41 AM Bug #12127 (Feedback): LANG environment is not respected
Can you explain what the problem is with
$ LANG=en_US.utf-8 ruby -e "puts ''.encoding"
US-ASCII
As far as I understand, strings with an encoding of US-ASCII can be used wherever an UTF-8 string can be used, so this shouldn't creat...
duerst (Martin Dürst)
03:13 AM Feature #12129: syntactic sugar for dynamic method dispatch `object_expression:method_name_expression(1, 2)`
Yukihiro Matsumoto wrote:
> Describe more concretely and preferably tell us why do you need it, please.
`object_expression:method_name_expression(1, 2)`
would be sugar for
`object_expression.__send__(method_name_expression, arg...
bughit (bug hit)
03:00 AM Feature #12129: syntactic sugar for dynamic method dispatch `object_expression:method_name_expression(1, 2)`
Describe more concretely and preferably tell us why do you need it, please.
Matz.
matz (Yukihiro Matsumoto)
02:26 AM Revision ab1a8045 (git): * 2016-03-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:26 AM Revision baa43cd0 (git): fileutils.rb: keyword arguments
* lib/fileutils.rb: use keyword arguments instead of option
hashes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:23 AM Feature #12125: Proposal: Shorthand operator for Object#method
Stefan Merettig wrote:
> * Using `.>`: `the_object.>a_method`
> ...
These two conflict with existing syntax and break compatibility.
Note that `object.>(other)` is a valid method call.
nobu (Nobuyoshi Nakada)
02:09 AM Bug #12128 (Rejected): Strings in `ARGV` are frozen
nobu (Nobuyoshi Nakada)
01:58 AM Feature #12113: Global method inside Delegator causes NameError
Correction: the infinite recursion was a bug in the patch, and fixed the branch.
The trick of `Kernel` for [Bug #9155] is for the case a global method is called *before* the target object is set.
It is for the backward compatibility ...
nobu (Nobuyoshi Nakada)
01:41 AM Bug #12126: [PATCH] openssl: accept moving write buffer for write_nonblock
normalperson@yhbt.net wrote:
> Before this, a Rubyist would need to remember the exact object
> which failed to write and reuse it later when the socket became
> writable again. This causes problems when the buffer is given
> by an...
normalperson (Eric Wong)

02/29/2016

11:06 PM Feature #12020: Documenting Ruby memory model
I understand your point, I would like explore how it could be solved in MRI before relaxing the constant and method redefinition though. The relaxation could lead to undesirable unpredictable behaviour for users.
As you've mentioned t...
pitr.ch (Petr Chalupa)
10:03 PM Feature #12129 (Open): syntactic sugar for dynamic method dispatch `object_expression:method_name_expression(1, 2)`
bughit (bug hit)
09:34 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
Although I don't understand the Japanese, the linked issue, with a similar syntax to what Shel vacu proposed above, was rejected by Matz. So probably not too much hope on getting this into core… felixbuenemann (Felix Bünemann)
08:45 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
I think there have been many other similar proposals. Nobu linked to other
discussions.
From what I have seen, I think the major problem is coming up with a nice
syntax proposal.
```ruby
.map(&:foo)
```
is ok because it is s...
shevegen (Robert A. Heiler)
06:35 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
I agree that there should be some syntax for doing this, but I don't think this is the proper way to do it.
Personally, the syntax is confusing to me. I would prefer something like:
~~~ruby
[1,2,16].map(&:to_s(16))
~~~
This wa...
shelvacu (Shel vacu)
08:40 PM Feature #12125: Proposal: Shorthand operator for Object#method
I think the `&File->basename` looks confusing since we also have
`->` standalone now.
`object->method` reminds me a lot of php/perl and ruby uses the
prettier `.` instead, `object.method`.
I also think that :
```ruby
.map{F...
shevegen (Robert A. Heiler)
04:40 PM Feature #12125: Proposal: Shorthand operator for Object#method
Please don't do this!!! No need to make the language more complex just to solve such small issue!!!
If you want to do something pretty, then whole closure syntax should be simplified, not just call to '#method'.
````ruby
Dir["*/*....
funny_falcon (Yura Sokolov)
02:29 PM Feature #12125: Proposal: Shorthand operator for Object#method
How about this one?
~~~ruby
class UnfoundMethod
def initialize(receiver)
@receiver = receiver
end
def method_missing(name, *args, &block)
@receiver.method(name)
end
end
module UnfoundMethodAttacher
def ...
ksss (Yuki Kurihara)
02:14 PM Feature #12125: Proposal: Shorthand operator for Object#method
Yukihiro Matsumoto wrote:
> but I don't think `->` is a good idea.
Other options I can think of are:
* Using `.>`: `the_object.>a_method` While its look is nearer to a normal method call (Which I think is a plus), I fear that the...
Papierkorb (Stefan Merettig)
12:58 PM Feature #12125: Proposal: Shorthand operator for Object#method
For this kind of "conceptual" methods I sometimes define just one-letter shortcuts in core_ext.rb, like `.map(&File.m(:basename))`. I'm not sure, though, if any of existing/popular libraries will struggle from such kind of solution (or m... zverok (Victor Shepelev)
12:37 AM Feature #12125: Proposal: Shorthand operator for Object#method
I like the idea of short hand notation for `Object#method()`, but I don't think `->` is a good idea.
Matz.
matz (Yukihiro Matsumoto)
08:33 PM Bug #12128: Strings in `ARGV` are frozen
I believe that this is actually how ruby may have behaved before the transition into frozen strings
already; at the least, I seem to distinctly remember that, if I write a method such as:
---
~~~ruby
require 'pp'
def foo(i = A...
shevegen (Robert A. Heiler)
07:35 PM Bug #12128: Strings in `ARGV` are frozen
Be advised that you can say `ARGV.map!(&:+@)` if you really want to modify the elements in-place, but that's probably not the best idea. 0x0dea (D.E. Akers)
06:15 PM Bug #12128: Strings in `ARGV` are frozen
Sorry, I found that it is indeed a feature that they are frozen. Please reject this. sawa (Tsuyoshi Sawada)
06:08 PM Bug #12128 (Rejected): Strings in `ARGV` are frozen
It is not clear how the frozen status of strings in `ARGV` are to be described, but regardless of what I try to do (i.e. set frozen string pragma as false, which is probably irrelevant because the strings are already created at the time ... sawa (Tsuyoshi Sawada)
08:13 PM Bug #11962: Ruby 2.3.0 causing compile failure on extensions using a C++ compiler
We are trying to transition Debian unstable to ruby2.3, it would be very helpful to have this applied to the 2.3 branch. terceiro (Antonio Terceiro)
07:56 PM Feature #11625 (Assigned): Unlock GVL for SHA1 calculations
ext/digest should use OpenSSL, which has many optimizations.
But old ruby's ext/digest/sha1 was buggy.
Through r52694, r52695, and r52755, I fixed it.
Now it correctly uses openssl (if you give --with-openssl-dir or something on OS ...
naruse (Yui NARUSE)
02:14 PM Bug #12127 (Third Party's Issue): LANG environment is not respected
Ruby 2.2:
~~~
$ ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
$ ruby -e "puts ''.encoding"
US-ASCII
$ LANG=en_US.utf-8 ruby -e "puts ''.encoding"
UTF-8
~~~
Ruby 2.3:
~~~
$ ruby -v
ruby 2.3.0p0 ...
vo.x (Vit Ondruch)
01:02 PM Bug #12126 (Closed): [PATCH] openssl: accept moving write buffer for write_nonblock
~~~
By setting the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag.
This flag was introduced at the same time as
SSL_MODE_ENABLE_PARTIAL_WRITE in OpenSSL 0.9.4 and makes usage
with non-blocking sockets much easier.
Before this, a Rubyist...
normalperson (Eric Wong)
12:35 PM Feature #12113: Global method inside Delegator causes NameError
Benoit Daloze wrote:
> Would this patch allow to remove the special case for Kernel dispatch then? Or should it be kept for compatibility if `!target.is_a?(Kernel)` and most likely a `BasicObject`?
It's necessary to avoid infinite re...
nobu (Nobuyoshi Nakada)
10:17 AM Feature #12113: Global method inside Delegator causes NameError
Nobuyoshi Nakada wrote:
> Benoit Daloze wrote:
> ...
Ah, right, because in this case the method would be found on target since target is an `Object` (a `Fixnum` actually).
Would this patch allow to remove the special case for Kernel...
Eregon (Benoit Daloze)
08:01 AM Feature #12113: Global method inside Delegator causes NameError
Benoit Daloze wrote:
> Would that solve the OP example code since `some_func` is defined in `Object`, not `Kernel`?
It is because of the private method of the target, in `Object` or in `Kernel` or in target itself is not the point.
nobu (Nobuyoshi Nakada)
12:22 PM Revision 52bdb3ce (git): fileutils.rb: LowMethods aliases
* lib/fileutils.rb (LowMethods): make alias methods instead of
eval for each methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:36 AM Revision efa39c3d (git): fileutils.rb: reduce private
* lib/fileutils.rb (Verbose, NoWrite, DryRun): make overridden
methods private by each one calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:36 AM Revision 6b3e5bb0 (git): fileutils.rb: reduce public
* lib/fileutils.rb (Verbose, NoWrite, DryRun): make extended
methods public by each one calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:36 AM Revision 13dadf3f (git): fileutils.rb: unify method definition style
* lib/fileutils.rb: Unify to coding-style for method definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:31 AM Misc #12124: Use Automake
On 02/29/2016 03:17 PM, Eric Wong wrote:
> shyouhei@ruby-lang.org wrote:
>> - I'm afraid automake contaminates this project with GPL.
>
> Not true, automake gives something like the following:
>
> # This Makefile.in is free soft...
shyouhei (Shyouhei Urabe)
06:48 AM Misc #12124: Use Automake
I generally for this, but ...
C.J. Collier wrote:
> It looks like there is a lot of duplicate code that could be removed by making use of automake.
> ...
Just because Ruby was born before automake (and matz seems not be familiar wit...
naruse (Yui NARUSE)
06:21 AM Misc #12124: Use Automake
shyouhei@ruby-lang.org wrote:
> - I'm afraid automake contaminates this project with GPL.

Not true, automake gives something like the following:

# This Makefile.in is free software; the Free Software Foundation
# gives unlimited...
normalperson (Eric Wong)
01:14 AM Misc #12124: Use Automake
- I'm afraid automake contaminates this project with GPL.
- I'm afraid this world is not built on top of GNU. AFAIK automake forces us to use GNU make, which breaks compatibility.
shyouhei (Shyouhei Urabe)
07:51 AM Revision c31d06ee (git): array.c: [DOC] remove trailing comma [ci skip]
* array.c (rb_ary_push_m): [DOC] Remove trailing comma from
Array#push example, as other Array examples doesn't put trailing
comma. [Fix GH-1279]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53970 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
07:31 AM Revision 199e9106 (git): mkconfig.rb: cross_compiling option
* common.mk, tool/mkconfig.rb: set cross_compiling option from
Makefile, but not from rbconfig.rb, which is just going to be
created by this command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53969 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
06:46 AM Bug #12123 (Feedback): FileUtils.ln_s create a '.symlink' file not a symbolic link on windows
Could you show failed messages? nobu (Nobuyoshi Nakada)
05:54 AM Revision 06efc1da (git): * 2016-02-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:54 AM Revision f7228ad8 (git): ruby-style.el: add an instruction to load
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:09 AM Bug #12078: Segmentation fault in did_you_mean with ruby revision 53608
r53524 is the revision in the trunk, not 2.3.
And #11928's backport status to 2.3 is still REQUIRED.
nobu (Nobuyoshi Nakada)
01:55 AM Bug #12120 (Feedback): [target/sh4] error: 'asm' operand requires impossible reload
What constraints does `DTRACE_PROBE4` macro have? nobu (Nobuyoshi Nakada)
01:02 AM Bug #12103: ruby process hangs while executing regular expression.
On 02/28/2016 12:22 PM, Eric Wong wrote:
> Keep in mind the equivalent Perl terminates just fine:

Yes. But,

> So I prefer we acknowledge cases like these as bugs to at least
> encourage someone to fix them.

Ruby's (and Perl's...
shyouhei (Shyouhei Urabe)

02/28/2016

09:43 PM Feature #12125: Proposal: Shorthand operator for Object#method
> The & operator lets one pass a #call-able object as block.
I meant `#to_proc`-able objects, sorry for the confusion.
Papierkorb (Stefan Merettig)
09:39 PM Feature #12125 (Open): Proposal: Shorthand operator for Object#method
Hello,
The `&` operator lets one pass a `#call`-able object as block.
Really useful feature, but at the moment, if you want to pass a `Method` this way the syntax is not really concise:
```ruby
Dir["*/*.c"].map(&File.method(:ba...
Papierkorb (Stefan Merettig)
02:14 PM Revision 0927f830 (git): configure.in: fold summary
* configure.in: fold long lines in configuration summary
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:14 PM Revision 7b91046b (git): configure.in: summary
* configure.in: Add summary to end of configure output.
[Fix GH-1277]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:54 PM Revision 1a9bc87a (git): configure.in: no leading spaces
* configure.in (cflags, cppflags): remove unnecessary leading
spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:09 PM Bug #12078: Segmentation fault in did_you_mean with ruby revision 53608
I also got a similar bug with Ruby 2.3.0p7 revision 53608. As the poster writes, this version is later than revision 53524, in which a similar (alleged duplicate) bug has been supposed to be fixed. But the bug retains, and the present is... sawa (Tsuyoshi Sawada)
11:41 AM Bug #12121: 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
問題が起きたライブラリは dotenv というライブラリです。
https://github.com/bkeepers/dotenv
Module.constants の戻り値として `[Substitutions::Variable, Substitutions::Command]` だった
並び順が `[Substitutions::Command, Substitutions::Variable]` に変わっておりました。
https://g...
koic (Koichi ITO)
11:07 AM Bug #12121 (Feedback): 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
ちなみにどういうライブラリでどういう問題が起きたのでしょうか。 nobu (Nobuyoshi Nakada)
08:52 AM Bug #12121 (Rejected): 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
`Module#constants`に順序の保証はありません。 nobu (Nobuyoshi Nakada)
11:28 AM Revision 1b34bf19 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:28 AM Revision 018f0812 (git): * lib/drb/drb.rb (error_print): Add verbose failure messages and
avoid infamous DRb::DRbConnError. [Feature #12101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Masatoshi SEKI
11:28 AM Feature #12101 (Closed): Add verbose failure messages and avoid infamous DRb::DRbConnError
Applied in changeset r53962.
----------
* lib/drb/drb.rb (error_print): Add verbose failure messages and
avoid infamous DRb::DRbConnError. [Feature #12101]
seki (Masatoshi Seki)
09:50 AM Feature #12113: Global method inside Delegator causes NameError
Would that solve the OP example code since `some_func` is defined in `Object`, not `Kernel`?
Using `Kernel.method` would be wrong, because the receiver would be the `Kernel` class, and not the delegated object `(Klass.new(0).inspect` ...
Eregon (Benoit Daloze)
05:17 AM Feature #12113: Global method inside Delegator causes NameError
It's the current spec that delegator cannot call private method of the target, because it was impossible to tell it was called as function call form, (without the receiver).
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12...
nobu (Nobuyoshi Nakada)
08:24 AM Misc #12124 (Closed): Use Automake
It looks like there is a lot of duplicate code that could be removed by making use of automake.
Are there any reasons why this should not be done?
I've got some patches up for review here:
https://github.com/ruby/ruby/compare/tr...
cjcollier (C.J. Collier)
04:41 AM Revision 4d9f5482 (git): NoMethodError#private_call?
* error.c (nometh_err_initialize): add private_call? parameter.
* error.c (nometh_err_private_call_p): add private_call? method,
to tell if the exception raised in private form FCALL or VCALL.
[Feature #12043]
* vm_eval.c (make_no_me...
nobu (Nobuyoshi Nakada)
04:40 AM Feature #12043 (Closed): Add a method to NoMethodError that tells if private methods are callable at the time of
Applied in changeset r53961.
----------
NoMethodError#private_call?
* error.c (nometh_err_initialize): add private_call? parameter.
* error.c (nometh_err_private_call_p): add private_call? method,
to tell if the exception raised in p...
nobu (Nobuyoshi Nakada)
03:31 AM Bug #12103: ruby process hangs while executing regular expression.
duerst@it.aoyama.ac.jp wrote:
> Status changed from Open to Rejected
>
> I simplified this as follows:
> regex = /\(a+( ?a*)*\)/
> detail = "(aaaa aaaaaaa aaaaa aaaaaaaaa aaaaa"

Keep in mind the equivalent Perl terminates just ...
normalperson (Eric Wong)
03:00 AM Bug #12123 (Closed): FileUtils.ln_s create a '.symlink' file not a symbolic link on windows
when building ruby, 'test_cp_r_symlink' fail on make test-all personnel (Am I Who)
01:39 AM Revision 74e5e618 (git): test_exception.rb: split test_name_error_info
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:32 AM Feature #12110: Create a method to avoid vacuous truth?
Martin Dürst wrote:
> Andrew Vit wrote:
> ...
In natural language, universal quantification carries a presupposition that the domain is non empty; the meaning of "for all x in A, p(x)" is undefined when A is empty, just like "the king ...
sawa (Tsuyoshi Sawada)
12:51 AM Feature #12110: Create a method to avoid vacuous truth?
Andrew Vit wrote:
> This is still surprising to me, it looks like a contradiction:
> ...
It's the way it works in Mathematics. But I'll try to explain it without using too much Mathematical terminology.
all? doesn't ask "at least ...
duerst (Martin Dürst)
01:20 AM Revision 60c8bfb3 (git): * 2016-02-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:20 AM Revision 491c44e9 (git): Clarify set intersection and union documentation
* array.c (rb_ary_and): clarify that set intersection returns the
unique elements common to both arrays.
* array.c (rb_ary_or): clarify that union preserves the order from
the given arrays.
- Most know what intersection means, but ...
nobu (Nobuyoshi Nakada)

02/27/2016

09:21 PM Misc #12122 (Closed): Array Documentation (set intersection, union)
**Set Intersection**
* Most know what intersection means, but saying the operation excludes duplicates could be misleading (`[1] & [1]`, duplicates excluded, might mean a result of `[]`).
* Instead, saying intersection returns the un...
slash_nick (Ryan Hosford)
07:34 PM Bug #12121 (Closed): 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
Ruby 2.4.0-dev で、Ruby 2.3.0 以前と変わっている振る舞いについてです。
自身のモジュール定義の前に、異なる名前空間で同名の定数が定義されていると
Module.constants の結果の並びに影響を与える振る舞いに変わっているように見えます。
```ruby
module M1
module A end
end
module M2
module B end

module A end
end
...
koic (Koichi ITO)
02:23 PM Bug #12120 (Closed): [target/sh4] error: 'asm' operand requires impossible reload
Hello!
ruby2.3 fails to build from source on sh4 (Hitachi/Renesas SuperH), the build fails with [1]:
```
gcc -mieee -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -D_FORTIFY_SOURCE=2 -fstack-protector -fno...
glaubitz (John Paul Adrian Glaubitz)
01:59 PM Feature #12110: Create a method to avoid vacuous truth?
Waldyr de Souza wrote:
> I often find myself running into unexpected results when using #all? for example
> ...
If you expect all false, then why not use `none?`, is it not sufficient?
> Even though it's logically correct could we h...
avit (Andrew Vit)
01:53 PM Feature #12119 (Closed): next_prime for lib/prime.rb
cf. https://github.com/ruby/ruby/pull/1272

## Rationale
To me, integer-without-limit is one of the greatest features of Ruby. I am currently working on my own implementation of arbitrary precision number system (https://github.com...
dankogai (Dan Kogai)
12:07 PM Bug #12118: ruby2.3: Segfaults on m68k due to improper stack allocation
Update: It seems the suggested patch by Andreas Schwab does not help on ruby2.3 anymore. So, for ruby2.3, something different needs to be done. glaubitz (John Paul Adrian Glaubitz)
09:37 AM Bug #12118 (Closed): ruby2.3: Segfaults on m68k due to improper stack allocation
Hello!
On Motorola 680x0, ruby2.2 and ruby2.3 segfault when running the Ruby interpretor:
./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./m68k-linux-gnu-fake ./tool/rbinstall.rb --make="...
glaubitz (John Paul Adrian Glaubitz)
09:11 AM Bug #12103 (Rejected): ruby process hangs while executing regular expression.
I simplified this as follows:
regex = /\(a+( ?a*)*\)/
detail = "(aaaa aaaaaaa aaaaa aaaaaaaaa aaaaa"
It still hangs. But it's easier to see why: The part (a+( ?a*)* allows many different ways to match the same thing, and all these are...
duerst (Martin Dürst)
08:06 AM Revision c4e69641 (git): * enc/unicode/case-folding.rb, casefold.h: Reducing size of TitleCase
table by eliminating duplicates.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
05:10 AM Revision bafa7f90 (git): test/unit: refine output in job_status=normal
* test/lib/test/unit.rb (Test::Unit::StatusLine#jobs_status): show
status of only changed woker, not to show same lines repeatedly,
in normal job_status mode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53956 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
04:16 AM Revision de121968 (git): test/unit: fix for the test
* test/lib/test/unit.rb (_run_parallel): make sure retrying
message is a separate line.
* test/lib/test/unit.rb (_prepare_run): do not add Output if
testing.
* test/lib/test/unit.rb (Skipping#failed): defer showing reports
when s...
nobu (Nobuyoshi Nakada)
02:21 AM Feature #12085: [PATCH] openssl: document `exception: false' for *_nonblock
normalperson@yhbt.net wrote:
> I do not plan to commit the test change since OpenSSL behavior
> ...
I just discovered `SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER`,
which might've saved me plenty of headaches earlier this month:
```diff
-...
normalperson (Eric Wong)
02:01 AM Revision 9c55cb2e (git): test/unit: refine output in verbose mode
* test/lib/test/unit.rb (Test::Unit::StatusLine#_prepare_run): add
StatusLine::Output even if job_status is not replace, to filter
extra outputs and newlines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53954 b2dd03c8-39d4-4d8...
nobu (Nobuyoshi Nakada)
01:56 AM Revision fea80948 (git): test/unit: add --jobs-status=none
* test/lib/test/unit.rb (Test::Unit::StatusLine#setup_options):
add :none to --jobs-status option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:56 AM Revision 97d90a7e (git): * 2016-02-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:56 AM Revision 0783358d (git): test/unit: no newlines to be chomped
* test/lib/test/unit.rb (Test::Unit::StatusLine::Output#print):
matched part never contains a newline to be chomped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/26/2016

10:20 PM Feature #11666: IPAddr#private?
IPv6 has a private range too: d00::/8 (RFC 4193)
Also, there are more IP ranges that have been reserved for special use (there's an overview on https://en.wikipedia.org/wiki/Reserved_IP_addresses). I think it would be better to make 1...
herwin (Herwin W)
08:49 PM Bug #12117 (Closed): UDPSocket.new crash on win32 with "rb_update_max_fd: invalid fd (xxx) given"
OS is Windows 7. The following command line reproduces the issue:
$ ruby22 -rsocket -e "UDPSocket.new(Socket::AF_INET)"
Output is:
~~~
-e:1: [BUG] rb_update_max_fd: invalid fd (176) given.
ruby 2.2.5p241 (2016-02-24 revision 5...
spatulasnout (B Kelly)
06:04 PM Feature #12116 (Open): `Fixnum#divmod`, `Bignum#divmod` with multiple arguments
Sometimes, I need to apply `divmod` repeatedly. For example, in order to convert a number expressing seconds into approx year, day, hour, minutes, seconds (approx in the sense of ignoring leap day and leap second), I can repeatedly apply... sawa (Tsuyoshi Sawada)
06:03 PM Feature #12115: Add Symbol#call to allow to_proc shorthand with arguments
Edited to remove `**kwargs` argument I added, which would require checking if the called method supports them. felixbuenemann (Felix Bünemann)
05:51 PM Feature #12115 (Open): Add Symbol#call to allow to_proc shorthand with arguments
I am a great fan of the `Symbol#to_proc` shorthand when mapping or reducing collections:
```ruby
[1,2,16].map(&:to_s)
=> ["1", "2", "16"]
[1,2,16].reduce(&:*)
=> 32
```
I often wish it would be possible to pass an argument to ...
felixbuenemann (Felix Bünemann)
02:09 PM Bug #12112: Resolv.getname with IPv6 noop
I'm seeing this issue on 2.0.0, 2.2.1, 2.2.2, but not 1.9.3 and 2.2.3 (I suspect all versions between 2.0.0 and 2.2.3 are broken).
This is due to how Resolv::IPv6#to_name and Resolv::Name.initialize work. In 2.2.3 Resolv::Name constru...
wb (Dmitri Dolguikh)
02:00 PM Feature #12114: $VERBOSE = true is being ignored
Thus is a spec now.
That warning is at parsing, but `BEGIN` blocks are executed after it.
It may be possible by executing `BEGIN`s during parsing, but it needs renovations.
nobu (Nobuyoshi Nakada)
11:18 AM Feature #12114 (Open): $VERBOSE = true is being ignored
This programm correctly complains about "assigned but unused variable - p"
~~~ruby
#!/usr/bin/ruby -w
p=1
~~~
However, this one doesn't
~~~ruby
#!/usr/bin/ruby
BEGIN {$VERBOSE = true}
p=1
~~~
Setting `$VERBOSE` to true...
rovf (Ronald Fischer)
12:32 PM Misc #12004: Code of Conduct
Given this issue has been closed by Matz, is it possible to block further posts from all non-admins? Leaving it as a forum for people to push personal vendettas is, at the very least, unhelpful and off-topic. pat (Pat Allan)
07:26 AM Misc #12004: Code of Conduct
I think that this https://github.com/ContributorCovenant/contributor_covenant/issues/278 and how Coraline will reply is and will be very relevant. Oceanomare (Oceano Mare)
10:00 AM Feature #12043: Add a method to NoMethodError that tells if private methods are callable at the time of
Nobuyoshi Nakada wrote:
> This feature is **only** for "did_you_mean" gem, so I think that any name is OK, including implementation details.
> ...
It's still public API.
Let's choose `private_call?`, since I and the OP agree on this...
Eregon (Benoit Daloze)
09:31 AM Feature #12075: some container#nonempty?
Nobuyoshi Nakada wrote:
> https://github.com/ruby/ruby/compare/trunk...nobu:feature/12075-not
I like it!
Eregon (Benoit Daloze)
07:25 AM Feature #12075: some container#nonempty?
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12075-not nobu (Nobuyoshi Nakada)
05:22 AM Feature #12075: some container#nonempty?
Nobuyoshi Nakada wrote:
> First, along this line, we'll need negative forms for all predicate methods.
> ...
I like this proposal. I definitely prefer the word 'not' over the symbol '!', because `ary&.!:empty?` has too much consecutive...
phluid61 (Matthew Kerwin)
04:40 AM Feature #12075: some container#nonempty?
Or
```ruby
module Kernel
def !(*a)
a.empty? ? super() : !__send__(*a)
end
end
ary = nil; ary&.!:empty? #=> nil
ary = []; ary&.!:empty? #=> false
ary = [nil]; ary&.!:empty? #=> true
```
nobu (Nobuyoshi Nakada)
04:33 AM Feature #12075: some container#nonempty?
First, along this line, we'll need negative forms for all predicate methods.
And I think `nil.empty?` makes no sense.
Just an idea:
```ruby
module Kernel
def not(*a)
not a.empty? ? self : __send__(*a)
end
end
ary...
nobu (Nobuyoshi Nakada)
09:17 AM Feature #12113 (Open): Global method inside Delegator causes NameError
~~~ruby
def some_func
puts '12'
end
class Klass < Delegator
def initialize(obj)
@obj = obj
end
def __getobj__
@obj
end
def func
some_func #=> /home/oleg/.rbenv/versions/2.3.0/lib64/ruby/2.3.0/del...
oleg_antonyan (Oleg Antonyan)
07:18 AM Revision b3177141 (git): README.md: fix linked file name [ci skip]
* README.md: fix linked file name, COPYING does not a suffix.
[Fix GH-1265]
* README.ja.md: update a link too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:41 AM Revision 60dad06d (git): numeric.c: wrong type step should raise TypeError
* numeric.c (num_step_scan_args): comparison String with Numeric
should raise TypeError. it is an invalid type, but not a
mismatch the number of arguments. [ruby-core:62430] [Bug #9810]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
nobu (Nobuyoshi Nakada)
05:40 AM Bug #9810 (Closed): Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
Applied in changeset r53949.
----------
numeric.c: wrong type step should raise TypeError
* numeric.c (num_step_scan_args): comparison String with Numeric
should raise TypeError. it is an invalid type, but not a
mismatch the number...
nobu (Nobuyoshi Nakada)
01:01 AM Bug #9810: Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
[Developers' meeting log][1]
> This issue is because of invalid type, not mismatch the number of arguments.
> ...
[1]: https://docs.google.com/document/d/1rj7ODOCSfcsQeBd6-p-NiVwqxDUg05G66LwDOkKOGTw/pub
nobu (Nobuyoshi Nakada)
05:40 AM Revision a12e8fd2 (git): doc: editor local variables [ci skip]
* doc/extension.rdoc, doc/extension.ja.rdoc: add editor local
variables, with commenting out by :enddoc: directives which are
just ignored unless code object mode. [Bug #12111]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5394...
nobu (Nobuyoshi Nakada)
03:26 AM Revision d7c46522 (git): * doc/extension.ja.rdoc: removed rendering error caused by editor specific
configuration on http://docs.ruby-lang.org/en/trunk/extension_rdoc.html .
[Bug #12111][ruby-core:73990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
03:26 AM Bug #12111 (Closed): [DOC] Small fix for extension.roc / extension.ja.rdoc
Applied in changeset r53947.
----------
* doc/extension.ja.rdoc: removed rendering error caused by editor specific
configuration on http://docs.ruby-lang.org/en/trunk/extension_rdoc.html .
[Bug #12111][ruby-core:73990]
hsbt (Hiroshi SHIBATA)
02:25 AM Revision 0676ce87 (git): * lib/xmlrpc.rb: Removed references to NQXML. It's obsoleted parser.
[fix GH-1245][ruby-core:59593][Feature #9371]
* lib/xmlrpc/config.rb: ditto.
* lib/xmlrpc/parser.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:24 AM Feature #9371 (Closed): Remove NQXML from xmlrpc/parser
Applied in changeset r53946.
----------
* lib/xmlrpc.rb: Removed references to NQXML. It's obsoleted parser.
[fix GH-1245][ruby-core:59593][Feature #9371]
* lib/xmlrpc/config.rb: ditto.
* lib/xmlrpc/parser.rb: ditto.
hsbt (Hiroshi SHIBATA)
02:11 AM Revision 379c3b8b (git): * lib/tmpdir.rb: Unify to coding-style for method definition.
[fix GH-1252]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
02:03 AM Revision 49f17cc6 (git): * README.md: update markdown syntax for anchor tag.
[fix GH-1265] Patch by @lukBarros
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
01:57 AM Revision 966e020a (git): * lib/irb.rb: avoid to needless truncation when using back_trace_limit option.
[fix GH-1205][ruby-core:72773][Bug #11969]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
01:57 AM Bug #11969 (Closed): [PATCH] IRB: Final newline missing in truncated backtraces
Applied in changeset r53943.
----------
* lib/irb.rb: avoid to needless truncation when using back_trace_limit option.
[fix GH-1205][ruby-core:72773][Bug #11969]
hsbt (Hiroshi SHIBATA)
 

Also available in: Atom