Sha256: 080bebc6c5bd9bf797050b57e36dd361870cf084a0e318a295a5c7fadbe73024

Contents?: true

Size: 831 Bytes

Versions: 2

Compression:

Stored size: 831 Bytes

Contents

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'downterm/version'

GEMSPEC = `git ls-files | grep gemspec`.chomp
GEM     = "downterm-#{Downterm::VERSION}.gem"

desc "Build downterm.gem"
task :build => :perms do
  system "gem", "build", GEMSPEC
end

desc "Ensure correct permissions for downterm.gem"
task :perms do
  system "chmod", "-R", "a+rX", *`git ls-files`.chomp.split("\n")
end

desc "Install downterm.gem"
task :install => :build do
  system "gem", "install", GEM
end

desc "Push gem to RubyGems"
task :release => :build do
  system "git", "tag", "-s", "-m", "downterm v#{Downterm::VERSION}", "v#{Downterm::VERSION}"
  system "gem", "push", GEM
end

desc "Clean built products"
task :clean do
  rm Dir.glob("*.gem"), :verbose => true
end

task :default => :build

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
downterm-0.1.1 Rakefile
downterm-0.1.0 Rakefile