Installing own gem in plugin

(Shirjeel Alam) #1

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

(Rafael dos Santos Silva) #2

(David Taylor) #3

@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