Using this in the plugin.rb file will always try to fetch the gem from Rubygems - it won’t use the locally installed version. I think your options are:
-
Push your customized version of the gem to rubygems, remove the
>> Gemfilehack, and use theplugin.rbgemAPI to install it. -
Remove the
>> Gemfilehack, set up a private rubygems server and install like:gem 'omniauth-ldap-i18n', '1.0.0', source: "https://mygemserver.example.com" -
Add Git support to our plugin gem loader. If you can do it without affecting existing functionality, this would be pr-welcome
-
Remove the
gemmethod call fromplugin.rb. Since you have the>> Gemfilehack, the gem should be automatically available within Discourse. But I would stress that this is a hack - we can’t guarantee overriding core files like this will work perfectly forever.