General

Profile

masarakki (masaki yamada)

  • Login: masarakki
  • Email: masaki182@gmail.com
  • Registered on: 07/20/2011
  • Last sign in: 03/24/2019

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 2 4

Activity

03/22/2019

06:25 AM Ruby Feature #15721 (Open): optimize comparison of special const
## Description
optimize comparison between special consts in `comparable_by_identity`.
it is called from `==` .
## Benchmark
```ruby
num_array = Array.new(1_000_000) { 1 }
num_array.include? nil
# 0.156 => 0.0089 ...
masarakki (masaki yamada)

10/28/2015

12:37 PM Ruby Bug #11631 (Closed): OpenURI.redirectable? が http -> https の時もfalseを返す
コメントによると
# https to http redirect is also forbidden intentionally.
# It avoids sending secure cookie or referer by non-secure HTTP protocol.
となっていますが、
この変更がされた時にリダイレクト先のチェックでも https を禁止してしまっています。
http to https を禁止する理由は無さそうなんですが、この動作...
masarakki (masaki yamada)

07/17/2015

08:31 AM Ruby Feature #11361 (Open): proposal for easy method to nil-guard for generated variable name.
It's easy to 'nil-guard' for normal variable.
~~~
def user
@user ||= User.find(1)
end
~~~
but it's not simple for generated variable name.
~~~
def user(id)
variable_name = "@user_#{id}"
instance_variable_set(var...
masarakki (masaki yamada)

02/25/2013

06:15 AM Ruby Bug #7949 (Closed): Gem::Ext::Builder removes dependency to directory creation task
lib/rubygems/ext/builder.rb:22 removes dependency to ./RUBYARCHDIR.time,
so lib directory creation task won't be run.
thus for instance when tried to install rubyzip.gem which doesn't have lib directory,
rubygem makes binary file "l...
masarakki (masaki yamada)

Also available in: Atom