Gemを初公開しました
ask_year_monthという、
レシーバが何月なのか、
月名でスマートにチェックできるメソッドを生やすGemを公開しました。
月名で確認できなくて地味にモヤッとしたんですよね。
例えば、
Time.current.month == 12
#=> true
よりも、
Time.current.december?
#=> true
のが見やすいよなーという。
ご興味がある方は良かったら使ってみてください。
RubyGems
GitHub
参考記事
RailsプラグインGemの作成方法、RSpecテストまで含めたrails pluginの作り方