-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We have not updated our rubocop version in a while. Let's bring in all the security patches, updates, and bugfixes that we can. Note that we also had to add appraisal to cygnet and rubocop-cobra to avoid dependency issues between ruby and rails versions.
- Loading branch information
Showing
72 changed files
with
2,195 additions
and
540 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
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
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
14 changes: 6 additions & 8 deletions
14
packages/audit_tracker/spec/internal/config/initializers/audit_tracker.rb
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
# rubocop:disable RSpec/FactoryBot/ConsistentParenthesesStyle | ||
AuditTracker.setup do | ||
tracker(:user) do | ||
create :created_by, foreign_key: :created_by_id, class_name: "::Internal::User" | ||
update :updated_by, foreign_key: :updated_by_id, class_name: "::Internal::User" | ||
create(:created_by, foreign_key: :created_by_id, class_name: "::Internal::User") | ||
update(:updated_by, foreign_key: :updated_by_id, class_name: "::Internal::User") | ||
value { Internal::Current.user } | ||
end | ||
|
||
tracker(:department) do | ||
create :created_by_department, foreign_key: :created_by_department_id, | ||
create(:created_by_department, foreign_key: :created_by_department_id, | ||
class_name: "::Internal::Department", | ||
value: ->(object) { object&.created_by&.department } | ||
update :updated_by_department, foreign_key: :updated_by_department_id, | ||
value: ->(object) { object&.created_by&.department }) | ||
update(:updated_by_department, foreign_key: :updated_by_department_id, | ||
class_name: "::Internal::Department", | ||
value: ->(object) { object&.updated_by&.department } | ||
value: ->(object) { object&.updated_by&.department }) | ||
end | ||
end | ||
# rubocop:enable RSpec/FactoryBot/ConsistentParenthesesStyle |
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
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
1 change: 1 addition & 0 deletions
1
packages/camel_trail/spec/dummy/config/initializers/inflections.rb
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
1 change: 1 addition & 0 deletions
1
packages/camel_trail/spec/dummy/config/initializers/mime_types.rb
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
Oops, something went wrong.