Installing own gem in plugin

I want to install ‘omniauth-openid-connect’ gem in a plugin

my plugin.rb file

gem ‘omniauth-openid-connect’, ‘0.2.3’

In development mode, when i run my local server, I get the following error:

*** Gem::LoadError Exception: Could not find ‘attr_required’ (>= 1.0.0) among 178 total gem(s)
Checked in ‘GEM_PATH=/Users/me/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0:/Users/me/.gem/ruby/2.3.0’, execute gem env for more information

While “attr_required” is present in plugin’s gem directory /plugins/my_plugin/gems/2.3.0/, as well as other dependent gems

3 Likes

@shirjeelalam I’m not sure if you ever managed to get your plugin working, but we now have an official one for OpenID Connect which you may find useful

2 Likes

This topic was automatically closed after 14 days. New replies are no longer allowed.