Skip to content

Commit

Permalink
Merge pull request #4080 from zendesk/zendesk-mattlefevre/upgrade-aud…
Browse files Browse the repository at this point in the history
…ited-gem

Bump audited gem to latest
  • Loading branch information
zendesk-mattlefevre authored Nov 17, 2023
2 parents 88a7a43 + 7c04166 commit d4e1c6d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ GEM
ast (2.4.1)
attr_encrypted (3.1.0)
encryptor (~> 3.0.0)
audited (4.10.0)
activerecord (>= 4.2, < 6.2)
audited (5.4.2)
activerecord (>= 5.0, < 7.2)
request_store (~> 1.2)
autoprefixer-rails (9.4.8)
execjs
awesome_print (1.6.1)
Expand Down
4 changes: 2 additions & 2 deletions app/models/stage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ def locked_by?(lock)

private

def audited_changes
super.merge(script_changes)
def audited_changes(...)
super.merge(**script_changes)
end

def script_changes
Expand Down
2 changes: 1 addition & 1 deletion plugins/env/decorators/project_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def environment_variable_group_ids=(*)
super
end

def audited_changes
def audited_changes(...)
super.merge(environment_variables_changes)
end

Expand Down
2 changes: 1 addition & 1 deletion test/integration/cleanliness_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def assert_content(files)
next if association.name == :audits # should never be destroyed
next if association.options.key?(:through) # already cleaned up via through relation
next if association.options.key?(:dependent) # already defined
next if association.is_a?(Doorkeeper::Application) && association.name == :authorized_tokens
next if association.name == :authorized_tokens # removed only when user is deleted; otherwise soft deleted
"#{model.name} #{association.name}"
end
end.compact
Expand Down

0 comments on commit d4e1c6d

Please sign in to comment.