1. X
  2. Masafumi Koba
Log inSign up
Masafumi Koba
6,493 posts
Image
user avatar
Masafumi Koba
@ybiquitous
Programmer / Rubyist / @stylelint maintainer github.com/ybiquitous
Tokyo
ybiquitous.me
Joined October 2017
215
Following
174
Followers
RepliesRepliesMediaMedia
  • user avatar
    Masafumi Koba
    @ybiquitous
    Jul 16
    DependabotのCooldownがデフォルトで3日になったらしい。これで毎回dependabot.ymlに書く必要なくなるので便利
    Image
    Dependabot version updates introduce default package cooldown - GitHub Changelog
    From github.blog
  • user avatar
    Masafumi Koba
    @ybiquitous
    Jul 15
    bugs.ruby-lang.org/issues/1720
    user avatar
    Masafumi Koba
    @ybiquitous
    Jul 15
    github.com/advisories/GHS… を眺めてて ```ruby Float::NAN == Float::NAN #=> false Float::NAN.nan? #=> true ``` だということを初めて知った(JSのNumber.isNaNと同様)
  • user avatar
    Masafumi Koba
    @ybiquitous
    Jul 15
    github.com/advisories/GHS… を眺めてて ```ruby Float::NAN == Float::NAN #=> false Float::NAN.nan? #=> true ``` だということを初めて知った(JSのNumber.isNaNと同様)
    Image
    github.com
    CVE-2026-54904 - GitHub Advisory Database
    Concurrent Ruby : `AtomicReference#update` livelocks when the stored value is `Float::NAN`
  • user avatar
    Masafumi Koba
    @ybiquitous
    Jun 6
    batを使ってriコマンドをrichにする方法を見つけた。 export RI='--format=markdown'export RI_PAGER='bat --language=markdown' ri この設定はirbのshow_docでも有効になる。便利。 詳細はこちらのGist。 gist.github.com/ybiquitous/ffd…
    ri Object
  • user avatar
    Masafumi Koba
    @ybiquitous
    May 29
    Rubyにこういうのが定期的に欲しくなる。定数だとstubしにくい・実装変えにくい。 class Module def class_reader(name, value) define_singleton_method(name) { value } end end class Foo class_reader :default_list, [:foo].freeze end Foo.default_list #=> [:foo]

Log in or sign up for X

See what’s happening and join the conversation

Continue with phone
or
Log in with username or email
Terms·Privacy·Cookies·Accessibility·Ads Info·© 2026 X Corp.
Advertisement
Advertisement