getsentry / sentry-ruby

Sentry SDK for Ruby
https://sentry.io/for/ruby
MIT License
927 stars 493 forks source link

Add generator for initializer generation #2286

Closed st0012 closed 4 months ago

st0012 commented 5 months ago

Usage

$ bin/rails generate sentry 
$ bin/rails generate sentry --dsn my_dsn

Implements #2218

codecov[bot] commented 5 months ago

Codecov Report

Merging #2286 (d9c2ae7) into master (0b318c0) will decrease coverage by 0.01%. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2286 +/- ## ========================================== - Coverage 98.72% 98.72% -0.01% ========================================== Files 200 202 +2 Lines 13253 13282 +29 ========================================== + Hits 13084 13112 +28 - Misses 169 170 +1 ``` | [Components](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | Coverage Δ | | |---|---|---| | [sentry-ruby](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `99.10% <ø> (ø)` | | | [sentry-rails](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `97.37% <100.00%> (+0.03%)` | :arrow_up: | | [sentry-sidekiq](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `96.98% <ø> (ø)` | | | [sentry-resque](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `96.76% <ø> (-0.33%)` | :arrow_down: | | [sentry-delayed_job](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `98.91% <ø> (ø)` | | | [sentry-opentelemetry](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | `100.00% <ø> (ø)` | | | [Files](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry) | Coverage Δ | | |---|---|---| | [sentry-rails/lib/generators/sentry\_generator.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286?src=pr&el=tree&filepath=sentry-rails%2Flib%2Fgenerators%2Fsentry_generator.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJhaWxzL2xpYi9nZW5lcmF0b3JzL3NlbnRyeV9nZW5lcmF0b3IucmI=) | `100.00% <100.00%> (ø)` | | | [sentry-rails/spec/sentry/generator\_spec.rb](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286?src=pr&el=tree&filepath=sentry-rails%2Fspec%2Fsentry%2Fgenerator_spec.rb&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry#diff-c2VudHJ5LXJhaWxzL3NwZWMvc2VudHJ5L2dlbmVyYXRvcl9zcGVjLnJi) | `100.00% <100.00%> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/getsentry/sentry-ruby/pull/2286/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=getsentry)