tasks/gem.rake in bones-2.0.0 vs tasks/gem.rake in bones-2.0.1
- old
+ new
@@ -1,6 +1,6 @@
-# $Id: gem.rake 585 2008-04-07 20:15:39Z tim_pease $
+# $Id: gem.rake 596 2008-04-15 05:51:29Z tim_pease $
require 'rake/gempackagetask'
namespace :gem do
@@ -90,17 +90,20 @@
}
end
desc 'Install the gem'
task :install => [:clobber, :package] do
- sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
+ sh "#{SUDO} #{GEM} install --local pkg/#{PROJ.gem._spec.full_name}"
+
+ # use this version of the command for rubygems > 1.0.0
+ #sh "#{SUDO} #{GEM} install --no-update-sources pkg/#{PROJ.gem._spec.full_name}"
end
desc 'Uninstall the gem'
task :uninstall do
installed_list = Gem.source_index.find_name(PROJ.name)
if installed_list and installed_list.collect { |s| s.version.to_s}.include?(PROJ.version) then
- sh "#{SUDO} #{GEM} uninstall -v '#{PROJ.version}' -I -x #{PROJ.name}"
+ sh "#{SUDO} #{GEM} uninstall --version '#{PROJ.version}' --ignore-dependencies --executables #{PROJ.name}"
end
end
desc 'Reinstall the gem'
task :reinstall => [:uninstall, :install]