Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunior committed Feb 9, 2024
1 parent f3ee03f commit d1cc4b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/dep_shield/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion packages/dep_shield/lib/dep_shield/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions packages/dep_shield/spec/dep_shield/railtie_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d1cc4b9

Please sign in to comment.