Project

General

Profile

Activity

From 03/18/2016 to 03/24/2016

03/24/2016

11:25 PM Bug #12215: URI::HTTP.new example is incorrect
You are right.
```ruby
uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path", "query", 'fragment')
```
Triggers the error. Should be changed.
shevegen (Robert A. Heiler)
07:26 PM Bug #12215 (Closed): URI::HTTP.new example is incorrect
On this page (http://ruby-doc.org/stdlib-2.3.0/libdoc/uri/rdoc/URI/HTTP.html) the example for URI::HTTP.new will result in an error (ArgumentError: wrong number of arguments (`given 7, expected 9..11)`).
A working example (2.3.0-dev)...
mcdickenson (Matt Dickenson)
04:58 PM Feature #12214: Inconsistent behaviour and lack of warnings/errors when referencing duplicated _variables
Oh, I forgot to add the third case:
def foo _, _=2
p _
end
foo 1, 3
gives `1` (and not `3`).
Carpetsmoker (Martin Tournoij)
04:48 PM Feature #12214 (Open): Inconsistent behaviour and lack of warnings/errors when referencing duplicated _variables
_, _ = [1, 2]
p _
gives `2`
def foo _, _
p _
end
foo 1, 2
gives `1`
def foo _, _=2
p _
end
foo 1
gives `2`
In other words, referencing duplicated variables starting with an underscore gives inconsiste...
Carpetsmoker (Martin Tournoij)
04:51 PM Bug #12118 (Closed): ruby2.3: Segfaults on m68k due to improper stack allocation
Applied in changeset r54256.
----------
* thread_pthread.c (reserve_stack): fix reserving position where
the stack growing bottom to top. [Bug #12118]
naruse (Yui NARUSE)
04:42 PM Bug #12118: ruby2.3: Segfaults on m68k due to improper stack allocation
As far as I understand, the fix should be following:
```diff
diff --git a/thread_pthread.c b/thread_pthread.c
index ef43b36..1fdf3f5 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -693,17 +693,31 @@ reserve_stack(volatil...
naruse (Yui NARUSE)
09:30 AM Bug #12118: ruby2.3: Segfaults on m68k due to improper stack allocation
Here's the complete backtrace:
~~~
(sid-m68k-sbuild)root@z6:/build/ruby2.3-dCWwvL/ruby2.3-2.3.0# ./miniruby -I./lib -I. -I.ext/common ./tool/runruby.rb --extout=.ext -- --disable-gems -r./m68k-linux-gnu-fake ./tool/rbinstall.rb --m...
glaubitz (John Paul Adrian Glaubitz)
09:27 AM Bug #12118: ruby2.3: Segfaults on m68k due to improper stack allocation
Hi!
Since my first post was a bit confusing, here is for clarification:
The above patch helped with ruby2.2, but it does not help with ruby2.3, so this seems to be a different problem.
Trying to debug the issue now.
Adrian
glaubitz (John Paul Adrian Glaubitz)
04:51 PM Revision 88291c19 (git): * thread_pthread.c (reserve_stack): fix reserving position where
the stack growing bottom to top. [Bug #12118]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:30 PM Feature #12133: Ability to exclude start when defining a range
Please accept apologies for confusion caused by non-matching parenthesis/brackets -- this notation is just a standard way of denoting intervals in mathematics (ref. [ISO 31-11](https://en.wikipedia.org/wiki/ISO_31-11) & [Wikipedia entry ... slash_nick (Ryan Hosford)
04:10 PM Revision 22f1db4b (git): mkmf: Unquote directory strings
* lib/mkmf.rb (find_executable0): On Windows, it is actually valid
to surround individual PATH directory entries with double
quotes. Remove these before joining the path as otherwise the
literal quotes would become part of the path...
nobu (Nobuyoshi Nakada)
04:04 PM Revision e7e0eeb0 (git): test_find_executable.rb: each_exts
* test/mkmf/test_find_executable.rb (each_exts): extract common
setup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:49 PM Revision dc54e380 (git): strftime.c: Bignum conversion
* strftime.c (format_value): convert from Bignum to String,
instead of rb_str_format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:12 PM Revision 24602147 (git): strftime.c: set buffer length
* strftime.c (FMTV): set the buffer length before appending to
keep just put part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:01 PM Revision f4f7d497 (git): * 2016-03-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:01 PM Revision 7d488c4e (git): strftime.c: refine r54248
* strftime.c (FMT_PRECISION): eliminate side effects.
[Bug #12213]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:39 PM Revision 5c233dcd (git): ChangeLog: remove duplicate entry [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:38 PM Bug #12213 (Closed): Lots of warnings: operation on ‘precision’ may be undefined
Applied in changeset r54248.
----------
strftime.c: remove recursive-assignments
* strftime.c (FMT, FMTV): remove recursive-assignments to get rid
of undefined behavior. [ruby-core:74532] [Bug #12213]
nobu (Nobuyoshi Nakada)
09:57 AM Bug #12213 (Closed): Lots of warnings: operation on ‘precision’ may be undefined
When compiling ruby trunk on cygwin, I get a long list of warnings starting with the following:
strftime.c:290:14: warning: operation on ‘precision’ may be undefined [-Wsequence-poin t]
precision = FMT_PRECISI...
duerst (Martin Dürst)
01:38 PM Revision 20215f01 (git): strftime.c: remove recursive-assignments
* strftime.c (FMT, FMTV): remove recursive-assignments to get rid
of undefined behavior. [ruby-core:74532] [Bug #12213]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:02 PM Feature #12210: Add IdentitySet class that compares members by identity
I submitted this as a patch because the std lib already contains one subclass of Set (SortedSet) and a commented-out implementation of another (RestrictedSet).
I don’t expect that this class will change beyond the initial implementati...
tjwp (Tim Perkins)
01:47 AM Feature #12210: Add IdentitySet class that compares members by identity
If you want a new class, why not start as a separate gem for it? shyouhei (Shyouhei Urabe)
01:40 AM Feature #12210: Add IdentitySet class that compares members by identity
I think that rather than creating a new class, adding an option on Set.new (e.g. Set.new([a_str, a_str, "b", "b"], compare_by: :identity)) is more Ruby-like. duerst (Martin Dürst)
11:52 AM Bug #12185: Missing symbol inspect_tcpi_msec
Backported into `ruby_2_2` branch at r54247. nagachika (Tomoyuki Chikanaga)
11:52 AM Revision a9b42f17 (git): merge revision(s) 54139: [Backport #12185]
* ext/socket/option.c (inspect_tcpi_msec): more accurate condition
for TCPI msec member inspection function.
[ruby-core:74388] [Bug #12185]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@54247 b2dd03c...
nagachika (Tomoyuki Chikanaga)
09:42 AM Bug #12212: Parsing a URI of "mailto:?subject=hi" with `URI.parse` raises an exception
Mark Dodwell wrote:
> Parsing a URI of "mailto:?subject=hi" with `URI.parse` raises an exception. I believe this is a valid "mailto" URI, as defined in RFC6068.
As one of the co-authors of RFC 6068, I have to agree with you. See the ...
duerst (Martin Dürst)
08:59 AM Bug #12212 (Closed): Parsing a URI of "mailto:?subject=hi" with `URI.parse` raises an exception
Parsing a URI of "mailto:?subject=hi" with `URI.parse` raises an exception. I believe this is a valid "mailto" URI, as defined in RFC6068.
Behavior observed:
```ruby
>> URI.parse("mailto:?subject=hi")
NoMethodError: undefined met...
madeofcode (Mark Dodwell)
09:00 AM Bug #12209: Array#pack("G") problem
This is obviously a bug in the Ruby-side.
The original code, after swapping the bytes of a double, assigns it to a double.
~~~
d = (..., d);
~~~
At this point, bit pattern of the right-hand expression ends with f67f, which is ...
kazuho (Kazuho Oku)
06:08 AM Bug #12209: Array#pack("G") problem
I am aware of the x87 vs. SSE2 differences, but I don't think this issue has anything to do with that.
Note that my example demonstrated that a given Float, when processed by pack("G") + unpack("G") is changed into another bit pattern...
johan556 (Johan Holmberg)
04:20 AM Bug #12209 (Feedback): Array#pack("G") problem
It looks because of x87 FPU's internal calculation behavior.
x87 always calculates floating points with 80bit precision on their register, even if the number is 64bit double.
And only when the number is assigned to a 64bit double var...
naruse (Yui NARUSE)
08:44 AM Revision 743f2bf8 (git): strftime.c: fix FMTV
* strftime.c (FMT_PADDING): extract format for padding.
* strftime.c (FMT_PRECISION): extract precision formula.
* strftime.c (FMTV): append formatted string to expand the result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54246 ...
nobu (Nobuyoshi Nakada)
08:36 AM Feature #12211: introduce Date#first_of_month and Date#last_of_month
IMHO, consistent approach would be "allow Date/Time to be rounded to any component", there are many uses for this. Maybe something like `ceil`/`floor`/`round` methods set with Symbol argument? Like `floor(:month)` and `ceil(:month)`? zverok (Victor Shepelev)
08:23 AM Feature #12211 (Open): introduce Date#first_of_month and Date#last_of_month
Proposes new methods Date#first_of_month and Date#last_of_month which can be very helpful in reporting applications which need the first and the last day of a month very frequently.
~~~
class Date
def first_of_month
Date....
araipiyo (Shunichi Arai)
08:25 AM Bug #12120: [target/sh4] error: 'asm' operand requires impossible reload
Hi Nobuyosh!
Nobuyoshi Nakada wrote:
> What constraints does `DTRACE_PROBE4` macro have?
Sorry for the late reply, I apparently didn't get a notification.
I'm not sure where to retrieve that information. Can you point me to whe...
glaubitz (John Paul Adrian Glaubitz)
07:16 AM Bug #12100 (Rejected): CSV converters fail when using single arg proc
usa (Usaku NAKAMURA)
05:20 AM Revision 44a247c7 (git): strftime.c: case conversion
* strftime.c (STRFTIME): deal with case conversion flags for
recursive formats.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:27 AM Revision 0f4c580b (git): date_core.c: unused variable
* ext/date/date_core.c (dt_lite_jisx0301): remove no longer used
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:43 AM Revision 8d23c8bf (git): date_core.c: append strings
* ext/date/date_core.c (dt_lite_iso8601): strftimev() always
returns a String, so append them directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:43 AM Revision c85040d4 (git): date_core.c: fix jisx0301 and iso8601
* ext/date/date_core.c (d_lite_jisx0301, iso8601_timediv),
(dt_lite_jisx0301): format by the format string in local buffer
to prevent intermediate strings from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54242 b2dd03c8-39d...
nobu (Nobuyoshi Nakada)
03:42 AM Revision c4f51b71 (git): date_core.c: fix inspect
* ext/date/date_core.c (mk_inspect_raw, mk_inspect): inspect by
"%+"PRIsVALUE, to prevent intermediate strings from GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:43 AM Revision ec3d8950 (git): * 2016-03-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:43 AM Revision f3de12aa (git): strftime.c: fix false failure
* strftime.c (rb_strftime_with_timespec): remove unnecessary
check, as `s` equals to `endp` when recursed STRFTIME resized
the capacity same as the size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54239 b2dd03c8-39d4-4d8f-98f...
nobu (Nobuyoshi Nakada)
02:20 AM Feature #12208: Improve ri command
I think it would be great to somehow integrate the 'do_you_mean' functionality into ri.
Also, a bit more interactivity may help. As an example, if I write "ri each", I get just a concatenation of the doc for many different 'each' meth...
duerst (Martin Dürst)

03/23/2016

09:42 PM Feature #12157: Is the option hash necessary for future Rubys?
You forget that some people - like me - may use a hash because it is a lot simpler and more convenient too.
I don't have to wonder about any positional arguments ever and I don't want to have to think.
With a hash I don't have to t...
shevegen (Robert A. Heiler)
09:34 PM Feature #12208: Improve ri command
ri is a bit weird, perhaps it is just that I got used to it not being that hugely important back in 2003 or
2004 or so.
I had to ask on stackoverflow how to obtain information from ri/rdoc, for use in a REPL.
The API is something ...
shevegen (Robert A. Heiler)
06:31 AM Feature #12208: Improve ri command
We could add the `ri` commands for each method on the Ruby [doc HTML pages](http://ruby-doc.org/core-2.3.0/) at just under the method signature line (like shown in the image attached) or some place else. That way anyone who visits the R... kgrz (Kashyap K)
05:22 AM Feature #12208 (Closed): Improve ri command
Ruby has well documented in rdoc.
It also has a frontend CLI.
But people seems not using `ri`...
At first, write your request here to improve ri command!
naruse (Yui NARUSE)
07:26 PM Feature #12210 (Closed): Add IdentitySet class that compares members by identity
This subclass of Set handles a use case that we ran into where we needed to track instances of objects that might compare as equal.
I was surprised that there was not a core way to do this. IdentitySet allows you to do the following (...
tjwp (Tim Perkins)
05:24 PM Bug #12206: undef_method on prepended module undefines same-name method on prepending class
Kazuhiro NISHIYAMA wrote:
> How about using `remove_method` instead of `undef_method` ?
It worked, thanks! Behavior is still confusing since I undef'd the method on the module rather than the class, but this solves my problem.
EugeneG (Eugene Gilburg)
01:36 PM Bug #12206: undef_method on prepended module undefines same-name method on prepending class
How about using `remove_method` instead of `undef_method` ? znz (Kazuhiro NISHIYAMA)
04:49 PM Bug #12209 (Closed): Array#pack("G") problem
Array#pack("G") gives incorrect result *sometimes*. The problem occurs with:
* all Ruby versions I have tried: 2.0.0, 2.3.0 and Subversion-trunk (all built from source)
* only with 32-bit builds (not 64-bit)
* only with GCC (not CLA...
johan556 (Johan Holmberg)
12:50 PM Revision aeb0be6a (git): * enum.c (ary_inject_op): put subtract operation out of if-clause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
12:41 PM Revision e324d29e (git): * enum.c (ary_inject_op): Use Kahan's compensated summation algorithm
for summing up float values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
11:57 AM Revision 5396d8a1 (git): strftime.c: format in String
* strftime.c (rb_strftime_with_timespec): append formatted results
to the given string with expanding, and also deal with NUL chars.
* strftime.c (rb_strftime, rb_strftime_timespec): return formatted
string, not the length put in the...
nobu (Nobuyoshi Nakada)
05:25 AM Revision 63436b3f (git): * lib/rdoc/ri/driver.rb (interactive): rescue NotFoundError raised in
expand_name. (display_name rescues NotFoundError by itself,
the original logic looks buggy...)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
02:44 AM Revision 7bfeb1c2 (git): remove SIGN_EXTEND_CHAR macro
* marshal.c (r_long): cast to `signed char`, which is used
already, instead of SIGN_EXTEND_CHAR.
* parse.y: SIGN_EXTEND_CHAR is no longer used. [Fix GH-1302]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54234 b2dd03c8-39d4-4d8f-...
nobu (Nobuyoshi Nakada)
02:38 AM Bug #12199 (Closed): About msys2 path conversion measures in make test-all
Applied in changeset r54233.
----------
GNUmakefile.in: fix MSYS2_ARG_CONV_EXCL
* cygwin/GNUmakefile.in (MSYS2_ARG_CONV_EXCL_PARAM):
* add missing parentheses and remove double quotes.
* rename to get rid of recursive references.
...
nobu (Nobuyoshi Nakada)
01:26 AM Bug #12199 (Open): About msys2 path conversion measures in make test-all
shyouhei (Shyouhei Urabe)
02:38 AM Revision 6c8efc0d (git): GNUmakefile.in: fix MSYS2_ARG_CONV_EXCL
* cygwin/GNUmakefile.in (MSYS2_ARG_CONV_EXCL_PARAM):
* add missing parentheses and remove double quotes.
* rename to get rid of recursive references.
* as --excludes-dir option is for a path name, its argument
should be convert...
nobu (Nobuyoshi Nakada)
01:39 AM Bug #12121 (Closed): 異なる名前空間にある同名の定数により Module.constans の結果の並びが変わる
Applied in changeset r54231.
----------
* variable.c: Added documentation about order of `Module#constants`
[ci skip][Bug #12121][ruby-dev:49505][fix GH-1301]
hsbt (Hiroshi SHIBATA)
01:39 AM Revision ea6372de (git): * 2016-03-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:39 AM Revision b33841b3 (git): * variable.c: Added documentation about order of `Module#constants`
[ci skip][Bug #12121][ruby-dev:49505][fix GH-1301]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)

03/22/2016

08:38 PM Bug #12207 (Closed): [BUG] Segmentation fault at 0x00000000000000 ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
```
/Users/mdowns/github/partner-api/lib/demandbase/generate_response_service.rb:20: [BUG] Segmentation fault at 0x00000000000000
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
[1] 62509 abort bundle exec rspec...
matthewadowns (Matthew Downs)
07:07 PM Bug #12206 (Closed): undef_method on prepended module undefines same-name method on prepending class
1. Define a class with a method
2. Define a module with a same-name method
3. Prepend the module on the class
4. Undefine the same-name method on the module, not touching the original method on the class
5. Observe the class method t...
EugeneG (Eugene Gilburg)
03:54 PM Bug #12199: About msys2 path conversion measures in make test-all
対応ありがとうございました。
確認したところ、期待の動作にならなかったのでデバッグしました。
パッチを添付します。
次の1~3、(および4)の修正実施により、期待通りにパス変換が抑制されることを、
MSYS2 installer環境と、RubyInstallerのmsys2化版で確認しました。
1. $() が必要でした。"$MSYS2_ARG_CONV_EXCL"は、"SYS2_ARG_CONV_EXCL"と評価されていました。
2. 1.を直...
moritat (Tsuyoshi Morita)
03:34 PM Feature #12205: update missing/strl{cat,cpy}.c
Shyouhei Urabe wrote:
> The code is much cleaner so I would +1, but it seems the upstream has more recent revisions (strlcat.c 1.16 and strlcpy.c 1.13). Why to avoid them?
The current revisions would require defining a function-like...
cremno (cremno phobia)
12:02 PM Feature #12205: update missing/strl{cat,cpy}.c
The code is much cleaner so I would +1, but it seems the upstream has more recent revisions (strlcat.c 1.16 and strlcpy.c 1.13). Why to avoid them? shyouhei (Shyouhei Urabe)
11:43 AM Feature #12205 (Closed): update missing/strl{cat,cpy}.c
The attached git diff updates `missing/strlcat.c` from 1.8 to 1.15,
`missing/strlcpy.c` from 1.5 to 1.12 and also the `LEGAL` file.
There is no important reason. But there was a license change:
new style-BSD to a less restrictive I...
cremno (cremno phobia)
12:08 PM Revision d864828f (git): * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:08 PM Revision 2f455cec (git): * include/ruby/oniguruma.h: Additional flag for characters that are titlecase.
* enc/unicode/case-folding.rb, casefold.h: Using above flag in data.
* enc/unicode.c: Marking capitalized character as unmodified if it is
already titlecase.
* test/ruby/enc/test_case_mapping.rb: Tests for above functionality.
git-sv...
duerst (Martin Dürst)
11:49 AM Bug #12203 (Assigned): dumper.c static int yaml_emitter_dump_scalar two variables have the same value
They are passed to a macro. I guess the author intentionally separated these two because merging them makes the code less intuitive. It seems OK to be optimized. shyouhei (Shyouhei Urabe)
11:19 AM Bug #12202: nkf.c static void mime_putc the variable being used for loop used for outer loop too
This is (surprisingly) safe, because that `mimeout_state.count = 0;` line purposefully terminates outer loop. It works as expected; just in a ultimately complicated way. shyouhei (Shyouhei Urabe)
05:19 AM Revision bf99f859 (git): parse.y: lambda indentation check
* parse.y (lambda_body, parser_yylex): warn mismatched indentation
of lambda block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:13 AM Revision 8c22a641 (git): test_rubyoptions.rb: other indentation checks
* test/ruby/test_rubyoptions.rb (test_indentation_check): assert
warnings against other keyword mismatches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:41 AM Revision 15af93fc (git): * time.c (wmul): wrong condition.
fixed many test failures on 32bit and LLP64 platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
01:53 AM Bug #12177 (Assigned): Using `if:` as symbol in hash with new hash syntax in irb console is not working
shyouhei (Shyouhei Urabe)
01:37 AM Revision 6957898a (git): * time.c (wdiv, wmod): wdivmod0() assumes the 3rd and the 4th arguments
are valid pointers.
maybe checking them in wdivmod0() is better manner, but I guess that
passing real dummy pointers may be faster than checking and branching
in wdivmod0().
this commit fixes SEGV on 32bit and LLP64 platforms.
...
U.Nakamura
01:24 AM Revision 0dbbcdb6 (git): * time.c (divmodv): void function never returns any value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
01:11 AM Revision 66225416 (git): test/unit.rb: defer failures in non-replace mode
* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): print
failed messages only if replacing mode, otherwise defer them
until the end, to get rid of interleaving failures with progress
messages. refix r54195.
git-svn-id: svn+...
nobu (Nobuyoshi Nakada)

03/21/2016

07:14 PM Revision 52065079 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:57 PM Revision 03d0501f (git): * time.c (MUL_OVERFLOW_FIXWV_P): defined for FIXWV.
* time.c (wmul): use MUL_OVERFLOW_FIXWV_P and only switch.
* time.c (wmul): use mul which has Fixnum optimization.
* time.c (rb_time_magnify): If WIDEVALUE_IS_WIDER, wmul() has the same
optimized logic, else mul() has also the simila...
naruse (Yui NARUSE)
06:57 PM Revision 74d7b281 (git): fix typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:19 PM Revision 69bedfca (git): * 2016-03-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:19 PM Revision 849bbc65 (git): * time.c (divmodv): add the case both arguments are Fixnum.
* time.c (wquo): use quo which has Fixnum optimization.
* time.c (wdivmod0): added for WIDEVALUE_IS_WIDER.
* time.c (wdivmod): use wdivmod0 and divmodv.
divmodv has Fixnum optimization.
* time.c (wdiv): use wdivmod0 and div to avoid...
naruse (Yui NARUSE)
05:20 PM Feature #12026: Support warning processor
Tsuyoshi Sawada wrote:
> Can we have additional syntax that is analogous to `rescue` (but a little different)? Maybe something that takes a regex (instead of exception class) for matching, and an optional `=>` that assigns `message` (an...
jeremyevans0 (Jeremy Evans)
02:00 PM Feature #12116: `Fixnum#divmod`, `Bignum#divmod` with multiple arguments
My proposal remains as I proposed above, but I just wanted to note that there is another natural way to generalize the notion of `divmod` with multiple divisors, and that people be aware of the difference.
* The proposed generalizatio...
sawa (Tsuyoshi Sawada)
01:53 PM Revision 3176a634 (git): suppress warning
* iseq.c (rb_iseq_compile_with_option): suppress
maybe-uninitialized warning by gcc 4.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:36 PM Revision 51c4ffa4 (git): * internal.h (rb_fix_divmod_fix): like r54213, use FIX2NUM only if
x == FIXNUM_MIN && y == -1. This must be a rare case and it is
expected compiler to handle well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:31 PM Revision 2118eccc (git): time.c (quo): fix missing return
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:21 PM Revision 65478879 (git): fix commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:17 PM Revision f5715289 (git): * time.c (mod): Add Fixnum case.
* time.c (quo): c can be Fixnum except a == FIXNUM_MIN && b == -1.
Such case can be optimized out because quo()'s argument is constant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:09 PM Revision d17852b9 (git): internal.h: fix no-DLONG case
* internal.h (rb_fix_mul_fix): multiply converted values, not
object VALUEs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:18 AM Bug #12199 (Closed): About msys2 path conversion measures in make test-all
Applied in changeset r54211.
----------
suppress msys2 pathname conversion
* common.mk (TEST_EXCLUDES, EXCLUDE_TESTFRAMEWORK): use full spell
long option.
* cygwin/GNUmakefile.in (MSYS2_ARG_CONV_EXCL): suppress path name
conversion...
nobu (Nobuyoshi Nakada)
11:18 AM Revision 61cefc13 (git): suppress msys2 pathname conversion
* common.mk (TEST_EXCLUDES, EXCLUDE_TESTFRAMEWORK): use full spell
long option.
* cygwin/GNUmakefile.in (MSYS2_ARG_CONV_EXCL): suppress path name
conversions by msys2. [ruby-dev:49525] [Bug #12199]
git-svn-id: svn+ssh://ci.ruby-lan...
nobu (Nobuyoshi Nakada)
10:09 AM Bug #12204 (Closed): Invalid range of capital letters at Greek alphabet
Applied in changeset r54210.
----------
string.c: skip invalid char gap
* string.c (enc_succ_alnum_char): try to skip an invalid character
gap between GREEK CAPITAL RHO and SIGMA.
[ruby-core:74478] [Bug #12204]
nobu (Nobuyoshi Nakada)
10:09 AM Revision 0f327839 (git): string.c: skip invalid char gap
* string.c (enc_succ_alnum_char): try to skip an invalid character
gap between GREEK CAPITAL RHO and SIGMA.
[ruby-core:74478] [Bug #12204]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:55 AM Revision 90c543e4 (git): node.c: mark u3 of NODE_MATCH2
* node.c (rb_gc_mark_node): NODE_MATCH2 can have nd_args, u3,
since r54100.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:55 AM Revision d5a97351 (git): test/unit.rb: show crashed file
* test/lib/test/unit.rb (after_worker_down): show failed file name
if worker crashed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/20/2016

10:42 PM Bug #12200 (Closed): MRI 2.2.4 parser forces blanks for hash keys which point to an array literal
nobu (Nobuyoshi Nakada)
09:09 AM Bug #12200 (Closed): MRI 2.2.4 parser forces blanks for hash keys which point to an array literal
In MRI 2.2.3 and below this was valid code:
~~~
$ ruby -v -e 'a={ name:%w(a b c) }; puts a'
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]
{:name=>["a", "b", "c"]}
~~~
In MRI 2.2.4 the same code will generate a sy...
datenimperator (Christian Aust)
09:18 PM Bug #12204 (Closed): Invalid range of capital letters at Greek alphabet
Greek alphabet's first and last letter is:
* α - ω (lower case)
* Α - Ω (upper case)
So if we write on a ruby console the following script, we get:
~~~
('α'..'ω').to_a
=> ["α", "β", "γ", "δ", "ε", "ζ", "η", "θ", "ι", "κ", "λ"...
tzabaman (George Vrettos)
06:28 PM Revision be40357a (git): * 2016-03-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:28 PM Revision b48fce26 (git): fix r54203's typo (no DLONG case)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:15 PM Feature #12194: File.dirname optional parameter
I myself have found Pathname harder or less elegant to use than the direct File* or Dir* methods so I am in support of the suggestion by nobu.
So to Benoit, I understand that you may consider File.dirname(path, 2) not ideal either (a ...
shevegen (Robert A. Heiler)
04:09 PM Bug #12198: Hash#== sometimes returns false incorrectly
Here is Hash#rehash link:
http://ruby-doc.org/core-2.3.0/Hash.html#method-i-rehash
Perhaps the documentation could be updated regardless, to also notify the ruby user when .rehash may be useful. For instance, this is the first time...
shevegen (Robert A. Heiler)
02:41 PM Bug #12187 (Assigned): BigDecimal.divmod failing spuriously on 2.0.0
mrkn (Kenta Murata)
12:29 PM Bug #12203 (Third Party's Issue): dumper.c static int yaml_emitter_dump_scalar two variables have the same value
~~~
static int
yaml_emitter_dump_scalar(
.....
int plain_implicit = (strcmp((char *)node->tag,
YAML_DEFAULT_SCALAR_TAG) == 0);
int quoted_implicit = (strcmp((char *)node->tag,
YAML_DEFAULT_SCALAR_TAG...
fanantoxa (Anton Sivakov)
12:22 PM Bug #12202 (Closed): nkf.c static void mime_putc the variable being used for loop used for outer loop too
~~~
for (i=0;i<mimeout_state.count;i++) {
if (SP<mimeout_state.buf[i] && mimeout_state.buf[i]<DEL) {
eof_mime();
for (i=0;i<mimeout_state.count;i++) {
(*o_mputc)(mimeout_state.buf[i]);
base64_count++;
}
...
fanantoxa (Anton Sivakov)
12:18 PM Revision 6d97a5de (git): * internal.h (rb_int128t2big): declare only when HAVE_INT128_T.
fixed a compile error with VC++ introduced at r54203.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:12 PM Bug #12201 (Closed): nkf.c static void fold_conv part of exression always true
~~~
/* new line */
if (fold_preserve_f) {
f_prev = c1;
f_line = 0;
fold_state = CR;
} else if ((f_prev == c1 && !fold_preserve_f)
|| (f_prev == LF && fold_preserve_f)
) { /* duplicate newline */
...
fanantoxa (Anton Sivakov)
11:26 AM Revision ce5ba919 (git): time.c (mul): fix missing return.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:10 AM Revision 148f1b9d (git): * internal.h (DLONG): defined if long is 32bit (and LONG_LONG is 64bit;
but LONG_LONG is always defined as 64bit), or there's int128_t.
* internal.h (DL2NUM): defined if DLONG is defined.
* internal.h (rb_fix_mul_fix): defined for `Fixnum * Fixnum`.
* insns.def (opt_mul): use rb_fix_mul_fix().
* numeric....
naruse (Yui NARUSE)
10:09 AM Revision 57638377 (git): bignum.c: micro optimization
* bignum.c (rb_big_cmp): micro optimization of Fixnum comparison.
as SIGNED_VALUE and Fixnum have same sign-bits and same order.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:53 AM Revision be05c579 (git): numeric.c: optimize Fixnum<->Bignum comparisons
* numeric.c (fix_gt, fix_ge, fix_lt, fix_le): optimize comparisons
Fixnum against Bignum by rb_big_cmp in inversed order without
new Bignum instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54201 b2dd03c8-39d4-4d8f-98ff-82...
nobu (Nobuyoshi Nakada)
09:47 AM Revision cb390bef (git): * time.c (add): remove FIXABLE() which is in LONG2NUM().
* time.c (sub): ditto.
* time.c (mul): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:22 AM Bug #12117: UDPSocket.new crash on win32 with "rb_update_max_fd: invalid fd (xxx) given"
Can no longer reproduce as of:
ruby 2.2.5p256 (2016-03-10 revision 54072) [i386-mswin32_100]
Seems to be fixed!
Thanks,
Bill
spatulasnout (B Kelly)
06:54 AM Bug #12199 (Closed): About msys2 path conversion measures in make test-all
ruby 2.3以降、make test-allの際のテスト除外の指定に正規表現リテラルを
用いるようになったと思います。
これにより、Windowsでのmsys, msys2を用いたbuild環境でmake test-allを実行した場合、
--name=!/memory_leak/ → --name=!c:/msys64/memory_leak/のようにpath変換が行われてしまい、
意図した除外が行われません。
現時点のtrunkでは全て除外され...
moritat (Tsuyoshi Morita)
01:56 AM Bug #11903 (Feedback): [BUG] vm_call_cfunc - cfp consistency error
How to reproduce it? nobu (Nobuyoshi Nakada)

03/19/2016

07:48 PM Revision a2b4c6d1 (git): * bignum.c (rb_big_cmp): reduce the code.
* bignum.c (rb_big_eq): If normalized bignum is still bignum,
it must be larger than fixnum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:51 PM Revision fb12f40f (git): ChangeLog: fix typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
04:24 PM Bug #12198: Hash#== sometimes returns false incorrectly
Yes, I believe that implementing `Set#rehash` is a good idea (unless rehashing automatically when needed would be a better one). Furthermore, documentation is quite confusing on this topic. The caveat is indeed somewhat mentioned in the ... skalee (Sebastian Skalacki)
03:59 PM Bug #12198: Hash#== sometimes returns false incorrectly
Sebastian Skalacki wrote:
>
> ...
You have to apply `Hash#rehash`.
~~~RUBY
h1.rehash
h2 == h1 # => true
~~~
And since `Set` is based on `Hash`, this carries over to `Set`.
Yusuke Endoh wrote:
>
> ...
I think this is not...
sawa (Tsuyoshi Sawada)
03:44 PM Bug #12198: Hash#== sometimes returns false incorrectly
Actually it has nothing to do with sets:
~~~
b = []
h1 = {b => true}
b << 42
h2 = {[42] => true}
p h2 #=> {[42]=>true}
p h1 #=> {[42]=>true}
p h2 == h1 #=> false
~~~
skalee (Sebastian Skalacki)
03:32 PM Bug #12198 (Assigned): Hash#== sometimes returns false incorrectly
Simplified.
~~~~
require "set"
a = []
s1 = Set[a]
a << 42
s2 = Set[[42]]
p s2 #=> #<Set: {[42]}>
p s1 #=> #<Set: {[42]}>
p s2 == s1 #=> false
~~~~
Modifying an element of a set causes this issue. I'm unsure if this ...
mame (Yusuke Endoh)
01:35 PM Bug #12198 (Closed): Hash#== sometimes returns false incorrectly
Hi!
Sorry for lack of the accuracy in the bug title. I have some trouble with pinpointing the issue.
According to documentation, "two hashes are equal if they each contain the same number of keys and if each key-value pair is equal...
skalee (Sebastian Skalacki)
04:08 PM Revision 95922527 (git): * 2016-03-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:08 PM Revision fa860a94 (git): * include/ruby/intern.h (rb_big_odd_p, rb_big_even_p): move to
internal.h so that they are exported only for ruby itself.
* internal.h (rb_big_odd_p, rb_big_even_p): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
02:45 PM Bug #11903: [BUG] vm_call_cfunc - cfp consistency error
/home/leo/.rvm/gems/ruby-2.2.1/gems/rspec-core-3.2.3/lib/rspec/core/example.rb:247:
[BUG] vm_call_cfunc - cfp consistency error
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
-- Control frame information -----------------...
muzhi (qing liu)
12:56 PM Revision 2019f8cb (git): test/unit.rb: defer failures in verbose mode
* test/lib/test/unit.rb (Test::Unit::StatusLine#failed): defer
failed messages until the end in verbose mode, to get rid of
interleaving failures with progress messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54195 b2dd03...
nobu (Nobuyoshi Nakada)
12:53 PM Revision 448b4eb1 (git): fix r54193
* numeric.c (fix_cmp): invert the result as the comarison is
inverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:06 AM Revision b01312ab (git): * numeric.c (fix_cmp): use rb_big_cmp if x is Fixnum and y is Bignum.
rb_big_cmp handles such case smartly with big_norm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
09:54 AM Feature #12039: Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
I think the following definition is acceptable for a Complex:
~~~ruby
def inifinite?
self.magnitude.infinite?
end
~~~
mrkn (Kenta Murata)
09:49 AM Feature #12039: Fixnum#infinite?/Bignum#infinite or Numeric#infinte, consistent with Float#infinite? and BigDecimal#infinite?
What behavior is desirable for a Complex? mrkn (Kenta Murata)
09:43 AM Revision 5a213ee2 (git): * numeric.c (int_to_f): raise NotImplementedError when a receiver
class is unknown.
* test/-ext-/integer/test_my_integer.rb (test_my_integer_to_f): modify
a test for the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
09:29 AM Revision 4ce02b7b (git): ChangeLog: fix filename [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Kenta Murata
09:28 AM Revision 81f65a9e (git): * bignum.c (Bignum#<=>): remove it because they are unified with
Integer#<=>.
* numeric.c (Integer#<=>, Fixnum#<=>): move <=> method from Fixnum to
Integer.
* numeric.c (int_cmp): add this method for Integer#<=>.
* test/-ext-/integer/test_my_integer.rb (test_my_integer_cmp): add a
test to exami...
Kenta Murata
05:46 AM Feature #11951 (Closed): `RubyVM::InstructionSequence.compile` should return the error message within the raised error
Applied in changeset r54189.
----------
SyntaxError message at iseq compile
* iseq.c (rb_iseq_compile_with_option): make the parser in mild
error.
* load.c (rb_load_internal0): ditto.
* parse.y (yycompile0): return the error message ...
nobu (Nobuyoshi Nakada)
03:04 AM Feature #11951: `RubyVM::InstructionSequence.compile` should return the error message within the raised error
https://github.com/ruby/ruby/compare/trunk...nobu:feature/11951-iseq-compile-error nobu (Nobuyoshi Nakada)
05:46 AM Revision bc343b85 (git): SyntaxError message at iseq compile
* iseq.c (rb_iseq_compile_with_option): make the parser in mild
error.
* load.c (rb_load_internal0): ditto.
* parse.y (yycompile0): return the error message within the error
to be raised. [Feature #11951]
* parse.y (parser_compile_e...
nobu (Nobuyoshi Nakada)
02:49 AM Revision 22198f9d (git): test_iseq.rb: shorten
* test/ruby/test_iseq.rb (TestISeq): use the utility method to get
rid of warnings and the alias to shorten.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/18/2016

07:18 PM Bug #12197 (Closed): Backport r54185 to ruby_2_3 (mark debug_buffer)
バックポート管理用チケットです。
struct parser_params::debug_buffer のマーク漏れ修正です。 2.3 から導入されたメンバなので 2.2 以前には不要です。
nagachika (Tomoyuki Chikanaga)
07:06 PM Revision 4eb908d2 (git): * time.c (LOCALTIME): organize #ifdefs.
* time.c (GMTIME): define only ifndef HAVE_STRUCT_TM_TM_GMTOFF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:06 PM Revision 9a8b2144 (git): * configure.in (rb_cv_member_struct_tm_tm_gmtoff): For Linux (glibc)
define _BSD_SOURCE for time.h to define struct tm.tm_gmtoff.
* time.c: define _BSD_SOURCE at the top.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:54 PM Bug #12192 (Closed): Wrong nth_ref_max check in parse.y
Merged at r54172. nagachika (Tomoyuki Chikanaga)
08:13 AM Bug #12192: Wrong nth_ref_max check in parse.y
Pull requested was accepted, bug can be closed. norc (Victor Nawothnig)
06:09 PM Revision 04eb6142 (git): parse.y: mark debug_buffer
* parse.y (parser_mark): mark debug_buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:05 PM Revision 06037b54 (git): * test/-ext-/time/test_new.rb (test_timespec_new): change a gmtoff
test to a better one that does not depend on whether the current
time is in summer time or not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Rei Odaira
03:38 PM Revision b42eeaa7 (git): ChangeLog: fix typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:02 PM Revision 7f426ead (git): * 2016-03-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:02 PM Revision 0d076fe4 (git): * bignum.c (rb_big_to_f, Bignum#to_f): removed them because they are
unified with int_to_f and Integer#to_f.
* numeric.c (int_to_f): treat Bignum values directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
02:52 PM Revision bb00a5c1 (git): * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:52 PM Revision b60a7b43 (git): * numeric.c (int_to_f, fix_to_f): rename fix_to_f to int_to_f, and add
treatment for subclasses which don't have definitions of to_f method.
* numeric.c (Integer#to_f, Fixnum#to_f): move to_f method from Fixnum
to Integer.
* ext/-test-/integer/my_integer.rb: define helper class for testing
to_f method...
Kenta Murata
01:33 PM Revision 2897eb11 (git): * include/ruby/intern.h (rb_big_hash): Move to internal.h.
* internal.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
01:24 PM Bug #12196: lib: Date.valid_date? returns incorrect response for negative day
From `Date::new` docs:
> The month and the day of month **should be a negative or a positive number** (as a relative month/day from the end of year/month when negative). They should not be zero.
~~~ruby
Date.new(2016,2,-1)
# => ...
zverok (Victor Shepelev)
01:02 PM Bug #12196 (Closed): lib: Date.valid_date? returns incorrect response for negative day
~~~
require 'date'
puts RUBY_VERSION
if Date.valid_date?(2016, 2, -1)
puts "Valid"
else
puts "Invalid"
end
~~~
This reports 'Valid' for a negative day number.
ddoherty03 (Daniel Doherty)
01:11 PM Revision 18d114ef (git): * bignum.c (Bignum#eql?): remove its definition because it is unified
with Numeric#eql?.
* numeric.c (num_eql): treat Bignum values directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:57 PM Revision ad0b5ebc (git): * bignum.c (rb_big_to_s, Bignum#to_s): remove its definition because
it is unified with Integer#to_s.
* numeric.c (int_to_s): treat Bignum values directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:33 PM Revision a22ff208 (git): * numeric.c (int_to_s): Move from flo_to_s.
* numeric.c (Integer#to_s): Move from Fixnum#to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
12:18 PM Feature #12194: File.dirname optional parameter
Using Pathname would already make this much nicer:
Pathname(path).parent.parent
And less error prone than File.dirname if the path is not absolute.
Just my opinion, but I do not like this particular syntax.
Eregon (Benoit Daloze)
07:51 AM Feature #12194 (Closed): File.dirname optional parameter
As talked at the last developers' meeting, I propose an addition of an optional parameter to `File.dirname`.
Often I see the code, like
```ruby
File.dirname(File.dirname(path)) # or
File.expand_path("../..", path)
```
which are...
nobu (Nobuyoshi Nakada)
08:52 AM Bug #12082: Tail-calling method can't catch exception raised by tail-called method
https://github.com/ruby/ruby/compare/trunk...nobu:bug/12082-tailcall_inhibited_by_rescue?expand=1 nobu (Nobuyoshi Nakada)
08:44 AM Bug #12195 (Closed): [BUG] probable buffer overflow: 4010 for 2005 (CFUNC :read)
This causes ruby to shutdown:
[[https://github.com/minad/mimemagic/blob/master/lib/mimemagic.rb#L112]]
recursive read and seek on a file for a table of regexps.
It's a gem for mime type detection.
The code is running in a rails Sid...
weugek (James Watson)
08:00 AM Revision 54c77120 (git): test_file_exhaustive.rb: strict check test_dirname
* test/ruby/test_file_exhaustive.rb (test_dirname): assert same as
the parent directory, not ascendant directories.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:37 AM Revision 764f3921 (git): gc.c: fix r54115
* gc.c (gc_page_sweep): use the argument objspace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:22 AM Revision 7a3cc697 (git): parse.y: Fix for nth_ref_max
* parse.y (parse_numvar): NTH_REF must be less than a half of
INT_MAX, as it is left-shifted to be ORed with back-ref flag.
[ruby-core:74444] [Bug#12192] [Fix GH-1296]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54172 b2dd03c8...
nobu (Nobuyoshi Nakada)
06:59 AM Revision b14ed1bb (git): file.c: simplify rb_file_s_split
* file.c (rb_file_s_split): use rb_file_dirname instead of
rb_file_s_dirname with unused Qnil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:18 AM Feature #11816: Partial safe navigation operator
Marc-Andre Lafortune wrote:
> Just to be sure, with "propagating &. as long as explicit method chain continues", we consider that `x&.foo * 42` returns `nil`, as calling `*` is equivalent to `.*`, right?
I think so.
nobu (Nobuyoshi Nakada)
05:13 AM Feature #220: test-coverage measurement
Yusuke Endoh wrote:
> =begin
> ...
It's a nice idea! I will follow your advice and do
https://kcoleman.me everything you've said! good fix choice
kevincolemaninc (kevin coleman)
03:25 AM Revision 7e81ca14 (git): gc.c: fix commit miss r54145
* gc.c (tick): fix missing close parenthesis. [Fix GH-1291]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:19 AM Bug #12193: ruby 2.3 on windows test-all failed
Tsuyoshi Morita wrote:
> ~~~
> ...
You are right.
Now test-all 2.3.0p0 and 2.3.0p7 has 2 failed.
windwiny (wind winy)
01:26 AM Bug #12189 (Closed): DateTime#to_time removes timezone information
Applied in changeset r54169.
----------
* ext/date/date_core.c (datetime_to_time): preserve timezone info
[Bug #12189] [Fix GH-1295]
sonots (Naotoshi Seo)
01:26 AM Revision 5f11a6eb (git): * ext/date/date_core.c (datetime_to_time): preserve timezone info
[Bug #12189] [Fix GH-1295]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sonots (Naotoshi Seo)
01:22 AM Revision f8e79c84 (git): * bignum.c (rb_big_hash): make it public function to be available in
other source files, and remove documentation comment for Bignum#hash.
* bignum.c (Bignum#hash): remove its definition because it is unified
with Object#hash.
* include/ruby/intern.h (rb_big_hash): add a prototype declaration.
* hash...
Kenta Murata
 

Also available in: Atom