public
Fork of rails/rails
Description: Fork of Ruby on Rails for contributing patches.
Homepage: http://rubyonrails.org
Clone URL: git://github.com/seven1m/rails.git
Search Repo:
Run gem install as external command. [#210 state:resolved]
seven1m (author)
Fri May 16 05:19:00 -0700 2008
commit  1c87f4e03e5f0f7637b3368a2189b45fc550b4be
tree    0def85e486a61ba7612e6629e1a12bef8f16f041
parent  345f030c5b6c0a28ddde56c80a1112b00d345c79
...
73
74
75
76
 
77
78
79
...
99
100
101
 
 
 
 
102
103
104
...
73
74
75
 
76
77
78
79
...
99
100
101
102
103
104
105
106
107
108
0
@@ -73,7 +73,7 @@
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
@@ -99,6 +99,10 @@
0
 
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

Comments

    No one has commented yet.