Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

55 lines (42 sloc) 1.411 kB
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
require 'rake'
require 'rdoc/task'
require "neo4j/version"
task :check_commited do
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
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 do
system "gem build neo4j.gemspec"
end
desc "release gem to gemcutter"
task :release => [:check_commited, :build] do
system "gem push neo4j-#{Neo4j::VERSION}-java.gem"
end
desc "Generate documentation for Neo4j.rb"
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.title = "Neo4j.rb #{Neo4j::VERSION}"
rdoc.options << '--webcvs=http://github.com/andreasronge/neo4j/tree/master/'
rdoc.options << '-f' << 'horo'
rdoc.options << '-c' << 'utf-8'
rdoc.options << '-m' << 'README.rdoc'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'rake/testtask'
Rake::TestTask.new(:test_generators) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
desc 'Upload documentation to RubyForge.'
task 'upload-docs' do
sh "scp -r doc/rdoc/* " +
"ronge@rubyforge.org:/var/www/gforge-projects/neo4j/"
end
Jump to Line
Something went wrong with that request. Please try again.