Browse files

fix Gem installation command with versions

  • Loading branch information...
1 parent fb89d7f commit 9c4f00350a61987afad50ebb8d319d7e889b6cfd @technoweenie technoweenie committed May 31, 2008
Showing with 8 additions and 2 deletions.
  1. +4 −0 railties/CHANGELOG
  2. +4 −2 railties/lib/rails/gem_dependency.rb
View
4 railties/CHANGELOG
@@ -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)*
* script/dbconsole fires up the command-line database client. #102 [Steve Purcell]
View
6 railties/lib/rails/gem_dependency.rb
@@ -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

0 comments on commit 9c4f003

Please sign in to comment.