1 require "rubygems/package_task"
7 system "gem build signet.gemspec"
10 desc "Install the gem"
11 task :install => ["clobber", "gem:package"] do
12 sh "#{SUDO} gem install --local pkg/#{GEM_SPEC.full_name}"
15 desc "Uninstall the gem"
17 installed_list = Gem.source_index.find_name(PKG_NAME)
19 (installed_list.collect { |s| s.version.to_s}.include?(PKG_VERSION))
21 "#{SUDO} gem uninstall --version '#{PKG_VERSION}' " +
22 "--ignore-dependencies --executables #{PKG_NAME}"
27 desc "Reinstall the gem"
28 task :reinstall => [:uninstall, :install]
31 desc "Alias to gem:package"
32 task "gem" => "gem:package"
34 task "clobber" => ["gem:clobber_package"]