Hi, I am building a plugin for Discourse using external gems. I’ve already incorporated some suggestions from other posts regarding the use of external gems, such as Requiring external gems and Plugin using own gem - #3 by kgish. These suggestions involve adding additional packages needed for the external packages used. It works well for developing a plugin for Discourse. However, sometimes, after each Discourse update, I encounter errors related to conflicts in gem versions when rebuilding Discourse with the plugin and the latest version of Discourse.
here an example of an error
rake aborted! Gem::LoadError: can't activate addressable-2.8.4, already activated addressable-2.8.5
I’ve observed a similar situation in other plugins, as seen in some cases in the following forum posts: Install discourse failed due to Custom Wizard plugin and Failed to Bootstrap after upgrade.
Currently, the solution I’ve been trying is to update the package to the latest version, aligning it with the version used in Discourse Core.
However, I’d like to inquire whether there is a solution to this issue that doesn’t require updating the package to match the latest version in Discourse Core each time I want to update.