-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle breaking changes for Rails 8.0
- Loading branch information
1 parent
3122206
commit ed25b5c
Showing
5 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# frozen_string_literal: true | ||
|
||
return unless defined?(Rails::Command::StatsCommand) | ||
|
||
Rails::CodeStatistics.directories.clear | ||
Rails::CodeStatistics.test_types.clear | ||
|
||
%w[Controllers Finders GraphQL GRPC Jobs Mailers Models Policies Services].each do |type| | ||
Rails::CodeStatistics.register_directory(type, "app/#{type.downcase}") | ||
end | ||
|
||
%w[Config DB Lib Tooling].each do |type| | ||
Rails::CodeStatistics.register_directory(type, type.downcase) | ||
end | ||
|
||
%w[Config Finders GraphQL GRPC Lib Models Policies Requests Services Tooling].each do |type| | ||
Rails::CodeStatistics.register_directory("#{type} specs", "spec/#{type.downcase}", test_directory: true) | ||
end | ||
|
||
%w[factories support].each do |type| | ||
Rails::CodeStatistics.register_directory("Spec #{type}", "spec/#{type}", test_directory: true) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters