require 'rubygems' require 'yard' begin gem 'jeweler' require 'jeweler' Jeweler::Tasks.new do |gemspec| gemspec.name = "rdf-rdfxml" gemspec.summary = "RDF/XML reader/writer for RDF.rb." gemspec.description = <<-DESCRIPTION RDF::RDFXML is an RDF/XML reader and writer for Ruby using the RDF.rb library suite. DESCRIPTION gemspec.email = "gregg@kellogg-assoc.com" gemspec.homepage = "http://github.com/gkellogg/rdf-rdfxml" gemspec.authors = ["Gregg Kellogg"] gemspec.add_dependency('rdf', '>= 0.2.2') gemspec.add_dependency('nokogiri', '>= 1.3.3') gemspec.add_development_dependency('rspec') gemspec.add_development_dependency('rdf-spec', '>= 0.2.2') gemspec.add_development_dependency('rdf-isomorphic') gemspec.add_development_dependency('yard') gemspec.extra_rdoc_files = %w(README.rdoc History.txt AUTHORS CONTRIBUTORS) end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" end require 'spec/rake/spectask' Spec::Rake::SpecTask.new(:spec) do |spec| spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/*_spec.rb'] end desc "Run specs through RCov" Spec::Rake::SpecTask.new("spec:rcov") do |spec| spec.libs << 'lib' << 'spec' spec.pattern = 'spec/*_spec.rb' spec.rcov = true end desc "Generate HTML report specs" Spec::Rake::SpecTask.new("doc:spec") do |spec| spec.libs << 'lib' << 'spec' spec.spec_files = FileList['spec/*_spec.rb'] spec.spec_opts = ["--format", "html:doc/spec.html"] end YARD::Rake::YardocTask.new do |t| t.files = %w(lib/**/*.rb README.rdoc History.txt AUTHORS CONTRIBUTORS) # optional end desc "Generate RDF Core Manifest.yml" namespace :spec do task :prepare do $:.unshift(File.join(File.dirname(__FILE__), 'lib')) require 'rdf/rdfxml' require 'spec/rdf_helper' require 'fileutils' yaml = File.join(RDFCORE_DIR, "Manifest.yml") FileUtils.rm_f(yaml) RdfHelper::TestCase.to_yaml(RDFCORE_TEST, RDFCORE_DIR, yaml) end end task :default => :spec