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