Project

General

Profile

Activity

From 08/18/2017 to 08/24/2017

08/24/2017

10:26 PM Feature #11105: ES6-like hash literals
This ES6 syntax for hash literals looks strange to me. I have never seen it before today, but I have not written JavaScript for a few years, and I am not using Ruby for web development.
Two things puzzle me:
1. What is the key in `...
kernigh (George Koehler)
03:55 AM Feature #11105: ES6-like hash literals
This syntax is now widely known and popular in the JavaScript/ES world. It is frequently used in everyday code and we've grown used to it. knu (Akinori MUSHA)
07:40 AM Feature #8781: Use require_relative() instead of require() if possible
Martin Dürst wrote back then:
> On the other hand, 'require' has a tighter coupling to the file
> ...
Both have a similar requirement - you need to pass in the name of
the file at question.
Both also require some information to t...
shevegen (Robert A. Heiler)
07:31 AM Revision 7971a124 (git): compile.c: show failed instructions
* compile.c (iseq_set_sequence): show failed instructions at
adjuststack mismatch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:26 AM Revision 20c29411 (git): * 2017-08-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:26 AM Revision 37228c0f (git): compile.c: free before adjust error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

08/23/2017

04:47 PM Bug #13837: Class attributes get overshadowed by local variables
shevegen (Robert A. Heiler) wrote:
> Even the old pickaxe mentions that ruby may behave slightly unexpected
> ...
I still can't consider this correct behavior. Aren't the multi-line and the single-line ways of writing `if` supposed to ...
valerauko (Balint Erdos)
04:29 PM Bug #13837: Class attributes get overshadowed by local variables
I think hanmac already gave the correct answer so there is no point in me adding
much to it. :)
Note that you could specifically point ruby to call the getter method in the
line hanmac pointed out, rather than using:
bar = 0...
shevegen (Robert A. Heiler)
12:27 PM Bug #13837: Class attributes get overshadowed by local variables
ruby does parse the lines before exceute them.
so when ruby does read this:
~~~ ruby
bar = 0 if bar.nil?
~~~
it finds that you assign a local variable bar in this contect.
now it does always use the local variable instead of me...
Hanmac (Hans Mackowiak)
09:37 AM Bug #13837 (Closed): Class attributes get overshadowed by local variables
~~~ ruby
irb(main):001:0> RUBY_VERSION
=> "2.4.1"
irb(main):002:0> class Foo
irb(main):003:1> attr_accessor :bar
irb(main):004:1> def initialize
irb(main):005:2> self.bar = 1
irb(main):006:2> end
irb(main):007:1> def ...
valerauko (Balint Erdos)
04:01 AM Bug #13832 (Closed): cfp consistency error occurred in vm_call_cfunc on non-optimized ruby
Applied in changeset trunk|r59649.
----------
gc.c: restore cfp at finalizer
* gc.c (run_finalizer): restore cfp for the case an exception
raised in a finalizer. [ruby-core:82432] [Bug #13832]
nobu (Nobuyoshi Nakada)
04:01 AM Revision 1fe73fc9 (git): gc.c: restore cfp at finalizer
* gc.c (run_finalizer): restore cfp for the case an exception
raised in a finalizer. [ruby-core:82432] [Bug #13832]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:14 AM Revision 9b2d518a (git): skip unless finalizers run
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:26 AM Revision 0f711026 (git): gc.c: run all finalizers
* gc.c (run_finalizer): revert r59155 partially. finalizing loop
should continue even after an exception is rescued.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:23 AM Bug #13836 (Closed): Null pointer dereference in defined_expr0()
Applied in changeset trunk|r59644.
----------
parse.y: primary should not be 0
* parse.y (primary): should not be 0, since it can be a receiver.
[ruby-core:82447] [Bug #13836]
nobu (Nobuyoshi Nakada)
02:23 AM Revision e96ba1d6 (git): * 2017-08-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:23 AM Revision e553df86 (git): remove debug code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
12:09 AM Bug #13794: Infinite loop of sched_yield
charlie@atech.media wrote:
> File sched_yield_1.patch added

> The patch above does not work because
> native_reset_timer_thread runs after fork in the parent.
> Attached an alternative patch that runs in gvl_atfork and
> appears ...
normalperson (Eric Wong)

08/22/2017

09:35 PM Bug #13835: Using 'open-uri' with 'tempfile' causes an exception
shevegen (Robert A. Heiler) wrote:
> Indeed, sounds like a bug; at the least it is somewhat surprising behaviour to me. Not
> ...
Hm, as I remember, the first argument to `open` should be a URl or a path, not a `Tempfile` instance, rig...
kigster (Konstantin Gredeskoul)
02:48 PM Bug #13835: Using 'open-uri' with 'tempfile' causes an exception
Indeed, sounds like a bug; at the least it is somewhat surprising behaviour to me. Not
that I think I would have ever found the above behaviour, I always used open-uri with
a remote URL so far. :)
shevegen (Robert A. Heiler)
08:18 AM Bug #13835 (Closed): Using 'open-uri' with 'tempfile' causes an exception
Hi there,
try this in your current ruby env:
~~~ ruby
require 'tempfile'
require 'open-uri'
temp_file = Tempfile.new
open(temp_file, 'a')
~~~
Get this:
~~~
/Users/~/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tempfile.rb:14...
thorsteneckel (Thorsten Eckel)
01:21 PM Revision e7606de9 (git): parse.y: primary should not be 0
* parse.y (primary): should not be 0, since it can be a receiver.
[ruby-core:82447] [Bug #13836]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:36 PM Bug #13836 (Closed): Null pointer dereference in defined_expr0()
After some fuzz testing I found a crashing test case.
To reproduce: miniruby ruby_null_ptr_defined_expr0
Context:
~~~
ruby_null_ptr_defined_expr0: [BUG] Segmentation fault at 0x0000000000000000
ruby 2.5.0dev (2017-08-03) [x86_...
fumfel (Kamil Frankowicz)
10:40 AM Bug #13834: RubyGems test suite occasionally changes working directory and breaks the rest of test suite
So far, I think the test never reaches this [1] line for some reason. Or if it reaches it, it is not executed properly. Then the temporary directory is cleaned up and the test suite starts to fail.
[1]: https://github.com/rubygems/rub...
vo.x (Vit Ondruch)
10:35 AM Bug #13834: RubyGems test suite occasionally changes working directory and breaks the rest of test suite
I think the github "ticket" is not as useful as the issue track here; I may mistakingly remember
but I think that some of the ruby core team said so. Where github may help of course are
patches and pull requests attached to.
The er...
shevegen (Robert A. Heiler)
06:10 AM Bug #13834: RubyGems test suite occasionally changes working directory and breaks the rest of test suite
I also opened RubyGems ticket:
https://github.com/rubygems/rubygems/issues/1991
vo.x (Vit Ondruch)
06:06 AM Bug #13834 (Closed): RubyGems test suite occasionally changes working directory and breaks the rest of test suite
From time to time, RubyGems test suite changes working directory, which breaks rest of Ruby tests suite. It all starts like this:
~~~
[ 7096/17125] TestGemRemoteFetcher#test_do_not_allow_invalid_client_cert_auth_connection = 0.01 sLe...
vo.x (Vit Ondruch)
08:47 AM Bug #13832: cfp consistency error occurred in vm_call_cfunc on non-optimized ruby
This is my configure options:
```
~/src/github.com/ruby/ruby/configure \
--prefix=$(echo ~/.rbenv/versions/trunk-o0) \
--with-opt-dir=$(brew --prefix) \
--with-dbm-dir=$(brew --prefix qdbm) \
--with-dbm-type=qdbm \
--w...
mrkn (Kenta Murata)
08:46 AM Bug #13832: cfp consistency error occurred in vm_call_cfunc on non-optimized ruby
I can reproduce this bug with r59639. mrkn (Kenta Murata)
05:39 AM Bug #13832 (Feedback): cfp consistency error occurred in vm_call_cfunc on non-optimized ruby
Seems something weird, r58053 is for 2.4.1 at 2017-03-22.
And I can't reproduce it with r59639.
Try checkout and `make up` again.
nobu (Nobuyoshi Nakada)
06:57 AM Bug #11126 (Closed): CSV field converters doesn't attempt to convert nil value.
Applied in changeset trunk|r59643.
----------
Fixed regression to convert blank value at r45497.
[Bug #11126][ruby-core:69088]
hsbt (Hiroshi SHIBATA)
06:57 AM Revision ffb49a7e (git): Fixed regression to convert blank value at r45497.
[Bug #11126][ruby-core:69088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:41 AM Bug #10504 (Closed): Gracefully handle CSV IO file descriptor problems
Applied in changeset trunk|r59642.
----------
Gracefully handle CSV IO when file descriptor closed.
[Bug #10504][ruby-core:66240]
hsbt (Hiroshi SHIBATA)
06:40 AM Revision ede0df3a (git): Gracefully handle CSV IO when file descriptor closed.
[Bug #10504][ruby-core:66240]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:34 AM Bug #12422 (Closed): CSV.Table.== fails to check object type
Applied in changeset trunk|r59641.
----------
Fixed equality method fails when given the object that doesn't support table method.
[Bug #12422][ruby-core:75707]
hsbt (Hiroshi SHIBATA)
06:34 AM Revision 20aed449 (git): Fixed equality method fails when given the object that doesn't support table method.
[Bug #12422][ruby-core:75707]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
06:17 AM Bug #9988 (Closed): CSV does not write headers when :write_headers is true and no rows are added
Applied in changeset trunk|r59640.
----------
Fixed to write_headers option behavior when given no rows.
[Bug #9988][ruby-core:63375]
hsbt (Hiroshi SHIBATA)
06:17 AM Revision 9c38a08f (git): Fixed to write_headers option behavior when given no rows.
[Bug #9988][ruby-core:63375]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
05:32 AM Feature #9147 (Closed): CSV.new option skip_lines should escape String before convert to Regexp
Applied in changeset trunk|r59639.
----------
Escape skip_lines string before convert to Regexp.
It ignored all of lines when given Regexp special characters.
[Feature #9147][ruby-core:58549]
hsbt (Hiroshi SHIBATA)
05:32 AM Revision 2c69f7b2 (git): Escape skip_lines string before convert to Regexp.
It ignored all of lines when given Regexp special characters.
[Feature #9147][ruby-core:58549]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
hsbt (Hiroshi SHIBATA)
04:40 AM Revision 84bc175c (git): pack insn_operand_info and insn_len_info
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:37 AM Revision a4d65027 (git): pack insns_name_info
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:22 AM Revision 7735c1f5 (git): tool/instruction.rb: move logics to templates
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:07 AM Revision 1f89414c (git): insns.inc.tmpl: ensure info size
* template/insns.inc.tmpl (ASSERT_VM_INSTRUCTION_SIZE): static
assertion for VM instruction info tables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:46 AM Revision 066e9a8b (git): signal.c: fatal stack
* signal.c (check_stack_overflow): raise fatal when the last tag
is in danger zone.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
02:42 AM Revision 2f3eef8e (git): signal.c: removed raise_stack_overflow:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:41 AM Revision 59d8fefa (git): * 2017-08-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:41 AM Revision da4ce796 (git): split out struct cont_saved_vm_stack.
* cont.c: introduce `struct cont_saved_vm_stack` which was part of
`struct rb_context_struct`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)

08/21/2017

05:50 PM Bug #13833 (Closed): String#scanf("%a") incorrectly requires a sign on the (binary) exponent
~~~
>> Float("0x1p9")
=> 512.0
> ...
=> 512.0
>> "0x1p+9".scanf("%a")
=> [512.0]
> ...
=> [0.0] # Oops
>> RUBY_VERSION
=> "2.4.1"
~~~
In scanf.rb, there are three regexps that say the equivalent o...
cabo (Carsten Bormann)
02:15 PM Revision 9c927f8c (git): prevent stack overflow
* gc.c: enable PREVENT_STACK_OVERFLOW.
* vm.c (invoke_iseq_block_from_c): prevent stack overflow.
* vm_eval.c (stack_check): raise preallocated exception instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59630 b2dd03c8-39d4-...
nobu (Nobuyoshi Nakada)
01:38 PM Revision 29fa7a9f (git): Remove a meaningless local variable assignment
* iseq.c (rb_iseq_disasm_insn): Remove a meaningless
local variable assignment. `insn` is never changed
in this function, so a result of `insn_op_types(insn)`
is also never changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
yui-knk (Kaneko Yuichiro)
06:46 AM Revision aaac3f8c (git): * 2017-08-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
06:46 AM Revision b54f5355 (git): vm_core.h: ruby_error_stackfatal
* vm_core.h (ruby_special_exceptions): rename sysstack_gc as
stackfatal.
* eval.c (Init_eval): modified the message for stackfatal error as
"critical region".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59627 b2dd03c8-39d4-4d...
nobu (Nobuyoshi Nakada)
06:00 AM Bug #13831: error when try to install
MSP-Greg (Greg L) wrote:
> I'm not that familiar with encoding issues, but I believe CP720 is an older code page.
Yes indeed. CP720 is the DOS encoding for Arabic.
> ...
This should be `chcp 1256`. The command is "change code page...
duerst (Martin Dürst)
01:20 AM Bug #13831: error when try to install
I'm not that familiar with encoding issues, but I believe CP720 is an older code page. IF you enter `cp 1252` in the console, then `gem install sass`, does the gem install?
Regardless, given the nature of your question, the best plac...
MSP-Greg (Greg L)
03:45 AM Bug #13832 (Closed): cfp consistency error occurred in vm_call_cfunc on non-optimized ruby
The following script occurs `[BUG] vm_call_cfunc: cfp consistency error` on ruby that is compiled with `-O0`.
```console
$ cat test.rb
def callback
p :callback
@non_existing_ivar
end
ObjectSpace.define_finalizer(Object.new...
mrkn (Kenta Murata)
01:01 AM Feature #13828: Win32ole extension should support licensed COM servers
nobu (Nobuyoshi Nakada) wrote:
> * use `rb_scan_args` and `rb_get_kwargs`
bug reported in #13830 was resolved, so now I can use `rb_scan_args` and `rb_get_kwargs`. Updated version attached.
graywolf (Gray Wolf)

08/20/2017

05:01 PM Bug #13831 (Closed): error when try to install
ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
C:\Users\K>gem install sass
C:/Ruby24-x64/lib/ruby/2.4.0/win32/registry.rb:72:in `find': unknown encoding name - CP720 (ArgumentError)
from C:/Ruby24-x64/lib/ruby/2.4....
khaledal (khaled alajmi)
06:08 AM Revision 17b3441a (git): non-keywords hash
* class.c (rb_scan_args), include/ruby/ruby.h (rb_scan_args_set):
return non-keywords elements only in the last hash when keyword
arguments are extracted from it, as well as methods defined in
ruby level. [ruby-core:82427] [Bug #1...
nobu (Nobuyoshi Nakada)

08/19/2017

11:39 PM Bug #13830 (Closed): `rb_scan_args`'s result differs based on optimization level
Applied in changeset trunk|r59624.
----------
ruby.h: fix rb_scan_args_trail_idx
* include/ruby/ruby.h (rb_scan_args_trail_idx): fix the case both
of optional and rest arguments are defined.
[ruby-core:82427] [Bug #13830]
* includ...
nobu (Nobuyoshi Nakada)
09:00 PM Bug #13830: `rb_scan_args`'s result differs based on optimization level
Oh and in case it's relevant, here is table of how it behaves under `-O3`.
rb_scan_args|Function call |Result |
============|=======================|==================================|
...
graywolf (Gray Wolf)
08:53 PM Bug #13830 (Closed): `rb_scan_args`'s result differs based on optimization level
I think I've found bug in `rb_scan_args` function. This is my testing script:
require_relative 'test'
Test.test "server", "host", "a", "b", license: "lic"
And this is implementation of my module:
#include <ruby.h>...
graywolf (Gray Wolf)
11:39 PM Revision 9191d9e7 (git): * 2017-08-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:39 PM Revision 3632bd45 (git): ruby.h: fix rb_scan_args_trail_idx
* include/ruby/ruby.h (rb_scan_args_trail_idx): fix the case both
of optional and rest arguments are defined.
[ruby-core:82427] [Bug #13830]
* include/ruby/ruby.h (rb_scan_args_n_trail): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.or...
nobu (Nobuyoshi Nakada)
10:02 AM Revision 9657a6c2 (git): gems/bundled_gems: Update to power_assert 1.1.0
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ktsj (Kazuki Tsujimoto)
09:04 AM Feature #13828: Win32ole extension should support licensed COM servers
nobu (Nobuyoshi Nakada) wrote:
> * adjust indents
Fixed
> ...
Do you mean via ":" in `rb_scan_args`? I tried that at first actually, but had some troubles getting it work (here is what happened: https://gist.github.com/anonymous/7...
graywolf (Gray Wolf)
12:11 AM Feature #13828 (Assigned): Win32ole extension should support licensed COM servers
* adjust indents
* use `rb_scan_args` and `rb_get_kwargs`
* don't mix a declaration with code
nobu (Nobuyoshi Nakada)
03:53 AM Bug #13829 (Closed): NUL char in $0
`$0` and `Process.setproctitle` ignore `\0` and the after.
Is it intentional?
```
$ ruby -e '$0 = "foo\0bar"; system("ps", "#$$"); Process.setproctitle("bar\0foo"); system("ps", "#$$")'
PID TT STAT TIME COMMAND
34931 s00...
nobu (Nobuyoshi Nakada)
03:47 AM Feature #13822 (Feedback): Time.dst_changes(t=Time.now.year)
What are `time1` and `time2`?
If `time1` is the time when DST starts at and `time2` is the time when it ends at, then `time1 > `time2` in the Southern Hemisphere?
And what will return in non-DST timezones?
nobu (Nobuyoshi Nakada)
01:04 AM Revision 1292d2d2 (git): class.c: check kw hash
* class.c (rb_keyword_error_new): get rid of an intermediate
string and check if keys are symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:45 AM Revision 4179fada (git): * 2017-08-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:45 AM Revision 52d35e75 (git): class.c: call rb_hash_keys directly
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

08/18/2017

10:36 PM Feature #13828 (Closed): Win32ole extension should support licensed COM servers
Current implementation doesn't support licensed COM servers. I've added keyword argument `:license` which when used switches to using `IClassFactory2::CreateInstanceLic` instead of `CoCreateInstance`.
Default behaviour was not touched...
graywolf (Gray Wolf)
12:44 PM Revision e3c42f53 (git): vm_insnhelper.c: vm_cfp_consistent_p
* vm_insnhelper.c (vm_cfp_consistent_p): extracted the conditions
for cfp consistency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:41 PM Feature #13770 (Assigned): Can't create valid Cyrillic-named class/module
nobu (Nobuyoshi Nakada)
12:17 PM Revision a7bccb20 (git): vm_insnhelper.c: raise ruby_error_sysstack_gc
* vm_insnhelper.c (rb_threadptr_stack_overflow): rb_fatal is not
available during GC. raise the preallocated fatal error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:59 AM Feature #13827 (Closed): Improve performance of `Base64.urlsafe_encode64`
Improve performance of `Base64.urlsafe_encode64` by avoiding unnecessary memory allocations. This may seem insignificant, but for the web service I am working on this patch makes noticeable improvement.
### Benchmark
~~~ ruby
requ...
Soilent (Konstantin x)
10:01 AM Feature #13812: Refinements で定義した to_s を String interpolation が呼んでくれない
そうですね。
先に答えを出しておくと、この場合のto_sは(そのコンテキストでの呼び出しと解釈できるので)refinementの対象になったほうが良いように思います。
Matz.
matz (Yukihiro Matsumoto)
09:13 AM Feature #13812: Refinements で定義した to_s を String interpolation が呼んでくれない
shugo さん
> Refinements導入時の議論で暗黙のメソッド呼び出しには影響しないようにするという判断が
> ...
なるほど。
> 仕様変更の議論は英語でやった方がよいですかね。
英語で新規にチケットを起票した方が良いでしょうか?
それともこのチケットの Title と Description を編集して英語に書き換えた方がいいですか?
ttanimichi (Tsukuru Tanimichi)
08:18 AM Feature #13812: Refinements で定義した to_s を String interpolation が呼んでくれない
匿名ユーザー wrote:
> 既出だったらすみません。bugs.ruby-lang.org でも検索したんですが
> ...
Refinements導入時の議論で暗黙のメソッド呼び出しには影響しないようにするという判断が
ありましたが、その後一部の暗黙のメソッド呼び出しには影響するようになったので
string interpolationでも使えるようにしてもよいかもしれません。
最終的にはまつもとさんの判断になると思いますが、仕様変更の議論は英語でやっ...
shugo (Shugo Maeda)
05:16 AM Bug #13825 (Closed): IMAPTest#test_starttls hangs
Applied in changeset trunk|r59617.
----------
test/net/imap/test_imap.rb: Use Addrinfo.tcp in case localhost is ::1.
[ruby-dev:50208] [Bug #13825]
shugo (Shugo Maeda)
01:23 AM Bug #13825 (Closed): IMAPTest#test_starttls hangs
IMAPTest#test_starttls hangs.
See http://ci.rvm.jp/results/trunk@P895/4443 for details.
shugo (Shugo Maeda)
05:16 AM Revision bf210cfc (git): test/net/imap/test_imap.rb: Use Addrinfo.tcp in case localhost is ::1.
[ruby-dev:50208] [Bug #13825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:16 AM Feature #13820: Add a nil coalescing operator
williamn (William Newbery) wrote:
> shevegen (Robert A. Heiler) wrote:
> ...
`??` is a string literal, and `//` is a regexp literal.
> ```ruby
> ...
Why not keyword arguments?
nobu (Nobuyoshi Nakada)
 

Also available in: Atom