Skip to content

Commit

Permalink
Bump actions/setup-python from 4 to 5 (#110)
Browse files Browse the repository at this point in the history
* Bump actions/setup-python from 4 to 5

Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](actions/setup-python@v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Make rubocop happy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bartek Wilczek <bartek.wilczek@toptal.com>
  • Loading branch information
dependabot[bot] and bwilczek authored Dec 21, 2023
1 parent 1876a6e commit 6fde6c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- uses: actions/cache@v3
Expand Down
6 changes: 3 additions & 3 deletions lib/granite/action/subject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ module Granite
class Action
class SubjectNotFoundError < ArgumentError
def initialize(action_class)
super "Unable to initialize #{action_class} without subject provided"
super("Unable to initialize #{action_class} without subject provided")
end
end

class SubjectTypeMismatchError < ArgumentError
def initialize(action_class, candidate, expected)
super "Unable to initialize #{action_class} with #{candidate} as subject, expecting instance of #{expected}"
super("Unable to initialize #{action_class} with #{candidate} as subject, expecting instance of #{expected}")
end
end

Expand Down Expand Up @@ -48,7 +48,7 @@ def initialize(*args)
subject_attributes = extract_subject_attributes!(attributes, reflection)
assign_subject(args, subject_attributes, reflection)

super attributes
super(attributes)
end

private
Expand Down
4 changes: 2 additions & 2 deletions lib/granite/action/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ module Transaction
def run_callbacks(event)
if event.to_s == 'commit'
begin
super event
super(event)
rescue *handled_exceptions => e
handle_exception(e)
end
else
super event
super(event)
end
end

Expand Down

0 comments on commit 6fde6c0

Please sign in to comment.