Plugin using own gem

Gems declared in a plugin are installed and loaded differently as per our implementation:

https://github.com/discourse/discourse/blob/master/lib/plugin/instance.rb#L353-L381

In order to get it to work, you’ll have to specify all the gem’s dependencies which are not already included in the Gemfile.

8 Likes