General

Profile

osyo (manga osyo)

  • Login: osyo
  • Registered on: 11/29/2017
  • Last sign in: 09/13/2024

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 4 27 31

Activity

09/15/2024

07:15 PM Ruby Bug #20726: Issue with hash without braces when assigned to constant with ractor literals
This problem was not reproduced with `--parser=prism`, but with `--parser=parse.y`.
```ruby
# shareable_constant_value: literal
# test.rb
puts RUBY_DESCRIPTION
A = [a: 1]
p A
```
```shell
$ ruby --parser=prism test.rb
r...
osyo (manga osyo)

09/13/2024

11:59 AM Ruby Feature #20738: Removing a specific entry from a hash literal
How about using `**`?
```ruby
def bar? = false
{
foo: 1,
**(bar? ? { bar: 2 } : {})
}
# => {:foo=>1}
```
Also, you can use `**nil` in ruby 3.4-dev.
```ruby
def bar? = false
{
foo: 1,
**({ bar: 2 } if bar?)...
osyo (manga osyo)

12/13/2023

03:33 PM Ruby Bug #20062 (Closed): Numbered parameters are broken in Ruby 3.3-dev
Define Numbered parameters and a method in one block and then reference Numbered parameters in another block, you will get a SyntaxError in Ruby 3.3.
This is not a problem in Ruby 3.2.
```ruby
'a'.tap do
p _1
def f1; end
en...
osyo (manga osyo)

07/27/2023

09:08 AM Ruby Revision ccca097c (git): [ruby/reline] Add `kill-word` and `backward-kill-word` keymapping
support.
(https://github.com/ruby/reline/pull/570)
Fix it
https://github.com/ruby/reline/issues/558
https://github.com/ruby/reline/commit/0f8000443e
Co-authored-by: Stan Lo <stan001212@gmail.com>
osyo (manga osyo)

07/18/2023

08:33 PM Ruby Revision 45fd0061 (git): [ruby/reline] Fix [nil] is passed to auto_indent_proc when exit with
CTRL+d
(https://github.com/ruby/reline/pull/571)
* Fix [nil] is passed to auto_indent_proc when exit with CTRL+d
Fix it https://github.com/ruby/reline/issues/556
* not call auto_indent_proc when Ctrl+d.
see: https://github.com/ruby/r...
osyo (manga osyo)

10/15/2022

03:13 PM Ruby Feature #19045: [Proposal] Add support Data#pretty_print
nobu (Nobuyoshi Nakada) wrote in #note-4:
> `"3.2" <= RUBY_VERSION` won't work when `RUBY_VERSION` is "3.10", but probably never.
> ...
Sorry for the delay in replying.
Thank you.
osyo (manga osyo)

10/14/2022

12:31 PM Ruby Feature #19045 (Closed): [Proposal] Add support Data#pretty_print
Applied in changeset commit:git|7b7e5153e81288fe57ae64f2e1db228435156aeb.
----------
[ruby/pp] [Feature #19045] Add support Data#pretty_print
https://github.com/ruby/pp/commit/343a20d721
osyo (manga osyo)
12:31 PM Ruby Revision 7b7e5153 (git): [ruby/pp] [Feature #19045] Add support Data#pretty_print
https://github.com/ruby/pp/commit/343a20d721 osyo (manga osyo)

10/10/2022

08:49 AM Ruby Feature #19045: [Proposal] Add support Data#pretty_print
nobu (Nobuyoshi Nakada) wrote in #note-2:
> Since `pp.rb` is a part of a default gem now, you have to consider the compatibility with older versions.
Thanks.
I've tried to fix it, but what do you think.
https://github.com/ruby/ruby...
osyo (manga osyo)
04:15 AM Ruby Feature #19045 (Closed): [Proposal] Add support Data#pretty_print
While trying out the `Data` library I noticed that `Data#pretty_print` is not supported.
`Data#inspect` included members, but `Data#pretty_print` does not.
```ruby
require "pp"
D = Data.define(:hoge, :foo, :bar)
data = D.new("ho...
osyo (manga osyo)

Also available in: Atom