Allow plugins to specify the value used for require statements. This allows using forked gems in plugins until the original gem gets updated.
This commit is contained in:
parent
2e5413437d
commit
34f9e17eac
|
@ -216,7 +216,7 @@ class Plugin::Instance
|
|||
spec = Gem::Specification.load spec_file
|
||||
spec.activate
|
||||
unless opts[:require] == false
|
||||
require name
|
||||
require opts[:require_name] ? opts[:require_name] : name
|
||||
end
|
||||
else
|
||||
puts "You are specifying the gem #{name} in #{path}, however it does not exist!"
|
||||
|
|
Loading…
Reference in New Issue