From 34f9e17eac48b13117fd3398bbd4f1ce71cfb894 Mon Sep 17 00:00:00 2001 From: Erik Ordway Date: Tue, 11 Feb 2014 15:53:54 -0800 Subject: [PATCH] Allow plugins to specify the value used for require statements. This allows using forked gems in plugins until the original gem gets updated. --- lib/plugin/instance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index 8888a8cb339..27f274589b5 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -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!"