Describe the bug
The sentry-rails gem depends on Rails and so brings in all of the Rails gems, even if the host project's Gemfile only requires a minimal set of gems
To Reproduce
Run bundle install using a Gemfile like so:
gem "activerecord", "~> 6.1.1"
gem "actionmailer", "~> 6.1.1"
gem "actionpack", "~> 6.1.1"
gem "sentry-ruby"
gem "sentry-rails"
Expected behavior
Only activerecord,actionmailer, and actionpack are installed from Rails
Actual behavior
All Rails gems are brought in
Environment
I think the sentry-rails gem should warn and fail gracefully when the parts of Rails it needs are missing, but not actually require Rails itself.
I think the sentry-rails gem should warn and fail gracefully when the parts of Rails it needs are missing, but not actually require Rails itself.
I disagree with this. since the gem is called sentry-rails, it makes sense to specify rails as a dependency. manually checking each component's presence would increase the maintenance effort significantly. I understand the use case of minimal Rails apps, but we don't have the resource to break the support down to individual components' level.