提交 9c4f0035 编写于 作者: R rick

fix Gem installation command with versions

上级 fb89d7fa
*SVN*
* Use a system command to install gems, since GemRunner exits the ruby process. #210 [Tim Morgan]
*2.1.0 RC1 (May 11th, 2008)*
* script/dbconsole fires up the command-line database client. #102 [Steve Purcell]
......
......@@ -73,7 +73,9 @@ def load_paths_added?
end
def install
puts `#{gem_command} #{install_command.join(' ')}`
cmd = "#{gem_command} #{install_command.join(' ')}"
puts cmd
puts %x(#{cmd})
end
def unpack_to(directory)
......@@ -107,7 +109,7 @@ def gem_command
def install_command
cmd = %w(install) << @name
cmd << "--version" << "#{@requirement.to_s}" if @requirement
cmd << "--version" << %("#{@requirement.to_s}") if @requirement
cmd << "--source" << @source if @source
cmd
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册