Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added gem spec task

  • Loading branch information...
commit a7cce6710c9fdf76b711edb6d83ccd7c6bb1676b 1 parent aa8dc1b
@phifty authored
Showing with 28 additions and 0 deletions.
  1. +28 −0 Rakefile
View
28 Rakefile
@@ -1,10 +1,38 @@
require 'rubygems'
gem 'rspec'
require 'spec'
+require "rake/rdoctask"
+require 'rake/gempackagetask'
require 'spec/rake/spectask'
task :default => :spec
+specification = Gem::Specification.new do |specification|
+ specification.name = "agraph"
+ specification.version = "0.1.0.beta1"
+ specification.date = "2010-03-29"
+ specification.email = "b.phifty@gmail.com"
+ specification.homepage = "http://github.com/phifty/agraph"
+ specification.summary = "Client for the AllegroGraph 4.x graph database."
+ specification.description = "The gem provides a client for the AllegroGraph 4.x RDF graph database. Features like searching geo-spatial data, type mapping and transactions are supported."
+ specification.has_rdoc = true
+ specification.authors = [ "Philipp Bruell" ]
+ specification.files = [ "README.rdoc", "Rakefile" ] + Dir["{lib,spec}/**/*"]
+ specification.extra_rdoc_files = [ "README.rdoc" ]
+ specification.require_path = "lib"
+end
+
+Rake::GemPackageTask.new(specification) do |package|
+ package.gem_spec = specification
+end
+
+desc "Generate the rdoc"
+Rake::RDocTask.new do |rdoc|
+ rdoc.rdoc_files.add [ "README.rdoc", "lib/**/*.rb" ]
+ rdoc.main = "README.rdoc"
+ rdoc.title = "Client for the AllegroGraph 4.x graph database."
+end
+
desc "Run all specs in spec directory"
Spec::Rake::SpecTask.new do |task|
task.spec_files = FileList["spec/lib/**/*_spec.rb"]
Please sign in to comment.
Something went wrong with that request. Please try again.