-
Notifications
You must be signed in to change notification settings - Fork 118
Redmine5 finalization #815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ents Ruby 3.0 does not implicitly destructure a Hash into keyword arguments if it was the last parameter to a method call. Also handle explicitely delegate keyword arguments.
Seems we only want an optional hash not keyword arguments so remove the double sprat and set a default empty hash value.
…Cache>::Timezone Typo Timezone.new instead of Time.zone.now
|
Thanks a lot for this work. I see all tests are still failing when running |
Agreed, that's a must have! I'll work on it. Not sure though how long the build has been broken, but at first look, it looks related to some dependencies (like redmine_sidekiq) not being compatible with Rails 6. |
This new gitolite-rugged version brings rugged v1.5.x instead of v1.1.x, which allows gitolite-rugged to specify credentials when pushing to a git (which is expected for it to work correctly). By the way: * pkg-config is necessary to build rugged native C extensions; * starting from v1.5, rugged expects an explicit setting to build with SSH support, which is expected by redmine_git_hosting to work correctly (see: https://github.com/libgit2/rugged/tree/v1.5.0#options)
|
Damned, I accidentally merged the commit into @dosyfier would you mind opening a new (draft) PR with the rest of you work please ? |
|
Hi @PowerKiKi, It looks like the patches brought by redmine_git_hosting (from the # Set up autoload of patches
Rails.config.to_prepare do
# Redmine Git Hosting Libs and Patches
RedmineGitHosting.load_plugin!
# Redmine SCM adapter
require_dependency 'redmine/scm/adapters/xitolite_adapter'
require 'hrack/bundle'
endbut it isn't called at Redmine startup. I attempted to change I'm no rails expert, so it may take me some time to investigate, but I'll try again probably next weekend, and hopefully I'll open a new PR :) |
|
Not an answer but clues: in redmine_plugin_loader autoload_libs is the function that copes with lib/redmine_git_hosting/ subdirs. As far as I know rails now uses zeitwerk autoloaders which autoload all ruby classes matching their file hierarchy (ie /lib/redmine_git_hosting/test.rb when it contains the definition of RedmineGitHosting::test.rb. ie from https://guides.rubyonrails.org/autoloading_and_reloading_constants.html
I did add /lib to the autoloader path in my patchset. You might want to try with the code for that too, ie https://github.com/jbox-web/redmine_git_hosting/pull/807/files#diff-4afdb3c3c34a069c37756ebaee5883f21565d29c7730ba4565b88aa809d226cc . haru/redmine_wiki_extensions@91499cc It fixed a: |
|
Hi @prahal, Actually, your Anyway, I think I managed to make it work with 23d1541. |
With the works of @PowerKiKi and @prahal, I managed to make redmine_git_hosting plugin work with Redmine 5.
Here is a recap of what this PR brings to the existing "redmine5" branch:
With these changes, here's what I was able to test:
Nota: This PR is based upon the work done in following PRs: