internalize.rb in faster_rubygems-0.6.4 vs internalize.rb in faster_rubygems-0.9.2
- old
+ new
@@ -1,10 +1,13 @@
require 'fileutils'
require 'rbconfig'
Dir.chdir File.dirname(__FILE__) + '/lib' do
- for file in Dir['*.rb'] do
- FileUtils.cp file, Config::CONFIG['sitelibdir'] + '/' + file
+ for file in Dir['*'] do
+ next if file =~ /rubygems_plugin/ # don't want to copy that one over
+ new_file = Config::CONFIG['sitelibdir'] + '/' + file
+ FileUtils.rm_rf new_file if File.exist?(new_file)
+ FileUtils.cp_r file, new_file
end
end
-puts 'Installed--thank you for trying out -- require \'faster_rubygems\''
+puts 'Installed--thank you for trying out faster_rubygems' # they never see this message tho...
\ No newline at end of file