Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 642 Bytes
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require "neo4j/version"
desc "clean all, delete all files that are not in git"
task :clean_all do
system "git clean -df"
end
desc "create the gemspec"
task :build => :clean_all do
system "gem build neo4j.gemspec"
end
desc "release gem to gemcutter"
task :release => :build do
assert_committed
system "gem push neo4j-#{Neo4j::VERSION}.gem"
end
def assert_committed
status = %x{git status}
fail("Can't release gem unless everything is committed") unless status =~ /nothing to commit \(working directory clean\)|nothing added to commit but untracked files present/
end
Jump to Line
Something went wrong with that request. Please try again.