Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (14 sloc) 524 Bytes
# encoding: utf-8
require 'rspec/core/rake_task'
desc 'Tag & release the gem'
task :release => :spec do
$: << 'lib'
require 'cql/version'
project_name = 'cql-rb'
version_string = "v#{Cql::VERSION}"
unless %x(git tag -l).split("\n").include?(version_string)
system %(git tag -a #{version_string} -m #{version_string})
system %(git push && git push --tags; gem build #{project_name}.gemspec && gem push #{project_name}-*.gem && mv #{project_name}-*.gem pkg)
Something went wrong with that request. Please try again.