From 95cbcc198efce0cbec4f3870d6068facd605dea9 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 31 Dec 2013 09:57:04 +1100 Subject: [PATCH] FEATURE: add support for gem source in plugins --- lib/plugin/instance.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index 9901825dbc4..bd741f2bfdd 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -204,7 +204,10 @@ class Plugin::Instance spec_path = gems_path + "/specifications" spec_file = spec_path + "/#{name}-#{version}.gemspec" unless File.exists? spec_file - command = "gem install #{name} -v #{version} -i #{gems_path} --no-rdoc --no-ri" + command = "gem install #{name} -v #{version} -i #{gems_path} --no-document" + if opts[:source] + command << " --source #{opts[:source]}" + end puts command puts `#{command}` end