rastam on rails

東京在住のマレーシア人 Rubyist

Ruby Weekly #478: 日本語サマリー

rubyweekly.com

Highlights

Ruby 2.7.0 Preview 3 Released

来月リリースされる Ruby 2.7 の最後の preview リリース。

The .: Syntax For Referencing Methods Is Cancelled

Ruby 2.7 から取り下げられた .:。重いと訴える記事は先々週の Ruby Weekly にも載ってた。

Using UUIDs in Rails 6 with Postgres and ActiveRecord

Rails 6 + Postgres の PK を UUID に移行させる手順。

Articles & Tutorials

Configurable Ruby Modules: The Module Builder Pattern

dry-rbShrine gem で活用されているモジュールビルダーパターンの解説。

Some Surprising Behaviour of Empty Arrays

[].all?true を返しちゃう GOTCHA。

Bulk Inserting Records in Rails 6

Rails 6 に追加された insert_allupsert_all。おかげで activerecord-import が不要になる。

Faking External Services in Tests with Adapters

アダプターパターンで外部サービスをテストから叩かないようにする方法。

Track Email Statuses in Rails with SendGrid

メール開封時のイベントなどで SendGrid のウェブフックから叩かれるエンドポイント実装手順。

Code and Tools

Artichoke: A Ruby Made with Rust

Rust 製 Artichoke VM を RubyConf で発表したスライド。

Rails 5.2.4 Released

メンテパッチだけの Rails 5.2.4 リリース。

Carmen: A Repository of Geographic Regions for Ruby

世界各国の地域情報用 gem。