General

Profile

joker1007 (Tomohiro Hashidate)

Issues

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

Activity

01/11/2022

02:11 PM Ruby Bug #18472 (Closed): rb_w32_map_errno is not found on Ruby-3.1.0
I faced Fiddle::DLError such following.
```
C:/hostedtoolcache/windows/Ruby/3.1.0/x64/lib/ruby/3.1.0/fiddle/import.rb:297:in `import_function': cannot find the function: rb_w32_map_errno() (Fiddle::DLError)
from C:/hostedtoolcache/...
joker1007 (Tomohiro Hashidate)

11/05/2020

07:57 AM Ruby Bug #17289: Time#strftime occurs Segmentation Fault on ruby-2.7.2p137
FYI:
I downgraded ruby to v2.7.1.
But in our environment, this error occurred with the same stacktrace.
joker1007 (Tomohiro Hashidate)

10/27/2020

12:35 PM Ruby Bug #17289: Time#strftime occurs Segmentation Fault on ruby-2.7.2p137
Additional Information:
* I used to use v2.6.2 and Segmentation fault does not occur at that time.
* This stacktrace is reproducible. whenever this error occurs the stacktrace is the same.
joker1007 (Tomohiro Hashidate)
12:29 PM Ruby Bug #17289 (Feedback): Time#strftime occurs Segmentation Fault on ruby-2.7.2p137
Segmentation Fault occurred when I run Time#strftime via Time#iso8601 on ruby-2.7.2.
It occurs repeatedly about once a day in our system.
Because it was not possible to make a reproduction case in a simple environment, I share the C Le...
joker1007 (Tomohiro Hashidate)

05/28/2019

05:28 AM Ruby Feature #15879: Proposal: Time#to_i accepts :unit keyword
> In contrast to this, your proposal with Time#to_i seems to return rounded results even though the method name is to_i. I think this is confusing. Is this your intention?
It is not important whether the result is rounded or truncated...
joker1007 (Tomohiro Hashidate)

05/27/2019

09:22 AM Ruby Feature #15879 (Open): Proposal: Time#to_i accepts :unit keyword
I often need Unix time as microseconds or nanoseconds to serialize for other language environments.
For example, Java uses milliseconds(nanoseconds) basically.
In such a situation, current Ruby code is like below.
``` ruby
{
e...
joker1007 (Tomohiro Hashidate)

11/01/2018

07:59 AM Ruby Feature #14836: Method to return first/last lineno/column of Proc
Great work!!
What I want is this!
If ruby-trunk merges this patch, I will try to use.
joker1007 (Tomohiro Hashidate)

06/08/2018

10:14 AM Ruby Feature #14836: Method to return first/last lineno/column of Proc
I want this feature too.
I wrote a rubygem that parses proc and converts to AST::Node (of ast gem).
To inspect proc source code is main purpose.
https://github.com/joker1007/proc_to_ast
Usage example.
~~~ ruby
# this is sam...
joker1007 (Tomohiro Hashidate)

03/15/2018

07:59 AM Ruby Feature #14606 (Open): Change begin-else-end without rescue from warning to syntax error
~~~ ruby
begin
p :foo
else
p :bar
end
# => :foo
# => :bar
~~~
~~~ ruby
[1,2,3].each do
p :foo
else
p :bar
end
# => :foo
# => :bar
~~~
begin-else-end without rescue is useless and dangerous. (especially, ...
joker1007 (Tomohiro Hashidate)

10/13/2017

11:32 AM Ruby Bug #14012 (Rejected): NameError is raised when use class variables in Refinements
Sorry in advance if other ticket exists.
In a case, Reference to class variables raises unnatural NameError.
A class variable is defined in a module.
And include the module in "refine" block.
Refined method cannot use the class ...
joker1007 (Tomohiro Hashidate)

Also available in: Atom