Project

General

Profile

Activity

From 10/25/2014 to 10/31/2014

10/31/2014

10:23 PM Revision 3dce236b (git): common.mk: remove dl from EXT_SRCS
* common.mk (EXT_SRCS): remove dl/callback which has been removed
at r48217.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:33 PM Revision 98536495 (git): ext/win32ole/win32ole_variant.c: use typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e suke (Masaki Suketa)
09:13 PM Feature #5458 (Closed): DL should be removed
Applied in changeset r48217.
----------
* ext/dl/*: remove DL as it is replaced by Fiddle.
[Feature #5458] Thanks to Jonan Scheffler <jonanscheffler@gmail.com>
for this patch
* test/dl/*: ditto.
Anonymous
09:13 PM Revision 07308c4d (git): * ext/dl/*: remove DL as it is replaced by Fiddle.
[Feature #5458] Thanks to Jonan Scheffler <jonanscheffler@gmail.com>
for this patch
* test/dl/*: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
08:51 PM Bug #10454: %i doesn't have any special behavior in rb_sprintf et al.
Well I can't get it to work for some reason. When I run this code:
~~~C
#include <ruby.h>
VALUE func(VALUE arg)
{
VALUE str = rb_sprintf("%i %+i : %d %+d", Qtrue, Qtrue, Qtrue, Qtrue);
rb_funcall(rb_mKernel, rb_intern("puts")...
silverhammermba (Max Anselm)
08:49 PM Revision 88326272 (git): * test/openssl/test_ssl.rb: Add certificate verification chain
test from JRuby community.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
headius (Charles Nutter)
08:33 PM Bug #10453: NUM2CHR() does not perform additional bounds checks
I would expect it to raise `RangeError` if the num exceeds the size of a `char`. That is the behavior of the all of the other `NUM2*` macros. silverhammermba (Max Anselm)
03:12 PM Bug #10453 (Assigned): NUM2CHR() does not perform additional bounds checks
`NUM2CHR` rather should never raise `RangeError` for any arguments? nobu (Nobuyoshi Nakada)
07:37 PM Revision e697783d (git): * 2014-11-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:37 PM Revision 08d0b570 (git): * test/psych/test_emitter.rb: Fix line_width test...initial value
is impl-specific and attr assignment always returns LHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
headius (Charles Nutter)
01:22 PM Bug #9494 (Closed): Race condition in autoload of Digest::SHA256, etc.
Applied in changeset r48213.
----------
Make Digest() thread-safe.
* ext/digest/lib/digest.rb (Digest()): This function should now be
thread-safe. If you have a problem with regard to on-demand
loading under a multi-threaded envir...
knu (Akinori MUSHA)
01:09 PM Bug #9494 (Assigned): Race condition in autoload of Digest::SHA256, etc.
Hi,
Thanks for the patch, but this change is hardly acceptable because it unconditionally increases memory consumption just for solving a problem under a multi-threaded environment.
The problem is unavoidable as long as you rely on...
knu (Akinori MUSHA)
01:21 PM Revision c02fa394 (git): Make Digest() thread-safe.
* ext/digest/lib/digest.rb (Digest()): This function should now be
thread-safe. If you have a problem with regard to on-demand
loading under a multi-threaded environment, preload "digest/*"
modules on boot or use this method inste...
Akinori MUSHA
01:12 PM Revision 2172b448 (git): * test/digest/test_digest.rb: Drop #!. This no longer runs
stand-alone because it depends on ruby/envutil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
10:00 AM Feature #859: open-uri doesn't allow redirection to https
FYI, HTML5 defines whether it should redirect or not:
http://www.w3.org/TR/2014/REC-html5-20141028/infrastructure.html#processing-model
naruse (Yui NARUSE)
08:25 AM Revision a12ca211 (git): * win32/setup.mak: $(APPEND) with some arguments insert a space before
the arguments, so it causes error if the arguments are expected to be
a macro definition. this fix resolve the build error introduced at
r48210.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48211 b2dd03c8-39d4-4d8f-98ff-823fe...
U.Nakamura
08:07 AM Revision 74ec7699 (git): win32/setup.mak: get target architecture from the compiler
* win32/Makefile.sub, win32/setup.mak (MACHINE): get target
architecture from the compiler, instead of environment variable
at build time, which is irrelevant to runtime environment, and
not set when running in cygwin sshd.
git-sv...
nobu (Nobuyoshi Nakada)
08:07 AM Revision 26c13db6 (git): test_time.rb: test_iso8601
* test/test_time.rb (TestTimeExtension#test_iso8601): run all
xmlschema tests with iso8601 method, and fix the test name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:49 AM Bug #10159 (Closed): Ruby 2.x Syslog::Logger is newer than the one in Rubygems but version is the same
Applied in changeset r48208.
----------
Bump Syslog::Logger::VERSION to 2.1.0.
* ext/syslog/lib/syslog/logger.rb (Syslog::Logger::VERSION): Bump
the VERSION to 2.1.0. [ruby-core:64483] [Bug #10159]
knu (Akinori MUSHA)
07:49 AM Revision f701b0df (git): Bump Syslog::Logger::VERSION to 2.1.0.
* ext/syslog/lib/syslog/logger.rb (Syslog::Logger::VERSION): Bump
the VERSION to 2.1.0. [ruby-core:64483] [Bug #10159]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
07:36 AM Revision a87c88bc (git): Document that Net::IMAP#fetch will return nil instead of an emtpy array.
* lib/net/imap.rb (Net::IMAP#fetch): [DOC] Document that
Net::IMAP#fetch will return nil instead of an emtpy array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
07:21 AM Revision 8ed7d220 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
05:12 AM Bug #10462 (Closed): fiddle/libffi installation failing on cygwin
During the make process, I get the following message:
configuring fiddle
ffi.h is missing. Please install libffi.
Failed to configure fiddle. It will not be installed.
Also, at the end of the make process, it says:
DL is deprecate...
duerst (Martin Dürst)
03:54 AM Bug #10461 (Closed): lib/unicode_normalize/tables.rb not regenerated
Applied in changeset r48205.
----------
common.mk: fix Unicode table dependency
* common.mk (.unicode-tables.time): needs Unicode files always,
and should update after downloading these files.
[ruby-core:66026] [Bug #10461]
nobu (Nobuyoshi Nakada)
03:54 AM Revision aa631f9a (git): common.mk: fix Unicode table dependency
* common.mk (.unicode-tables.time): needs Unicode files always,
and should update after downloading these files.
[ruby-core:66026] [Bug #10461]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48205 b2dd03c8-39d4-4d8f-98ff-823fe69b...
nobu (Nobuyoshi Nakada)
03:49 AM Revision c2228158 (git): extmk.rb: include UPDATE_LIBRARIES
* ext/extmk.rb: include UPDATE_LIBRARIES in SUBMAKEOPTS for NMAKE
which does not include macro definitions given by command line
in MAKEFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:20 AM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
> to know whether a object whose class has Numeric as superclass is equal to real number or not.
Simplly, `a.real? || a.imag.zero?` may be enough for me, so far.
```
irb(main):016:0> a = 2.16
=> 2.16
irb(main):017:0> a.real? || ...
t-nissie (Takeshi Nishimatsu)
01:16 AM Revision f17a28dd (git): * .travis.yml: reverted r48199, it's unlated configuration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:59 AM Revision f288185d (git): * test/test_unicode_normalize.rb: added unicode version number to
test data location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
12:59 AM Revision 53117e9f (git): * .gitignore: ignored unicode data with version directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:35 AM Revision cf0d7a70 (git): * 2014-10-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:35 AM Revision c0e546bc (git): * .travis.yml: tweak build scripts for unicode_normalize.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)

10/30/2014

11:44 PM Bug #10461: lib/unicode_normalize/tables.rb not regenerated
The problem still is still there if I do make up; make install(-nodoc) duerst (Martin Dürst)
11:40 PM Bug #10461 (Closed): lib/unicode_normalize/tables.rb not regenerated
The file lib/unicode_normalize/tables.rb doesn't get regenerated if removed.
How to reproduce:
Remove lib/unicode_normalize/tables.rb. then
make lib/unicode_normalize/tables.rb
If there are missing data files in enc/unicode/data/7.0....
duerst (Martin Dürst)
09:21 PM Feature #10442: Helper methods to Vector class
More tests Clamoris (Egunov Dmitriy)
08:49 PM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
@Takeshi Nishimatsu san
Thank for info, how do you think about my points?
gogotanaka (Kazuki Tanaka)
02:58 PM Revision 708eed20 (git): common.mk: separate updates
* common.mk (UPDATE_LIBRARIES): separate autogenerated library
script from downloaded data files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:17 PM Bug #10460 (Closed): Segfault instead of stack level too deep
The code to trigger this can be found here: https://gist.github.com/mbj/31163a8e712573877268
Also have a look at the comments there. A lot of different people tried it, in some cases it segfaults, in others it doesn't. It seems to hav...
plexus (Arne Brasseur)
11:12 AM Feature #10459 (Rejected): [PATCH] rfc3339 method for Time
Alias for iso8601 method for compatibility with DateTime (Ruby on Rails). Antiarchitect (Andrey Voronkov)
09:48 AM Revision 7c1480ec (git): * common.mk: fix for the case ALWAYS_UPDATE_UNICODE=no
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
08:56 AM Bug #10450: multiple assignment in conditional
Which of the multiple values assigned would you have used as the test for the conditional?
~~~
if (a, b = true, false)
puts "Should this run?"
else
puts "Or this?"
end
~~~
jballanc (Joshua Ballanco)
08:30 AM Bug #10458 (Closed): After r48196, make cannot complete because of Unicode file download problem
When I did
make up; make install-nodoc
after r48196, make finished with the messages below. This was after the three Unicode data files had been downloaded correctly into enc/unicode/data/7.0.0 earlier in the make process.
I know...
duerst (Martin Dürst)
07:39 AM Revision 39713bd9 (git): common.mk: separate Unicode files directory
* common.mk: download Unicode files into separate directory for the
version.
* tool/downloader.rb (Downloader::Unicode.download): strip version
directory.
* tool/downloader.rb (Downloader.download): strip directory name
if downlo...
nobu (Nobuyoshi Nakada)
06:33 AM Revision 40cc9231 (git): tkutil.c: remove useless branches
* ext/tk/tkutil/tkutil.c (cbsubst_table_setup): remove useless
branches and get rid of out of bound access.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:04 AM Bug #10457 (Closed): Proc instead of String as error message still doesn't work (gem problem?)
Proc instead of String as error message still doesn't work for me (see #10430).
The relevant gem has been updated (see https://bugs.ruby-lang.org/issues/10430#note-10), and the new gem is being downloaded and installed (see r48180), but...
duerst (Martin Dürst)
05:02 AM Bug #10430 (Closed): Proc instead of String as error message doesn't work.
I close this issue because installing gem is another topic. kou (Kouhei Sutou)
04:30 AM Bug #10416: Create mechanism for updating of Unicode data files downstreams when we want
I committed r48194, switching the download location to http://www.unicode.org/Public/7.0.0/ucd/ (i.e. Unicode Version 7.0.0), as discussed at the meeting yesterday. This does not yet address this bug, because when we change this to http:... duerst (Martin Dürst)
04:23 AM Revision bd38e0c4 (git): tool/downloader.rb: changed Unicode data download location
from latest Unicode version to Unicode 7.0.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
02:16 AM Bug #9605 (Closed): Chaining "each_with_index.detect &lambda" raises ArgumentError
Applied in changeset r48193.
----------
vm_insnhelper.c: allow to_ary
* vm_insnhelper.c (vm_callee_setup_arg{_complex,}): try conversion
by to_ary for a lambda, as well as a proc.
[ruby-core:65887] [Bug #9605]
nobu (Nobuyoshi Nakada)
02:16 AM Revision e95e5247 (git): vm_insnhelper.c: allow to_ary
* vm_insnhelper.c (vm_callee_setup_arg{_complex,}): try conversion
by to_ary for a lambda, as well as a proc.
[ruby-core:65887] [Bug #9605]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:47 AM Revision 44d2958e (git): ruby.h: optimize NUM2CHR
* include/ruby/ruby.h (rb_num2char_inline): use RB_TYPE_P for
optimization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:10 AM Bug #10456 (Rejected): kwargs and block without comma should probably be a syntax error
nobu (Nobuyoshi Nakada)
12:07 AM Bug #10454 (Closed): %i doesn't have any special behavior in rb_sprintf et al.
It's true, see `ruby__sfvextra()`. nobu (Nobuyoshi Nakada)

10/29/2014

11:06 PM Bug #10456: kwargs and block without comma should probably be a syntax error
In fact, if you run with warnings enabled, you see:
```
$ ruby -w -e "def wat(something: nil &block); end"
-e:1: warning: `&' after local variable or literal is interpreted as binary operator
-e:1: warning: even though it seems lik...
Anonymous
11:01 PM Bug #10456: kwargs and block without comma should probably be a syntax error
```ruby
def wat(something: nil &block)
end
```
`nil &block` is a legal expression (calling the `&` method on `nil` with `block` as the argument).
The expression is evaluated at method call time, not method definition time, so t...
Anonymous
10:52 PM Bug #10456 (Rejected): kwargs and block without comma should probably be a syntax error
bobbytables (Robert Ross)
10:17 PM Feature #10455: [PATCH 0/n] Combine interface for creating new matrix
For now, I'm gonna make `Matrix.row_vector(row)` and `Matrix.column_vector(column)` deprecated. gogotanaka (Kazuki Tanaka)
09:35 PM Feature #10455 (Third Party's Issue): [PATCH 0/n] Combine interface for creating new matrix
I believe we'd better reduce the number of interface for creating new matrix as much as possible.
Right now, we have 7 methods for creating new matrix,
```
* Matrix.[](*rows)
* Matrix.rows(rows, copy = true)
* Matrix.columns(col...
gogotanaka (Kazuki Tanaka)
09:56 PM Feature #10442: Helper methods to Vector class
@Egunov Dmitriy
I like this idea, and it looks fine for me.
It may too trivial things but I want more tests and to make it more gracefully.
(`1.5707963267948966` is little bit not clear)
Like that.
```
assert_in_epsilon(Ma...
gogotanaka (Kazuki Tanaka)
07:00 PM Feature #10442: Helper methods to Vector class
Thanks, Marc-Andre Lafortune.
Patch updated (in attach), please take a look.
Clamoris (Egunov Dmitriy)
12:51 AM Feature #10442: Helper methods to Vector class
Marc-Andre Lafortune wrote:
> Thanks for the feature request(s).
> ...
marcandre (Marc-Andre Lafortune)
12:51 AM Feature #10442: Helper methods to Vector class
Thanks for the feature request(s).
I think `angle_between` could be useful. The patch needs work though:
* should check that given argument is a Vector
* should calling `self` when not necessary
* should avoid create intermediary...
marcandre (Marc-Andre Lafortune)
08:56 PM Bug #10454 (Closed): %i doesn't have any special behavior in rb_sprintf et al.
README.EXT claims:
> In the format string, `%i` is used for `Object#to_s` (or `Object#inspect` if ‘+’ flag is set) output (and related argument must be a VALUE).
But if you look at the code, this isn't true. %d and %i are handled t...
silverhammermba (Max Anselm)
08:25 PM Bug #10453 (Rejected): NUM2CHR() does not perform additional bounds checks
`NUM2CHR()` just calls `rb_num2int_inline()` and masks off the high bytes. Consequently, passing any value larger than a `char` and no bigger than an `int` will return some garbage value (rather than raising `RangeError`).
To reproduc...
silverhammermba (Max Anselm)
07:25 PM Feature #10452 (Closed): Add documentation for Digest
* ext/digest/digest.c:
- remove HMAC from list of digest algorithms,
- add MD5 in list of digest algorithms,
- add information about writing a C digest implementation using
Digest::Base,
- add documentation for Digest::B...
sdaubert (Sylvain Daubert)
06:56 PM Feature #10451 (Closed): [PATCH 3/3] Implement Vector.independent? and Vector#independent?
Hi, Marc-André Lafortune.
I'm sorry for sending a bit lot of patches for the last few days.
This time, I've implemented check if vectors are linearly independent or not.
Please feel free to point out or reject when you have time.
...
gogotanaka (Kazuki Tanaka)
03:19 PM Bug #10450 (Rejected): multiple assignment in conditional
multiple assignment is an expression whose value can be truthy (array) or falsy (nil, false), so why is there a restriction on its use in conditionals? A warning perhaps is justified, but a syntax error, why?
irb(main):001:0> if a,...
bughit (bug hit)
03:08 PM Bug #10449 (Closed): [TracePoint API] Duplicated line events when using parenthesis
Sometimes, when using parenthesis, I get duplicated lines events from the TracePoint API. See the failing test case, it generates 2 line events where I think it should generate just one.
def test_no_duplicate_line_events
e...
deivid (David Rodríguez)
03:01 PM Revision 19121b47 (git): * 2014-10-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision 049bbd72 (git): parse.y: reset current_arg after block var
* parse.y (block_param_def): reset current_arg after block
parameter definition, not to warn references in that block body.
[ruby-core:65990] [Bug #10314]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48190 b2dd03c8-39d4-4d8f-98...
nobu (Nobuyoshi Nakada)
02:24 PM Revision 6fe9b2b7 (git): parse.y: warn iside a block
* parse.y (gettable_gen): also warn circular argument reference even
inside a block. [ruby-core:65990] [Bug #10314]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:56 PM Feature #7793: New methods on Hash
Below is a summary of the different naming proposals so far in this thread, with links to the documentation for real-world implementations where available.
# Option 1
The original proposal, uses the term `map` to express changing t...
Ajedi32 (Ajedi32 W)
01:23 PM Bug #10009: IO operation is 10x slower in multi-thread environment

Following script in python to buy blocking io python x ruby
Results:
ruby without changes TIME_QUANTUM_USEC (100 * 1000)
first..........: 32445253
second.........: 30660119
postgres.......: 61
time...........: 1.5022704 secs
...
ariveira (Alexandre Riveira)
01:13 PM Bug #10009: IO operation is 10x slower in multi-thread environment
. ariveira (Alexandre Riveira)
12:13 PM Bug #10314 (Closed): Default argument lookup fails in Ruby 2.2 for circular shadowed variable names
Applied in changeset r48188.
----------
parse.y: warn circular argument reference
* parse.y (gettable_gen): warn circular argument reference, for
transition from 2.1 and earlier. [ruby-core:65990] [Bug #10314]
nobu (Nobuyoshi Nakada)
10:46 AM Bug #10314 (Assigned): Default argument lookup fails in Ruby 2.2 for circular shadowed variable names
Maybe we need warning() strongly (without verbose).
ko1 (Koichi Sasada)
10:41 AM Bug #10314 (Rejected): Default argument lookup fails in Ruby 2.2 for circular shadowed variable names
In other part of Ruby, `foo = foo` makes foo to nil.
To get old behavior, try `foo = foo()`.
Matz.
matz (Yukihiro Matsumoto)
12:13 PM Revision 98ea6275 (git): parse.y: warn circular argument reference
* parse.y (gettable_gen): warn circular argument reference, for
transition from 2.1 and earlier. [ruby-core:65990] [Bug #10314]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:41 AM Revision d8270efc (git): parse.y: unused member
* parse.y (parser_params): remove unused member `cur_mid`.
this has been taken over by `in_def` since 1.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:58 AM Bug #10447 (Closed): path name needs to be transcoded to OS path encoding.
バックポート用の備忘録です。
[ruby-list:49994] および r48186 を参照。
usa (Usaku NAKAMURA)
08:52 AM Feature #10098 (Assigned): [PATCH] Timing-safe string comparison for OpenSSL::HMAC
The latest patch seems satisfy nobu, doesn't it?
At last we need to get approved from Matz.
nagachika (Tomoyuki Chikanaga)
08:41 AM Misc #10446 (Closed): [PATCH] Quite little fix
I have to say sorry for such a little modification.
I've added only some periods.
I'm definitely not in a hurry. Take your time.
gogotanaka (Kazuki Tanaka)
08:39 AM Bug #10239 (Assigned): Regexp.quote() and default encoding
I think this is intended behavior. nagachika (Tomoyuki Chikanaga)
08:30 AM Feature #10445 (Rejected): [PATCH 3/3] Extend Matrix#[]
I've made patches which Matrix#[] returns new vector if either arguments is range,
and returns new matrix, if both arguments are range.
Like below.
```ruby
# matrix[row, column] -> obj or nil
# matrix[row, col_...
gogotanaka (Kazuki Tanaka)
08:16 AM Feature #10444 (Rejected): [PATCH 3/3] Vector#[] returns new vector if argument is range.
Hi, it's incompatible change little bit.
Before
```
Vector[1,2,3][0..1]
=> [1, 2]
```
After
```
Vector[1,2,3][0..1]
=> Vector[1, 2]
```
I'm not in a hurry. Take your time.
gogotanaka (Kazuki Tanaka)
07:11 AM Feature #4938: Add Random.bytes [patch]
shibata.hiroshi@gmail.com wrote:
> File randombytes-ruby22.diff added

Looks good to me.
Any approval from matz since this is a new API?
normalperson (Eric Wong)
05:38 AM Feature #4938: Add Random.bytes [patch]
I revised patch for Ruby 2.2. hsbt (Hiroshi SHIBATA)
03:13 AM Feature #4938: Add Random.bytes [patch]
I think there is no problems. nobu (Nobuyoshi Nakada)
02:59 AM Feature #4938: Add Random.bytes [patch]
Hi Nobu,
is there a reason not to commit this?
marcandre (Marc-Andre Lafortune)
05:58 AM Feature #10074: [PATCH] generalize Vector#cross_product
@Marc-Andre Lafortune
I'm really appreciate your help.
And your changes totally makes sense.
Thanks.
gogotanaka (Kazuki Tanaka)
02:53 AM Feature #10074 (Closed): [PATCH] generalize Vector#cross_product
marcandre (Marc-Andre Lafortune)
02:52 AM Feature #10074: [PATCH] generalize Vector#cross_product
I committed this change, with a couple of changes.
In particular, the sign was wrong for even dimensions. I changed it so we now have, for any `n`:
first, *middle, last = Matrix.identity(n).column_vectors
first.cross(*midd...
marcandre (Marc-Andre Lafortune)
05:44 AM Revision ef276e95 (git): load.c: transcode path
* load.c (rb_f_load): path name needs to be transcoded to OS path
encoding. [ruby-list:49994]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:44 AM Revision 5de3e7e2 (git): test_require.rb: rename
* test/ruby/test_require.rb (test_load_scope): rename and add
failure message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:15 AM Bug #10430: Proc instead of String as error message doesn't work.
Kouhei Sutou wrote:
> I've released new test-unit gem. It support Proc as user_message.
> ...
It seem that Hiroshi has done this at r48180, and I have updated my checkout, but I still get the same error. I'm not sure why, but could it ...
duerst (Martin Dürst)
03:15 AM Bug #10438: miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
Adding --with-setjmp-type=_setjmp to configure fixed my problem. I can compile, install, and make check passes as well.
Please let me know if I can help someway in debugging this issue.
pedz (Perry Smith)
02:58 AM Bug #10438: miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
--gcc= and --cc= options to configure result in an error.
I did export CC=.... before the configure and that took effect but that did not solve my issue.
On my host, /usr/bin/gcc is the same as /usr/bin/gcc-4.2. /usr/bin/clang pro...
pedz (Perry Smith)
02:48 AM Bug #10438 (Closed): miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
Applied in changeset r48184.
----------
configure.in: fix for old Apple compilers
* configure.in (__builtin_setjmp): disable with gcc/clang earlier
than 4.3 on Mac OS X. [ruby-core:65174] [Bug #10272]
nobu (Nobuyoshi Nakada)
03:02 AM Feature #10354: Optimize Integer#prime?
Dear Yugui,
Do you have an objection that I commit my fixes (which are really bug fixes) while you decide if you want to go in the direction of Nick's optimization?
Thanks
marcandre (Marc-Andre Lafortune)
02:55 AM Feature #10058 (Closed): [PATCH] Fix some coding styles
marcandre (Marc-Andre Lafortune)
02:54 AM Feature #10352 (Closed): Give alias Vector#inner_product and Vector#cross_product
marcandre (Marc-Andre Lafortune)
02:54 AM Feature #10056 (Closed): [PATCH 0/1]Add #adjugate method to matrix class
Committed, thanks for this request! marcandre (Marc-Andre Lafortune)
02:48 AM Bug #10272 (Closed): miniruby hangs on Mac OS X 10.7
Applied in changeset r48184.
----------
configure.in: fix for old Apple compilers
* configure.in (__builtin_setjmp): disable with gcc/clang earlier
than 4.3 on Mac OS X. [ruby-core:65174] [Bug #10272]
nobu (Nobuyoshi Nakada)
02:48 AM Revision 6c6d4da2 (git): configure.in: fix for old Apple compilers
* configure.in (__builtin_setjmp): disable with gcc/clang earlier
than 4.3 on Mac OS X. [ruby-core:65174] [Bug #10272]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:43 AM Revision aa87ea99 (git): * lib/matrix.rb: Generalize Vector#cross_product to arbitrary dimensions
based on a patch by gogo tanaka [#10074]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
02:43 AM Revision 764524f6 (git): * lib/matrix.rb: Add Matrix#adjucate
patch by gogo tanaka [#10056]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
02:42 AM Revision dc38c877 (git): * lib/matrix.rb: Add aliases for Vector#cross & dot
patch by gogo tanaka [#10352]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
01:04 AM Feature #10440: Optimize keyword and splat argument
Koichi, you haven't described incompatibility. Does that mean no behavior change?
If so, go ahead and make it fast. Then tune it for memory consumption, as Eric pointed out.
Matz.
matz (Yukihiro Matsumoto)
01:00 AM Revision 9419ecc6 (git): * gems/bundled_gems: Update latest version of bundled gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e hsbt (Hiroshi SHIBATA)
12:49 AM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
FYI, on Julia:
```
julia> VERSION
v"0.3.1"
julia> Complex(1.0,-0.0)
1.0 - 0.0im
julia> 1.0-0.0im
1.0 - 0.0im
julia> -1.0-0.0im
-1.0 - 0.0im
julia> bool(Complex(1.0,-0.0))
true
julia> bool(Complex(1.0,0.0))
true
...
t-nissie (Takeshi Nishimatsu)

10/28/2014

11:31 PM Feature #10440: Optimize keyword and splat argument
Cool.
My only concern is making call_info and iseq structs bigger.

I think most of the iseq->arg_keyword_* fields can be moved to a
separate allocation (like catch table) because they are not common
and space may be saved that way...
normalperson (Eric Wong)
09:39 AM Feature #10440: Optimize keyword and splat argument
I support fastpath for yield.
I updated benchmark (show in below) includes yield().
```
# trunk
user system total real
foo0 ...
ko1 (Koichi Sasada)
06:19 AM Feature #10440 (Closed): Optimize keyword and splat argument
# Abstract
Change data structure of call_info and rewrite all of method argument fitting code to optimize keyword arguments and a splat argument. My measurement shows that this optimization is x10 faster than current code of method di...
ko1 (Koichi Sasada)
10:25 PM Bug #10430: Proc instead of String as error message doesn't work.
Kouhei Sutou wrote:
> I've released new test-unit gem. It support Proc as user_message.
Great, thanks!
> ...
I would say yes. But please confirm with Nobu or Yui or Hiroshi.
duerst (Martin Dürst)
02:57 PM Bug #10430: Proc instead of String as error message doesn't work.
I've released new test-unit gem. It support Proc as user_message.
Should I update version in gems/bundled_gems?
kou (Kouhei Sutou)
09:24 AM Bug #10430 (Open): Proc instead of String as error message doesn't work.
duerst (Martin Dürst)
06:10 AM Bug #10430: Proc instead of String as error message doesn't work.
Nobuyoshi Nakada wrote:
> Because the discussion about standard test libraries has not landed yet.
> ...
Ah, thanks a lot for following up on this. This is great.
Sutou-san, 是非よろしくお願いします。
duerst (Martin Dürst)
05:00 AM Bug #10430: Proc instead of String as error message doesn't work.
Because the discussion about standard test libraries has not landed yet.
Sutou-san said he will fix so that user_message can be a Proc.
http://twitter.com/ktou/status/526751637990150144
nobu (Nobuyoshi Nakada)
02:07 AM Bug #10430: Proc instead of String as error message doesn't work.
Nobuyoshi Nakada wrote:
> Martin Dürst wrote:
> ...
Yes.
> You need to run it via `test/runner.rb`, i.e., `ruby test/runner.rb test_unicode_normalize.rb`.
Thanks for the advice, it worked.
But why do we need a special runner.r...
duerst (Martin Dürst)
09:52 PM Bug #10443: Forking with contended mutex held can lead to deadlock in child process upon unlock
For now, I think leaking some lock/cond resources at fork is the easiest
option. Leaking is better than deadlocking.
kosaki: thoughts on my patch? Thanks.
normalperson (Eric Wong)
08:32 PM Bug #10443: Forking with contended mutex held can lead to deadlock in child process upon unlock
Thanks for the test case, I can reproduce it easily.
Hopefully I can fix it soon.
normalperson (Eric Wong)
07:03 PM Bug #10443: Forking with contended mutex held can lead to deadlock in child process upon unlock
The original test case was not actually minimal (there's no need to attempt to re-acquire the lock in the forked child process in order to demonstrate the issue), so I'm attaching an updated version. benweint (Ben Weintraub)
03:42 PM Bug #10443 (Closed): Forking with contended mutex held can lead to deadlock in child process upon unlock
If a Ruby thread calls `Process.fork` while holding a Mutex (for example, within a `Mutex#synchronize` block) that is also concurrently being contended for by a background thread, the thread in the child process will occasionally be unab... benweint (Ben Weintraub)
08:55 PM Bug #10438: miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
Thank you.
Possibly, it depends on the versions of based GCC?
Worked fine on 10.7 (11.4.2) with MacPorts gcc 4.7.3 or later,
but it's uncertain where is the borderline between 4.3 and 4.7.
nobu (Nobuyoshi Nakada)
03:35 PM Bug #10438: miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
I met same problem with clang compiler on OS X 10.7.
It looks configure script detects wrong RUBY_SETJMP() and RUBY_LONGJMP().
I found adding a configure option "--with-setjmp-type=_setjmp" solves this problem.
config.h on 10.9
...
kimuraw (Wataru Kimura)
01:33 PM Bug #10438 (Feedback): miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
nagachika (Tomoyuki Chikanaga)
01:32 PM Bug #10438 (Closed): miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
Applied in changeset ruby-21:r48177.
----------
merge revision(s) r48174: [Backport #10438]
* configure.in: remove apple-gcc4.2 from CC candidates.
nagachika (Tomoyuki Chikanaga)
01:29 PM Bug #10438: miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
Hello, Perry.
Thank you for your report.
This could be related with homebrew apple-gcc42 thing.
Please try configure with --gcc=/usr/bin/gcc or --gcc=/usr/bin/clang.
if it works, r48174 seems fixes this issue. I'll backport it in...
nagachika (Tomoyuki Chikanaga)
02:55 AM Bug #10438 (Closed): miniruby hangs on Mac 10.8.5 during build of ruby 2.1.4
I am trying to make ruby 2.1.4 on a Mac 10.8.5 and the call to miniruby to update rbconfig.rb hangs.
When I attach to the process using gdb, the stack is:
~~~
(gdb) where
#0 st_update (key=140492321470720, table=0x7fc6e9409bd0, ...
pedz (Perry Smith)
06:40 PM Revision 1bff9edf (git): * 2014-10-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:40 PM Feature #9345 (Closed): [PATCH] signal.c: avoid repeated disable/enable interrupt
Applied in changeset r48178.
----------
signal.c: avoid repeated disable/enable interrupt
We only install system-level signal handlers during init (before any
threads or user code is running), so there's no need to repeatedly
enable/di...
Anonymous
06:39 PM Revision cbb79f04 (git): signal.c: avoid repeated disable/enable interrupt
We only install system-level signal handlers during init (before any
threads or user code is running), so there's no need to repeatedly
enable/disable the interrupts at that time. We also do not change
system-level sig handlers once use...
Eric Wong
04:22 PM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
@Takeshi Nishimatsu san
Thank you for your comments and sharing good article.
From this article, your point-out might be right. I admit `Complex(x, 0.0)` is not truly real.
And I suppose `-1.0-0.0i` not be `-1.0+0.0i` too.
Aside...
gogotanaka (Kazuki Tanaka)
08:39 AM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
Objection.
Especially for Float, Complex(1.0,0.0) and Complex(1.0,-0.0) have meanings:
sqrt[-x+i(+0)]=i*sqrt(x)
sqrt[-x+i(-0)]=-i*sqrt(x)
So, they are complex. Not real.
And, please see the man page of cproj(3), though cproj is ...
t-nissie (Takeshi Nishimatsu)
02:07 PM Feature #10442 (Closed): Helper methods to Vector class
Vector class missed some very helpful methods like angle between another vector and vector projection.
Patch attached. Please advice if more unit tests are needed.
Clamoris (Egunov Dmitriy)
02:01 PM Bug #10441 (Rejected): Wrong required argument count reported for **kwargs method ArgumentErrors
When collecting excess keyword arguments, Ruby's ArgumentError message doesn't count the `**kwargs` as possible arguments.
~~~
def foo(**kwargs); "args: #{kwargs}"; end
# => :foo
foo(1, 2, 3)
ArgumentError: wrong number of argum...
jxf (John Feminella)
01:32 PM Revision f14cc4d3 (git): merge revision(s) r48174: [Backport #10438]
* configure.in: remove apple-gcc4.2 from CC candidates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@48177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagachika (Tomoyuki Chikanaga)
01:20 PM Revision 4ca19ae4 (git): * version.h (RUBY_VERSION): bump RUBY_VERSION to 2.1.5.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@48176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
10:27 AM Feature #10391: Provide %eISO-8859-1'string \xAA literal' string literals with explicit encoding
It is useful when string literals are frozen.
So I think this feature is good to have.
The syntax is a problem, though.
However I feel %eGB2312'文字列' preserves characters, not bytes.
I.e. I think %eGB2312'文字列' should be interpreted ...
akr (Akira Tanaka)
08:33 AM Feature #8848: Syntax for binary strings
Eric Wong wrote:
> We can even go farther than #10423 and move the evaluation of
> ...
Even if nobody overrides String#encode, they may configure it in various ways.
> There's no new (and strange looking, IMHO) syntax to learn,
...
duerst (Martin Dürst)
08:29 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
Akira Tanaka wrote:
> やはり仕様をちゃんと書くというところに向き合うべきではないのかなぁ、
> ...
いや、仕様はそれなりに書いてあるぽいですね。読み方が甘かったです。
akr (Akira Tanaka)
08:20 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
Gem::Version と同じっていうのは本当なんですかね。
とりあえず追記されたという部分の例を Gem::Version でやってみると
結果が一致しないんですが。
```
% ruby -e 'p Gem::Version.new("a1") <=> Gem::Version.new("a01")'
/home/akr/ruby/o0/lib/ruby/2.2.0/rubygems/version.rb:206:in `initialize'...
akr (Akira Tanaka)
07:59 AM Feature #9816: 文字列内の数字を数値として比較するメソッド
こんな感じで追記してみました
~~~
+ * call-seq:
+ * str.versioncmp(other_str) -> -1, 0, +1 or nil
+ *
+ * Compare strings as version strings.
+ *
+ * "a1".versioncmp("a1") #=> 0
+ * "aa".versioncmp("a1") ...
naruse (Yui NARUSE)
07:22 AM Bug #10435 (Closed): ruby -c file can run.
Applied in changeset r48175.
----------
ruby.c: no -r when dump
* ruby.c (process_options, load_file_internal2): should not
require other files when dump option is given.
[ruby-dev:48712] [Bug #10435]
nobu (Nobuyoshi Nakada)
01:19 AM Bug #10435 (Closed): ruby -c file can run.
ruby -c file としたときに、実行が起きてしまうことがあるようです。
```
% cat z.rb
#! /usr/bin/env ruby -r./z
p :run
% ruby -vc z.rb
ruby 2.2.0dev (2014-10-27 trunk 48168) [x86_64-linux]
:run
Syntax OK
```
akr (Akira Tanaka)
07:22 AM Revision 4079a354 (git): ruby.c: no -r when dump
* ruby.c (process_options, load_file_internal2): should not
require other files when dump option is given.
[ruby-dev:48712] [Bug #10435]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:52 AM Revision c98b8d62 (git): * configure.in: remove apple-gcc4.2 from CC candidates.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:43 AM Revision ac96c3f6 (git): * version.h: forgotten to bump patchlevel.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
04:38 AM Revision 7c30cdc5 (git): * 2014-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:38 AM Revision cc9b047c (git): * test/rexml/test_document.rb: fix typo (patch mistake).
reported and patched by Jeremy Evans at [Bug #10439]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:30 AM Bug #10416: Create mechanism for updating of Unicode data files downstreams when we want
Yui NARUSE wrote:
> For years, file structures of Unicode Data was changed some times.
> ...
I agree (but see last paragraph of this comment). But that's not what this issue is about.
What I'm talking about is that next year, at some po...
duerst (Martin Dürst)
02:53 AM Revision 4da322ed (git): * 2014-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:53 AM Revision b5524d9f (git): eventids2.c: reduce size
* ext/ripper/eventids2.c (token_assoc): reduce size. unsigned
short can hold 65535 at least.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:38 AM Bug #10437 (Closed): ruby -c and ripper inconsistency: /*/
/*/ という、間違った regexp リテラルは
ruby -c ではちゃんとエラーになるのですが、
Ripper.sexp ではエラーになりません。
```
% cat z.rb
/*/
% ruby -c z.rb
z.rb:1: target of repeat operator is not specified: /*/
% ruby -rripper -e '...
akr (Akira Tanaka)
01:24 AM Bug #10436 (Closed): ruby -c and ripper inconsistency: m(&nil) {}
m(&nil) {} というまちがったコードは
ruby -c でちゃんとエラーになるのに、
Ripper.sexp ではならないようです。
```
% cat z.rb
m(&nil) {}
% ruby -c z.rb
z.rb:1: both block arg and actual block given
% ruby -rripper -e 'p Ripper.sexp(STDIN.read)' < z.rb
[:program, [...
akr (Akira Tanaka)

10/27/2014

06:43 PM Feature #8848: Syntax for binary strings
duerst@it.aoyama.ac.jp wrote:
> One reason for this efficiency. String#b creates a duplicate object,
> which is not at all necessary for the frequent use case of String
> literals.

Avoiding one allocation is easy to add to [Featur...
normalperson (Eric Wong)
01:33 PM Bug #10430 (Closed): Proc instead of String as error message doesn't work.
Martin Dürst wrote:
> Third, test-all is very good to have, but it's too slow when I know which tests I need to run.
I see.
You run the test just as `ruby test/test_unicode_normalize.rb`?
You need to run it via `test/runner.rb`, i....
nobu (Nobuyoshi Nakada)
09:03 AM Bug #10430 (Assigned): Proc instead of String as error message doesn't work.
Nobuyoshi Nakada wrote:
> `test-all` should use libraries under `test/lib`, not the gems.
First, I haven't used test-all because for me it completely stops at test 401. I have raised a separate bug about this (#10433).
Second, why...
duerst (Martin Dürst)
07:19 AM Bug #10430 (Feedback): Proc instead of String as error message doesn't work.
`test-all` should use libraries under `test/lib`, not the gems.
Do you set RUBYOPT?
nobu (Nobuyoshi Nakada)
06:18 AM Bug #10430: Proc instead of String as error message doesn't work.
Nobuyoshi Nakada wrote:
> It worked for me.
> ...
This is one possibility. But I'm using the standard installation with the bundled gems (as written above: minitest-5.4.1.gem, power_assert-0.1.4.gem, and test-unit-3.0.1.gem; see also...
duerst (Martin Dürst)
04:00 AM Bug #10430: Proc instead of String as error message doesn't work.
It worked for me.
~~~
[29/47] TestNormalize#test_normalize_to_NFKC_from_NFC_with_nfkc = 0.01 s
1) Failure:
TestNormalize#test_normalize_to_NFKC_from_NFC_with_nfkc [/Users/nobu/src/ruby/trunk/src/test/test_unicode_normali...
nobu (Nobuyoshi Nakada)
01:05 AM Bug #10430 (Closed): Proc instead of String as error message doesn't work.
Revision r48113 introduced Procs to delay time-consuming generation of error messages. This is a good idea, but it doesn't work for me.
How to reproduce: Make a small change in lib/unicode_normalize/tables.rb. Any change should do; I ...
duerst (Martin Dürst)
01:05 PM Bug #10416: Create mechanism for updating of Unicode data files downstreams when we want
For years, file structures of Unicode Data was changed some times.
Therefore there's no guarantee that Unicode 12 can work with the current script.
naruse (Yui NARUSE)
01:04 PM Revision d3dc6735 (git): fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
12:08 PM Bug #10434 (Closed): fix TestBugReporter#test_bug_reporter_add failure on Yosemite (fixed at r46397)
バックポート管理用のチケットです。
Yosemite で DignosticReport ディレクトリに .plist ファイルを作らなくなったことに対応するテストの修正です。
nagachika (Tomoyuki Chikanaga)
11:24 AM Revision 10f820b1 (git): merge revision(s) 48161:
* lib/rexml/entity.rb: keep the entity size within the limitation.
reported by Willis Vandevanter <will@silentrobots.com> and
patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@48164 b2...
U.Nakamura
11:23 AM Revision d86ba46a (git): merge revision(s) r48161:
* lib/rexml/entity.rb: keep the entity size within the limitation.
reported by Willis Vandevanter <will@silentrobots.com> and
patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@48163 b2dd...
nagachika (Tomoyuki Chikanaga)
11:22 AM Revision 61ff012d (git): merge revision(s) 48161:
* lib/rexml/entity.rb: keep the entity size within the limitation.
reported by Willis Vandevanter <will@silentrobots.com> and
patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@48162 b2...
U.Nakamura
11:18 AM Revision 9cdd297a (git): * lib/rexml/entity.rb: keep the entity size within the limitation.
reported by Willis Vandevanter <will@silentrobots.com> and
patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
08:57 AM Bug #10433 (Closed): make test-all stops at [ 401/16011] FTPTest#test_list_read_timeout-exceeded
When I execute
make test-all
it stops at
[ 401/16011] FTPTest#test_list_read_timeout-exceeded
for at least an hour. Looking at TaskManager, it doesn't do anything (i.e. it is not in an endless loop).
I have to kill it, one ...
duerst (Martin Dürst)
08:17 AM Bug #10432 (Closed): wrong receiver of Binding from Method
Applied in changeset r48160.
----------
proc.c: fix method proc binding receiver
* proc.c (method_proc): the receiver of binding from method should
be same as the receiver of the method.
[ruby-core:65917] [Bug #10432]
nobu (Nobuyoshi Nakada)
08:07 AM Bug #10432 (Closed): wrong receiver of Binding from Method
Methodオブジェクトから`to_proc.binding`で作られたBindingのreceiverが、Methodオブジェクトの元になったオブジェクトではなく、Methodオブジェクトになっています。
~~~ruby
class C
def foo;end
end
o = C.new
m = o.method(:foo)
p m.receiver # #<C:0x007fcada074e58>
p m....
nobu (Nobuyoshi Nakada)
08:17 AM Revision e45b215f (git): proc.c: fix method proc binding receiver
* proc.c (method_proc): the receiver of binding from method should
be same as the receiver of the method.
[ruby-core:65917] [Bug #10432]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:12 AM Revision 9bcf16f0 (git): proc.c: local variable
* proc.c (proc_binding): extract a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:29 AM Revision ed8da2d1 (git): * test/ruby/test_super.rb: add a test to check block passing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
07:02 AM Revision 3edcd548 (git): * gc.c: is_incremental_marking(), will_be_incremental_marking():
use `&&' with GC_ENABLE_INCREMENTAL_MARK intead of using
#if/#else/#endif.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
06:50 AM Revision 1b132cb2 (git): eventids2.c: reduce size
* ext/ripper/eventids2.c (token_to_eventid): reduce relocations
and element size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:38 AM Revision 92c61ca7 (git): ripper/tools/generate.rb: shorten generated source
* ext/ripper/tools/generate.rb (generate_eventids1): shorten
generated source.
* ext/ripper/tools/generate.rb (generate_eventids2): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:25 AM Revision d8e1bf27 (git): id.h.tmpl: ANDOP and OROP
* template/id.h.tmpl (token_op_ids): define && and || for ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:23 AM Revision 5a277b40 (git): parse.y: optimize IDs in ripper
* parse.y: optimize ripper_intern calls, ::, **, -@, +@, <=>, >=,
<=, ==, ===, !=, =~, !~, <<, >>, and call.
* parse.y: use initialized IDs, warn and warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48153 b2dd03c8-39d4-4d8f...
nobu (Nobuyoshi Nakada)
06:16 AM Revision fc9fffca (git): symbol.h: optimize ID2SYM
* symbol.h (rb_id2sym): optimize for predefined IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:53 AM Revision ce9fc203 (git): test_parser_events.rb: split test_binary
* test/ripper/test_parser_events.rb (test_binary): split for each
operators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:40 AM Bug #10431 (Closed): Can't sweep garbage object immediatly when GC_ENABLE_LAZY_SWEEP=0
Applied in changeset r48150.
----------
gc.c: fix no lazy sweep mode
* gc.c (gc_sweep_rest): sweep rest pages regardless of whether
lazy sweep is enabled or not. based on the patch by Masahiro
Ide at [ruby-dev:48706]. [Bug #10431]
nobu (Nobuyoshi Nakada)
04:17 AM Bug #10431: Can't sweep garbage object immediatly when GC_ENABLE_LAZY_SWEEP=0
r41510でis_lazy_sweeping()を使うようになり、その後r47444でis_lazy_sweeping()が変更されたときの見落としのようです。 nobu (Nobuyoshi Nakada)
02:50 AM Bug #10431 (Closed): Can't sweep garbage object immediatly when GC_ENABLE_LAZY_SWEEP=0
GC_ENABLE_LAZY_SWEEP=0と設定してrubyをビルドし,以下のコードを
実行した場合,GC時にオブジェクトが解放されていないように見えます.
~~~
$ ../configure CFLAGS="-DGC_ENABLE_LAZY_SWEEP=0" && make miniruby
$ cat bug2.rb
GC.disable
10000.times { Object.new }
total_freed_objects1 = GC...
imasahiro (Masahiro Ide)
04:40 AM Revision 202b4bbe (git): gc.c: fix no lazy sweep mode
* gc.c (gc_sweep_rest): sweep rest pages regardless of whether
lazy sweep is enabled or not. based on the patch by Masahiro
Ide at [ruby-dev:48706]. [Bug #10431]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48150 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
04:28 AM Bug #10421: BasicObject継承クラスで object_id メソッドを定義すると redefining ... 警告が出る
Backported into `ruby_2_0_0` at r48149. usa (Usaku NAKAMURA)
04:28 AM Revision 2c31816f (git): merge revision(s) 48111,48118,48120: [Backport #10421]
* vm_method.c (rb_method_entry_make): warn redefinition only for
already defined methods, but not for undefined methods.
[ruby-dev:48691] [Bug #10421]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@...
U.Nakamura
02:34 AM Revision 4f517abf (git): * 2014-10-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:33 AM Revision bebd27b0 (git): test/ruby/test_process.rb: reduce garbage during forks
* test/ruby/test_process.rb (test_deadlock_by_signal_at_forking):
reduce garbage during forks
This seems to reduce failures on my memory-constrained VM
when doing a full test-all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@481...
Eric Wong

10/26/2014

08:50 PM Feature #8976: file-scope freeze_string directive
Eric Wong wrote:
>
> ...
Agreed.
> I also think needing to call "...".dup is ugly and will break much
> ...
I don't think "...".dup is ugly.
I agree changing the default breaks much existing code.
So changing the default is ...
akr (Akira Tanaka)
05:17 PM Bug #10429 (Closed): Ruby 2.x exponents produce wildly varying precision for integers vs decimals
## 2.0.0
```
> 1.1.to_d ** -1.9999999
=> #<BigDecimal:7fdcc1fcdfa0,'0.8264462888 68609939E0',18(45)>
> ...
=> #<BigDecimal:7fdccd3e8d00,'0.8264462809 9173553719 0082644628 0991735537 1900826446 2809917355 3719008264 46E0',72(72)> ...
dresselm (Matt Dressel)
03:58 PM Bug #9005: object.send(:define_method, ...){...} creates private method
Scott Tamosunas wrote:
> This isn't fixed on 2.1.3. Has that changeset not made it into a release?
> ...
The behavior change here is deliberate, since you are calling `define_method` inside the class definition after calling private. ...
jeremyevans0 (Jeremy Evans)
11:30 AM Bug #10428 (Closed): Segmentation fault when modifying local variables of binding obtained from the result of Method#to_proc
The issue pops up when Method#to_proc is called, then the binding of that proc is obtained, and one tries to modify (get/set) the local variables in that binding.
Lets examine the code below.
```
class Foo
def bar
end
end
...
Anonymous
06:53 AM Revision 512c0364 (git): commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
06:29 AM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
Tsuyoshi Sawada さん
こんにちは. 22年間誤用しておりました.. お恥ずかしい.
ご指摘をするのも心苦しいと察します、わざわざお伝え頂けるとは本当に嬉しく思います.
お陰さまで苦手な英語を一歩前進させる事が出来ました. ありがとうございました!!
話は変わりますが、Tsuyoshi Sawada さん が面白いアイディアを沢山投稿されて、ステキだと思っています.
実際に実装されるまでは色々考えなければいけない所があるんでしょうが(...
gogotanaka (Kazuki Tanaka)
04:12 AM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
gogo tanakaさん、
他スレッドでのコメントありがとうございます。
sawa (Tsuyoshi Sawada)
03:22 AM Feature #10378: [PATCH 0/3] It's better (1 + 0i).real? return true
There are not any arguments or opinions, I've made patches(implement, test, updating NEWS ) anyway.
Please check it.
Thanks.
gogotanaka (Kazuki Tanaka)
06:19 AM Bug #10427 (Third Party's Issue): The WebKit of QtRuby crashed
require "Qt4"
require "qtwebkit"
app=Qt::Application.new []
view=Qt::WebView.new
view.setUrl Qt::Url.new "http://baidu.com"
view.show
app.exec
/usr/lib/ruby/vendor_ruby/1.9.1/Qt/qtruby4.rb:469: [BUG] cfp consistency error ...
mopperwhite (Mopper White)
03:26 AM Revision 68e19ae8 (git): template/insns.inc.tmpl, insns_info.inc.tmpl, known_errors.inc.tmpl,
minsns.inc.tmpl: fixed path of generating script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
03:24 AM Bug #10405 (Closed): syntax error inconsistency between ruby -c and ripper
Applied in changeset r48144.
----------
parse.y: Ripper.sexp returns error
* ext/ripper/lib/ripper/sexp.rb (Ripper.sexp, Ripper.sexp_raw):
return nil on error. [ruby-dev:48678] [Bug #10405]
nobu (Nobuyoshi Nakada)
03:24 AM Revision d1ec43ae (git): parse.y: Ripper.sexp returns error
* ext/ripper/lib/ripper/sexp.rb (Ripper.sexp, Ripper.sexp_raw):
return nil on error. [ruby-dev:48678] [Bug #10405]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:22 AM Revision 3bf0628a (git): ChangeLog: remove conflict mark
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:24 AM Revision d26c4965 (git): string.c: improved comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
02:16 AM Feature #10426: A predicate to express congruence
@Tsuyoshi Sawada san
I like it.
One thing I'm a little worried about is `congruent?` might be too specified word.
I mean, I'm not sure `congruent` can be used in except modulo or geometry context.
gogotanaka (Kazuki Tanaka)
12:55 AM Feature #10426 (Open): A predicate to express congruence
I occasionally felt the necessity of a predicate that checks congruence with respect to some operations:
~~~ruby
class Object
def equal_by? other, &pr
pr.call(self) == pr.call(other)
end
alias congruent? equal_by?
end
5....
sawa (Tsuyoshi Sawada)
01:47 AM Feature #10425: A predicate method to tell if a number is near another
Such a predicate would indeed be convenient. But sometimes, one doesn't want to compare with an absolute epsilon, but relatively, e.g. like so:
`((other.abs.to_f + abs.to_f) / (other.to_f - to_f).abs)` <= ????
duerst (Martin Dürst)
12:40 AM Feature #10425: A predicate method to tell if a number is near another
The definition above is just to illustrate the functions. There may be a better implementation. Especially, an appropriate error message should be given when an inappropriate argument is given.
`error` might be a better name to replac...
sawa (Tsuyoshi Sawada)
12:38 AM Feature #10425 (Open): A predicate method to tell if a number is near another
A method `near?` like the following would be useful.
~~~ruby
class Numeric
def near? other, delta: Float::EPSILON
(other.to_f - to_f).abs <= delta.to_f
end
end
class Time
def near? other, delta: Float::EPSILON
to_f.ne...
sawa (Tsuyoshi Sawada)
01:32 AM Feature #10423: [PATCH] opt_str_lit*: avoid literal string allocations
It looks like Flonum was hiding my bug in on 64-bit systems :x
fix for 32-bit here:
~~~diff
--- a/compile.c
+++ b/compile.c
@@ -5467,7 +5467,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD...
normalperson (Eric Wong)

10/25/2014

11:20 PM Revision 26d56b7d (git): A test renamed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:46 PM Revision 856ad599 (git): * 2014-10-26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:46 PM Revision 5d2ce2fb (git): ext/win32ole/win32ole.c (ole_val2variant, ole_invoke): refactoring.
use ole_variant2variant to convert WIN32OLE_VARIANT object to
VARIANT object.
ext/win32ole/win32ole_variant.c: refactoring. add
ole_variant2variant.
ext/win32ole/win32ole_variant.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/t...
suke (Masaki Suketa)
06:43 PM Bug #10421: BasicObject継承クラスで object_id メソッドを定義すると redefining ... 警告が出る
Backported into `ruby_2_1` at r48138. nagachika (Tomoyuki Chikanaga)
06:42 PM Revision eca3835c (git): merge revision(s) r48111,r48118,r48120: [Backport #10421]
* vm_method.c (rb_method_entry_make): warn redefinition only for
already defined methods, but not for undefined methods.
[ruby-dev:48691] [Bug #10421]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@48...
nagachika (Tomoyuki Chikanaga)
06:29 PM Bug #10413: Unexpected block invocation with unknown keywords
I backported only r48114 into `ruby_2_1` at r48137. nagachika (Tomoyuki Chikanaga)
06:29 PM Revision c4e838d0 (git): merge revision(s) r48102: [Backport #10413]
* class.c (unknown_keyword_error): delete expected keywords
directly from raw table, so that the given block is not called.
[ruby-core:65837] [Bug #10413]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_...
nagachika (Tomoyuki Chikanaga)
02:13 PM Misc #10424: Error message when sorting NaN
I think `rb_cmperr()` behaves weird anyway. If `y` is a “special const” (e.g. `nil`, `true`, or even a flonum (boxed Float)!), then the result of `#inspect`, and not the class, is used. So the error message I get, is different from yours... cremno (cremno phobia)
01:34 PM Revision 1fe90db5 (git): * io.c (io_binwrite_string): Test writev() failure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:19 AM Revision 96d37554 (git): test/test-unicode_normalize.rb: added test_us_ascii.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
11:09 AM Revision 4fda6198 (git): lib/unicode_normalize/normalize.rb: added US_ASCII
as trivially supported encoding (is always normalized,
and may appear mixed in with UTF-8 or other Unicode
encodings).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
duerst (Martin Dürst)
11:01 AM Revision 6e9ff5a8 (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:01 AM Revision bdea9273 (git): test/test-unicode_normalize.rb: added test_raise_exception_for_non_unicode_encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
10:30 AM Revision b3494924 (git): test/test-unicode_normalize.rb: removed unused function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
09:41 AM Revision c0988c87 (git): template/unicode_norm_gen.tmpl: Adjusted name of generating file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e duerst (Martin Dürst)
08:42 AM Feature #9345: [PATCH] signal.c: avoid repeated disable/enable interrupt
Updated patch against r48129:
http://80x24.org/spew/m/feature-9345-v2%40dcvr.txt

Will commit in a few days unless there are objections.
normalperson (Eric Wong)
07:20 AM Revision 9b581e0d (git): template/unicode_norm_gen.tmpl: from tool/unicode_norm_gen.rb
* template/unicode_norm_gen.tmpl: use generic_erb.rb to update if
changed and manage timestamp, so that source tree on read-only
filesystem works.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48129 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
03:53 AM Revision 67a19e7a (git): * 2014-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:52 AM Revision 26143970 (git): rake/cpu_counter.rb: use Etc.nprocessors
* lib/rake/cpu_counter.rb (count): prefer Etc.nprocessors, which
is hundreds times faster.
* test/rake/test_rake_cpu_counter.rb: add tests for features, and
remove useless tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48...
nobu (Nobuyoshi Nakada)
12:33 AM Bug #10405: syntax error inconsistency between ruby -c and ripper
なるほど。
でも、やはり nil がいいかなぁ、と思います。
ありうる挙動は、nil を返すか、例外を起こすかだと思うのですが、
いままで例外を起こしていなかったものについて例外を起こすようにするのは非互換ですし。
また、parse という処理にとって、syntax error は当然想定されるもので例外的ではない気がします。
なお、gem をちょっと探してみると、以下のように、syntax error のときに nil を返してくると想定して...
akr (Akira Tanaka)
 

Also available in: Atom