Activity
From 12/16/2018 to 12/22/2018
12/22/2018
-
10:39 PM Bug #15452 (Closed): Document exception: false for Integer() and others
- Applied in changeset trunk|r66498.
----------
{complex,object,rational}.c: document exception: false
From: Victor Shepelev <[email protected]>
[ruby-core:90673] [Bug #15452] -
09:30 PM Bug #15452: Document exception: false for Integer() and others
- > I understand it is pretty late, but I hope this patch could be merged before 2.6 release.
It's a race against the x-mas clock! \o/ -
07:46 PM Bug #15452 (Closed): Document exception: false for Integer() and others
- Just noticed that after #12732 there is no docs about new `exception:` option.
The patch fixes this.
I understand it is pretty late, but I hope this patch could be merged before 2.6 release.
PS: I'll provide a patch for BigDecimal... - 10:39 PM Revision 9b9fe826 (git): {complex,object,rational}.c: document exception: false
- From: Victor Shepelev <[email protected]>
[ruby-core:90673] [Bug #15452]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:05 PM Revision c7dafeb2 (git): * 2018-12-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:05 PM Revision 1e30df6f (git): ostruct.rb: Accept block for to_h [#15451].
- Patch by Shuji Kobayashi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:18 PM Feature #15451 (Closed): OpenStruct#to_h でブロックを許容する
- `Struct#to_h` がブロックを受け付けるようになったので、`OpenStruct#to_h`
も同様にしてはどうでしょうか。
パッチを添付します。 -
11:41 AM Feature #14183: "Real" keyword argument
- I'm not sure if this was discussed but one more thing to consider is hash destructuring using keywords. As far as I understand there's a use case I rely on which is going to be broken by the proposed changes. Specifically, things like
... -
10:23 AM Revision 8ef2aae2 (git): Use idException
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:22 AM Bug #15430: test_fork_while_parent_locked is failing status on Ruby CI
- [email protected] wrote:
> As of r66490, the test on some CIs is still failing for different reasons.
> > Expected "#<Process::Status: pid 515 SIGKILL (signal 9)>" to be empty.
OK, I lowered thread counts in r66494.
Btw, c... -
08:08 AM Bug #15430 (Closed): test_fork_while_parent_locked is failing status on Ruby CI
- Applied in changeset trunk|r66494.
----------
test/ruby/test_thread.rb (test_fork_while_parent_locked): reduce threads
Reduce thread counts unconditionally for some CI systems with
low limits.. And Solaris apparently lacks RLIMIT_NPRO... -
07:19 AM Bug #15430 (Assigned): test_fork_while_parent_locked is failing status on Ruby CI
- As of r66490, the test on some CIs is still failing for different reasons.
> Expected "#<Process::Status: pid 515 SIGKILL (signal 9)>" to be empty.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian8/ruby-trunk/log/20181222T063... - 08:08 AM Revision db68ccc2 (git): test/ruby/test_thread.rb (test_fork_while_parent_locked): reduce threads
- Reduce thread counts unconditionally for some CI systems with
low limits.. And Solaris apparently lacks RLIMIT_NPROC, so we
can't detect resource limits and scale the test appropriately.
[ruby-core:90670] [Bug #15430]
git-svn-id: svn+... -
07:14 AM Revision 18492887 (git): Fix for circular causes
- * eval_error.c (show_cause): get rid of infinite recursion on
circular causes. [Bug #15447]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:14 AM Revision 65dced43 (git): Removed garbage output
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:14 AM Revision 17b6be1d (git): Moved regexps not to confuse ruby-mode.el
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:42 AM Feature #15450 (Rejected): to be deleted
-
01:43 AM Revision 17ca870a (git): benchmark/app_erb.yml: remove unused variable
- https://github.com/ruby/ruby/commit/3efcb74036af32cbcc889d06d8c6c546289e89f4#r31762996
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:41 AM Revision 0fd53f51 (git): thread_sync.c (rb_mutex_t): eliminate fork_gen
- The true bug fork_gen was hiding was rb_mutex_abandon_locking_mutex
failing to unconditionally clear the waitq of mutexes it was
waiting on. So we fix rb_mutex_abandon_locking_mutex, instead,
and eliminate rb_mutex_cleanup_keeping_mutex...
12/21/2018
- 11:32 PM Revision 5072f037 (git): test/ruby/test_thread.rb: reduce thread count to avoid SIGKILL
- Perhaps this error report is down to resource limits on a VM:
http://rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181221T230003Z.fail.html.gz
But rb_mutex_t.fork_gen is still redundant, I think.
git-svn-id: svn+ssh://ci.ruby-lang.... -
10:42 PM Bug #15430: test_fork_while_parent_locked is failing status on Ruby CI
- Fwiw, I think the bug is in rb_mutex_abandon_locking_mutex,
it needs to clear the waitq unconditionally; but not touch
mutex->th or mutex->next_mutex:
https://80x24.org/spew/[email protected]/raw
And as a result,... -
12:32 PM Bug #15430 (Closed): test_fork_while_parent_locked is failing status on Ruby CI
- Applied in changeset trunk|r66477.
----------
thread_sync.c (rb_mutex_cleanup_keeping_mutexes): update fork_gen
... when clearing waitq. Otherwise, we risk redundantly clearing
valid waiters in future calls to `mutex_ptr`.
Note: I am ... - 09:44 PM Revision 6f91160f (git): test/ruby/test_thread.rb: add diagnosis code for [Bug #15430]
- I can't find stderr in the test-all output of the CI machine,
so maybe the assertion will show what's going on.
http://rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181221T170003Z.log.html.gz#test-all
git-svn-id: svn+ssh://ci.ruby-l... -
07:44 PM Feature #15446: Add a method `String#each_match` to the Ruby core
- Stefan, I've incorporated both of your suggestions. Thanks.
-
11:40 AM Feature #15446: Add a method `String#each_match` to the Ruby core
- Regarding the name – I'd prefer `String#each_match`.
And it should accept an optional block which yields the matches and (as opposed to `gsub`) returns the receiver (i.e. no substitution):
> each_match(pattern) { |match| block } →... -
10:24 AM Feature #15446: Add a method `String#each_match` to the Ruby core
- The suggested idea by Cary seems fine to me. We have to ask
matz what he thinks about the proposed idea + name choice and
functionality.
I would suggest, however had, to, if necessary, deprecate at
a later time or decouple it from ... -
09:31 AM Feature #15446: Add a method `String#each_match` to the Ruby core
- This looks like a good idea. Actually, I might suggest that we even go further: We introduce a new method and depreciate (and ultimately remove) the functionality of producing an enumerator by gsub.
(I wouldn't mind keeping producing ... -
09:06 AM Feature #15446 (Open): Add a method `String#each_match` to the Ruby core
- `String#each_match` would have two forms:
*each_match(pattern) { |match| block } → str*
*each_match(pattern) → an_enumerator*
The latter would be identical to the form *gsub(pattern) → enumerator* of [String#gsub](http://ruby-doc.... -
07:25 PM Feature #15450 (Rejected): to be deleted
-
04:36 PM Revision a934b664 (git): .travis.yml: use -v for osx to find a blocking test
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:19 PM Revision c1b89654 (git): ../arith_seq/../extract.c: remove unused variable
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:07 PM Revision 4e42ebf0 (git): .travis.yml: give up parallel build for osx
- Even building ruby seems to hang for unknown reasons.
https://travis-ci.org/ruby/ruby/jobs/471021727
Travis's osx environment is too fragile. Avoid anything dangerous.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66484 b2dd03c8-39... - 03:07 PM Revision 3a2c6a86 (git): * 2018-12-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:07 PM Revision 8af3bd45 (git): .travis.yml: avoid using -j3 for osx
- osx build has failed too often. we don't know why.
To know which test hangs forever, we might want to have hard timeout for
all test case (like 9min, slightly less than no-output timeout) in test-all.
But it's a little hard to implement... - 02:33 PM Revision 982bbc11 (git): * properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:33 PM Revision cbfaf440 (git): test/excludes/_wercker: give up testing TestGemRemoteFetcher
- The tests are really fragile with --jit-wait and it doesn't have interface
to modify this timeout at all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:01 PM Revision 6bbd46a0 (git): test_jit.rb: show debug info for success_count test
- to investigate
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20181221T092505Z.fail.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:58 PM Bug #15449: Range#=== is not using cover in Ruby 2.6
- Sorry, `Range#===` is called `Range#cover?` in Ruby 2.6.
see: https://bugs.ruby-lang.org/issues/14575 -
01:55 PM Bug #15449: Range#=== is not using cover in Ruby 2.6
- That isn't new, that is since 1.9 as #cover? was added
-
01:35 PM Bug #15449: Range#=== is not using cover in Ruby 2.6
- If that the case, this should be clarified in NEWS, because it sounds as it was changed for all cases...
-
01:27 PM Bug #15449: Range#=== is not using cover in Ruby 2.6
- According to [code](https://github.com/ruby/ruby/blob/trunk/range.c#L1287), it first tries to use `range_include_internal`, which has [special handling for strings](https://github.com/ruby/ruby/blob/trunk/range.c#L1330).
Justificatio... -
01:13 PM Bug #15449 (Closed): Range#=== is not using cover in Ruby 2.6
- ```
irb(main):105:0> ('A'..'Z').cover? 'ANA'
=> true
irb(main):106:0> ('A'..'Z') === 'ANA'
=> false
```
Is this expected? Should `===` use cover according to NEWS in Ruby 2.6?
```
> ruby -v
ruby 2.6.0dev (2018-12-20 trun... - 01:05 PM Revision 7bef465e (git): range.c: reject ArithmeticSequence in rb_range_values
- Reject ArithmeticSequence in rb_range_values so that methods like
Array#[] raises TypeError for ArithmeticSequence as an index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:32 PM Revision fa5601e7 (git): thread_sync.c (rb_mutex_cleanup_keeping_mutexes): update fork_gen
- ... when clearing waitq. Otherwise, we risk redundantly clearing
valid waiters in future calls to `mutex_ptr`.
Note: I am not sure if this fixes [Bug #15430], and even if it
did, fork_gen is a belt-and-suspenders redundancy for [Bug #15... - 12:32 PM Revision 2a742d5f (git): thread_sync.c (rb_mutex_abandon_keeping_mutexes): remove unnecessary check
- rb_mutex_abandon_all functions fine when passed a NULL value,
so let the compiler deal with the complexity of the branch
instead of the person reading the code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66476 b2dd03c8-39d4-4d8f-... -
12:23 PM Bug #15448 (Closed): Kernel#raise should not write "cause" attribute destructively
- ```console
$ ./miniruby -e '
begin
raise "foo"
rescue => e1
begin
raise "bar"
rescue => e2
raise e1, cause: e2
end
end
'
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most ... -
11:44 AM Bug #15447 (Closed): Raising an exception with non-exception cause breaks backtrace printer
- Applied in changeset trunk|r66475.
----------
eval_error.c (show_cause): check if cause is an Exception or not
Fixes [Bug #15447] -
11:36 AM Bug #15447 (Closed): Raising an exception with non-exception cause breaks backtrace printer
- ```
$ ./miniruby -e 'raise "foo", cause: 1'
Traceback (most recent call last):
Traceback (most recent call last):
Traceback (most recent call last):
...
``` -
11:44 AM Revision 010a742c (git): eval_error.c (show_cause): check if cause is an Exception or not
- Fixes [Bug #15447]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:39 AM Feature #14888 (Closed): Add trace point for eval (and related functions)
- I believe this is fixed by Feature #15287
Thanks @ko1 -
05:49 AM Feature #15445: Reject '.123' in Float() method
- I seem to remember from the book (http://exceptionalruby.com/) by Avdi Grimm that in general, methods that have the same name as classes are more tolerant than other constructors. If I remember correctly, and this is by design, then we s...
-
12:16 AM Feature #15445 (Assigned): Reject '.123' in Float() method
- Since ruby 1.8, Ruby occurs a syntax error for ".<digit>" floating literal.
But Float() method accepts such form now.
I propose to reject ".<digit>" form even in Float() method. -
12:03 AM Bug #15444 (Closed): finite Ranges over Rationals are not iterable
- Applied in changeset trunk|r66474.
----------
enumerator.c: Fix airth_seq_each for Rational
Fix the wrong uses of rb_int_ge in arith_seq_each.
[ruby-core:90648] [Bug #15444] - 12:03 AM Revision 09b3d38c (git): enumerator.c: Fix airth_seq_each for Rational
- Fix the wrong uses of rb_int_ge in arith_seq_each.
[ruby-core:90648] [Bug #15444]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/20/2018
- 11:29 PM Revision ccdba542 (git): Import bigdecimal-1.4.0.pre.20181220a
- * https://github.com/ruby/bigdecimal/compare/v1.4.0.pre.20181214a..v1.4.0.pre.20181220a
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:22 PM Bug #15444 (Assigned): finite Ranges over Rationals are not iterable
-
08:45 PM Bug #15444 (Closed): finite Ranges over Rationals are not iterable
- Under 2.5.3, finite ranges over rational values are iterable, given a valid step size:
~~~
((1/10r)..(1/2r)).step(1/10r).to_a
# => [(1/10), (1/5), (3/10), (2/5), (1/2)]
~~~
Under 2.6.0, this is not the case (StopIteration is rai... -
11:21 PM Revision feb78840 (git): iseq.c: resurrect literal hash operands
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:54 PM Revision 97587ed4 (git): NEWS: small improvements
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 09:17 PM Revision b430aa3a (git): * 2018-12-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:17 PM Revision 75584ceb (git): A couple of small English fixes [ci skip]
- [Fix GH-2052]
From: Jon Burgess <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:05 PM Feature #9894 (Open): [RFC] README.EXT: document rb_gc_register_mark_object
-
03:17 PM Bug #15441: undefined method `union' and `difference' in Ruby 2.6
- "ruby -v" probably provides more information than the in-ruby
constant RUBY_VERSION alone does. -
09:47 AM Bug #15441: undefined method `union' and `difference' in Ruby 2.6
- I have just downloaded trunk again and it seems to work now... Maybe there was some related changes or maybe I didn't have the current version and I though I had
Anyway, it seems fixed, sorry for the mess -
09:27 AM Bug #15441 (Rejected): undefined method `union' and `difference' in Ruby 2.6
- Please use the latest revision of Ruby 2.6.
```
~ > ruby -v
ruby 2.6.0dev (2018-12-20 trunk 66456) +JIT [x86_64-darwin18]
~ > irb
>> [1,3,5,7,9].union([2,3,4,5,6])
=> [1, 3, 5, 7, 9, 2, 4, 6]
``` -
09:25 AM Bug #15441: undefined method `union' and `difference' in Ruby 2.6
- @ana06 what is your build day or revision number?
because this methods where added with #14097 3 months ago -
08:55 AM Bug #15441 (Rejected): undefined method `union' and `difference' in Ruby 2.6
- Using `irb` with using current Ruby trunk version:
```
irb(main):008:0> RUBY_VERSION
=> "2.6.0"
irb(main):009:0> [1,3,5,7,9].union([2,3,4,5,6])
Traceback (most recent call last):
2: from /usr/local/bin/irb:11:in `<main>'
... -
03:01 PM Bug #15443: Hash#slide with infinite range gives unexpective result
- It sound reasonable ;) this can be closed then
-
02:53 PM Bug #15443 (Rejected): Hash#slide with infinite range gives unexpective result
- Not a bug but a spec of `Hash#slice`. Consider the case where the keys are a range:
{ (1..) => :a, (2..) => :b, (3..) => :c }.slice(2..) #=> {2..=>:b}
Note that this behavior is not specific to endless range:
{ 1 => :a,... -
02:46 PM Bug #15443: Hash#slide with infinite range gives unexpective result
- `Hash#slice` takes an array of keys via *keys
each parameter is checked as a key in the Hash
```ruby
{ 1 => :a, 2 => :b, 3 => :c }.slice(2, 3) #=> { 2 => :b, 3 => :c }
{ 1 => :a, 2 => :b, 3 => :c }.slice([2, 3]) #=> {} [2,3]... -
02:29 PM Bug #15443 (Rejected): Hash#slide with infinite range gives unexpective result
- `{ 1 => :a, 2 => :b, 3 => :c }.slice(2..)` returns `{}`. I had expected that it retuns `{2=>:b, 3=>:c}` instead.
-
02:27 PM Feature #15435: Float の Infinity に生成済みの値を使用する
- 確認していただいてありがとうございます。
\# 順番がいろいろ前後して回答します。
> 以下、その他のコメントです。
> ...
なるほどー。オブジェクトに対する間接参照が減るということですね (これは
doc/extention.rdoc に載っていると嬉しいのではと思って調べて見たところ、#9894
で提案があったみたいですね)。
修正したパッチを添付します。
> (2) Infinity じゃなくて、いっそ NegativeInfin... -
12:52 AM Feature #15435: Float の Infinity に生成済みの値を使用する
- (コードのご提案時には、アイディア(アルゴリズム)を書いて頂けるとありがたいです)
パッチを見たところ、Flonum 生成時に、範囲外で heap から生成する直前に `isinf()` でチェックして、inf であれば、事前に allocate した inf オブジェクトを返す、と理解しました。
```C
if (isinf(d)) {
return d < 0 ? rb_float_negative_infinity : rb_float... -
01:24 PM Feature #15438: Threads can't switch faster than TIME_QUANTUM_(NSEC|USEC|MSEC)
- This is the implementation of option (4) on 2.5.3 (since that's what I am using). If it has a chance to be accepted, I will forward-port it to 2.6.
-
10:17 AM Revision ab2da43c (git): ext/coverage/lib/coverage.rb (Coverage.line_stub): use only line events
- It wrongly used all linenos of ISeq#trace_points which includes not only
line events but also call, return, and other events. So, the result
included some linenos that can not be covered at all by line coverage.
git-svn-id: svn+ssh://c... -
09:55 AM Revision 1d13610d (git): [DOC] Update CI build status badges [ci skip]
- copy from README.md
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:48 AM Bug #15442: irb behaves strange in Ruby 2.6
- I think I didn't have current trunk version. It seems to work no. Sorry
-
09:45 AM Bug #15442: irb behaves strange in Ruby 2.6
- You can check the availability of readline by this command line:
```
ruby -rreadline -ep
``` -
09:42 AM Bug #15442: irb behaves strange in Ruby 2.6
- The keyboard line editing behaviors are based on GNU Readline. Please install GNU Readline before you build Ruby.
For example, if you're using Ubuntu 18.10, run `sudo apt install libreadline-dev` and re-build Ruby. -
08:59 AM Bug #15442 (Closed): irb behaves strange in Ruby 2.6
- When trying to press the UP, DOWN, LEFT and RIGHT keys in Ruby 2.6 strange characters are printed instead of moving (or showing the last executed instruction). This works properly for me in Ruby 2.5.
```
irb(main):004:0> ^[[A^[[A^[[B... -
09:44 AM Bug #15436: Tests failing in `make check`
- @shevegen I had the package install.
I have just downloaded trunk again and it seems to work now... Maybe there was some related changes or maybe I didn't have the current version and I though I had
Anyway, it seems fixed -
09:22 AM Bug #15430: test_fork_while_parent_locked is failing status on Ruby CI
- > But I cant reproduce it atm...
OK, I need a break and get some sleep (but I realize 2.6 release is
is very soon).
I can reproduce [Bug #15383] with "rb_mutex_t.fork_gen" field
removed, but fork_gen shouldn't be necessary in mu... -
08:04 AM Bug #15430: test_fork_while_parent_locked is failing status on Ruby CI
- > It still exists. https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181218T230003Z.fail.html.gz
:< I am now thinking the r66230 for [Bug #15383] is
unnecessary and [Bug #15383] is a bug somewhere else.
Bu... -
08:42 AM Bug #15383: Reproducible crash: crash.rb:6: [BUG] unexpected THREAD_KILLED
- > > https://bugs.ruby-lang.org/issues/15383
> r66230 should fix it in trunk and should be backported
No, actually. r66230 hides an existing problem in the fix
for https://bugs.ruby-lang.org/issues/14578
...
Still working on th... -
07:18 AM Bug #15440 (Closed): Freeze hash literals embedded in duphash instructions
- Applied in changeset trunk|r66466.
----------
hide iseq operand object for duphash. [Bug #15440]
* compile.c (compile_array): hide source Hash object.
* hash.c (rb_hash_resurrect): introduced to dup Hash object
using rb_cHash. -
06:24 AM Bug #15440 (Closed): Freeze hash literals embedded in duphash instructions
- Previously, these hash literals were not frozen, and thus could be
modified by ObjectSpace, resulting in undesired behavior. Example
(run with --disable-gems):
~~~ ruby
require 'objspace'
def a(b={0=>1,1=>4,2=>17})
b
end
... -
07:17 AM Revision 2a70f68c (git): hide iseq operand object for duphash. [Bug #15440]
- * compile.c (compile_array): hide source Hash object.
* hash.c (rb_hash_resurrect): introduced to dup Hash object
using rb_cHash.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:59 AM Revision fe8475d7 (git): Test separately to get rid of risk to modify unrelated hash
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:44 AM Revision ec7b1e47 (git): Freeze hash literals embedded in duphash instructions
- Previously, these hash literals were not frozen, and thus could be
modified by ObjectSpace, resulting in undesired behavior. Example:
```ruby
require 'objspace'
def a(b={0=>1,1=>4,2=>17})
b
end
p a
ObjectSpace.each_object(Hash) do ... -
05:43 AM Bug #15437 (Closed): 正規表現の名前付きキャプチャでASCII以外の大文字で定義したクラスが上書きされる
- Applied in changeset trunk|r66463.
----------
parse.y: ignore constant name captures
* parse.y (reg_named_capture_assign_iter): ignore non-local name
captures, including non-ASCII constant names.
[ruby-dev:50719] [Bug #15437] -
05:43 AM Revision f89238ec (git): parse.y: ignore constant name captures
- * parse.y (reg_named_capture_assign_iter): ignore non-local name
captures, including non-ASCII constant names.
[ruby-dev:50719] [Bug #15437]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:28 AM Feature #14844: Future of RubyVM::AST?
- After playing around with the RC2 release, I think it's pretty good.
The only thing I'd like to see, is the use of Node instances even for cases where Array is currently used. Rather than Node.type, use explicit classes.
In additio... -
04:19 AM Bug #595: Fiber ignores ensure clause
- After discussion, we decided that:
- Doing this in the GC is probably a bad idea.
- Ruby's general model for resource management is explicit, e.g. `f = File.open; f.close` or `File.open do |f| ... end`. The same model should apply to... -
01:15 AM Bug #595: Fiber ignores ensure clause
- While it's not possible unless we invoke functionality from the GC, if/when we merge https://bugs.ruby-lang.org/issues/10344 it should become simple to do the following
```
while fiber.alive?
fiber.raise(Exception, "Time to die"... - 04:03 AM Revision 766f9b4a (git): Really ensure loading REXML in tests
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:03 AM Revision 5a846eb6 (git): rbinstall.rb: purge %x[git ls-files] too
- [Bug #13423]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:51 AM Revision 4df4b484 (git): rbinstall.rb: syntax error in gemspec
- * tool/rbinstall.rb (load_gemspec): do not hide syntax errors in
a gemspec file. check if the result instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:29 AM Bug #15439 (Closed): Time object's zone generated by Time.getlocal returns a strange value
- Time object's zone generated by Time.getlocal returns a strange value in Ruby 2.6
```
$ ruby -v -e 'p Time.new.utc.getlocal(0).zone; p Time.new.utc.getlocal(0).utc?
ruby 2.6.0dev (2018-12-17 trunk 66427) [x86_64-linux]
"UTC"
fal... - 03:08 AM Revision 3ea72d25 (git): Ensure loading REXML
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 02:49 AM Revision 0d1abb90 (git): rexml: upgrade to 3.1.8
- See https://github.com/ruby/rexml/blob/master/NEWS.md for change summary.
Changes for spec/ has been reported: https://github.com/ruby/spec/pull/639
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66458 b2dd03c8-39d4-4d8f-98ff-823fe... -
01:11 AM Feature #10344 (Assigned): [PATCH] Implement Fiber#raise
- We will experiment and aim to merge this into 2.7
-
12:16 AM Bug #14542 (Third Party's Issue): syswrite spuriously empties the given string
- 12:07 AM Revision 0b38221d (git): thread_pthread.c (ubf_timer_disarm): ignore EINVAL iff timer is dead
- The following race may happen if ubf_timer_destroy calls
timer_delete before ubf_timer_disarm gets called from
a different thread. Consider the following timelines:
ubf_timer_destroy | ubf_timer_disarm
----------...
12/19/2018
-
11:40 PM Feature #15438 (Closed): Threads can't switch faster than TIME_QUANTUM_(NSEC|USEC|MSEC)
- Thread#priority can be set to negative values, which when looking at the code is meant to reduce the time allocated to the thread. However, as far as I could understand in the codebase, the quantum of time is definitely hard-coded to 100...
-
11:33 PM Bug #14542: syswrite spuriously empties the given string
- Could someone close this report ? It's been solved as 'not a bug in Ruby'
-
08:30 PM Bug #15437 (Closed): 正規表現の名前付きキャプチャでASCII以外の大文字で定義したクラスが上書きされる
- ASCIIの大文字で定義したクラスは正規表現の名前付きキャプチャで上書きされませんが、ASCII以外の大文字で定義したクラスは上書きされてしまうようです。
これは意図的ですか?
```ruby
# rewrite_constant_by_named_capture.rb
class C
end
/(?<C>C)/ =~ "C"
p C
class 𝐂
end
/(?<𝐂>𝐂)/ =~ "𝐂"
p 𝐂
C.new
𝐂.... -
08:02 PM Bug #15436: Tests failing in `make check`
- ffi could be found here as source package: ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
That one also provides ffi.h; I assume opensuse has this also packaged up somewhere, possibly
a -dev/-devel package or something.
I don... -
04:05 PM Bug #15436: Tests failing in `make check`
- ana06 (Ana Maria Martinez Gomez) wrote:
> The following tests fail when running `check make` (after `make`) in my openSUSE Tumbleweed using current Ruby trunk version:
> ...
This failure also occurs in OpenBSD. It appears to be relate... -
03:30 PM Bug #15436 (Closed): Tests failing in `make check`
- The following tests fail when running `check make` (after `make`) in my openSUSE Tumbleweed using current Ruby trunk version:
```
[ 1080/19451] OpenSSL::TestEC#test_ec_point_mul = 0.00 s
... - 07:01 PM Revision cb3393ad (git): * 2018-12-20
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:01 PM Revision 4760b6b5 (git): * gems/bundled_gems: Upgrade the did_you_mean gem to 1.3.0
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:32 PM Feature #11266: [PATCH] WEBrick: allow subclassing of Response and Request
- [email protected] wrote:
> It has been... a very long time. Nobu, is there something else I can do?
>
> https://bugs.ruby-lang.org/issues/11266#change-74992
Committed as r66452. Sorry for the delays, I wasn't webrick
maintainer at the... -
11:08 AM Feature #11266 (Closed): [PATCH] WEBrick: allow subclassing of Response and Request
- Applied in changeset trunk|r66452.
----------
webrick: add the ability to override res, req creation
So that a customized HTTPServer subclass can use it's own
Request/Response classes.
To apply the override, make a subclass of WEBrick... -
12:57 PM Revision 097ee409 (git): Update entry of Psych on NEWS file.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:46 PM Revision f43a333d (git): Update entry of RubyGems on NEWS file.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:30 AM Feature #13581: Syntax sugar for method reference
- From [developer's meeting log](https://docs.google.com/document/d/1q22gVRNbCIYOQw2djH4UPmT0gxVoBKvjvs0MqX5ILcU/pub):
> 2.7 or later
> ...
The last Matz's notice makes a lot of sense for me, so I withdraw my petition for `self`-less o... - 11:08 AM Revision 4038d013 (git): webrick: add the ability to override res, req creation
- So that a customized HTTPServer subclass can use it's own
Request/Response classes.
To apply the override, make a subclass of WEBrick::HTTPServer
and override the
`create_request_and_response(with_webrick_config)` method. The
method sho... -
09:41 AM Bug #15434 (Closed): Fix up for r66448 - add option to deal with Unicode beta data files
- Hello Greg,
Many thanks for this fix. I think it's good to have one or two ci instances somewhere to not cache these files, but we should try to reduce the actual downloads as much as possible to reduce the load on the Unicode Consort... -
02:41 AM Bug #15434 (Closed): Fix up for r66448 - add option to deal with Unicode beta data files
- Appveyor build failed, Travis passed. I believe Travis is caching files, Appveyor is not.
See attached patch.
Thanks & Happy Holidays, Greg -
08:08 AM Feature #15435 (Open): Float の Infinity に生成済みの値を使用する
- Float の Infinity はしばしば使われると思うのですが、Flonum が有効でも即値に
ならないので、演算の結果や C から DBL2NUM で返却される場合などに毎回オブ
ジェクトが生成されます。
Ruby リポジトリーで、Infinity オブジェクトが生成されると明確に分かる場所を簡
単に調べた限りでは20数箇所ありました。
~~~
$ grep 'DBL2NUM.*HUGE_VAL' $(git ls-files | awk '/... -
07:59 AM Bug #15390: Error installing nokogiri on ruby-2.6.0-rc1
- Don't mind, one-line comment may be overlooked easily.
I'll paste the content not only a link, next time. -
07:20 AM Revision 92e72662 (git): Merge RubyGems 3.0.0 from upstream.
- https://blog.rubygems.org/2018/12/19/3.0.0-released.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:02 AM Revision b0f6781e (git): Update metadata of Bundler 1.17.2
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:08 AM Revision 13c15beb (git): avoid passing unnecessary options to download method
- The option --unicode-beta for tool/downloader.rb introduced in
r66448 must not be passed as an option to actual download machinery.
Thanks to MSP-Greg (Greg L.) for bug report and patch.
This closes issue #15434.
git-svn-id: svn+ssh://c... -
02:03 AM Bug #15430 (Assigned): test_fork_while_parent_locked is failing status on Ruby CI
- @normalperson
It still exists. https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181218T230003Z.fail.html.gz -
01:42 AM Feature #14757: [PATCH] thread_pthread.c: enable thread cache by default
- Eric Wong wrote:
> ko1 brought up a good point: this may interact badly with
> 3rd-party libraries which use thread-local storage via
> pthread_getspecific/pthread_setspecific (or compiler
> extensions).
> So, we might need to d... -
01:13 AM Bug #15427: Assertion Failed: vm_method.c:858:prepare_callable_method_entry:callable_method_entry_p(cme)
- Thank you, ko1 and nobu :)
-
12:26 AM Revision eb2e931f (git): add option to deal with Unicode beta data files
- Unicode uses file names with explicit versions for beta publication.
This commit introduces a variable on the makefile level to distinguish
between beta and regular versions of file names.
common.mk: Define new variable UNICODE_BETA, us...
12/18/2018
-
11:36 PM Revision d1dce26b (git): sample/fib.py: Fix syntax error in Python 3 [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:33 PM Bug #15428: Refactor Proc#>> and #<<
- Are you sure that .call had the same meaning as to_proc?
I vaguely remember the old pickaxe having mentioned .call a
lot, but I can not recall it having mentioned to_proc much
at all. It has been quite some years since I last had a ... -
07:35 PM Bug #15390: Error installing nokogiri on ruby-2.6.0-rc1
- Thank you Nobuyoshi!
As you know, I indeed was overlooking something, specifically your comment and link on note #2 when you correctly changed the Status to "Third Party's Issue." I saw the workaround in note #1 and the confirmation ... -
06:56 PM Bug #15427: Assertion Failed: vm_method.c:858:prepare_callable_method_entry:callable_method_entry_p(cme)
- Thank you for your report.
This issue was from Ruby 2.0 :p
-
08:33 AM Bug #15427 (Closed): Assertion Failed: vm_method.c:858:prepare_callable_method_entry:callable_method_entry_p(cme)
- Applied in changeset trunk|r66436.
----------
should use defined_class.
* vm_insnhelper.c (vm_call_method_each_type): we should use me->defined_class
instead of me->owner because me->owner doesn't has correct ancestors list.
[Bug #... - 06:25 PM Revision a57acb73 (git): thread_pthread.c (ubf_timer_destroy): more careful state transition
- We must not call timer_destroy while another thread is
calling timer_settime to arm the timer.
cf. http://ci.rvm.jp/results/trunk-iseq_binary@silicon-docker/1541578
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66446 b2dd03c8-39d4-... -
06:25 PM Bug #15433 (Closed): OpenStruct NameError vs NoMethodError spec fails for method_missing
- ```
I've hit this with parallel tests on a bare trunk on all my Debian stable
machines, not sure why, yet:
1)
OpenStruct#method_missing when passed additional arguments raises a NoMethodErro
r ERROR
NameError: undefined local var... -
05:14 PM
Feature #15393: Add compilation flags to freeze Array and Hash literals
- > I would like to add VM compilation options to freeze array and hash literals. For example:
My two samples:
~~~ ruby
#!/usr/local/bin/ruby -w
def frequency(text)
def prepare_string(text)
text.gsub!(",", "") ... -
04:11 PM Revision 75f36bdc (git): Constified to fix warning at r66442
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:01 PM Revision 278648b5 (git): CHDIR to follow symlink [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:11 PM Revision 7b6f2e2c (git): * expand tabs.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:11 PM Revision a80cc953 (git): Expand cross-recursion to a loop
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:06 PM Revision 011bee2d (git): * 2018-12-19
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:06 PM Revision eff78408 (git): Freeze and hide callback arguments holder
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:59 PM Bug #15114 (Closed): Ruby で定義したメソッドに `&:hoge` を渡しても refinements が有効にならない
- Applied in changeset trunk|r66439.
----------
Enable refinements on symbol-proc in ruby-level methods
* vm_args.c (refine_sym_proc_call): resolve refinements when the
proc is invoked, instead of resolving at making the proc, to
ena... -
01:59 PM Revision 188b6739 (git): Enable refinements on symbol-proc in ruby-level methods
- * vm_args.c (refine_sym_proc_call): resolve refinements when the
proc is invoked, instead of resolving at making the proc, to
enable refinements on symbol-proc in ruby-level methods
* vm.c (vm_cref_dup): clear cached symbol-procs wh... -
11:05 AM Misc #15431: Hashes and arrays should not require commas to seperate values when using new lines
- I like the idea from one point of view - **convenience**. A bit
similar to changes such as require 'pp' being available by default;
of course it is not the same as the proposal here, since the
proposal here refers to a syntax change, ... -
07:14 AM Misc #15431: Hashes and arrays should not require commas to seperate values when using new lines
- It has been already proposed at #10528.
-
04:14 AM Misc #15431 (Open): Hashes and arrays should not require commas to seperate values when using new lines
- Ruby should not require commas for hash and array values if using new lines. I think the syntax would look cleaner without.
**Example**
~~~
myHash = {
:key => “value”,
:anotherKey => “another value”
}
~~~
**Could be**
~~~
... -
09:52 AM Bug #15424: Ruby 2.6.0rc1 & 2.6.0rc2 mutex exception
- r66438 should fix it. Sorry for the bugs :x
-
09:21 AM Bug #15424 (Closed): Ruby 2.6.0rc1 & 2.6.0rc2 mutex exception
- Applied in changeset trunk|r66438.
----------
thread_sync.c (mutex_ptr): only reinitalize waitqueue at fork
Mutexes need to remain locked after forking.
This fixes "[BUG] invalid keeping_mutexes: Attempt to unlock a
mutex which is loc... -
09:52 AM Bug #15430: test_fork_while_parent_locked is failing status on Ruby CI
- r66438 should fix it. Ugh, I clearly shouldn't be allowed near
a keyboard anymore :< -
09:21 AM Bug #15430 (Closed): test_fork_while_parent_locked is failing status on Ruby CI
- Applied in changeset trunk|r66438.
----------
thread_sync.c (mutex_ptr): only reinitalize waitqueue at fork
Mutexes need to remain locked after forking.
This fixes "[BUG] invalid keeping_mutexes: Attempt to unlock a
mutex which is loc... -
04:32 AM Bug #15430: test_fork_while_parent_locked is failing status on Ruby CI
- Thanks. Maybe related to [Bug #15430]. Will investigate in coming days.
-
01:11 AM Bug #15430 (Closed): test_fork_while_parent_locked is failing status on Ruby CI
- After r66230, TestThread#test_fork_while_parent_locked is failing status on Ruby CI.
See
* CentOS 7 https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos7/ruby-trunk/log/20181217T230002Z.fail.html.gz
* Amazon Lunux 2 https://ruby... - 09:21 AM Revision 1df9c2bc (git): thread_sync.c (mutex_ptr): only reinitalize waitqueue at fork
- Mutexes need to remain locked after forking.
This fixes "[BUG] invalid keeping_mutexes: Attempt to unlock a
mutex which is locked by another thread" and should
fix test_fork_while_parent_locked failures in CI
[ruby-core:90581] [Bug #15... -
08:46 AM Bug #15432 (Closed): Float の NaN のみを含む配列比較のテスト
- Float の NaN のみを含む配列比較のテストが以下にあります。
~~~ ruby
## spec/ruby/core/array/equal_value_spec.rb:47
# As per bug #1720
it "returns false for [NaN] == [NaN]" do
[nan_value].should_not == [nan_value]
end
~~~
しかし、これは #1720 で未定義動作とすると... - 08:33 AM Revision 47127762 (git): * expand tabs.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:33 AM Revision 2103333e (git): should use defined_class.
- * vm_insnhelper.c (vm_call_method_each_type): we should use me->defined_class
instead of me->owner because me->owner doesn't has correct ancestors list.
[Bug #15427]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66436 b2dd03c8-... - 08:11 AM Revision 84b49707 (git): * expand tabs.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:11 AM Revision 542e63b9 (git): rb_raw_obj_info() support T_MODULE and T_ICLASS.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:49 AM Revision 301ae01b (git): Bump version to 1.0.0.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:10 AM Feature #14820 (Closed): [PATCH] ipaddr.rb: use frozen_string_literal
- Merged in r66432, thanks!
-
05:09 AM Feature #11210 (Closed): IPAddr has no public method to get the current subnet mask
- 05:09 AM Revision ab364fb5 (git): Import ipaddr 1.2.2
- - Enable frozen_string_literal and do a bit of code cleanup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:09 AM Revision 78dc3da2 (git): Pathname#relative_path_from uses is_a?
- I reconsidered because simpler code would have better maintainablity.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:01 AM Revision 623c6d97 (git): Bump version to psych 3.1.0.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:46 AM Bug #15426 (Assigned): BigDecimal: "1.2.3".to_d が 0.0 になる
-
01:45 AM Bug #15426: BigDecimal: "1.2.3".to_d が 0.0 になる
- こんなところでしょうか。
```diff
diff --git i/ext/bigdecimal/bigdecimal.c w/ext/bigdecimal/bigdecimal.c
index 64d7f20078..052fdc57b9 100644
--- i/ext/bigdecimal/bigdecimal.c
+++ w/ext/bigdecimal/bigdecimal.c
@@ -4271,7 +4271,7 @@ VpAlloc(siz...
12/17/2018
-
11:06 PM Bug #15429 (Closed): Fix test failure if ENV["USER"] doesn't match Process.euid
- Thanks. r66428
Oops, forgot to edit commit message before committing :x
-
10:07 PM Bug #15429 (Closed): Fix test failure if ENV["USER"] doesn't match Process.euid
- When dropping privileges to run tests, ENV["USER"] could be set
to a user that doesn't match Process.euid, which causes
test_seteuid_name to fail with Errno::EPERM.
Attached is a patch that fixes this issue by trying to get the
nam... - 10:49 PM Revision 04a9b0da (git): * 2018-12-18
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 10:48 PM Revision 5245ed6b (git): Fix test failure if ENV["USER"] doesn't match Process.euid
- When dropping privileges to run tests, ENV["USER"] could be set
to a user that doesn't match Process.euid, which causes this
test to fail with Errno::EPERM. Try to get the name for the
current euid, and only fallback to ENV["USER"] if t... -
10:00 PM Bug #15428: Refactor Proc#>> and #<<
- BTW, having `>>` and `<<` convert objects via `to_proc` would have a nice (?) addition of chaining symbols too:
```ruby
PROCESS = ->(url) { get(url) } >> JSON.method(:parse) >> :symbolize_keys >> :invert
``` -
09:56 PM Bug #15428 (Feedback): Refactor Proc#>> and #<<
- #6284 introduced `Proc#>>` and `Proc#<<`, but the requirements to the argument is totally inconsistent with ANY other place in Ruby.
Currently, it is the **only** place in Ruby where coercing argument to `Proc` is done with `#call` me... -
05:16 PM Feature #15301: Symbol#call, returning method bound with arguments
- @zverok wrote:
> I don't believe it is possible at all (both from the technical and organizational points of view).
Ah ok bummer if true! Can you please clarify what you meant by `organizational` above?
Note to future self (or oth... -
04:08 PM Bug #15427 (Closed): Assertion Failed: vm_method.c:858:prepare_callable_method_entry:callable_method_entry_p(cme)
- 以下のようなコードで Ruby(trunk) が SEGV しました。
## 再現コード
```ruby
module M1
def bar
"bar"
end
end
module M2
include M1
# これをコメントアウトすると落ちない
private(*M1.instance_methods(false))
def meth
bar
end
end
sel... -
03:54 PM Bug #15426 (Closed): BigDecimal: "1.2.3".to_d が 0.0 になる
- Ruby 2.6.0-rc2 で "1.2.3".to_d が 0.0 になります。
```
% ruby -v -rbigdecimal -rbigdecimal/util -e 'p "1.2.3".to_d'
ruby 2.6.0rc2 (2018-12-15 trunk 66408) [x86_64-linux]
0.0
```
Ruby 2.5.3p105 では 0.12e1 を返してました。
```
% ruby -v -rbig... -
03:08 PM Feature #15425: Store MJIT header into Ruby versioned directory.
- I am using `--with-rubyhdrdir=/usr/include --with-rubyarchhdrdir=/usr/include --enable-multiarch` configuration options. This is the output:
~~~
$ tree
.
`-- ruby-2.6.0
|-- ruby
| |-- backward
| | |-- classext.... -
02:29 PM Feature #15425 (Feedback): Store MJIT header into Ruby versioned directory.
- It should be placed under the directory which has the version and architecture name.
How did you configure it? -
12:19 PM Feature #15425 (Closed): Store MJIT header into Ruby versioned directory.
- This is a followup of #15391 which fixes JIT to respect the configuration options. However, I still wonder, why the file is versioned and why it is not stored in the versioned directory alongside all other internal Ruby headers. I believ...
-
07:42 AM Feature #14813: [PATCH] gc.c: make gc_enter+gc_exit pairs dtrace probes, too
- On 2018/12/16 21:20, Eric Wong wrote:
> I think the caps change is a minor issue. It's more important to
> use ALL_CAPS to help identify macros (because of side-effects).
I mean, to reach "gc_enter" function is a bit difficult bec... -
06:03 AM Bug #15424: Ruby 2.6.0rc1 & 2.6.0rc2 mutex exception
- [email protected] wrote:
> /.../config/application.rb:107: [BUG] invalid keeping_mutexes: Attempt to unlock a mutex which is locked by another thread
> ruby 2.6.0rc2 (2018-12-15 trunk 66408) [armv8l-linux-eabihf]
Are you able to rep... -
03:13 AM Bug #15424 (Closed): Ruby 2.6.0rc1 & 2.6.0rc2 mutex exception
- Steps to reproduce
At the end of a bootstraped rails application (tested with a postgres database) put the following code:
pid = fork do
STDOUT.sync = true
STDERR.sync = true
require('rake')
Application.load_tasks
Rake::Task... -
05:57 AM Revision b824c871 (git): Split test_fnmatch
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:58 AM Revision 713f360d (git): Already nlink is properly set on Windows
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:58 AM Revision 990c8759 (git): Split test_expand_path, test_basename, test_dirname
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:43 AM Feature #15323: [PATCH] Proposal: Add Enumerable#filter_map
- tny (Tony Sunny) wrote:
> Could't we use reduce for this?
> ...
Yep, that's mentioned in the original ticket too. There's also #each_with_object that lets you write the block almost the same as in the proposal:
~~~ruby
(1..10).each... - 03:08 AM Revision 7d4bfb53 (git): NEWS: Note for the bigdecimal versions
- The differences between bigdecimal 1.3.5, 1.4.0, and 1.5.0 are explained.
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:36 AM Bug #15154 (Closed): OpenBSD make(1) can't build node_name.inc
- Applied in changeset trunk|r66423.
----------
Workaround for OpenBSD make
* common.mk: read from node.h in the source directly, without
VPATH. [ruby-core:89151] [Bug #15154]
From: kernigh (George Koehler) <[email protected]> -
01:36 AM Revision 6da6492d (git): Workaround for OpenBSD make
- * common.mk: read from node.h in the source directly, without
VPATH. [ruby-core:89151] [Bug #15154]
From: kernigh (George Koehler) <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66423 b2dd03c8-39d4-4d8f-98... - 12:43 AM Revision 89955d54 (git): * 2018-12-17
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:43 AM Revision 95fbd87f (git): Range check is only for interaval
- * time.c (time_timespec): range check is only for time interval
value if time_t is signed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12/16/2018
-
10:09 PM Bug #14018 (Third Party's Issue): Sidekiq rejects output of Marshal.dump
-
09:58 PM Feature #15301: Symbol#call, returning method bound with arguments
- I don't believe it is possible at all (both from the technical and organizational points of view).
If you do, probably you should create another ticket, not turning this one, pretty short and focused on _one particular proposal_ into th... -
09:55 PM Feature #15301: Symbol#call, returning method bound with arguments
- zverok (Victor Shepelev) wrote:
> ...but instead will require the change of ALL the methods in standard library accepting a block? Or what do you mean?..
Exactly - no new method/operator, just changes at the parser/compiler level -
09:44 PM Feature #15301: Symbol#call, returning method bound with arguments
- > ...which wouldn't require a new method/operator?
...but instead will require the change of ALL the methods in standard library accepting a block? Or what do you mean?.. -
09:24 PM Feature #15301: Symbol#call, returning method bound with arguments
- @matz @zverok
What do you think of this alternative syntax which wouldn't require a new method/operator?
```ruby
[1, 2, 3, 4].map(&:**, 2) #=> [1, 4, 9, 16]
[1, 2, 3].tap(&:delete, 1) #=> [2, 3]
``` -
07:47 PM Feature #15301: Symbol#call, returning method bound with arguments
- @matz (Yukihiro Matsumoto) wrote:
> Interesting idea of partial evaluation, but `call` is too generic, and could cause confusion. I am not positive about the expression.
Believe this concept is called [partial application](https://en... -
09:57 PM Bug #15219 (Closed): Backport: Ruby 2.5.X to support OpenSSL 1.1.1 and TLS 1.3
- Close to be on tracking on backport process.
-
09:52 PM Misc #15342 (Closed): DevelopersMeeting20181212Japan
-
09:52 PM Feature #15344 (Feedback): Being proactive about Ruby security
-
09:46 PM Bug #15414 (Closed): backport #14571 (File descriptor leak in resolv.rb)
- Changed backport field of #14571, thank you for reporting!
-
08:02 PM Feature #15419: Allow Kernel#tap to be invoked with arguments like Kernel#send
- > Eregon (Benoit Daloze) wrote:
> ...
Perfect thanks @Eregon, [pull request](https://github.com/ruby/ruby/pull/2050) updated!
> oleynikov (Alexander Oleynikov) wrote:
> ...
Thanks for the links to the other discussions @oleynikov, p... -
10:58 AM
Feature #15419: Allow Kernel#tap to be invoked with arguments like Kernel#send
- It is not backward compatible.
And I'm not sure why we need to change just `#tap` and not other methods.
There are some discussions going on about passing arguments whith `Symbol#to_proc` shorthand: #12115, #15301, etc. Personally I'... -
10:44 AM Feature #15419: Allow Kernel#tap to be invoked with arguments like Kernel#send
- shuber (Sean Huber) wrote:
> The `ruby/spec on Ruby 2.3` check is failing in this PR - I'm not sure what the existing conventions are for adding specs for new features like this.
> ...
Yes, in such a case you need to use `ruby_version_... -
06:53 PM
Feature #15215: HTTPS server name indication (SNI): explicit server_name in Net::HTTP
- I still like to have this feature. Any opinion on this? Especially @naruse as a maintainer of lib/net/http(s).rb?
Thanks! -
04:32 PM Misc #15275: [DOCs] Documentation for ruby's jit model - from the ruby "end user" perspective
- I know these explanations are obviously not end-user friendly yet. To be improved.
-
04:31 PM Misc #15275: [DOCs] Documentation for ruby's jit model - from the ruby "end user" perspective
- For the initial version of (3) and (4), I added a few Advantages/Disadvantages explanations on that page.
-
04:18 PM Misc #15275 (Closed): [DOCs] Documentation for ruby's jit model - from the ruby "end user" perspective
- In https://bugs.ruby-lang.org/projects/ruby/wiki/MJIT, I finished the following parts:
(1) Done.
(5) Linked from https://bugs.ruby-lang.org/projects/ruby/wiki. Also I'll add a link to it in the final release note.
Closing this tic... -
03:07 PM Misc #15275 (Feedback): [DOCs] Documentation for ruby's jit model - from the ruby "end user" perspective
- I'm struggling to remember the contents of this ticket in my small memory, so I'll summarize what I interpreted here:
## terminology
* end user: semi-advanced ruby user
## missing documentation
* how such a "end user" may ben... -
02:54 PM Revision 968fcd83 (git): [DOC] Update Object#=~ [ci skip]
- see r65989
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:28 PM Bug #15423 (Open): fork leapfrog leaks memory on FreeBSD 11.2
- It happens on 2.4.5, too; so it's not a new problem.
fork leap-frogging (without exec) is an uncommon case,
so I'll let somebody else fix it.
-
02:26 PM Bug #15421: erb コマンドの -P オプションの説明
- おっしゃる通りと思いましたので、そのままパッチを取り込まさせていただきました。
が、パッチ作成者の情報をコミットメッセージに入れ忘れたままコミットしてしまいました…すみません。 -
02:24 PM Bug #15421 (Closed): erb コマンドの -P オプションの説明
- Applied in changeset trunk|r66419.
----------
bin/erb: improve documentation of -P flag
man/erb.1: ditto
[Bug #15421] -
11:49 AM Bug #15421 (Closed): erb コマンドの -P オプションの説明
- `erb` コマンドの `-P` オプションは、`%` で始まる行を Ruby コードとして評価する機能を無効にする、という意味だと思うのですが、man ページの説明は以下のようになっていて正しくないように思います。
~~~
-P Evaluates lines starting with % as Ruby code and removes
the tailing EOLs.
~~~
また、`erb --help` の説明は以下のよ... -
02:24 PM Revision f84ae88b (git): bin/erb: improve documentation of -P flag
- man/erb.1: ditto
[Bug #15421]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:13 PM Bug #15422 (Closed): Re: [ruby-cvs:73514] normal:r66413 (trunk): thread_pthread.c: fix memory leak from fork loop leapfrog (v3)
- > https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66413
Finally fixed for GNU/Linux. Not on FreeBSD 11.2,
but it was also present in 2.4.5:
==> fork_leapfrog_freebsd.rb <==
require 'io/wait'
prev =... -
01:04 PM Bug #9367 (Closed): REXML::XmlDecl doesn't use user specified quotes
- I've implemented `:prologue_quote` context option. Available values are `:quote` and `:apostrophe`.
https://github.com/ruby/rexml/commit/e89702294881a8aedb15905d8a85137876749f7f -
01:04 PM Bug #11176 (Closed): Hardcoded settings in REXML
- I've implemented `:prologue_quote` context option. Available values are `:quote` and `:apostrophe`.
https://github.com/ruby/rexml/commit/e89702294881a8aedb15905d8a85137876749f7f -
12:56 PM Bug #15420 (Closed): Kernel#sleep などに負数を渡したときのエラーメッセージ
- Applied in changeset trunk|r66418.
----------
Refine error message for time interval
* time.c (time_timespec): Time interval value can be zero, not
only positive. [ruby-dev:50709] [Bug #15420]
From: shuujii (Shuji KOBAYASHI) <shuuj... -
05:23 AM Bug #15420 (Closed): Kernel#sleep などに負数を渡したときのエラーメッセージ
- `sleep` に負数を渡した場合のエラーメッセージは以下のようになります。
~~~
$ ruby -e 'sleep(-1)'
Traceback (most recent call last):
1: from -e:1:in `<main>'
-e:1:in `sleep': time interval must be positive (ArgumentError)
~~~
しかし、0 は許容されているので "must not be n... -
12:55 PM Revision 9446db40 (git): Refine error message for time interval
- * time.c (time_timespec): Time interval value can be zero, not
only positive. [ruby-dev:50709] [Bug #15420]
From: shuujii (Shuji KOBAYASHI) <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66418 b2dd03c8-39d4-4d... - 12:33 PM Revision bb1e08e7 (git): thread_pthread (ubf_timer_destroy): use VM_ASSERT
- Don't need the overhead at runtime
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:26 PM Revision 4cf82863 (git): Pathname#relative_path_from compatible with mock.
- [Fix GH-2049]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:22 PM Feature #14813: [PATCH] gc.c: make gc_enter+gc_exit pairs dtrace probes, too
- > https://bugs.ruby-lang.org/issues/14813#change-75529
>
> I have no strong idea. If it will help for systemtap user. I don't care.
> (I feel changinge "gc_enter" to "GC_ENTER" is a bit difficult to read, but I understand why...).
... -
12:09 PM Bug #15411 (Closed): Enhance Tempfile docs
- Applied in changeset trunk|r66415.
----------
Enhance Tempfile docs [ci skip]
[ruby-core:90525] [Bug #15411]
From: zverok (Victor Shepelev) <[email protected]> -
12:09 PM Revision 13fd78c2 (git): Enhance Tempfile docs [ci skip]
- [ruby-core:90525] [Bug #15411]
From: zverok (Victor Shepelev) <[email protected]>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:00 AM Feature #15408: Deprecate ObjectSpace._id2ref
- Let's deprecate `ObjectSpace._id2ref` in 2.7 then.
I think we also need to address the usage in DRb. cc @seki -
10:57 AM Feature #15408: Deprecate ObjectSpace._id2ref
- Eregon (Benoit Daloze) wrote:
> @naruse @matz Is it still time to deprecate `ObjectSpace._id2ref` for 2.6, or is it too late already in the release cycle?
For 2.6, it's too late because people don't have a chance to check the breakag... -
10:49 AM Feature #15408: Deprecate ObjectSpace._id2ref
- @naruse @matz Is it still time to deprecate `ObjectSpace._id2ref` for 2.6, or is it too late already in the release cycle?
-
10:50 AM Bug #15390: Error installing nokogiri on ruby-2.6.0-rc1
- Try nokogiri v1.9.0.rc1.
https://github.com/sparklemotion/nokogiri/issues/1833#issuecomment-445699368 - 07:51 AM Revision 3b13bc63 (git): * expand tabs.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 07:51 AM Revision f547d391 (git): thread_pthread.c: fix memory leak from fork loop leapfrog (v3)
- Constantly forking a single-threaded process in a loop leads to
a memory leak when using POSIX timers. This fixes the leak for
GNU/Linux systems running glibc.
v2: disarm before timer_delete
v3: ubf_timer_arm prevents double-arming
Th... -
12:55 AM Revision 9fa6af24 (git): spec/../initialize_spec.rb: skip fd-specific spec
- https://gist.github.com/ko1/72c03695e81a54d40649f29d0c421f26
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e