Project

General

Profile

Activity

From 10/24/2016 to 10/30/2016

10/30/2016

11:45 PM Feature #12886: URI#merge doesn't handle paths correctly
This ticket should be re-cast as a feature request, to allow merging of two relative references.
Incidentally:
Samuel Williams wrote:
>
> ...
As discussed elsewhere, it's a "relative reference", not a "URI." It parses to a `URI:...
phluid61 (Matthew Kerwin)
11:08 PM Feature #12886 (Rejected): URI#merge doesn't handle paths correctly
I feel like this should work.
~~~
> URI.parse("/base/uri") + URI.parse("relative")
URI::BadURIError: both URI are relative
~~~
The result should be URI with path = "/base/relative".
But it doesn't. It fails with an exception....
ioquatix (Samuel Williams)
11:35 PM Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass
Samuel Williams wrote:
> The fact that so many gems are introducing "`class Boolean`" is an argument FOR it not AGAINST it, IMHO. Because when this code is loaded together, it might behave strangely if there is no shared meaning for "`c...
phluid61 (Matthew Kerwin)
11:00 PM Feature #12515: Create "Boolean" superclass of TrueClass / FalseClass
The fact that so many gems are introducing "`class Boolean`" is an argument FOR it not AGAINST it, IMHO. Because when this code is loaded together, it might behave strangely if there is no shared meaning for "`class Boolean`".
Having ...
ioquatix (Samuel Williams)
07:59 PM Bug #12885 (Third Party's Issue): Large Record Set: [BUG] Segmentation fault at 0x00000000000000
[BUG] Segmentation fault at 0x00000000000000
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-darwin15]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of fol...
escapeit (Lee H)
12:08 PM Revision 6ce158ba (git): fix typo [ci skip]
* lib/rubygems/specification.rb: reapply 56225.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:57 AM Revision 577a37dd (git): Add config for *.yml [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:32 AM Revision 9a21c284 (git): * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update
rubygems to 2.6.8.
Release note of 2.6.8: https://github.com/rubygems/rubygems/commit/9fb8880976f5ab998912898b091d88aa10eb1d4a
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:31 AM Bug #12881: Double-bang (!!) raises warning on string literal
This is a follow-up. I tested for the same issue with Ruby 2.4.0 preview
2. I got slightly different behavior, but essentially the same issue.
Here are the details. I wasn't sure if I could add them to the issue
tracker without ma...
rrroybbbean (RRRoy BBBean)

10/29/2016

09:39 PM Revision f4b623f7 (git): * 2016-10-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:39 PM Revision 2959b5aa (git): * enc/windows_1254.c: Fix typo. Reported by k-takata at
https://github.com/k-takata/Onigmo/commit/ceb59cc. Thanks!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
09:29 PM Bug #12884 (Closed): Using a HashWithIndifferentAccess with a default value in a function with a keyword parameter converts it to a Hash.
A strange bug that broke our production when migrating from 2.1.9 to 2.2.5 (still present in 2.3.1)
It involves HashWithIndifferentAccess from active support. The version used is 3.2.22.4 (against all ruby versions)
Here's a bit of c...
mderelle (Mathieu Derelle)
06:58 PM Feature #12802: Add BLAKE2 support to Digest
Nice @ SHA-3 branch. I think it makes sense to add both.
The reason to add BLAKE2 in addition to SHA-3 is that BLAKE2 is, in some cases, over 3X faster than SHA-3 at an equivalent security level:
https://blake2.net/sandy.png
BLA...
bascule (Tony Arcieri)
01:37 PM Feature #12046: Allow attr_reader :foo? to define instance method foo? for accessing @foo
> If you have any concrete use-case for the new (more complex) behavior, please tell me.
This feature request has been rejected more than once, so I'm most likely doing this in vain. But the obvious use-case would be better readabilit...
svoop (Sven Schwyn)
11:51 AM Bug #12883 (Feedback): Bus Error at 0x0000010b8075eb
Michalis Despotopoulos wrote:
> From the diagnostic reports:
What's the rest?
nobu (Nobuyoshi Nakada)
11:37 AM Bug #12883: Bus Error at 0x0000010b8075eb
From the diagnostic reports:
```
Process: ruby [23318]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [23134]
Responsible: Termina...
ddmichael (Michalis Despotopoulos)
11:35 AM Bug #12883 (Closed): Bus Error at 0x0000010b8075eb
After trying to start the rails server, my page wasn't loading. Then I killed the process and here is what I got:
```
^CExiting
/Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/i...
ddmichael (Michalis Despotopoulos)
10:59 AM Bug #12881 (Closed): Double-bang (!!) raises warning on string literal
Applied in changeset r56522.
----------
parse.y: !-operator warning
* parse.y (cond0): !-operator is a method call, no warning for
literal in condition. [ruby-core:77801] [Bug #12881]
nobu (Nobuyoshi Nakada)
10:59 AM Revision e981862f (git): parse.y: !-operator warning
* parse.y (cond0): !-operator is a method call, no warning for
literal in condition. [ruby-core:77801] [Bug #12881]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:15 AM Feature #12877: windows-1255とUnicode間の変換テーブルがWindowsの実装と一致しない
その後VMにファイルを送り込むことに成功しました。IE4がインストールされていないWindows NT 4.0でも、windows-1255のマッピングテーブルはWindows 10と同じでした。というわけで題名を戻します。
東アジア言語版のWin9xはRTL言語をサポートしていないため[1]、Win9xについては結局確認できませんでした。
[1] https://msdn.microsoft.com/ja-jp/library/cc389892.aspx
emk (Masatoshi Kimura)
02:23 AM Feature #12877: windows-1255とUnicode間の変換テーブルがWindowsの実装と一致しない
0xCA→U+05BAのマッピングは少なくともWindows 2000から存在するので、変更されたわけではないです(それ以前のOSはいつの間にかVMwareでゲストにファイルを送り込むことができなくなっていて、確認できませんでした)。
U+05BAが追加されたのはUnicode 5.0 (2006年)なのに、なぜそれよりはるか前からマッピングが存在するのかは謎ですが。
emk (Masatoshi Kimura)
01:09 AM Revision af1b9db4 (git): compile.c: not flip-flop
* compile.c (iseq_compile_each): turn flip-flop in a not-operator
into a boolean value. fix up r56315
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:44 AM Bug #12880 (Feedback): rails generate but
Any messages when you cancelled it? nobu (Nobuyoshi Nakada)
12:39 AM Bug #12879 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries.
Install sqlite3 by HomeBrew. nobu (Nobuyoshi Nakada)
12:39 AM Bug #12876 (Closed): Calling new hangs Ruby when class prepends an empty module and makes initialize method public
Applied in changeset r56520.
----------
vm_eval.c: follow the original class
* vm_eval.c (vm_call0_body): follow the original class, not to
loop the prepended module. [ruby-core:77784] [Bug #12876]
nobu (Nobuyoshi Nakada)
12:39 AM Revision 693eabb2 (git): vm_eval.c: follow the original class
* vm_eval.c (vm_call0_body): follow the original class, not to
loop the prepended module. [ruby-core:77784] [Bug #12876]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/28/2016

09:01 PM Feature #12882 (Closed): Add caller/file/line information to internal Kernel#warn calls
Most internal uses of Kernel#warn do not begin with caller/file/line information, making debugging such warnings more difficult, and hindering filtering/processing of warnings on a per-file/directory/gem basis when overriding Warning.war... jeremyevans0 (Jeremy Evans)
05:39 PM Bug #12881 (Closed): Double-bang (!!) raises warning on string literal
I use !!x or !!(x) to force x to true or false.
I just noticed this trick raises a warning with string literals.
It would be nice if this warning were not raised, since it is sometimes convenient to force some object to true or false.
...
rrroybbbean (RRRoy BBBean)
05:11 PM Feature #12012: Add Boolean method
I'm doing a bug report now.

I use Thunderbird, and I didn't know whether to use Reply or Reply to
Group. Sorry.


On 10/28/2016 02:56 AM, Nobuyoshi Nakada wrote:
> On 2016/10/28 11:57, RRRoy BBBean wrote:
>> irb(main):002:0> !...
rrroybbbean (RRRoy BBBean)
08:01 AM Feature #12012: Add Boolean method
On 2016/10/28 11:57, RRRoy BBBean wrote:
> irb(main):002:0> !!('hi')
> (irb):2: warning: string literal in condition
> => true
>
> Why do I get this warning? Shouldn't I be able to use bang-bang to convert anything to it's corresp...
nobu (Nobuyoshi Nakada)
03:52 PM Bug #12859: Bug on Rails Console?
Jorge Dominguez wrote:
> Nobuyoshi Nakada wrote:
> ...
better yet i look for any update on Appstore and I install the update and issues were fixed.
JorgeDDW (Jorge Dominguez)
02:06 PM Bug #12859: Bug on Rails Console?
You can install another version of sqlite3 from macports or homebrew. hsbt (Hiroshi SHIBATA)
01:48 PM Bug #12859: Bug on Rails Console?
Nobuyoshi Nakada wrote:
> Not the gem's bug, OS-bundled sqlite3 library's bug.
How do i fix it?
JorgeDDW (Jorge Dominguez)
07:42 AM Bug #12859: Bug on Rails Console?
Not the gem's bug, OS-bundled sqlite3 library's bug. nobu (Nobuyoshi Nakada)
03:50 PM Revision 420b4ae2 (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:28 PM Revision 102fae4e (git): * 2016-10-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 PM Revision 703cc674 (git): test/unit.rb: no file name if idle [ci skip]
* test/lib/test/unit.rb (Test::Unit::Parallel::Worker#to_s): show
file name if not idling.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:14 PM Feature #12877 (Closed): windows-1255とUnicode間の変換テーブルがWindowsの実装と一致しない
Applied in changeset r56516.
----------
Update windows-1255 table
* enc/trans/windows-1255-tbl.rb: update mapping from 0xCA to
U+05BA. [Feature #12877]
nobu (Nobuyoshi Nakada)
12:00 PM Feature #12877 (Closed): windows-1255とUnicode間の変換テーブルがWindowsの実装と一致しない
○再現手順
ruby -e 'printf("%#x\n", 0xCA.chr("windows-1255").encode("UTF-8").ord)'
○実際の結果
-e:1:in `encode': "\xCA" to UTF-8 in conversion from Windows-1255 to UTF-8 (Encoding::UndefinedConversionError)
from -e:1:in `<main>'
○...
emk (Masatoshi Kimura)
03:14 PM Revision b24e0932 (git): Update windows-1255 table
* enc/trans/windows-1255-tbl.rb: update mapping from 0xCA to
U+05BA. [Feature #12877]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:34 PM Bug #12880 (Closed): rails generate but
Hi there,
When i do
~~~
rails generate controller Foo bar baz
Running via Spring preloader in process 95248
create app/controllers/foo_controller.rb
route get 'foo/baz'
route get 'foo/bar'
invoke ...
JorgeDDW (Jorge Dominguez)
02:25 PM Revision 4f7a051e (git): enc/depend: downcase
* enc/depend: downcase table file names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:22 PM Revision 8027dfaf (git): enc/depend: extract transcode_tblgen
* enc/depend: extract transcode_tblgen method calls for libraries
loaded by dynamically generated names, in single_byte.trans.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 PM Revision 06711fd1 (git): single_byte.trans: dead code
* enc/trans/single_byte.trans (transcode_tblgen_singlebyte):
remove useless code. returned value is not used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 PM Revision 1da2b2e7 (git): transcode-tblgen.rb: dup literal string
* tool/transcode-tblgen.rb: get rid of modifying frozen literal
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 PM Bug #12879 (Third Party's Issue): You may have encountered a bug in the Ruby interpreter or extension libraries.
Running an exercise on building a web app from the book Agile web development for Rails 5
command bin/rails test test/controllers/line_items/controller_test.rb
and I get the attached crash
Mac OSX 10.12
ruby version - ruby 2.3....
mpr555 (Max Ricketts)
12:28 PM Bug #12878 (Closed): 0.49999999999999994.round is 1 and not 0 on Windows 64
0.49999999999999994.round produces 1 on this platform, while all other platforms seem to produce the expected 0 (round-to-nearest).
Maybe this is due to some slightly different floating-point representation?
See https://ci.appveyor.c...
Eregon (Benoit Daloze)
07:05 AM Revision f28caf31 (git): insns.def: opt_case_dispatch trivial optimization
* insns.def (opt_case_dispatch): extract float value only if the
Float method is not redefnined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:58 AM Revision 9e75488a (git): internal.h: RB_OBJ_BUILTIN_TYPE
* internal.h (RB_OBJ_BUILTIN_TYPE): special-const safe
BUILTIN_TYPE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:20 AM Revision b03a92c4 (git): complex.c: static IDs
* complex.c (id_finite_p, id_infinite_p, id_rationalize, id_PI):
initialize static IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:19 AM Revision 0ca1d842 (git): * 2016-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:19 AM Revision 22263722 (git): complex.c: FINITE_TYPE_P
* complex.c (FINITE_TYPE_P): extract predicate.
* complex.c (rb_complex_finite_p, rb_complex_infinite_p): use
dedicated predicates instead of switch by TYPE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56507 b2dd03c8-39d4-4d8f-9...
nobu (Nobuyoshi Nakada)
05:33 AM Bug #12876 (Assigned): Calling new hangs Ruby when class prepends an empty module and makes initialize method public
```
zsh % lldb -- ./miniruby -v ~/tmp.rb
(lldb) target create "./miniruby"
Current executable set to './miniruby' (x86_64).
(lldb) settings set -- target.run-args "-v" "/Users/urabe.shyouhei/tmp.rb"
(lldb) run
Process 98447 launch...
shyouhei (Shyouhei Urabe)

10/27/2016

11:17 PM Feature #12012: Add Boolean method
You can use **`wannabe_bool`** gem: https://github.com/prodis/wannabe_bool prodis (Fernando Hamasaki de Amorim)
11:14 PM Feature #11848: New #to_b method for String, Symbol, Numeric, NilClass, TrueClass and FalseClass.
Andrew Vit wrote:
> I've had to do this in a few places over the years myself:
> ...
Andrew Vit, you can use **`wannabe_bool`** gem: https://github.com/prodis/wannabe_bool
prodis (Fernando Hamasaki de Amorim)
10:01 PM Bug #12859 (Third Party's Issue): Bug on Rails Console?
It's sqlite3 gem issue. hsbt (Hiroshi SHIBATA)
09:47 PM Bug #12859: Bug on Rails Console?
Shyouhei Urabe wrote:
> The message you pasted is not full. There should be something before the part you copied. Can you disclose the log from the beginning of the "enter to rails console" you say?
```
irb(main):001:0> user = Use...
JorgeDDW (Jorge Dominguez)
02:28 PM Revision 8998c064 (git): ruby/ruby.h: optimize rb_integer_type_p
* include/ruby/ruby.h (rb_integer_type_p): turn into macro to help
clang based on old gcc to eliminate CSE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:18 PM Bug #12876 (Closed): Calling new hangs Ruby when class prepends an empty module and makes initialize method public
```ruby
module Foo
end
class Bar
prepend Foo
public :initialize
end
p Bar.new # => hangs
```
## Runs OK
* ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin14.0]
* ruby 2.1.1p76 (2014-02-24 revision 45161) [...
floehopper (James Mead)
02:09 PM Bug #12875 (Closed): Fixnum bit operator and coerce
The following code raises "Test can't be coerced into Fixnum (TypeError)"
~~~ ruby
class Test
attr_accessor :value
def initialize(value)
@value = value
end
def |(other)
case(other)
when Test
@value |...
lionel_perrin (Lionel PERRIN)
07:48 AM Bug #12743: throw(false) does not work as expected
ruby_2_2 r56505 merged revision(s) 56252,56254. usa (Usaku NAKAMURA)
07:48 AM Revision 04b03165 (git): merge revision(s) 56252,56254: [Backport #12743]
* eval_intern.h (TH_PUSH_TAG): Initialize struct rb_vm_tag::tag with
Qundef rather than 0 which is equal to Qfalse. Since Kernel#throw(obj)
searches a tag with rb_vm_tag::tag == obj, throw(false) can
acciden...
U.Nakamura
07:47 AM Bug #12822: Backport r56374 (fix monthly log rotate with DST)
ruby_2_2 r56504 merged revision(s) 56374. usa (Usaku NAKAMURA)
07:47 AM Revision ad559b5c (git): merge revision(s) 56374: [Backport #12822]
* lib/logger.rb (Logger::Period#next_rotate_time): fix monthly log
rotate when DST is applied during a month of 31 days.
[Fix GH-1458]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56504 b2dd03c8-39d...
U.Nakamura
07:44 AM Feature #12802: Add BLAKE2 support to Digest
https://github.com/nobu/ruby/tree/feature/digest/sha3 nobu (Nobuyoshi Nakada)
07:10 AM Feature #12802: Add BLAKE2 support to Digest
Is there still a supported environment without 64-bit integer support? ext/digest/sha2/sha2.c is already using 64-bit integers. It is compiled only when OpenSSL (or CommonCrypto) is not available, but the current versions of OpenSSL also... rhenium (Kazuki Yamaguchi)
01:32 AM Feature #12802: Add BLAKE2 support to Digest
I meant that BLAKE2b seems to need `uint64_t`.
If a compiler does not support such large integer type, isn't BLAKE2b usable on that platform?
nobu (Nobuyoshi Nakada)
07:39 AM Bug #12872 (Rejected): COMMAND LINE ERROR when tried gem --help
You load an extension library for 2.3 from 2.0.0. nobu (Nobuyoshi Nakada)
06:20 AM Bug #12872 (Rejected): COMMAND LINE ERROR when tried gem --help
```
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring ffi-1.9.14 because its extensions are not built. Try: gem pristine ffi --version 1.9.14
Ignoring g...
masoomulhaqs (Masoom S)
07:38 AM Bug #12823: compile issues 2.2.5 with cygwin
ruby_2_2 r56503 merged revision(s) 55232. usa (Usaku NAKAMURA)
07:38 AM Revision 9e4e7771 (git): merge revision(s) 55232: [Backport #12823]
crypt.c: protoize
* missing/crypt.c: protoize function definitions and make
always-zero functions void.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:34 AM Revision 34ef129b (git): * tool/redmine-backporter.rb (rel): check the exception and show right
message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:31 AM Bug #12874 (Third Party's Issue): Eventmachine recompile with openssl-win64 error
eventmachine recompile with ruby225-32 and Win32 OpenSSL v1.0.2j run ok (almost only way) but can't run when recompile with ruby225-64 and (Win64 OpenSSL v1.0.2j or Win64 OpenSSL v1.1.0b)
detail:
```
PS C:\Code\Gems\eventmachine...
binhminh (Binh Minh Nguyen)
07:27 AM Bug #11736: Float(arg) not consistent with documentation
ruby_2_2 r56501 merged revision(s) 56421,56422. usa (Usaku NAKAMURA)
07:27 AM Revision 331fea27 (git): merge revision(s) 56421,56422: [Backport #11736]
* object.c: Improve documentation for Integer conversion.
[ruby-core:71661][Bug #11736][ci skip]
* object.c: Improve documentation for Float conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5...
U.Nakamura
07:22 AM Bug #12873 (Closed): Eventmachine recompile with openssl-win64 error
binhminh (Binh Minh Nguyen)
06:26 AM Revision 07acd05f (git): test/digest/test_digest.rb: fold long lines
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:58 AM Revision 4530a8ef (git): socket: fix rdoc of UDPSocket#recvfrom_nonblock
* ext/socket/lib/socket.rb (UDPSocket#recvfrom_nonblock): [DOC] Remove
a false statement "If _maxlen_ is omitted, its default value is
65536." maxlen, the first parameter, cannot be omitted as the method
signature indicates. This h...
rhenium (Kazuki Yamaguchi)
04:46 AM Feature #12871 (Closed): Using the algorithm like math.fsum of Python for Array#sum
Array#sum uses the Kahan's algorithm for Float values now. But it returns inaccurate value in some case like below.
~~~ ruby
# ruby 2.4.0-preview2
[10000000000.0, 0.0000000001, -10000000000.0].sum #=> 0.0 (expected 0.0000000001)
~~...
labocho (Keisuke NISHI)
12:45 AM Revision 38fa442d (git): fix typos [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:42 AM Revision c9485585 (git): object.c: fixable float to fixnum
* object.c (rb_convert_to_integer): convert a fixable float to a
fixnum directly without the convesion method, as well as bignum
case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:12 AM Revision cc08515c (git): * 2016-10-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:12 AM Revision 9396660a (git): object.c: use converted string
* object.c (rb_convert_to_integer): should not drop the converted
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/26/2016

04:47 PM Feature #12802: Add BLAKE2 support to Digest
BLAKE2b will work on 32-bit CPUs but is optimized for 64-bit CPUs bascule (Tony Arcieri)
03:52 PM Feature #12802: Add BLAKE2 support to Digest
Is BLAKE2b unavailable if 64-bit integer is unavailable? nobu (Nobuyoshi Nakada)
12:26 PM Revision 54354c06 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
08:10 AM Revision de2773a3 (git): ruby.h: use prefixed macro
* include/ruby/ruby.h (rb_intern): use prefixed version macro
RUBY_CONST_ID_CACHE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:11 AM Revision 4e44f6ef (git): [DOC] replace Fixnum with Integer [ci skip]
* numeric.c: [DOC] update document for Integer class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:34 AM Revision 6c4903ce (git): * 2016-10-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:34 AM Revision 722ac44a (git): * NEWS: added several entries [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shyouhei (Shyouhei Urabe)

10/25/2016

07:05 PM Feature #11925: Struct construction with kwargs
To be prepared for "the great unification of constructors" of course.
It looked like a pretty logical step to support while I was coding this. It's also pretty easy to remove again
herwin (Herwin W)
06:54 PM Feature #11925: Struct construction with kwargs
Herwin W wrote:
> ~~~ ruby
> ...
Why does `new_from_kwargs` accept other than keyword arguments?
nobu (Nobuyoshi Nakada)
06:37 PM Feature #11925: Struct construction with kwargs
https://github.com/ruby/ruby/pull/1468
A proposal for an implementation.
~~~ ruby
irb(main):001:0> MyClass = Struct.new(:a, :b, :c)
=> MyClass
irb(main):002:0> MyClass.new_from_kwargs(a:1, c: 3)
=> #<struct MyClass a=1, b=nil, ...
herwin (Herwin W)
06:58 AM Feature #11925: Struct construction with kwargs
What about `new_from_kwargs(**kwargs)` ? It's a bit long, but it describes the functionality exactly. herwinw (Herwin Quarantainenet)
06:38 PM Feature #11210: IPAddr has no public method to get the current subnet mask
Any progress? I believe all the comments have been addressed. herwin (Herwin W)
01:05 PM Bug #12870 (Closed): Crash when querying with activerecord
I have a control named entry1 in Visual Ruby project.
In entry2__changed method I populate a list view
I get this error message:
/usr/local/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/mysql/da...
buzio (Marco Devoti)
07:01 AM Feature #9209: Struct instances creatable with named args
This looks like a duplicate of #11925 (or maybe the other way around, but the other ticket includes more information) herwinw (Herwin Quarantainenet)
05:06 AM Feature #12869: open-uri's open rejects `BOM' in encoding
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12869-open-uri-bom nobu (Nobuyoshi Nakada)
03:54 AM Bug #12832 (Closed): Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
Applied in changeset r56489.
----------
proc.c: follow the original class
* proc.c (mnew_internal): follow the original class, not to loop
the prepended module. [ruby-core:77591] [Bug #12832]
nobu (Nobuyoshi Nakada)
03:54 AM Revision d977cd4e (git): proc.c: follow the original class
* proc.c (mnew_internal): follow the original class, not to loop
the prepended module. [ruby-core:77591] [Bug #12832]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:48 AM Revision 58206933 (git): [DOC] table format refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
03:32 AM Revision f785ac9f (git): * 2016-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:32 AM Revision e694894d (git): [DOC] add description of j and J for unpack.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:42 AM Feature #10208: Passing block to Enumerable#to_h
Not a direct translation of the proposed method, but Hash#transform_values is now available. https://bugs.ruby-lang.org/issues/12512 shyouhei (Shyouhei Urabe)

10/24/2016

09:44 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
super is in sync with `__method__` because they are designed to be in sync, `__method__` called from a block typically returns the enclosing method of the block but not always, when the block is invoked as a method, `__method__` returns ... bughit (bug hit)
09:03 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
bug hit wrote:
> Jeremy Evans wrote:
> ...
When the block with super is invoked by Class2.call_stored_block, `foo` is the current method at that point, according to `__method__`. This is simple to see by changing Class1.foo to raise an...
jeremyevans0 (Jeremy Evans)
05:35 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
Jeremy Evans wrote:
>
> ...
Except it's not.
```ruby
class Class1
def self.foo
'Class1::foo'
end
end
class Class2 < Class1

def self.store_block(&block)
@block = block
end

def self.foo
store_bloc...
bughit (bug hit)
04:42 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
bug hit wrote:
> Jeremy Evans wrote:
> ...
If method resolution is always dynamic, and super is directly related to method resolution, it would certainly be odd for super to always be lexical, right?
One could argue that super is cu...
jeremyevans0 (Jeremy Evans)
04:04 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
Jeremy Evans wrote:
> method calls in blocks are sometimes lexical and sometimes dynamic, depending on how the block is invoked.
> ...
Method resolution is never lexical, it is always relative to the current, dynamic self.
bughit (bug hit)
03:57 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
bug hit wrote:
> it would have to fail the same way instance_eval of the block (with super) fails when self is wrong (self has wrong type to call super in this context).
to expand on that, super normally binds to the method (class + ...
bughit (bug hit)
06:01 AM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
Shyouhei Urabe wrote:
> bug hit wrote:
> ...
you probably meant to call the defined :foo?
```ruby
class Foo
def self.foo
'foo@foo'
end
end
class Bar < Foo
def self.bar(&block)
define_singleton_method :foo, &b...
bughit (bug hit)
04:20 AM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
I don't think this is a bug, the ability to change the scope of a block is just part of ruby, and arguably one of the things that makes ruby flexible and a joy to program in:
~~~ ruby
foo = proc do
bar
end
foo.call # main.bar ...
jeremyevans0 (Jeremy Evans)
03:59 AM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
bug hit wrote:
> I think it would be better if super were always lexically scoped
Agreed but... What should then happen for inter-class block passing situation, like this?
```ruby
class Foo
def self.foo
'foo@foo'
end
...
shyouhei (Shyouhei Urabe)
05:24 PM Feature #10208: Passing block to Enumerable#to_h
So, we need a different name for this.
Here's some candidates I can think of:
- hash_by (proposed above)
- to_h_by
- hash_map
- map_h
- map_to_h
knu (Akinori MUSHA)
05:24 PM Bug #12832: Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
I'm not sure whether this is useful information but calling `#instance_method` on `Bar`'s metaclass also causes Ruby to hang. Using James's most recent code snippet, the following code seems to cause the same problem as `Bar.method(:foo)... chrisroos (Chris Roos)
12:13 PM Feature #12867: Add ability to check validity of a URL
Shlok Srivastava wrote:
> Shyouhei Urabe wrote:
> ...
`http:invalid-url` is invalid according to the scheme-specific definition in RFC7230, but is valid and parses according to RFC3986. Depending on one's viewpoint, there's either no w...
phluid61 (Matthew Kerwin)
11:54 AM Feature #12867: Add ability to check validity of a URL
Shyouhei Urabe wrote:
> Doesn't URI.parse work for you?
As URI.parse actually check for valid URIs and not URLs
I tried something like this:
~~~ ruby
URI.parse(some_string).scheme == "http"
~~~
But it returns true for inva...
shlok007 (Shlok Srivastava)
12:14 AM Feature #12867: Add ability to check validity of a URL
Doesn't URI.parse work for you? shyouhei (Shyouhei Urabe)
10:47 AM Feature #12869 (Open): open-uri's open rejects `BOM' in encoding
Kernel.#openのエンコード指定では、BOMへの対応も指定できます。
```ruby
open('foo.txt', 'r:BOM|UTF-8') ...
```
open-uriが再定義したopenでURLをオープンするときにも同じ動作を期待して実行してみます。
```ruby
require 'open-uri'
open('http://example.com/foo.txt', 'r:BOM|UTF-8') ...
```
...
emasaka (Masakazu Takahashi)
08:51 AM Bug #12830: OpenSSL 1.1.0+ support?
Thx for investigation. I can confirm that r55074 make the Typhoeus (and Ethon) to pass its test suite. vo.x (Vit Ondruch)
08:49 AM Bug #12868: Please backport r55074 (openssl, fix ex_data index for X509_STORE_CTX)
I am going to use this patch [1] in Fedora if it helps.
[1]: http://pkgs.fedoraproject.org/cgit/rpms/ruby.git/tree/ruby-2.4.0-openssl-register-ex_data-index-for-X509_STORE-_CTX-r.patch
vo.x (Vit Ondruch)
07:29 AM Bug #9839 (Rejected): Segment fault in http
This should have been fixed at [Bug #9592]. I suspect Paul's is another issue ([Bug #12292]), though, I can't tell without a reproducer. rhenium (Kazuki Yamaguchi)
07:11 AM Feature #5462 (Closed): TLS support for WEBrick::HTTPProxyServer
It seems it does. TestWEBrickHTTPProxy#test_connect in test/webrick/test_httpproxy.rb is testing. rhenium (Kazuki Yamaguchi)
07:07 AM Bug #12849 (Rejected): Ruby 2.3.1 build fails with FreeBSD 11
It turned out to be an issue of mixing two different OpenSSL installations. rhenium (Kazuki Yamaguchi)
07:05 AM Bug #8673 (Closed): User rest-client PUT request core dumped
Fixed by 66c1da57eb03 at new upstream[1] and imported by r56027 ("import Ruby/OpenSSL 2.0.0.beta.1").
[1]: https://github.com/ruby/openssl/commit/66c1da57eb03c19f96f3f1c843ea2a93dca3d243
rhenium (Kazuki Yamaguchi)
03:50 AM Bug #12859 (Feedback): Bug on Rails Console?
The message you pasted is not full. There should be something before the part you copied. Can you disclose the log from the beginning of the "enter to rails console" you say? shyouhei (Shyouhei Urabe)
03:46 AM Revision e62586fd (git): test_thread.rb: count accurately
* test/ruby/test_thread.rb (test_thread_timer_and_interrupt):
count only signal handling time accurately without setup and
cleanup time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:52 AM Revision 3bf10b04 (git): test/unit.rb: show idling workers
* test/lib/test/unit.rb (Test::Unit::Parallel#deal): update the
job status after a task finished, to show idling workers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:51 AM Revision 05269030 (git): complex.c: undefine Comparable methods
* complex.c (Init_Complex): undefine methods inherited from
Comparable, because Complex does not have <=> method.
[Bug #12866]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:49 AM Revision 4065c38a (git): class.c: rb_undef_methods_from
* class.c (rb_undef_methods_from): undefine methods defined in
super from klass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:34 AM Revision 3bda7386 (git): refine assertions
* test/ruby/test_complex.rb, test/ruby/test_rational.rb: refine
assertions for descriptive messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:19 AM Bug #12866 (Closed): Complex should not respond to clamp
Applied in changeset r56479.
----------
complex.c: undefine clamp
* complex.c (Init_Complex): undefine Complex#clamp, which does not
work like other Comparable methods, because Complex does not
have <=> method. patched by Tim Pete...
nobu (Nobuyoshi Nakada)
01:19 AM Revision d2d44828 (git): * 2016-10-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:19 AM Revision 7a981220 (git): complex.c: undefine clamp
* complex.c (Init_Complex): undefine Complex#clamp, which does not
work like other Comparable methods, because Complex does not
have <=> method. patched by Tim Peters <zomg.tim AT gmail.com>
in [ruby-core:77720]. [Bug #12866]
gi...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom