Project

General

Profile

Activity

From 02/10/2016 to 02/16/2016

02/16/2016

09:03 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
Note that when compiling 2.2.4, `win32` is entered because there is `mkmf.log`. Panyamin (Benjamin Gueroult)
08:36 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
Nobuyoshi Nakada wrote:
> Does `fiddle` get installed and work?
> ...
Well, I've found some snippets on using `fiddle`, and it's working.
I guess during compilation `ext/win32` dir isn't even entered.
Panyamin (Benjamin Gueroult)
01:32 AM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
Does `fiddle` get installed and work?
`win32` requires it.
nobu (Nobuyoshi Nakada)
05:30 PM Feature #12075: some container#nonempty?
The implementation doesn't have to be the same as the one implemented by ActiveSupport. I think it would be fine to simply check for nil? and empty?. But I'd like to keep the names present? and blank? anyway. rosenfeld (Rodrigo Rosenfeld Rosas)
03:28 PM Feature #12075: some container#nonempty?
Shyouhei Urabe wrote:
> No, the OP wants to detect things that are _not_ empty. This is not what blank? means.
Yes, I meant that `blank?` is the opposite of what OP wants. `present?` is what the OP wants. I replaced `if ` in the ori...
sawa (Tsuyoshi Sawada)
02:17 PM Feature #12075: some container#nonempty?
No, the OP wants to detect things that are _not_ empty. This is not what blank? means. Also note that blank? in ActiveSupport has different (far more Rails-centric) semantics than what is described in #3.
https://github.com/rails/ra...
shyouhei (Shyouhei Urabe)
10:02 AM Feature #12075: some container#nonempty?
+1 for bringing blank? and present? to Ruby core. I often use (a || '').empty? checks for not having to depend on ActiveSupport directly in my Ruby code. I'd love to see them in Ruby core though. rosenfeld (Rodrigo Rosenfeld Rosas)
08:52 AM Feature #12075: some container#nonempty?
That is a use case for Rails' `blank?` (or `present?`).
~~~RUBY
class Object
def blank?
respond_to?(:empty?) ? !!empty? : !self
end
end
unless ary.blank?
# some code
end
~~~
What about incorporating these meth...
sawa (Tsuyoshi Sawada)
08:31 AM Feature #12075: some container#nonempty?
How about "some?".
akr (Akira Tanaka)
08:30 AM Feature #12075: some container#nonempty?
How about `ary.include_something?` ? mrkn (Kenta Murata)
08:08 AM Feature #12075 (Feedback): some container#nonempty?
I sometimes write following code.
```ruby
ary = some_metho_returns_nil_or_empty_container() # nil or "" or [] or {}
if ary && !ary.empty?
# some code
end
```
But the condition `ary && !ary.empty?` is too long and complex....
naruse (Yui NARUSE)
05:05 PM Feature #10121: Dir.empty?
Woot! Woot!
Thanks to nobu the patch monster and matz!
shevegen (Robert A. Heiler)
08:34 AM Feature #10121 (Closed): Dir.empty?
Applied in changeset r53841.
----------
dir.c: Dir.empty?
* dir.c (rb_dir_s_empty_p): add Dir.empty? method, which tells the
argument is the name of an empty directory. [Feature #10121]
nobu (Nobuyoshi Nakada)
02:56 PM Feature #12063: KeyError#receiver and KeyError#name
I made a patch https://github.com/ruby/ruby/pull/1251 ksss (Yuki Kurihara)
01:29 PM Feature #12079 (Rejected): Loosening the condition for refinement
There are a few non-standard ways of calling a method that cannot be used when the relevant method is a refined method:
* a symbol used with `&` as a block via symbol to proc
* a symbol used with `send` or `__send__`
For example, ...
sawa (Tsuyoshi Sawada)
12:35 PM Feature #11999: MatchData#to_h to get a Hash from named captures
Updated patch (11999-2.diff). sorah (Sorah Fukumori)
11:24 AM Feature #11999: MatchData#to_h to get a Hash from named captures
Discussed at https://bugs.ruby-lang.org/projects/ruby/wiki/DevelopersMeeting20160216Japan with Matz and several committers:
Log: https://docs.google.com/document/d/1rj7ODOCSfcsQeBd6-p-NiVwqxDUg05G66LwDOkKOGTw/pub
- #to_h is inappro...
sorah (Sorah Fukumori)
12:25 PM Revision cee9c58e (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:25 PM Revision 45aa35cd (git): fix indent [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:25 PM Revision 0395a51e (git): ChangeLog should be us-ascii [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:40 AM Bug #12078 (Closed): Segmentation fault in did_you_mean with ruby revision 53608
A segmentation bug occurred when running rspec tests on an app. This first appeared using ruby 2.3.0p0 revision 53290, and appeared similar to bugs reported in issues https://bugs.ruby-lang.org/issues/12000 and https://bugs.ruby-lang.org... reggiebatsky (Rob Nichols)
11:33 AM Feature #12077 (Open): Consolidate SSLSocket interface with TCPSocket
Hello,
Is there a reason why `SSLSocket#read` doesn't work the same as `SSLSocket#sysread` and why there is no `SSLSocket#recv`?
Right now it is impossible to have code agnostic in regards to the socket type.
One solution is to...
tonci (Tonči Damjanić)
10:10 AM Revision 6a808bda (git): * enc/unicode/case-folding.rb, casefold.h: Used only first element
(rather than all) of target in CaseUnfold_11 array.
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:44 AM Feature #12024: Add String.buffer, for creating strings with large capacities
The original proposal #905 was 7 years old. But now we have keyword argument, so adding `capacity:` keyword to `String#new` is better idea, I think.
Matz.
matz (Yukihiro Matsumoto)
09:43 AM Feature #12076 (Rejected): The 'ditto' operator
Rejected. Adding new keyword is not a good idea, besides `ditto` behavior is not clear.
Matz.
matz (Yukihiro Matsumoto)
08:42 AM Feature #12076: The 'ditto' operator
The example code can be refactored to:
~~~RUBY
case user
when "foo", "bar"
else user = "stranger"
end
puts "welcome" + user
~~~
sawa (Tsuyoshi Sawada)
08:30 AM Feature #12076 (Rejected): The 'ditto' operator
I like to introduce and propose an idea to use a 'ditto' operator in 'else' or 'elsif' statement,
the ditto operator is a reference to the true statement in the if conditions to be used in the proceeding else and elsif statements,
the ...
joelbryan (Joel Bryan Juliano)
09:29 AM Bug #9810 (Assigned): Numeric#step behavior with mixed Float, String arguments inconsistent with documentation
naruse (Yui NARUSE)
09:25 AM Bug #11991 (Assigned): `Symbol#match` returns the match position, unlike `String#match` and `Regexp#match`
Considered a bug but for compatibility this shouldn't be backported.
2.4 will introduce incompatibility.
naruse (Yui NARUSE)
09:25 AM Revision 527fa610 (git): numeric.c: fix segfault
* numeric.c (compare_with_zero): fix variable name, rb_cmperr
requires VALUEs but not an ID.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:34 AM Revision 135a171c (git): dir.c: Dir.empty?
* dir.c (rb_dir_s_empty_p): add Dir.empty? method, which tells the
argument is the name of an empty directory. [Feature #10121]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:54 AM Feature #10720 (Rejected): A proposal for something like: attr_reader :foo? - with the trailing '?' question mark
See #12046.
Matz.
matz (Yukihiro Matsumoto)
06:54 AM Feature #11167 (Rejected): Allow an attr_ variant for query-methods that end with a question mark '?' character, such as: def foo? returning @foo
See #12046.
Matz.
matz (Yukihiro Matsumoto)
06:53 AM Feature #12046 (Rejected): Allow attr_reader :foo? to define instance method foo? for accessing @foo
as a rule, `attr_reader x` creates an instance variable `@x`, but we cannot have `@x?`.
that's the reason, we reject `attr_reader :foo?`. If you have any concrete use-case for
the new (more complex) behavior, please tell me.
Matz.
matz (Yukihiro Matsumoto)
06:33 AM Feature #11666 (Assigned): IPAddr#private?
The maintainer is knu.
* feature issues
* conflict with private visibility
* “private?” is different from visivility
* Behavior when address family is IPv6
* nil? false?
* or treat link-local, site-local (deprecat...
naruse (Yui NARUSE)
02:04 AM Bug #12074 (Closed): [PERF] bm_app_erb.rb slower
Hi I'm noticing a regression on RubyBench for `bm_app_erb.rb`
http://rubybench.org/ruby/ruby/commits?result_type=app_erb&display_count=2000
Narrowed down to https://github.com/ruby/ruby/commit/32b4a8b
Results on my local machine...
tgxworld (Guo Xiang Tan)
12:51 AM Revision 9cedfbcb (git): rbinstall.rb: drive letter in without_destdir
* tool/rbinstall.rb (without_destdir): just strip a drive letter
which is prepended by with_destdir.
pointed out by @DavidEGrayson.
https://github.com/ruby/ruby/commit/0e5f9ae#commitcomment-16101763
git-svn-id: svn+ssh://ci.ruby-l...
nobu (Nobuyoshi Nakada)
12:35 AM Bug #11542: Zlib::DataError: incorrect data check
Tomoyuki Chikanaga wrote:
> Hello, Lingaraj.
> ...
I get this error too - for me it is loading PNG screenshots from Android device (OS 4.4.4):
Zlib::DataError: incorrect data check
from /Users/EE/.rvm/gems/ruby-2.1.5/gems/chunk...
peterept (Peter Koch)

02/15/2016

09:16 PM Bug #12071: Gem installation fails with 2.3.0 on Cygwin
Nobuyoshi Nakada wrote:
> How did you install ruby, and did `fiddle` get installed successfully?
I installed with rbenv, and I'm pretty sure that it doesn't work with the "common way". I can test if you want?
> ...
You'll find fid...
Panyamin (Benjamin Gueroult)
02:45 AM Bug #12071 (Feedback): Gem installation fails with 2.3.0 on Cygwin
Since Cygwin does not have its own `resolv.conf` file, it is not correct.
How did you install ruby, and did `fiddle` get installed successfully?
Please show `mkmf.log` files under `ext/fiddle` and `ext/win32`.
nobu (Nobuyoshi Nakada)
07:42 PM Revision 2708fb6b (git): * insns.def (opt_plus): simply use LONG2NUM() instead of wrongly
complex overflow case.
* insns.def (opt_sub): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:50 PM Revision 0e5f9aea (git): rbinstall.rb: drive letter in without_destdir
* tool/rbinstall.rb (without_destdir): compare with the destdir
after stripping a drive letter, on dosish platforms.
pointed out by @DavidEGrayson.
https://github.com/ruby/ruby/commit/d0cf23b#commitcomment-16100407
git-svn-id: svn...
nobu (Nobuyoshi Nakada)
05:41 PM Revision afc0a5f0 (git): * 2016-02-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:41 PM Revision 8b019eed (git): parse.y: short circuit by result
* parse.y (parse_ident): short circuit by result, as only
tIDENTIFIER can be a local variable, but tFID and tCONSTANT not.
fix up r53834.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:44 AM Revision fbb51ff4 (git): parse.y: kwarg to method with same name variable
* parse.y (parse_ident): allow keyword arguments just after a
method where the same name local variable is defined.
[ruby-core:73816] [Bug#12073]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53835 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
06:06 AM Revision 5e59be3e (git): parse.y: simplify local ID condition
* parse.y (tokenize_ident, parse_ident): ident in tokenize_ident()
can be a local id only when called from parse_ident(), but never
from parse_gvar() and parse_atmark().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53834 b2dd03...
nobu (Nobuyoshi Nakada)
05:43 AM Revision c3554cde (git): * enc/unicode/case-folding.rb: Added debugging option
(with Kimihito Matsui)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
05:15 AM Revision 49079911 (git): bignum.c: micro optimization
* bignum.c (rb_big_uminus, bigsub_int): use BIGNUM_NEGATE.
* internal.h (BIGNUM_NEGATE): simplify negation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:09 AM Revision 174be800 (git): use particlar macros
* bignum.c: use particlar macros for positive/negative conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:23 AM Revision 73e29d2c (git): win32/resolv.rb: invert the condition
* ext/win32/lib/win32/resolv.rb: invert the condition to return
immediately in the future.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:42 AM Revision 486f3f42 (git): win32/resolv.rb: check pointer size
* ext/win32/lib/win32/resolv.rb: check pointer size first, NT if
it is larger than 4 as Windows 9X are 32-bit mode only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:36 AM Bug #12073 (Closed): local variable interferes with keyword arguments
This code causes a syntax error:
~~~ruby
def a(b:)
b
end
a = 1
a b: 9

# !> program.rb:5: syntax error, unexpected ':', expecting end-of-input
# !> a b: (9)
# !> ^
~~~
However, if we remove the local assignment it ...
josh.cheek (Josh Cheek)
03:31 AM Feature #11758: Add keyword assignment syntax
I keep trying to do this, too, and being surprised when it doesn't work. josh.cheek (Josh Cheek)
03:29 AM Revision 0f5a8418 (git): avoid ruby-mode.el bug
* ext/win32/lib/win32/{resolv,resolv9x}.rb: get rid of
ruby-mode.el of Emacs 24.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:29 AM Revision a1feed65 (git): * 2016-02-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 AM Revision 2ece5109 (git): split win32/resolv9x.rb
* ext/win32/lib/win32/resolv9x.rb: split code for Windows 9x from
resolv.rb. now it is rarely used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/14/2016

05:26 PM Bug #11834: Backport r53168, r53169 (String#scrub, #encode infection)
r49096, r51353, r53168 and r53169 were backported into `ruby_2_2` branch at r53825. nagachika (Tomoyuki Chikanaga)
05:25 PM Revision 5ad41fa1 (git): merge revision(s) 49096,51353,53168,53169: [Backport #11834]
test_m17n.rb: split test_scrub
* test/ruby/test_m17n.rb (TestM17N#test_scrub): split into some
tests.
* include/ruby/ruby.h: add raw FL macros, which assume always the
argument object is not a special constan...
nagachika (Tomoyuki Chikanaga)
05:23 PM Bug #12070: "wrong argument type nil" when installing any gem with Puppet on Arch Linux
From running `'/usr/bin/gem install --no-rdoc --no-ri --backtrace --debug travis-lint'` in Puppet:
Exception `ArgumentError' at /usr/lib/ruby/2.3.0/rubygems.rb:498 - couldn't find HOME environment -- expanding `~'
Exception `...
l0b0 (Victor Engmark)
12:12 PM Bug #12070: "wrong argument type nil" when installing any gem with Puppet on Arch Linux
This is easily reproducible by cloning [the repository](https://github.com/l0b0/root) and running `make test`. l0b0 (Victor Engmark)
12:10 PM Bug #12070 (Third Party's Issue): "wrong argument type nil" when installing any gem with Puppet on Arch Linux
Based on [Stack Exchange question](https://unix.stackexchange.com/questions/252937/how-to-install-a-ruby-gem-on-arch-linux-using-puppet):
I've got [the following][1]:
class travis_linter {
include shell

pack...
l0b0 (Victor Engmark)
05:18 PM Feature #11934: A feature to drop dynamics dynamically
I agree with Chris: JRuby + Truffle showed that it is possible to have dynamic features without loosing performance. Philosophically I am reminded of Ruby's syntax. It is **really** hard to write a Ruby parser but it that hard to parse s... justcolin (Colin Fulton)
04:48 PM Bug #11860: Double splat does not work on empty hash assigned via variable
A similar bug happens when using the double splat operator in the parameter list of a method definition. See #12022. justcolin (Colin Fulton)
04:46 PM Bug #12022: Inconsistent behavior with splatted named arguments
Sorry, I didn't see that issue. The cause is probably the same, but the difference is that #11860 deals with using the double splat in the **argument** list of a method call, whereas this issue deals using with the double splat in the **... justcolin (Colin Fulton)
03:55 AM Bug #12022: Inconsistent behavior with splatted named arguments
This is a duplicate, or is at least related to #11860. sawa (Tsuyoshi Sawada)
04:39 PM Bug #11932: Ripper.sexp can't parse some files from ruby repository and returns nil
r53411 and r53425 were backported into `ruby_2_2` branch at r53824. nagachika (Tomoyuki Chikanaga)
04:38 PM Revision 145ee4b4 (git): merge revision(s) 53411,53425: [Backport #11932]
* parse.y (regexp): set_yylval_num sets u1, should use nd_tag
instead of nd_state. [ruby-core:72638] [Bug #11932]
* parse.y (set_yylval_num): should be used as nd_state, set to u3.
[ruby-core:72638] [Bug #11...
nagachika (Tomoyuki Chikanaga)
03:35 PM Bug #12068: raise overwrites exception cause even if exception is not new
Please don't backport to the stable branches by yourself. The branch maintainers (usa and me) will do.
I fill Backport field.
I don't think the existing application depend on this behavior. Any opinions?
nagachika (Tomoyuki Chikanaga)
10:30 AM Bug #12068: raise overwrites exception cause even if exception is not new
May I backport this change to 2.3? Matz? I believe the original behavior was unintentional and should be fixed. headius (Charles Nutter)
10:17 AM Bug #12068: raise overwrites exception cause even if exception is not new
Thanks, nobu! headius (Charles Nutter)
07:19 AM Bug #12068 (Closed): raise overwrites exception cause even if exception is not new
Applied in changeset r53819.
----------
not overwrite cause
* eval.c (setup_exception): set the cause only if it is explicitly
given or not set yet. [Bug #12068]
nobu (Nobuyoshi Nakada)
05:12 AM Bug #12068: raise overwrites exception cause even if exception is not new
Yes...the exception inherits current $! only in initialize, and carries it until overwritten. headius (Charles Nutter)
04:21 AM Bug #12068: raise overwrites exception cause even if exception is not new
In JRuby, `cause` is set just in `initialize`?
```
$ jruby -v -e 'raise "a" rescue p RuntimeError.new("b").cause'
jruby 9.1.0.0-SNAPSHOT (2.2.3) 2016-02-14 c08ca7a Java HotSpot(TM) 64-Bit Server VM 25.25-b02 on 1.8.0_25-b17 +jit [da...
nobu (Nobuyoshi Nakada)
03:17 PM Bug #12072 (Closed): SortedSet#superset? raises NoMethodError if rbtree is installed
If rbtree is installed, the following code doesn't work.
~~~ruby
require "set"
set_a = SortedSet.new([1, 2])
set_b = SortedSet.new([1, 2, 3])
p set_a >= set_b
# /home/k/.rbenv/versions/trunk/lib/ruby/2.4.0/set.rb:223:in `supe...
rhenium (Kazuki Yamaguchi)
01:30 PM Bug #12071 (Closed): Gem installation fails with 2.3.0 on Cygwin
Hello,
I would like report an issue when installing gem on Cygwin with ruby 2.3.0.
Backtrace is:
~~~
/home/USER/.rbenv/versions/2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load suc...
Panyamin (Benjamin Gueroult)
11:09 AM Bug #12069 (Closed): [PATCH] document OpenSSL::SSL::SSLContext#setup as MT-unsafe
document OpenSSL::SSL::SSLContext#setup as MT-unsafe
On a cursory inspection, using rb_block_call for extra_chain_cert
is thread-unsafe. There may be other instances of thread-unsafe
behavior in this method, but one is enough.
*...
normalperson (Eric Wong)
08:52 AM Revision 8a180ee4 (git): test_cgi_util.rb: test_cgi_unescapeHTML_invalid
* test/cgi/test_cgi_util.rb (test_cgi_unescapeHTML_invalid): test
for invalid escaped HTML, borrowed from rubyspec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:37 AM Revision 65c9555d (git): test_exception.rb: fix commit miss
* test/ruby/test_exception.rb: remove duplicate method. fix
commit miss at r53819.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:32 AM Revision fdcc924f (git): mkmf.rb: Do not modify caller strings
* lib/mkmf.rb (with_{cpp,c,ld}flags): copy caller strings not to
be modified, in append_{cpp,c,ld}flags respectively.
[Fix GH-1246]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:19 AM Revision a7a5bd59 (git): * 2016-02-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:19 AM Revision e294f4cf (git): not overwrite cause
* eval.c (setup_exception): set the cause only if it is explicitly
given or not set yet. [Bug #12068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:51 AM Bug #12035 (Rejected): scanf suspicious results.
From http://ruby-doc.org/stdlib-2.2.4/libdoc/scanf/rdoc/Scanf.html#module-Scanf-label-Conversions
> Matches a nonempty sequence of characters from the specified set of accepted characters. **The usual skip of leading white space is su...
nobu (Nobuyoshi Nakada)
04:01 AM Bug #12065 (Rejected): problem with multiplication 2 numbers
hsbt (Hiroshi SHIBATA)

02/13/2016

06:41 PM Feature #12034: RegExp does not respect file encoding directive
Eric Wong wrote:
> I think that is fine as long as the strings are valid.
> ...
How should Ruby treat invalid paths is difficult problem.
Once I decided it is filesystem encoding but I agree to change if another encoding is practicall...
naruse (Yui NARUSE)
05:13 PM Bug #12022: Inconsistent behavior with splatted named arguments
More details about why errors are not raised in some cases, and wrong errors are raised in other cases:
```ruby
def example(required_param, **optional_named)
p required_param
end
# Works as expected.
example(42) # => 42
# ...
justcolin (Colin Fulton)
04:22 PM Bug #12035: scanf suspicious results.
That is what is so perplexing. The format I used was '%[a] %[b] %[c]'
Please note the explicit spaces between the formant elements. The docs
for scanf state that "White space in the format string matches any
amount of white space"
PeterCamilleri (Peter Camilleri)
04:15 AM Bug #12035: scanf suspicious results.
Peter Camilleri wrote:
> I think you're missing the point. Of course %s would seem to work in this case.
> ...
Well, the sets in your string are whitespace delimited, so there is a mismatch between your input string and the format. Yo...
musgravejw (John Musgrave)
03:58 AM Bug #12035: scanf suspicious results.
I think you're missing the point. Of course %s would seem to work in this case.
My question is about the %\[set\] (and %\[\^set\]) format specifier that is documented as part of scanf.
It also works, but only **once**. That's the rub...
PeterCamilleri (Peter Camilleri)
12:45 PM Revision f061d403 (git): * hash.c (rb_hash_invert): [DOC] more examples.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:03 PM Bug #12068 (Closed): raise overwrites exception cause even if exception is not new
It appears that `raise` will overwrite the original cause of an exception even when re-raising the same one. I believe this is a bug, since loses the original cause and associates the re-raised exception with a completely unrelated cause... headius (Charles Nutter)
08:31 AM Revision 1ee9cad0 (git): CIDR in no_proxy
* lib/uri/generic.rb (URI::Generic#find_proxy): support CIDR in
no_proxy. [ruby-core:73769] [Feature#12062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:12 AM Revision 423d0423 (git): no_proxy with whitespaces and leading dots
* lib/uri/generic.rb (find_proxy): exclude white-spaces and allow
for a leading dot in the domain name in no_proxy.
[ruby-core:54542] [Feature #8317]
The previous implementation wouldn't allow for white-spaces nor a leading dot
in t...
nobu (Nobuyoshi Nakada)
08:12 AM Feature #8317 (Closed): URI: no_proxy with whitespaces and leading dots.
Applied in changeset r53816.
----------
no_proxy with whitespaces and leading dots
* lib/uri/generic.rb (find_proxy): exclude white-spaces and allow
for a leading dot in the domain name in no_proxy.
[ruby-core:54542] [Feature #8317...
nobu (Nobuyoshi Nakada)
02:07 AM Feature #8317: URI: no_proxy with whitespaces and leading dots.
Why also semicolon-separated?
```diff
diff --git c/lib/uri/generic.rb w/lib/uri/generic.rb
index aba54c1..f2a2d56 100644
--- c/lib/uri/generic.rb
+++ w/lib/uri/generic.rb
@@ -1546,7 +1546,7 @@

name = 'no_proxy'
...
nobu (Nobuyoshi Nakada)
07:52 AM Revision 1b6684f8 (git): test/uri/test_generic.rb: split test_find_proxy
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:10 AM Bug #12066 (Closed): Ruby creates Wrong .Bat files
It has been fixed by [the upstream](https://github.com/rubygems/rubygems/commit/f9232680), and imported to 2.3. nobu (Nobuyoshi Nakada)
02:50 AM Bug #12067 (Closed): [BUG] object allocation during garbage collection phase
nobu (Nobuyoshi Nakada)
02:00 AM Revision 7e06731b (git): * 2016-02-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:00 AM Revision 1a222cd3 (git): domainname no_proxy assertions
* test/uri/test_generic.rb (test_find_proxy): assertions for
no_proxy of domainname.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/12/2016

09:20 PM Feature #10793: Infrastructure/Release-Management: Sign releases
I'm not against the idea of additionaly signing the releases but,
Alexander E. Fischer wrote:
> Several commonly used TLS libraries such as OpenSSL and GnuTLS are plagued by security vulnerabilities
Then how can you say GnuPG is s...
shyouhei (Shyouhei Urabe)
09:03 PM Feature #12034: RegExp does not respect file encoding directive
Eric Wong <[email protected]> wrote:
> [email protected] wrote:
> > File 0001-string.c-rb_external_str_with_enc-fall-back-to-ASCII.patch added
> > File 0002-follow-up-for-OS-X.patch added
> >
> > It failed on OS X.
>
> So ...
normalperson (Eric Wong)
06:13 PM Feature #11523: optparse short options will match complete options
I believe that:
1. This is what OptParser doing by default. If your code were `opts.on("--irs [OCTAL]", OptionParser::OctalInteger,`, i.e. without the '-F', you would get '--irs' as well as shorthand '-i' available. Your case is bit s...
vo.x (Vit Ondruch)
05:48 PM Bug #12067 (Closed): [BUG] object allocation during garbage collection phase
bin/rails: [BUG] object allocation during garbage collection phase
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]
-- Crash Report log information --------------------------------------------
See Crash Report log file...
tina (Tina Tran)
12:01 PM Bug #12066 (Closed): Ruby creates Wrong .Bat files
After i downloaded the newest version of Ruby and installed SASS, i tried to run SASS from the command line.
This gave me following error:
Der Befehl **"""C:\Program"** ist entweder falsch geschrieben oder
konnte nicht gefunden werd...
businessgamer8 (Kevin Marti)
11:48 AM Bug #12035: scanf suspicious results.
Peter Camilleri wrote:
> The code: 'a b c'.scanf('%[a] %[b] %[c]')
> ...
I think you want: "a b c".scanf("%s %s %s")
musgravejw (John Musgrave)
09:53 AM Feature #8317: URI: no_proxy with whitespaces and leading dots.
Could this be applied?
BTW how is this relates to #10251?
vo.x (Vit Ondruch)
08:21 AM Bug #12065: problem with multiplication 2 numbers
This is a FAQ. Read the FAQ section here https://bugs.ruby-lang.org/ shyouhei (Shyouhei Urabe)
08:17 AM Bug #12065 (Rejected): problem with multiplication 2 numbers
Hi,
why do this ?
irb(main):006:0> 15.1*100
=> 1510.0 -----> OK
irb(main):008:0> 671.12*100
=> 67112.0 -----> OK
irb(main):007:0> 67.1*100
=> 6709.999999999999 -----> KO ???????
What i wrong
Tks for the interesting
valdambrini.andrea (Andrea Valdambrini)
06:13 AM Feature #12064 (Assigned): Make creation of enc/unicode/casefold.h automatic again
The creation of enc/unicode/casefold.h has been moved to a special make target, 'unicode-up', in r53771, to avoid CI failures on platforms that don't have gperf. This should be changed so that enc/unicode/casefold.h is produced automatic... duerst (Martin Dürst)
05:37 AM Feature #12041: Change the initializer of NameError to take a receiver as the third argument
I found this causes `drb` test failures, since `NoMethodError` now refers `DRbObject` and `Marshal.dump` fails. nobu (Nobuyoshi Nakada)
04:24 AM Revision 434fc4c8 (git): drbtest.rb: make command an array
* test/drb/drbtest.rb (DRbService): make @@ruby an array to be
consistent with r35424.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53812 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:21 AM Revision 6bbe44a3 (git): error.c: fix doc [ci skip]
* error.c (name_err_initialize, nometh_err_initialize): [DOC] fix
argument positions. optional parameters except for the message
are placed at the last.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53811 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
02:50 AM Revision 0a19e7f0 (git): net/ftp.rb: NullSocket#closed?
* net/ftp.rb: add NullSocket#closed? to fix closing not opened
connection. [Fix GH-1232]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:17 AM Revision 41784333 (git): * 2016-02-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:17 AM Revision 301cbf4d (git): Update re.c [ci skip]
* re.c (rb_reg_initialize_m): [DOC] fix missing right bracket.
[Fix GH-1243]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

02/11/2016

03:58 PM Feature #12062: supporting CIDR in ENV["no_proxy"]
Nobuyoshi Nakada wrote:
> https://github.com/ruby/ruby/compare/trunk...nobu:feature/12062-no_proxy-CIDR
:+1:
thank you!
kumagi (宏樹 熊崎)
12:25 PM Feature #12062: supporting CIDR in ENV["no_proxy"]
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12062-no_proxy-CIDR nobu (Nobuyoshi Nakada)
08:15 AM Feature #12062 (Closed): supporting CIDR in ENV["no_proxy"]
Ruby supports `ENV["no_proxy"]` in `lib/uri/generic.rb`
Current implementation expects comma separated hostname suffix and exact IP address.
It is similar to **`wget`** implementation.
(the difference is `wget` does suffix match only ...
kumagi (宏樹 熊崎)
01:41 PM Feature #12063 (Closed): KeyError#receiver and KeyError#name
I propose **KeyError#receiver** and **KeyError#name** (or KeyError#key) like NameError.
I think these method help to debug.
And will be able to find typo on did_you_mean gem.
See also https://github.com/yuki24/did_you_mean/pull/71...
ksss (Yuki Kurihara)
10:24 AM Misc #12004: Code of Conduct
Tomek Mańko wrote:
>
> ...
And that is what must be avoided at all costs in my view in an international project.
They call it a culture war for a reason. And in a global project, that is a very dangerous thing
einhverfr (Chris Travers)
09:51 AM Feature #10793: Infrastructure/Release-Management: Sign releases
Yui NARUSE wrote:
> As far as I remember we discussed this topic before (but I can't find the ticket/mail).
> ...
Several commonly used TLS libraries such as OpenSSL and GnuTLS are plagued by security vulnerabilities, some parts of the...
aef (Alexander E. Fischer)
06:18 AM Bug #11946: Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
2.3.1 is the next patch level release.
nobu (Nobuyoshi Nakada)
03:54 AM Bug #11946: Assertion failed: (!STR_EMBED_P(shared)), function str_new_frozen, file string.c, line 1075.
Will this be released in a patch level release? Or do we have to wait till 2.3.1? fredngo (Fred Ngo)
05:58 AM Revision 2456239f (git): configure.in: fix universal binary
* configure.in (RUBY_CHECK_SIZEOF, RUBY_DEFINT): fix for types
which are conditionally available depending on architectures
when universal binary, e.g., __int128.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53807 b2dd03c8-39d4...
nobu (Nobuyoshi Nakada)
05:32 AM Revision 9323a8db (git): configure.in: use quadrigraphs
* configure.in (RUBY_DEFINT): use quadrigraphs instead of bare
hash signs not to comment out closing parenthesis.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:33 AM Feature #11547: remove top-level constant lookup
Corin, I completely agree. Recently, Rails's nondeterministic autoload made it very hard for me to discover this problem. Without the insightful warning, I would have been sunk.
Shugo Maeda wrote:
> Instead of changing the behavior...
bronson (Scott Bronson)
03:24 AM Bug #12061 (Closed): DNS resolv error RuntimeError: can't modify frozen String when using IPv6 Addresses
usa (Usaku NAKAMURA)

02/10/2016

09:53 PM Bug #12061 (Closed): DNS resolv error RuntimeError: can't modify frozen String when using IPv6 Addresses
Just upgraded from Ruby 1.9.3-p194 to Ruby 2.3.0
eventmachine (1.0.9.1)
eventmachine_httpserver (0.2.1)
irb
2.3.0 :001 > require 'eventmachine'
=> true
2.3.0 :002 > Resolv::IPv6.create('2607:F8B0:4002:C0C::66')
RuntimeError: ...
steve.misky (Stephen Misk)
09:29 PM Revision 832f2753 (git): * configure.in (RUBY_DEFINT): use Parameter Expansion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
09:29 PM Revision 2e90c0bd (git): fix r53801: the argument should remove UNSIGNED
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:57 PM Revision 693cc673 (git): * 2016-02-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:57 PM Revision 60f39869 (git): * configure.in (int128_t): don't check HAVE_XXX (for example
HAVE___INT128) because RUBY_CHECK_SIZEOF() don't define it for
config.h and use of $ac_cv_sizeof___int128 alternates the check.
(and don't need to define because users shouldn't know that)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby...
naruse (Yui NARUSE)
01:57 PM Bug #12060 (Feedback): 2016_02_10 Downloaded Ruby 2.3.0 Fails to Build
Could you show ext/date/mkmf.log file? nobu (Nobuyoshi Nakada)
01:03 PM Bug #12060: 2016_02_10 Downloaded Ruby 2.3.0 Fails to Build
The sha256 of the downloaded
https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz
is exactly as advertised at 2016_02_10:
ba5ba60e5f1aa21b4ef8e9bf35b9ddb57286cb546aac4b5a28c71f459467e507
martin_vahi (Martin Vahi)
12:57 PM Bug #12060 (Closed): 2016_02_10 Downloaded Ruby 2.3.0 Fails to Build

The key phrase after executing make is:
~~~
make[1]: Leaving directory '/opt/mmmv/ruby/src/tmp/ruby-2.3.0'
Generating RDoc documentation
/opt/mmmv/ruby/src/tmp/ruby-2.3.0/lib/time.rb:3:in `require': cannot load such file -- date ...
martin_vahi (Martin Vahi)
01:36 PM Bug #11988: YAML.dump doesn't quote string starting with 0 which will be recognized as float in YAML 1.2
I addressed this issue to upstream. ref https://github.com/tenderlove/psych/pull/270 hsbt (Hiroshi SHIBATA)
12:05 PM Bug #11979: gcc-6 fails to optimize regcomp.c:compile_length_quantifier_node()
FYI, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69291 was REOPENED,
because the "Issue still happens on i586 and fails the ruby build".
t-nissie (Takeshi Nishimatsu)
07:06 AM Revision aedfee01 (git): configure.in: remove unnecessary qualifier
* configure.in (RUBY_DEFINT): remove unnecessary unsigned
qualifier from preprocessing symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:28 AM Revision 0c3a54e6 (git): ARFLAGS needs a space
* configure.in (ARFLAGS): needs a trailing space to separate from
the target library name, whereas VC linker flag must not
separate from its argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53800 b2dd03c8-39d4-4d8f-98ff-8...
nobu (Nobuyoshi Nakada)
04:16 AM Revision f8cc2fb9 (git): configure.in: unique names
* configure.in (RUBY_CHECK_SIZEOF): make variable names unique
with rbcv_sizeof_ prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:02 AM Feature #12059: `Array#single?`, `Hash#single?`
Right. Given the original examples by the OP `Enumerable#one?` works.
~~~ruby
a = ["object1", "object2"]
"There #{a.one? ? "is" : "are"} #{a.length} #{a.one? ? "object" : "objects"}."
# => "There are 2 objects."
[1, 2, 2, 1].uniq...
danielpclark (Daniel P. Clark)
02:11 AM Feature #12059: `Array#single?`, `Hash#single?`
`[1, false, nil].one?` also returns `true`.
From `ri Enumerable#one?`:
------------------------------------------------------------------------------
enum.one? [{ |obj| block }] -> true or false
--------------------------...
nobu (Nobuyoshi Nakada)
03:03 AM Revision 12eb0df4 (git): check ar D flag
* configure.in (ARFLAGS): check if deterministic mode flag is
effective, which is on by default on Ubuntu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
 

Also available in: Atom