← Graph

Declare gem runtime dependencies in the gemspec

takeaway 3 connections

Takeaway: if your engine depends on another gem (e.g. Pundit) at runtime, declare it with `spec.add_dependency` in the gemspec so `bundle install` in the host app pulls it in automatically. Trusting users to read documentation leads to broken installs and bad reviews.

type
recommendation
takeaway Declare gem runtime dependencies in the gemspec
about
gemspec concept
Takeaway about correctly using the gemspec file.
takeaway Declare gem runtime dependencies in the gemspec
about
Pundit tool
Pundit is used as the example runtime dependency.
takeaway Declare gem runtime dependencies in the gemspec
from_talk
Recommendation from the gemspec walkthrough.

Provenance