require 'rubygems' require 'rake' gem 'ci_reporter' require 'ci/reporter/rake/rspec' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "marcspec" gem.summary = %Q{Extract data from MARC records and send to Solr} gem.description = %Q{Relies on marc4j4r, based on work in solrmarc} gem.email = "bill@dueber.com" gem.homepage = "http://github.com/billdueber/marcspec" gem.authors = ["BillDueber"] gem.add_development_dependency "rspec" gem.add_development_dependency "yard", ">= 0" gem.add_development_dependency 'ci_reporter' gem.add_dependency 'marc4j4r', '>=1.1.0' gem.add_dependency 'logback-simple' gem.add_dependency 'jruby_streaming_update_solr_server', '>=0.5.0' # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end require 'spec/rake/spectask' desc "Run rspec specs" Spec::Rake::SpecTask.new('spec') do |t| t.spec_files = FileList['spec/**/*_spec.rb'] end desc "Run Rspec tests with CI output in spec/reports" Spec::Rake::SpecTask.new('cispec') do |t| t.spec_files = FileList['spec/**/*_spec.rb'] end begin require 'rcov/rcovtask' Rcov::RcovTask.new do |spec| spec.libs << 'spec' spec.pattern = 'spec/**/*_spec.rb' spec.verbose = true end rescue LoadError task :rcov do abort "RCov is not available. In order to run rcov, you must: jgem install rcov-java" end end task :spec => :check_dependencies task :cispec => :"ci:setup:rspec" task :default => :spec begin require 'yard' YARD::Rake::YardocTask.new rescue LoadError task :yardoc do abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard" end end