mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 18:33:28 +08:00
Override problematic .gemrc setting
This commit is contained in:
parent
0db3e27ce4
commit
f367eebb10
@ -6,7 +6,7 @@ module PluginGem
|
|||||||
spec_path = gems_path + "/specifications"
|
spec_path = gems_path + "/specifications"
|
||||||
spec_file = spec_path + "/#{name}-#{version}.gemspec"
|
spec_file = spec_path + "/#{name}-#{version}.gemspec"
|
||||||
unless File.exists? spec_file
|
unless File.exists? spec_file
|
||||||
command = "gem install #{name} -v #{version} -i #{gems_path} --no-document --ignore-dependencies"
|
command = "gem install #{name} -v #{version} -i #{gems_path} --no-document --ignore-dependencies --no-user-install"
|
||||||
if opts[:source]
|
if opts[:source]
|
||||||
command << " --source #{opts[:source]}"
|
command << " --source #{opts[:source]}"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user