Sha256: 4ee1be4d27256b0ef03df6f8460ce9f57d90c612a256d4e87eac6c224c06f66d

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require '../tools/rakehelp'
require 'fileutils'
include FileUtils

setup_tests
setup_rdoc ['README', 'LICENSE', 'lib/**/*.rb', 'doc/**/*.rdoc']

desc "test and package gem"
task :default => [:test, :package]

# get ActiveRdfVersion from commandline
ActiveRdfVersion = ENV['REL'] || '0.9.7'
NAME="activerdf_rdflite"
GEMNAME="#{NAME}-#{ActiveRdfVersion}.gem"

# define package task
setup_gem(NAME,ActiveRdfVersion) do |spec|
  spec.summary = "an RDF database for usage in ActiveRDF (based on sqlite3)" 
  spec.description = spec.summary
  spec.author="Eyal Oren <eyal.oren@deri.org"
  spec.add_dependency('gem_plugin', '>= 0.2.1')
  spec.add_dependency('activerdf', '>= 0.9.2')
  spec.add_dependency('sqlite3-ruby', '>= 1.1.0')
end

task :install => [:package] do
  sh %{sudo gem install pkg/#{name}-#{version}.gem}
end

task :uninstall => [:clean] do
  sh %{sudo gem uninstall #{name}}
end

task :reinstall => [:uninstall, :install]

task :upload => :package do |task|
  sh "scp pkg/#{GEMNAME} eyal@m3pe.org:/home/eyal/webs/activerdf/gems/"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerdf_rdflite-1.0 Rakefile