Module: DepShield
- Defined in:
- lib/dep_shield.rb,
lib/dep_shield/todos.rb,
lib/dep_shield/railtie.rb,
lib/dep_shield/version.rb,
lib/dep_shield/deprecation.rb
Defined Under Namespace
Classes: Deprecation, Error, Railtie, Todos
Constant Summary collapse
- VERSION =
"0.3.1"
Class Method Summary collapse
-
.raise_or_capture!(name:, message:, callstack: caller) {|scope| ... } ⇒ Event?
Takes a deprecation message string.
- .todos ⇒ Object
Class Method Details
.raise_or_capture!(name:, message:, callstack: caller) {|scope| ... } ⇒ Event?
Takes a deprecation message string. Warns, then raises or reports to Sentry
37 38 39 40 41 |
# File 'lib/dep_shield.rb', line 37 def raise_or_capture!(name:, message:, callstack: caller, **) ::DepShield::Deprecation.new( name: name, message: , callstack: callstack ).raise_or_capture! end |