mtsmfm (Fumiaki Matsushima)
- Login: mtsmfm
- Email: mtsmfm@gmail.com
- Registered on: 08/21/2014
- Last sign in: 12/31/2022
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 3 | 7 | 10 |
Activity
09/28/2020
-
02:11 AM Ruby Feature #15815: Add option to raise NoMethodError for OpenStruct
- Cool.
It's much better API to integrate with `JSON.parse`.
08/13/2019
-
09:30 AM Ruby Feature #15815: Add option to raise NoMethodError for OpenStruct
- ko1-san
Sorry for being late.
I've added https://bugs.ruby-lang.org/issues/15996?next_issue_id=15993&prev_issue_id=15998#note-17 -
09:29 AM Ruby Misc #15996: DevelopersMeeting20190829Japan
- * [Feature #15815] Add option to raise NoMethodError for OpenStruct (mtsmfm)
* We can use `Symbol#to_proc` with enumerable stuff when we use OpenStruct instead of Hash. For example: `OpenStruct.new(JSON.parse(users)).map(&:id)`
* B...
05/01/2019
-
01:52 PM Ruby Feature #15815 (Assigned): Add option to raise NoMethodError for OpenStruct
- GitHub PR: https://github.com/ruby/ruby/pull/2164
Currently, `OpenStruct#method_missing` returns `nil` even if the key isn't registered.
```ruby
require 'ostruct'
os = OpenStruct.new({a: 1})
os.a #=> 1
os.b #=> nil
```
I'd ...
08/06/2018
-
06:27 PM Ruby Feature #14938: Provide API to get same result as ruby -wc
- > This warning dispatches on_arg_ambiguous method.
> ...
How can I find the list of all events for warning and compile error?
When should I use compile_error?
https://docs.ruby-lang.org/en/2.5.0/Ripper.html#method-i-compile_error
...
07/29/2018
-
04:37 PM Ruby Feature #14938: Provide API to get same result as ruby -wc
- Hmm, I tried `warn` but it doesn't work in some case:
~~~ruby
#!/usr/bin/ruby
require 'ripper'
require 'tempfile'
class Lint < Ripper
def warn(*s)
@results << [:warning, lineno, column, *s]
end
alias warning warn
...
07/26/2018
-
03:21 PM Ruby Feature #14938: Provide API to get same result as ruby -wc
- I want to get 3 things.
1. Type (warning or error)
2. Message
3. Location
I think location interface should be the same as RubyVM::AST::Node
https://ruby-doc.org/core-2.6.0.preview2/RubyVM/AST/Node.html
My proposal is the f...
07/25/2018
-
03:58 PM Ruby Feature #14938 (Open): Provide API to get same result as ruby -wc
- I'm the author of an implementation of Ruby Language Server.
Currently, it uses `RubyVM::InstructionSequence.compile` to get the result of `ruby -wc` and parses message and location by regexp.
https://github.com/mtsmfm/language_serve...
10/25/2017
-
03:42 AM Ruby Misc #14050 (Closed): Is snapshot only provided in zip?
- As far as I know, since 2017/10/22, a snapshot hasn't been provided except zip format.
https://cache.ruby-lang.org/pub/ruby/snapshot.tar.gz
Is this intentional?
08/15/2017
-
02:00 PM Ruby Bug #13412: Infinite recursion with define_method may cause silent SEGV or cfp consistency error
- I reproduced this bug with 2.2.7, 2.3.4 and 2.4.1.
~~~
docker run ruby:2.2.7-alpine ruby -e 'define_method(:foo) { foo }; loop { 1.times { 1.times { begin; foo; rescue Exception; nil; end } } }'
docker run ruby:2.3.4-alpine ruby -e ...