Sha256: 4a6a019b5231600cf2e207edd3920c5b44d776f8a16d6428a55833435abbe2d0

Contents?: true

Size: 975 Bytes

Versions: 5

Compression:

Stored size: 975 Bytes

Contents

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

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

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

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

desc "Tag the latest version of reponaut"
task :tag do
  system "git", "tag", "-s", "-m", "reponaut v#{Reponaut::VERSION}", "v#{Reponaut::VERSION}"
end

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

desc "Push gem to RubyGems"
task :release => [:tag, :build] do
  fail 'Cannot release a dev version' if Reponaut::VERSION.end_with?('dev')
  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

5 entries across 5 versions & 1 rubygems

Version Path
reponaut-2.1.1 Rakefile
reponaut-2.1.0 Rakefile
reponaut-2.0.0 Rakefile
reponaut-1.2.0 Rakefile
reponaut-1.1.1 Rakefile