Skip to content

Commit 6541484

Browse files
More ruby3 bug fixes
1 parent 02d03e4 commit 6541484

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: lib/redmine_git_hosting/patches/projects_controller_patch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def hierarchy_to_update
103103

104104
def destroy_repositories(repositories_list)
105105
options = { message: "User '#{User.current.login}' has destroyed project '#{@project}', delete all Gitolite repositories !" }
106-
gitolite_accessor.destroy_repositories repositories_list, options
106+
gitolite_accessor.destroy_repositories repositories_list, **options
107107
end
108108

109109
def repositories_to_destroy

Diff for: lib/redmine_git_hosting/patches/roles_controller_patch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def permissions
3131

3232
def call_gitolite(message)
3333
options = { message: "Role has been #{message}, resync all projects (active or closed)..." }
34-
gitolite_accessor.update_projects 'active_or_closed', options
34+
gitolite_accessor.update_projects 'active_or_closed', **options
3535
end
3636
end
3737
end

Diff for: lib/redmine_git_hosting/patches/watchers_controller_patch.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def update_repository(repo)
3333
return unless repo.is_a? Repository::Xitolite
3434

3535
options = { message: "Watcher changes on repository '#{repo}', update!" }
36-
gitolite_accessor.update_repository repo, options
36+
gitolite_accessor.update_repository repo, **options
3737
end
3838
end
3939
end

0 commit comments

Comments
 (0)