Rakefile in marcspec-1.5.0 vs Rakefile in marcspec-1.6.1
- old
+ new
@@ -1,52 +1,62 @@
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 "bacon", ">= 0"
+ gem.add_development_dependency "rspec"
gem.add_development_dependency "yard", ">= 0"
-
- gem.add_dependency 'marc4j4r', '>=0.9.0'
- gem.add_dependency 'jruby_streaming_update_solr_server', '>=0.3.1'
+ 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 'rake/testtask'
-Rake::TestTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
- spec.pattern = 'spec/**/*_spec.rb'
- spec.verbose = true
+
+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: sudo gem install spicycode-rcov"
+ 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