public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Run gem install as external command. [#210 state:resolved]
Tim Morgan (author)
Fri May 16 05:19:00 -0700 2008
technoweenie (committer)
Sat May 31 15:57:03 -0700 2008
commit  fb89d7fa6d21a4b0faab753ff3a7c934d9d59883
tree    14286ddb0cda931ce54d53ca42c3220e51bfa668
parent  2243ffd1ffe3a129af20a33e72574f7ee4534730
...
73
74
75
76
 
77
78
79
...
100
101
102
 
 
 
 
103
104
105
...
73
74
75
 
76
77
78
79
...
100
101
102
103
104
105
106
107
108
109
0
@@ -73,7 +73,7 @@ module Rails
0
     end
0
 
0
     def install
0
-      Gem::GemRunner.new.run(install_command)
0
+      puts `#{gem_command} #{install_command.join(' ')}`
0
     end
0
     
0
     def unpack_to(directory)
0
@@ -100,6 +100,10 @@ private ###################################################################
0
     def specification
0
       @spec ||= Gem.source_index.search(Gem::Dependency.new(@name, @requirement)).sort_by { |s| s.version }.last
0
     end
0
+    
0
+    def gem_command
0
+      RUBY_PLATFORM =~ /win32/ ? 'gem.bat' : 'gem'
0
+    end
0
 
0
     def install_command
0
       cmd = %w(install) << @name

Comments