Sha256: 3f40dc5a1b920cd98cb72cccbfca895fba6cab3bdf828e46a9fd60706baa8273
Contents?: true
Size: 873 Bytes
Versions: 4
Compression:
Stored size: 873 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 = env :GEMVERSION, 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
xot-0.1.12 | task/gem.rake |
xot-0.1.11 | task/gem.rake |
xot-0.1.10 | task/gem.rake |
xot-0.1.9 | task/gem.rake |