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:
Erik Ordway 2014-02-11 15:53:54 -08:00
parent 2e5413437d
commit 34f9e17eac
1 changed files with 1 additions and 1 deletions

View File

@ -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!"