diff --git a/packages/dep_shield/Gemfile b/packages/dep_shield/Gemfile index 2873662e..b6b024fe 100644 --- a/packages/dep_shield/Gemfile +++ b/packages/dep_shield/Gemfile @@ -6,7 +6,7 @@ source "https://rubygems.org" gemspec gem "nokogiri", "< 1.16" +gem "rails", "<= 7.0.6" gem "rake", "~> 13.0" gem "rspec", "~> 3.0" gem "rubocop-powerhome", path: "../rubocop-powerhome" -gem "rails", "<= 7.0.6" diff --git a/packages/dep_shield/lib/dep_shield/railtie.rb b/packages/dep_shield/lib/dep_shield/railtie.rb index ab484e86..685050a8 100644 --- a/packages/dep_shield/lib/dep_shield/railtie.rb +++ b/packages/dep_shield/lib/dep_shield/railtie.rb @@ -11,7 +11,7 @@ class Railtie < Rails::Railtie callstack = payload[:callstack] || caller DepShield.raise_or_capture!(name: name, message: message, callstack: callstack) - end + end end end end diff --git a/packages/dep_shield/spec/dep_shield/railtie_spec.rb b/packages/dep_shield/spec/dep_shield/railtie_spec.rb index e94a6ad3..4d505c27 100644 --- a/packages/dep_shield/spec/dep_shield/railtie_spec.rb +++ b/packages/dep_shield/spec/dep_shield/railtie_spec.rb @@ -8,11 +8,11 @@ receive(:raise_or_capture!) .with(name: "deprecation.rails", message: "This has been so deprecated", callstack: ["file1.rb", "file2.rb"]) ) - + ActiveSupport::Notifications.instrument( "deprecation.rails", message: "This has been so deprecated", callstack: ["file1.rb", "file2.rb"] - ) + ) end end