-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (23 loc) · 699 Bytes
/
Copy pathRakefile
File metadata and controls
28 lines (23 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'rubygems'
require 'rake'
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
spec.pattern += FileList['spec/*_spec.rb']
end
RSpec::Core::RakeTask.new(:rcov) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
spec.pattern += FileList['spec/*_spec.rb']
spec.rcov = true
end
#task :spec => :check_dependencies
task :default => :spec
require "rdoc/task"
RDoc::Task.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rsolr-ext #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end