mirror of
https://github.com/github/rails.git
synced 2026-01-29 00:08:15 -05:00
fix Gem installation command with versions
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
*SVN*
|
||||||
|
|
||||||
|
* Use a system command to install gems, since GemRunner exits the ruby process. #210 [Tim Morgan]
|
||||||
|
|
||||||
*2.1.0 RC1 (May 11th, 2008)*
|
*2.1.0 RC1 (May 11th, 2008)*
|
||||||
|
|
||||||
* script/dbconsole fires up the command-line database client. #102 [Steve Purcell]
|
* script/dbconsole fires up the command-line database client. #102 [Steve Purcell]
|
||||||
|
|||||||
@@ -73,7 +73,9 @@ module Rails
|
|||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
puts `#{gem_command} #{install_command.join(' ')}`
|
cmd = "#{gem_command} #{install_command.join(' ')}"
|
||||||
|
puts cmd
|
||||||
|
puts %x(#{cmd})
|
||||||
end
|
end
|
||||||
|
|
||||||
def unpack_to(directory)
|
def unpack_to(directory)
|
||||||
@@ -107,7 +109,7 @@ private ###################################################################
|
|||||||
|
|
||||||
def install_command
|
def install_command
|
||||||
cmd = %w(install) << @name
|
cmd = %w(install) << @name
|
||||||
cmd << "--version" << "#{@requirement.to_s}" if @requirement
|
cmd << "--version" << %("#{@requirement.to_s}") if @requirement
|
||||||
cmd << "--source" << @source if @source
|
cmd << "--source" << @source if @source
|
||||||
cmd
|
cmd
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user