Project

General

Profile

Activity

From 08/08/2016 to 08/14/2016

08/14/2016

08:46 PM Feature #12675 (Closed): Code simplification and readability for prime_division method in prime.rb
I believe the following code simplification for the prime_division
method in prime.rb makes it more readable as English, thus more
understandable, while also significantly more concise in terms of
lines-of-code (25 vs 16), and may I d...
jzakiya (Jabari Zakiya)
02:42 PM Bug #12674 (Rejected): io/wait: not handling the case when the socket is closed before doing wait_readable/writable with timeout
I wrote the following script to show the problem:
```ruby
require 'socket'
require 'io/wait'
Thread.new do
server = TCPServer.new 2000 # Server bind to port 2000
loop do
client = server.accept # Wait for a client to...
chucke (Tiago Cardoso)
01:35 PM Bug #12614 (Closed): Segmentation Fault on Ruby 2.3.1
Applied in changeset r55896.
----------
id_table.c: extend, don't shrink
* id_table.c (hash_table_extend): should not shrink the table than
the previous capacity. [ruby-core:76534] [Bug #12614]
nobu (Nobuyoshi Nakada)
06:13 AM Bug #12614: Segmentation Fault on Ruby 2.3.1
Reproduced with trunk `ruby 2.4.0dev (2016-08-14 trunk 55893) [x86_64-linux]`.
I guess it is related to method table and its extending logic.
`hash_table_extend(tbl)` can make `LIST_P(tbl->capa) == TRUE` when there are many collisi...
wanabe (_ wanabe)
01:35 PM Revision dfe1d4fd (git): id_table.c: extend, don't shrink
* id_table.c (hash_table_extend): should not shrink the table than
the previous capacity. [ruby-core:76534] [Bug #12614]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:51 AM Revision 64185949 (git): gems: tk 0.1.0
* gems/bundled_gems: add gemified tk 0.1.0.
this needs `extract-gems` to build.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:55 AM Revision b9a82eaa (git): * object.c (InitVM_Object): Update referenced document path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Sutou Kouhei
12:34 AM Revision 5858f6c1 (git): * 2016-08-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:34 AM Revision 6a59f880 (git): ChangeLog: Fix wrong date
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

08/13/2016

08:57 PM Feature #12673: Performance improvement to Prime.prime? in prime.rb
After doing more testing of alternative techniques, for CRuby and JRuby,
here are some timing results on CRuby 2.3.1 on 64-bit Linux OS on
System76 I7 3.5GHz laptop with 16GB ram.
Version 1) the current code for prime? in class Prim...
jzakiya (Jabari Zakiya)
03:06 PM Feature #12673 (Closed): Performance improvement to Prime.prime? in prime.rb
The following code change provides a significant speed increase for Prime.prime? in prime.rb.
```
class Prime
...
...
def prime?(value, generator = Prime::Generator23.new)
raise ArgumentError, "Expected a prime genera...
jzakiya (Jabari Zakiya)
06:36 PM Feature #12648: `Enumerable#sort_by` with descending option
Yukihiro Matsumoto wrote:
> I think we are talking about two things at once.
> ...
I would concur.
> Second, adding secondary key sort order to `sort_by`.
Just to clarify, I'm not sure what you mean by 'adding secondary key sor...
MSP-Greg (Greg L)
02:08 PM Revision ba1ef74f (git): numeric.c: infinite recursion
* numeric.c (num_funcall0, num_funcall1): get rid of infinite
recursion in fallback methods of Numeric.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:04 PM Revision 85512bdb (git): test_comparable.rb: fix clamp test
* test/ruby/test_comparable.rb (TestComparable#test_clamp): fix
test. the result which is not clamped should be the receiver.
[Feature #10594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55890 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nobu (Nobuyoshi Nakada)
01:01 PM Revision a2a6c98e (git): win32ole.c: fix long conversion
* ext/win32ole/win32ole.c (ole_val2variant): reuse the converted
result for V_I8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:00 AM Bug #12672 (Feedback): rails server
Sorry, it's preview for 2.4, not 2.3.
I suspect it may be fixed already, though.
Could you try recent snapshots?
nobu (Nobuyoshi Nakada)
08:54 AM Bug #12672 (Rejected): rails server
Why still using preview? nobu (Nobuyoshi Nakada)
04:00 AM Bug #12672 (Closed): rails server
execute app with rails5.0.1
rails server
/usr/local/lib/ruby/gems/2.4.0/gems/railties-5.0.0.1/lib/rails/app_loader.rb:40: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
=> Booting Puma
=> Rails 5.0.0.1 ap...
trossky (Luis Fernando Garcia)
08:01 AM Feature #12665: Faster prime? method for prime.rb std lib
Sorry if I wasn't clear. It has been committed. marcandre (Marc-Andre Lafortune)
02:10 AM Bug #12669 (Closed): syntax error at assinments of command
Applied in changeset r55888.
----------
parse.y: chained assignments
* parse.y (command_asgn, arg): fix syntax errors with chained
assignment with op assign. [Bug #12669]
nobu (Nobuyoshi Nakada)
02:10 AM Revision 90d9255e (git): parse.y: chained assignments
* parse.y (command_asgn, arg): fix syntax errors with chained
assignment with op assign. [Bug #12669]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:52 AM Revision 5245e314 (git): parse.y: rescue modifier in rhs of op asgn
* parse.y (stmt, arg): rescue modifier in command op assignment
should be limited to rhs only. [ruby-core:75621] [Bug #12402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:49 AM Revision 9e778a8a (git): win32ole.c: fix long conversion
* ext/win32ole/win32ole.c (ole_val2variant): get rid of repeated
conversions and fix a compile error due to V_I8 in old VC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:26 AM Revision ee7993af (git): getnameinfo.c: rubysocket.h for inet_ntop
* ext/socket/getnameinfo.c: needs rubysocket.h for fallback
definition of inet_ntop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:21 AM Revision 2827bf1c (git): vm_insnhelper.c: fix ALWAYS_INLINE usage
* vm_insnhelper.c (vm_getivar): ALWAYS_INLINE macro needs an
argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/12/2016

10:54 PM Revision ab67459a (git): * 2016-08-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:54 PM Revision d5c2261b (git): * ext/win32ole/win32ole.c (ole_val2variant): fix integer conversion in
cygwin64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
suke (Masaki Suketa)
04:28 PM Feature #12665: Faster prime? method for prime.rb std lib
Could you please provide me a technical rationale for not giving this
method consideration. I do not know what your terse comment meant.
The method I provided is substantially faster than the current method
while having the same nu...
jzakiya (Jabari Zakiya)
03:11 PM Bug #12630: add gem sources errors on Ruby 2.4.0-preview1
you're right.
~~~ ruby
$ ruby -ropenssl -e'puts OpenSSL::OPENSSL_VERSION, OpenSSL::OPENSSL_LIBRARY_VERSION'
OpenSSL 1.0.2g 1 Mar 2016
OpenSSL 1.0.1f 6 Jan 2014
~~~
blackanger (blackanger z)
12:08 PM Feature #6559 (Closed): Set DoNotReverseLookup to true in Webrick
Applied in changeset r55881.
----------
* lib/webrick/config.rb (WEBrick::Config::General):
disable reverse lookup by default. [ruby-core:45514] [Feature #6559]
Socket.do_not_reverse_lookup is true by default but WEBrick
overwrote...
naruse (Yui NARUSE)
12:08 PM Revision bfe6bd0f (git): * lib/webrick/config.rb (WEBrick::Config::General):
disable reverse lookup by default. [ruby-core:45514] [Feature #6559]
Socket.do_not_reverse_lookup is true by default but WEBrick
overwrote it.
patch by Eric Hodel [ruby-core:45527]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk...
naruse (Yui NARUSE)
09:34 AM Bug #12666: Fatal error: glibc detected an invalid stdio handle
Actually, in the RHBZ, there are two comments from two glibc maintainers and both suggest to load glibc without specifying path, e.g.:
```
when /linux/
libc_so = "libc.so.6"
libm_so = "libm.so.6"
```
But this should apply p...
vo.x (Vit Ondruch)
08:45 AM Bug #12666: Fatal error: glibc detected an invalid stdio handle
Shyouhei Urabe wrote:
> For Fedora the patch seems OK. But I doubt if it could break on other systems like mswin. The fix proposed by the glibc maintainers seems much moderate to me.
Use ldd instead of hard coded list sounds reason...
naruse (Yui NARUSE)
12:38 AM Bug #12666: Fatal error: glibc detected an invalid stdio handle
For Fedora the patch seems OK. But I doubt if it could break on other systems like mswin. The fix proposed by the glibc maintainers seems much moderate to me. shyouhei (Shyouhei Urabe)
07:48 AM Revision 287b6a27 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
06:46 AM Bug #12671: Hash#to_proc result is not a lambda, but enforces arity
JRuby implements Hash#to_proc as:
```ruby
class Hash
def to_proc
method(:[]).to_proc
end
end
```
This allows us to present the proc as a lambda with correct arity:
```
$ jruby -e "pr = {}.to_proc; puts pr.arity; p...
headius (Charles Nutter)
05:47 AM Bug #12671: Hash#to_proc result is not a lambda, but enforces arity
None-lambda doesn't mean that it never checks its arguments.
And if it's a lambda, it doesn't match the `arity` value.
As for the implementation detail, there is no room for arity in `ifunc`s.
nobu (Nobuyoshi Nakada)
01:25 AM Bug #12671 (Closed): Hash#to_proc result is not a lambda, but enforces arity
```
$ ruby23 -e 'pr = {foo:1}.to_proc; puts pr.lambda?; pr.call rescue puts $!; pr.call(1, 2) rescue puts $!'
false
wrong number of arguments (given 0, expected 1)
wrong number of arguments (given 2, expected 1)
```
I believe it...
headius (Charles Nutter)
03:55 AM Revision 3ccd2a1b (git): ChangeLog: fix name in r55863 [ci skip]
* ChangeLog: fix the original patch author's name to the name
written in the patch, not "author name" in git.
[Feature #10594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55879 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Revision a49068f1 (git): error.c: fix newline in syntax error
* error.c (rb_syntax_error_append): fix newline in syntax error
message to the beginning, not after file name and line number.
[Feature #11951]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55878 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nobu (Nobuyoshi Nakada)
03:29 AM Revision d63802b3 (git): parse.y: const_decl_gen
* parse.y (const_decl_gen): extract as a function as well as
ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:29 AM Revision 777f15a3 (git): parse.y: assign_error
* parse.y (assign_error_gen): [ripper] rename without backref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:50 AM Bug #12568: wrong ArgumentError if an array is given for instance_exec with optional argument
ruby_2_2 r55875 merged revision(s) 55609. usa (Usaku NAKAMURA)
02:50 AM Revision af4907c5 (git): merge revision(s) 55609: [Backport #12568]
* vm_args.c (setup_parameters_complex): don't raise ArgumentError
if an array is given for instance_exec with optional argument.
[ruby-core:76300] [Bug #12568]
https://github.com/rails/rails/pull/25699
git...
U.Nakamura
02:46 AM Bug #12557: backport r55581 (Net::HTTP should raise error when CR/LF in a request line)
ruby_2_2 r55874 merged revision(s) 55581,55582. usa (Usaku NAKAMURA)
02:46 AM Revision 26df8ea5 (git): merge revision(s) 55581,55582: [Backport #12557]
* lib/net/http/generic_rquest.rb (write_header): A Request-Line must
not contain CR or LF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:43 AM Bug #12556: backport r55579 (Net::FTP should raise error when CR/LF in a line)
ruby_2_2 r55873 merged revision(s) 55579. usa (Usaku NAKAMURA)
02:43 AM Revision 9bfab3c1 (git): merge revision(s) 55579: [Backport #12556]
* lib/net/ftp.rb (putline): raise an ArgumentError when
CR or LF is included in a line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:35 AM Bug #12503: Backport r55427 (fix heap overflow in tr_trans)
ruby_2_2 r55872 merged revision(s) 55427. usa (Usaku NAKAMURA)
02:35 AM Revision 9fbd5955 (git): merge revision(s) 55427: [Backport #12503]
* string.c (tr_trans): consider terminator length and fix heap
overflow. reported by Guido Vranken <guido AT guidovranken.nl>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@55872 b2dd03c8-39d4-4d8f-98ff-823fe...
U.Nakamura

08/11/2016

07:26 PM Bug #12401: compile fails --with-static-linked-ext
ruby_2_3 r55871 merged revision(s) 55434. nagachika (Tomoyuki Chikanaga)
07:26 PM Revision 72e63983 (git): merge revision(s) 55434: [Backport #12401]
* common.mk (build-ext), ext/extmk.rb: use variable EXTENCS
different than ENCOBJS, to get rid of circular dependency.
build libencs when linking encodings statically.
[ruby-core:75618] [Bug #12401]
git-sv...
nagachika (Tomoyuki Chikanaga)
07:13 PM Bug #12398: process.c compile broken for noMMU architectures on 2.3.x
ruby_2_3 r55870 merged revision(s) 55090,55091. nagachika (Tomoyuki Chikanaga)
07:13 PM Revision 395340fa (git): merge revision(s) 55090,55091: [Backport #12398]
io.c: conditionally used functions
* io.c (pipe_atexit): only used on Windows
* io.c (rb_execarg_fixup_v): wrapper only used fork or spawnv is
available.
* process.c (rb_execarg_commandline): build command lin...
nagachika (Tomoyuki Chikanaga)
06:58 PM Bug #12353: Regression with Marshal.dump on ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
ruby_2_3 r55869 merged revision(s) 54142,55500. nagachika (Tomoyuki Chikanaga)
06:58 PM Revision 8dc8bba4 (git): merge revision(s) 54142,55500: [Backport #12353]
assertions.rb: fix result of assert_nothing_raised
* test/lib/test/unit/assertions.rb (assert_nothing_raised): do not
discard the result of the given block.
* vm_method.c (vm_respond_to): try method_missing if respond_...
nagachika (Tomoyuki Chikanaga)
06:39 PM Bug #12345: A module's private constants are given with `Module#constant(false)`
ruby_2_3 r55868 merged revision(s) 55705. nagachika (Tomoyuki Chikanaga)
06:39 PM Revision 717f31e0 (git): merge revision(s) 55705: [Backport #12345]
* variable.c (rb_local_constants_i): exclude private constants
when excluding inherited constants too. [Bug #12345]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
06:30 PM Bug #12342: DRb.stop_service doesn't kill sleeping TimerIdConv threads
ruby_2_3 r55867 merged revision(s) 55008. nagachika (Tomoyuki Chikanaga)
06:30 PM Revision c20b07d5 (git): merge revision(s) 55008: [Backport #12342]
* lib/drb/timeridconv.rb: don't use keeper thread. [Bug #12342]
* test/drb/ut_timerholder.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
05:58 PM Bug #12292: Race between OpenSSL::SSL::SSLSocket#stop and #connect can cause a segmentation fault
ruby_2_3 r55866 merged revision(s) 55100. nagachika (Tomoyuki Chikanaga)
05:58 PM Revision 88d76cfd (git): merge revision(s) 55100: [Backport #12292]
* ext/openssl/ossl_ssl.c (ossl_ssl_stop): Don't free the SSL struct
here. Since some methods such as SSLSocket#connect releases GVL,
there is a chance of use after free if we free the SSL from another
thread...
nagachika (Tomoyuki Chikanaga)
03:00 PM Revision 6a7e766f (git): * 2016-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:00 PM Revision afd800fd (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
02:36 PM Bug #11846: Block passed by &block is GC-ed
I guess this is a same problem with #11750 suggested by `git bisect`.
If so, it is since r51243 and fixed at r53144.
According to git informatin of Github,
r51243 == https://github.com/ruby/ruby/commit/a82ce7c55626086ad264a0d26de63b...
wanabe (_ wanabe)
12:30 PM Bug #12670 (Closed): Segmentation fault on `Magick::Image#get_pixels` on ruby since ruby-2.2
1. Create test.rb this code
~~~ ruby
require 'rmagick'
include Magick
(0..10).each do |_|
ImageList.new('1.bmp').get_pixels(0, 0, 1600, 800).each_slice(1600).to_a
end
~~~
2. Create any 1.bmp file with dimension at least 160...
ShockwaveNN (Pavel Lobashov)
09:32 AM Bug #12669 (Closed): syntax error at assinments of command
Related to #12402, I found other kind inconsistencies.
simple assignment and op assign of `command` cause syntax error,
while simple assignments don't.
```
$ ruby -ce 'a = b = raise "x"'
Syntax OK
```
```
$ ruby -ce 'a = b +=...
nobu (Nobuyoshi Nakada)
07:24 AM Feature #10594 (Closed): Comparable#clamp
Applied in changeset r55863.
----------
Comparable#clamp
* compar.c (cmp_clamp): Introduce Comparable#clamp. [Feature #10594]
nobu (Nobuyoshi Nakada)
07:24 AM Revision d5a0b8e3 (git): Comparable#clamp
* compar.c (cmp_clamp): Introduce Comparable#clamp. [Feature #10594]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:23 AM Feature #12593 (Rejected): Allow compound assignements to work when destructuring arrays
I am not going to make multiple assignments even more complex.
The behavior of OP_ASGN for multiple assignments is not obvious.
Matz.
matz (Yukihiro Matsumoto)
07:20 AM Revision b8ad9535 (git): compar.c: utility functions
* compar.c (rb_cmp): call comparison method by predefiend ID.
* compar.c (cmpint): returns compared result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:19 AM Feature #12655: Accessing the method visibility
https://github.com/ruby/ruby/compare/trunk...nobu:feature/12655 nobu (Nobuyoshi Nakada)
05:18 AM Bug #12668 (Closed): Please backport r53433
I quite often encounter error:
```
1) Failure:
TC_OpenStruct#test_accessor_defines_method [/builddir/build/BUILD/ruby-2.3.1/test/ostruct/test_ostruct.rb:173]:
<[:foo, :foo=]> expected but was
<[:foo=, :foo]>.
```
which was i...
vo.x (Vit Ondruch)
02:32 AM Revision c93875e6 (git): parse.y: node_assign
* parse.y (stmt, command_asgn): unifiy parser and ripper code by
node_assign macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:20 AM Revision a2b06fe4 (git): parse.y: backref_assign_error
* parse.y (backref_assign_error): unify parser and ripper code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:12 AM Revision 76e8f883 (git): parse.y: const declaration macro
* parse.y (const_decl): unify parser and ripper code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:39 AM Feature #4897: Define Math::TAU and BigMath.TAU. The "true" circle constant, Tau=2*Pi. See http://tauday.com/
This may be of interest: Guido van Rossum recently reopened the Python version of this request and is going to add tau to Python. See https://bugs.python.org/issue12345 . sbaird (Simon Baird)
01:24 AM Revision 0859c42b (git): parse.y: const field macros
* parse.y (const_path_field, top_const_field): unify parser and
ripper code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

08/10/2016

11:33 PM Bug #12667 (Closed): full_gem_path is incorrect for core modules
`#find_full_gem_path` [assumes all gems are in `gems_dir`](https://github.com/ruby/ruby/blob/trunk/lib/rubygems/basic_specification.rb#L105). It also leverages `full_name`, which [assumes the directory includes the version](https://githu... jeffreyc (Jeff C)
08:36 PM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
Yukihiro Matsumoto wrote:
> Benoit,
> ...
Dear Matz,
Thank you for the quick reply!
I think #map_values is intuitive and consistent with other methods as well as the general terminology used in Hash.
It seems almost everyone agree...
Eregon (Benoit Daloze)
04:43 PM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
`map_values` is good, succinct and clear. 'v' is an unclear abbreviation, made worse by the existence of other methods with the long form like `values_at`.
I guess I'm just repeating what Jan and Rodrigo said...
marcandre (Marc-Andre Lafortune)
01:31 PM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
Benoit,
The name and behavior haven't fixed yet. So we welcome discussion.
Your statement about "Ruby-like" is pretty interesting. Even though I have been designing Ruby for last 20+ years, I am not sure if I could define "Ruby-lik...
matz (Yukihiro Matsumoto)
11:53 AM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
Yes, I would say the same a few days ago about map_v being a bad name... I also prefer map_values. I just didn't say anything because I prefer a map_v over not having such a method at all and didn't want to delay this feature :P rosenfeld (Rodrigo Rosenfeld Rosas)
11:34 AM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
Yukihiro Matsumoto wrote:
> `#map_v` accepted.
> ...
Will all due respect,
I think the name #map_v is not very Ruby-like.
Why such a short name?
#map_values seems more consistent with existing methods (#values, #values_at, #each_v...
Eregon (Benoit Daloze)
07:54 PM Bug #12662: rb_hash_fetch() Segmentation fault on an empty hash table
I am confused. My C (please note C) program core dumps and libruby gives me an indication I found an error in Ruby an please report and I have to protect?
I am writing a pure C application (C not Ruby) using libruby to benchmark the R...
rocco (Rocco Carbone)
06:20 PM Feature #12665 (Closed): Faster prime? method for prime.rb std lib
Ok. Let's not go more complicated than this though.
Thanks
marcandre (Marc-Andre Lafortune)
06:17 PM Revision 2bd6264c (git): * 2016-08-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:17 PM Revision 2401c512 (git): * lib/prime.rb: Optimize prime?
Adapted from patch by Jabari Zakiya [#12665]
* test/test_prime.rb: Improve test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:30 PM Bug #12255: [DOC] Small fix for rdoc of ext/json/lib/json/add/*
ruby_2_3 r55855 merged revision(s) 55380. nagachika (Tomoyuki Chikanaga)
04:30 PM Revision a3600fc3 (git): merge revision(s) 55380: [Backport #12255]
* ext/json/lib/*.rb: Removed some comments. Because these are unnecessary
class description. [ci skip][Bug #12255][ruby-core:74835]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_3@55855 b2dd03c8-39d4-4d8f-98ff-8...
nagachika (Tomoyuki Chikanaga)
04:22 PM Bug #12666 (Closed): Fatal error: glibc detected an invalid stdio handle
During build of Ruby for Fedora on PPC64, there is reported following error:
```
Fiddle::TestImport#test_io = Fatal error: glibc detected an invalid stdio handle
uncommon.mk:612: recipe for target 'yes-test-almost' failed
make: ***...
vo.x (Vit Ondruch)
04:19 PM Bug #12209: Array#pack("G") problem
ruby_2_3 r55854 merged revision(s) 55573. nagachika (Tomoyuki Chikanaga)
04:19 PM Revision ada634ac (git): merge revision(s) 55573: [Backport #12209]
* pack.c (pack_pack): use union instead of bare variable to ease
optimizations and avoid assigning x87 floating point number.
[ruby-core:74496] [Bug #12209]
* pack.c (pack_unpack): ditto.
git-svn-id: svn+ss...
nagachika (Tomoyuki Chikanaga)
01:37 PM Revision 34336532 (git): parse.y: rhs with rescue modifier
* parse.y (command_rhs, arg_rhs): introduce new rules to reduce
repeated rules with rescue modifier.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:45 AM Feature #8643: Add Binding.from_hash
Thanks! rosenfeld (Rodrigo Rosenfeld Rosas)
02:57 AM Feature #8643: Add Binding.from_hash
Ticket links changed. shyouhei (Shyouhei Urabe)
11:12 AM Bug #12663: Compilation error on cygwin
Sorry, it's a commit miss. nobu (Nobuyoshi Nakada)
11:11 AM Bug #12663 (Closed): Compilation error on cygwin
Applied in changeset r55852.
----------
win32/resolv: fix for cygwin
* ext/win32/resolv/resolv.c: needs windows.h for iphlpapi.h on
cygwin. [ruby-core:76791] [Bug #12663]
* ext/win32/resolv/resolv.c (w32error_make_error): use
Win...
nobu (Nobuyoshi Nakada)
10:39 AM Bug #12663 (Feedback): Compilation error on cygwin
These files are for `ext/win32`, not for `ext/win32/resolv`.
Could you remove `ext/win32/resolv/Makefile` and then retry?
nobu (Nobuyoshi Nakada)
09:52 AM Bug #12663 (Open): Compilation error on cygwin
I'm sorry, but r55849 did not fix this at all. I still get exactly the same error messages. I'm attaching various files that have been created in ext/win32/resolv. duerst (Martin Dürst)
06:35 AM Bug #12663 (Closed): Compilation error on cygwin
Applied in changeset r55849.
----------
win32/resolv: fix for cygwin
* ext/win32/resolv/resolv.c: needs windows.h for iphlpapi.h on
cygwin. [ruby-core:76791] [Bug #12663]
* ext/win32/resolv/resolv.c (w32error_make_error): use
Win3...
nobu (Nobuyoshi Nakada)
11:11 AM Revision 27863a0c (git): win32/resolv: fix for cygwin
* ext/win32/resolv/resolv.c: needs windows.h for iphlpapi.h on
cygwin. [ruby-core:76791] [Bug #12663]
* ext/win32/resolv/resolv.c (w32error_make_error): use
Win32::Resolv::Error, an alias of Win32::Registry::Error.
git-svn-id: svn...
nobu (Nobuyoshi Nakada)
08:26 AM Bug #12402 (Closed): Inline rescue behavior inconsistent for method calls with arguments and assignment
Applied in changeset r55851.
----------
parse.y: rescue modifier in rhs
* parse.y (command_asgn): rescue modifier in command assignment
should be limited to rhs only. [ruby-core:75621] [Bug #12402]
nobu (Nobuyoshi Nakada)
08:26 AM Revision 064ed74b (git): parse.y: rescue modifier in rhs
* parse.y (command_asgn): rescue modifier in command assignment
should be limited to rhs only. [ruby-core:75621] [Bug #12402]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:35 AM Revision 89ab385b (git): * 2016-08-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:35 AM Revision 833ad92d (git): win32/resolv: fix for cygwin
* ext/win32/resolv/resolv.c: needs windows.h for iphlpapi.h on
cygwin. [ruby-core:76791] [Bug #12663]
* ext/win32/resolv/resolv.c (w32error_make_error): use
Win32::Resolv::Error, an alias of Win32::Registry::Error.
git-svn-id: svn+...
nobu (Nobuyoshi Nakada)
04:45 AM Feature #12655: Accessing the method visibility
We briefly looked at this issue at yesterday's developer meeting and roughly agreed that locksee should be able to be done in pure-ruby.
Sad news is we had no time to have a deeper look at it so what is actually needed was not made cl...
shyouhei (Shyouhei Urabe)
04:36 AM Feature #12625: TypeError.assert, ArgumentError.assert
See also #12624, Matz do not want assertion by class. shyouhei (Shyouhei Urabe)
04:14 AM Feature #12607 (Assigned): Ruby needs an atomic integer
I heard from Koichi that he has an opinion on this. Please respond. shyouhei (Shyouhei Urabe)
04:13 AM Bug #12594: The class does not inherit from a module the modules that were included after the inclusion
I listed this issue to be looked at the yesterday's developer meeting but sadly no time was there to deeply inspect it. At a glance it seems possible now to reflect inclusion happened afterwards. It has a chance. shyouhei (Shyouhei Urabe)
04:08 AM Feature #12586: Hash#sample
We looked at this issue at yesterday's developer meeting. I wonder if this is actually useful. The Tom&Jerry example is too simplistic and we at the meeting could not imagine what "a list of hash-kept remote URLs" that the OP says woul... shyouhei (Shyouhei Urabe)
03:19 AM Feature #11195 (Feedback): Add "no_proxy" parameter to Net::HTTP.new
We looked at this issue at yesterday's developer meeting. We agreed this feature is good, but sadly no active mentor was there for Net::HTTP.
Maybe could someone propose us a patch to implement this?
shyouhei (Shyouhei Urabe)
03:15 AM Feature #12490: Remove warning on shadowing block params
We looked at this issue at yesterday's developer meeting. While myself was positive to this, Matz is not. He thinks that shadowing by itself is a bad habit and should be discouraged. You need to show him a good advantage of encouragin... shyouhei (Shyouhei Urabe)
03:11 AM Feature #12497 (Assigned): GMP version of divmod may be slower
shyouhei (Shyouhei Urabe)
03:08 AM Bug #12489: hppa problems on Debian GNU/Linux
We looked at this issue at yesterday's developer meeting. Developers could not locate the bug at sight because test-all log lacks C-level backtrace (was this due to hppa's architecture or just a stripped binary?).
Ruby definitely nee...
shyouhei (Shyouhei Urabe)
02:51 AM Feature #4840: Allow returning from require
We looked at this issue at yesterday's developer meeting. No problem to introduce this feature was reported, except it is not implemented yet. Nobu tried this before and had technical difficulty; not sure if that could be rerouted. We... shyouhei (Shyouhei Urabe)
02:36 AM Feature #6265: Remove 'useless' 'concatenation' syntax
We looked at this issue at yesterday's developer meeting. This feature was once implemented, and then removed due to test failures.
The current situation is, it still renders lots of warnings when deprecation turned on. This string ...
shyouhei (Shyouhei Urabe)

08/09/2016

08:09 PM Feature #12665: Faster prime? method for prime.rb std lib
The current version of the method `prime?` in the `prime.rb`
std lib replaced the older version starting with 2.3.0.
It uses an implementation of the P3 Strictly Prime, Prime Generator (SP PG).
It can be simplified as shown below.
...
jzakiya (Jabari Zakiya)
08:06 PM Feature #12665 (Closed): Faster prime? method for prime.rb std lib
The current version of the method `prime?` in the `prime.rb`
std lib replaced the older version starting with 2.3.0.
It uses an implementation of the P3 Strictly Prime, Prime Generator (SP PG).
It can be simplified as shown below.
...
jzakiya (Jabari Zakiya)
07:05 PM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
Yukihiro Matsumoto wrote:
> `#map_v` accepted.
At first I thought it was an "adapted form" of Hash#map like Enumerable#grep_v is an "inverted" Enumerable#grep. Maybe the "_v" could be confusing for other people?
Why not Hash#map_v...
janfri (Jan Friedrich)
08:54 AM Feature #12512 (Closed): Import Hash#transform_values and its destructive version from ActiveSupport
Applied in changeset r55847.
----------
hash.c: implement Hash#map_v and Hash#map_v!
* hash.c (rb_hash_map_v, rb_hash_map_v_bang): impelement Hash#map_v and
Hash#map_v! [Feature #12512] [ruby-core:76095]
* test/ruby/test_hash.rb: ad...
mrkn (Kenta Murata)
07:16 AM Feature #12512 (Assigned): Import Hash#transform_values and its destructive version from ActiveSupport
mrkn (Kenta Murata)
07:14 AM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
`#map_v` accepted.
Matz.
matz (Yukihiro Matsumoto)
01:15 AM Feature #12512: Import Hash#transform_values and its destructive version from ActiveSupport
I don't persist with the name `transform_value`.
`map_v` or `map_values` are also acceptable for me.
mrkn (Kenta Murata)
06:23 PM Feature #12664 (Closed): Multiline pretty-printing of multiline strings
With following addition
~~~ ruby
class String
def pretty_print(q)
lines = self.lines
if lines.size > 1
q.group(0, '', '') do
q.seplist(lines, lambda { q.text ' +'; q.breakable }) do |v|
q.pp v
...
pitr.ch (Petr Chalupa)
05:42 PM Feature #8895: Destructuring Assignment for Hash
the closest you can get to hash destructuring is via block params:
~~~ ruby
{a: 1, b: 2}.tap do |a:, b:|
end
~~~
but unfortunately this has its own issues (#11048), it's too strict about missing/extra keys, which doesn't make sens...
bughit (bug hit)
04:41 PM Feature #12299: Add Warning module for customized warning handling
I've added a gem for lib/warning.rb (https://rubygems.org/gems/warning). jeremyevans0 (Jeremy Evans)
03:38 PM Feature #12299: Add Warning module for customized warning handling
Here is a patch that uses Warning instead of Exception::Warning, and only includes the error.c change (and a test for Warning.warn). I'll work on a gem shortly for lib/warning.rb. jeremyevans0 (Jeremy Evans)
05:44 AM Feature #12299: Add Warning module for customized warning handling
I accept the mechanism.
I prefer `Warning` to `Exception::Warning`.
Besides that, the basic should be included in the core (i.e. the patch to error.c), but its customization (i.e. lib/warning.rb) should be a Gem at first.
Matz.
matz (Yukihiro Matsumoto)
02:54 PM Feature #12635 (Rejected): Shuffling/Reassigning "namespaces" more easily
Probably you want an isolated loading system like Java's or Python's. That's fine. It must be a good idea.
But I don't think it can be accomplished by modifying existing `require` or adding anything to it.
You have to design the new on...
matz (Yukihiro Matsumoto)
02:51 PM Bug #12662 (Rejected): rb_hash_fetch() Segmentation fault on an empty hash table
It's your bug.
`rb_hash_fetch()` raises an exception if the key is not found, and you must catch it by `rb_protect()`.
nobu (Nobuyoshi Nakada)
08:55 AM Bug #12662 (Rejected): rb_hash_fetch() Segmentation fault on an empty hash table
I am writing HTM (Hash Table Machine - a C benchmark program for hash table) and libruby aborts with
ruby: [BUG] Segmentation fault at 0x00000000000018
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
while attempting to get an entr...
rocco (Rocco Carbone)
02:45 PM Feature #12573 (Rejected): Introduce a straightforward way to discover whether a process is running
It should be named `exist?` to be consistent with other methods in the standard libraries.
Besides that, I don't see a proper use-case for this method. Even when you have pid, the process you are trying to watch may have already termina...
matz (Yukihiro Matsumoto)
02:36 PM Feature #12626 (Rejected): Add ceiling alias for ceil on Numeric objects
Having both `ceil` (backed by UNIX tradition) and `ceiling` (better for English natives? dunno) only introduces confusion. Is there any other buying point for `ceiling`?
Matz.
matz (Yukihiro Matsumoto)
02:33 PM Feature #12624 (Rejected): !== (other)
The explicit use of `===` for type checking is against duck typing principle.
I don't accept syntax enhancement proposal to encourage something against duck typing in Ruby.
Matz.
matz (Yukihiro Matsumoto)
12:00 PM Revision 41fe7e4e (git): Remove empty directories
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:24 AM Bug #12663 (Closed): Compilation error on cygwin
I get the errors below when compiling on cygwin. The problem may already be two or three days old; I'm sorry I overlooked it.
```
make[2]: Entering directory '/cygdrive/c/Data/ruby/ext/win32/resolv'
compiling resolv.c
In file inclu...
duerst (Martin Dürst)
08:54 AM Revision ea5184b9 (git): hash.c: implement Hash#map_v and Hash#map_v!
* hash.c (rb_hash_map_v, rb_hash_map_v_bang): impelement Hash#map_v and
Hash#map_v! [Feature #12512] [ruby-core:76095]
* test/ruby/test_hash.rb: add tests for above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55847 b2dd...
Kenta Murata
08:51 AM Feature #12608 (Rejected): Proposal to replace unless in Ruby
I don't think proposed `guard` syntax is more readable than `unless`.
Even if some may agree with you, I doubt it's worth adding a new keyword and introducing possible incompatibility.
Matz.
matz (Yukihiro Matsumoto)
08:48 AM Feature #12637 (Rejected): Unified and consistent method naming for safe and dangerous methods
Ruby is not Scheme.
The rule is simple: every bang method should have its non-bang version, which does not modify the receiver.
That does not mean every non-bang method keeps its receiver unchanged.
Matz.
matz (Yukihiro Matsumoto)
08:39 AM Feature #12602 (Assigned): Add NilClass#to_d
mrkn (Kenta Murata)
08:37 AM Bug #12548: Rounding modes inconsistency between round versus sprintf
It should be consistent. Will be fixed.
Matz.
matz (Yukihiro Matsumoto)
08:04 AM Feature #12508 (Feedback): Integer#mod_pow
Instead, I propose `pow(a)` and `pow(a,b)` where the latter works as `mod_pow()` here.
Matz.
matz (Yukihiro Matsumoto)
08:03 AM Bug #12521 (Closed): Syntax for retrieving argument without removing it from double-splat catch-all
I am not sure what we gain comparing to
```ruby
def controller **context
if context.key?(:name)
...
end
end
```
Is this worth adding new syntax? If you think you can persuade me, please reopen.
Matz.
matz (Yukihiro Matsumoto)
07:52 AM Revision cb18d4ba (git): * vm_insnhelper.c (vm_getivar): use always_inline because
gcc7 doesn't inline this without always_inline.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:40 AM Feature #3511 (Closed): rb_path_to_class should call custom const_defined? methods
This is kind of autoload that sometimes cause problems.
I think it can cause issues than solving problem.
If you have a concrete use-case of this feature, please reopen.
Matz.
matz (Yukihiro Matsumoto)
07:36 AM Revision 9a9569b1 (git): test_objectspace.rb: errors in a finalizer
* test/ruby/test_objectspace.rb (test_finalizer_with_super):
adjust number of arguments to get rid of errors in a finalizer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:06 AM Feature #11818: `Hash#compact`
Accepted.
Matz.
matz (Yukihiro Matsumoto)
06:59 AM Bug #12402 (Assigned): Inline rescue behavior inconsistent for method calls with arguments and assignment
nobu (Nobuyoshi Nakada)
06:54 AM Bug #12402: Inline rescue behavior inconsistent for method calls with arguments and assignment
I consider this is a bug. They should be consistent.
But I am not sure we can fix the issue soon. When in doubt, put parens.
Matz.
matz (Yukihiro Matsumoto)
06:44 AM Feature #8539 (Closed): Unbundle ext/tk
Applied in changeset r55844.
----------
* ext/tk: Tk is removed from stdlib. [Feature #8539]
https://github.com/ruby/tk is the new upstream.
naruse (Yui NARUSE)
06:44 AM Revision 303dc3c5 (git): * ext/tk: Tk is removed from stdlib. [Feature #8539]
https://github.com/ruby/tk is the new upstream.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:42 AM Bug #12466 (Rejected): Enumerable should yield multiple values when possible
This idea sounds nice, but we have to keep compatibility.
Matz.
matz (Yukihiro Matsumoto)
06:26 AM Feature #12648: `Enumerable#sort_by` with descending option
I think we are talking about two things at once.
First, adding reverse (or descending) option to `sort_by`.
I think it may be useful for some cases, but it's only slightly better than `sort_by().reverse`.
Second, adding secondary ...
matz (Yukihiro Matsumoto)
06:13 AM Feature #12374 (Closed): SingletonClass
I don't think the idea itself is meaningless.
But its use-case is not clear to us yet.
(For the record, Singleton module is totally different story.)
If you have any real-world use-case, please reopen the issue.
Matz.
matz (Yukihiro Matsumoto)
05:55 AM Feature #10594: Comparable#clamp
I accept the idea of `#clamp` as `Comparable#clamp(min, max)`.
It would not accept ranges (for now).
Matz.
matz (Yukihiro Matsumoto)
05:05 AM Revision f82df94f (git): tcltklib.c: repeated checks and conversions [ci skip]
* ext/tk/tcltklib.c (ip_init): get rid of repeated checks and
conversions in StringValueCStr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:05 AM Revision 3f640186 (git): tcltklib.c: use StringValueCStr [ci skip]
* ext/tk/tcltklib.c (set_max_block_time, tcl_protect_core,
ip_init, ip_create_slave_core, get_obj_from_str,
ip_cancel_eval_core, lib_set_system_encoding,
alloc_invoke_arguments, lib_merge_tklist): use StringValueCStr
instead of S...
nobu (Nobuyoshi Nakada)
05:05 AM Revision 56689eac (git): tcltklib.c: use PRIsVALUE [ci skip]
* ext/tk/tcltklib.c (set_max_block_time): use PRIsVALUE to get rid
of dangling pointer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:05 AM Revision 0d15e30a (git): tcltklib.c: missing break [ci skip]
* ext/tk/tcltklib.c (set_max_block_time): fix missing break.
TclTkLib.set_max_block_time(1) works but
TclTkLib.set_max_block_time(1.0) didn't.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:42 AM Revision d8d78f07 (git): tcltk.rb: suppress a warning [ci skip]
* ext/tk/lib/tcltk.rb (TclTkWidget#initialize): suppress an
"assigned but unused variable" warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:42 AM Revision ed3139b7 (git): tcltklib/sample2.rb: use attr_accessor [ci skip]
* ext/tk/sample/tcltklib/sample2.rb (Othello::BoardView::Square):
use attr_accessor instead of attr with optional boolean
argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:42 AM Revision 5a80f0c5 (git): use true and false [ci skip]
* ext/tk/lib/tk/texttag.rb, ext/tk/sample/tcltklib/sample2.rb,
ext/tk/sample/tkline.rb, ext/tk/sample/tktimer.rb: use true and
false instead of TRUE and FALSE.
* ext/win32ole/sample/ienavi.rb (stop_msg_loop): ditto.
git-svn-id: svn...
nobu (Nobuyoshi Nakada)

08/08/2016

03:59 PM Feature #9704: Refinements as files instead of modules
It would be interesting to be able apply a refinement to a whole app (without its gems) or inside a single gem without propagating to the rest of the app which loaded it.
Although I'm not really sure about the syntax or API to do it.
pabloh (Pablo Herrero)
03:16 PM Revision dfc9cb40 (git): * 2016-08-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:16 PM Revision 38fc851d (git): * doc/maintainers.rdoc: Remove moved file section.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:04 PM Revision 44997130 (git): * ext/win32ole/sample/excel1.rb, ext/win32ole/sample/excel2.rb,
ext/win32ole/sample/excel3.rb, ext/win32ole/sample/ie.rb,
ext/win32ole/sample/ienavi.rb, ext/win32ole/sample/ienavi2.rb: use
true instead of deprecated TRUE. [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55834 b2dd03...
suke (Masaki Suketa)
07:50 AM Bug #12421: Please backport r53816, r53817
Tomoyuki Chikanaga wrote:
> usa san how do you judge this?
I agreed with you.
usa (Usaku NAKAMURA)
01:21 AM Bug #12421: Please backport r53816, r53817
In my opinion r53816 might be considered as spec fix but r53817 was feature change, even though there's no entry in NEWS file.
usa san how do you judge this?
nagachika (Tomoyuki Chikanaga)
05:12 AM Bug #12658 (Feedback): variable_name_checker
Similar to #11928 ?
Could you try with 2.3.1 or trunk?
nagachika (Tomoyuki Chikanaga)
05:11 AM Revision 6a6a4126 (git): internal.h: fix r55831
* internal.h (RBASIC_CLEAR_CLASS): fix compile error and size to
fill.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:04 AM Revision d81e5593 (git): test/unit.rb: no verbose in worker processes
* test/lib/test/unit.rb (Test::Unit::Parallel::Worker.launch):
disable verbose flag in worker processes, get rid of unexpected
output within marshaled results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55832 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
04:20 AM Bug #12657 (Closed): [PATCH] ANSI aliasing fix for XL compiler
Applied in changeset r55831.
----------
* internal.h (RBASIC_CLEAR_CLASS): Reroute ANSI C's strict
aliasing rule.
[ruby-core:74427][Bug #12191][ruby-core:76747][Bug #12657]
shyouhei (Shyouhei Urabe)
04:09 AM Bug #12657: [PATCH] ANSI aliasing fix for XL compiler
`RBASIC_CLEAR_CLASS` doesn't use `RBASIC_CLEAR_CLASS_RAW`, and the former only is used with r-values.
Sorry for the noise.
nobu (Nobuyoshi Nakada)
03:55 AM Bug #12657: [PATCH] ANSI aliasing fix for XL compiler
Nobuyoshi Nakada wrote:
> Does this patch really compile?
Yes, at least to me.
shyouhei (Shyouhei Urabe)
03:14 AM Bug #12657 (Feedback): [PATCH] ANSI aliasing fix for XL compiler
Does this patch really compile?
`cls` in `RBASIC_CLEAR_CLASS` sometimes isn't an l-value, and should not be able to be the operand of unary '&'.
nobu (Nobuyoshi Nakada)
01:46 AM Bug #12657: [PATCH] ANSI aliasing fix for XL compiler
Shyouhei Urabe wrote:
> Thank you. I think we don't need the #else part because the memset/memcpy should just work for all ANSI-compliant compilers. Is it OK for me to merge your patch like that way?
Yes, that should work.
Zarko (Zarko Todorovski)
01:10 AM Bug #12657: [PATCH] ANSI aliasing fix for XL compiler
Thank you. I think we don't need the #else part because the memset/memcpy should just work for all ANSI-compliant compilers. Is it OK for me to merge your patch like that way? shyouhei (Shyouhei Urabe)
04:20 AM Bug #12191 (Closed): Violation of ANSI aliasing rules causing problems while compiling
Applied in changeset r55831.
----------
* internal.h (RBASIC_CLEAR_CLASS): Reroute ANSI C's strict
aliasing rule.
[ruby-core:74427][Bug #12191][ruby-core:76747][Bug #12657]
shyouhei (Shyouhei Urabe)
04:19 AM Revision 869e7809 (git): * internal.h (RBASIC_CLEAR_CLASS): Reroute ANSI C's strict
aliasing rule.
[ruby-core:74427][Bug #12191][ruby-core:76747][Bug #12657]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
03:39 AM Feature #9612 (Assigned): Gemify OpenSSL
hsbt (Hiroshi SHIBATA)
03:38 AM Feature #8526: gemify tk
Rubygems に gem として push できるよう、リクエストをだしました
https://github.com/rubygems/rubygems.org/pull/1378
hsbt (Hiroshi SHIBATA)
01:59 AM Bug #7877: E::Lazy#with_index should be lazy
Is there reason this is not loved? I'd like to have this. shyouhei (Shyouhei Urabe)
 

Also available in: Atom