Skip to content

Commit

Permalink
Update article
Browse files Browse the repository at this point in the history
  • Loading branch information
r7kamura committed Dec 1, 2024
1 parent 578857e commit 2406ba6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion articles/2024-11-30-gemfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ end

独立して使われるgemは別のgem groupに分ける。

例えばRailsアプリの開発において、rubocopやbrakemanなどの静的解析ツールは、Railsの実行時に使うgem群と同時に読み込む必要がない。こういった場合、gem groupを適切に分けておくことで、結果的にCIでインストールするべきgemの数を減らたり、`require: false` オプションの記述を省けたりといった恩恵がある。
例えばRailsアプリの開発において、rubocopやbrakemanなどの静的解析ツールは、Railsの実行時に使うgem群と同時に読み込む必要がない。
こういった場合、gem groupを適切に分けておくことで、結果的にCIでインストールするべきgemの数を減らたり、`require: false` オプションの記述を省けたりといった恩恵がある。

悪い例:

Expand Down

0 comments on commit 2406ba6

Please sign in to comment.