Sha256: 6f292bc6e0fd0ac2919205285b79c16b9cba9d2a3a638443f8b3a62280da0761
Contents?: true
Size: 853 Bytes
Versions: 3
Compression:
Stored size: 853 Bytes
Contents
# -*- mode: ruby; coding: utf-8 -*- task :gem => 'gem:build' %w[clean install uninstall upload].each do |t| task t.intern => "gem:#{t}" end empty_task :lib, :ext, :rdoc namespace :gem do mod = MODULE name = env :NAME, MODULE.name.downcase gem = env :GEM, 'gem' gemspec = "#{name}.gemspec" gemname = env :GEMNAME, name gemver = mod.version gemfile = "#{gemname}-#{gemver}.gem" task :build => gemfile task :clean do sh %( rm -f #{gemfile} ) end task :install => gemfile do sh %( #{gem} install #{gemfile} ) end task :uninstall do sh %( #{gem} uninstall -x --version #{gemver} #{gemname} ) end task :test => [:install, :uninstall] task :upload => :install do sh %( #{gem} push #{gemfile} ) end file gemfile => [:ext, :rdoc] do sh %( #{gem} build #{gemspec} ) end end# :gem
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xot-0.1.8 | task/gem.rake |
xot-0.1.7 | task/gem.rake |
xot-0.1.6 | task/gem.rake |