Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

79 lines (68 sloc) 2.329 kb
require 'meta_project'
require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/contrib/xforge'
require 'rubygems'
require 'fileutils'
require '../tools/rakehelp'
$version = IO.read('VERSION').strip
$name = 'activerdf_sparql'
$project = MetaProject::Project::XForge::RubyForge.new('activerdf')
$distdir = "#$name-#$version"
# setup tests
setup_tests
setup_clean ["pkg", "lib/*.bundle", "*.gem", ".config"]
# setup rdoc
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.add ['README', 'LICENSE', 'lib/**/*.rb', 'doc/**/*.rdoc']
end
desc "Does a full compile, test run"
task :default => [:test, :package]
setup_gem($name, $version) do |spec|
spec.summary = "ActiveRDF adapter to SPARQL endpoint"
spec.description = spec.summary
spec.author="Eyal Oren <eyal.oren@deri.org"
spec.add_dependency('gem_plugin', '>= 0.2.1')
spec.add_dependency('activerdf', '>= 1.6.4')
spec.add_dependency('json', '>= 1.1.1')
# if RUBY_PLATFORM =~ /java/
# # require json_pure which has no native c extensions when running under jruby
# spec.add_dependency('json_pure', '>= 1.1.1')
# else
# spec.add_dependency('json', '>= 1.1.1')
# end
end
task :verify_rubyforge do
raise "RUBYFORGE_USER environment variable not set!" unless ENV['RUBYFORGE_USER']
raise "RUBYFORGE_PASSWORD environment variable not set!" unless ENV['RUBYFORGE_PASSWORD']
end
desc "release #$name-#$version gem on RubyForge"
task :release => [:clean, :verify_rubyforge, :package ] do
release_files = FileList["pkg/#$distdir.gem"]
Rake::XForge::Release.new($project) do |release|
release.user_name = ENV['RUBYFORGE_USER']
release.password = ENV['RUBYFORGE_PASSWORD']
release.files = release_files.to_a
release.release_name = "#$name #$version"
release.package_name = "activerdf-sparql"
release.release_notes = ""
changes = []
File.open("CHANGELOG") do |file|
current = true
file.each do |line|
line.chomp!
if current and line =~ /^==/
current = false; next
end
break if line.empty? and not current
changes << line
end
end
release.release_changes = changes.join("\n")
end
end
Jump to Line
Something went wrong with that request. Please try again.