Skip to content
Newer
Older
100644 28 lines (23 sloc) 654 Bytes
7fb6f64 @pk Initial commit to sequel_sluggable.
authored Nov 17, 2009
1 require 'rake'
904a087 @pk Changing to the sane gemspec.
authored May 2, 2010
2 require 'spec'
7fb6f64 @pk Initial commit to sequel_sluggable.
authored Nov 17, 2009
3 require 'spec/rake/spectask'
904a087 @pk Changing to the sane gemspec.
authored May 2, 2010
4
7fb6f64 @pk Initial commit to sequel_sluggable.
authored Nov 17, 2009
5 Spec::Rake::SpecTask.new(:spec) do |spec|
904a087 @pk Changing to the sane gemspec.
authored May 2, 2010
6 spec.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
7fb6f64 @pk Initial commit to sequel_sluggable.
authored Nov 17, 2009
7 spec.libs << 'lib' << 'spec'
8 spec.spec_files = FileList['spec/**/*_spec.rb']
9 end
10
11 Spec::Rake::SpecTask.new(:rcov) do |spec|
12 spec.libs << 'lib' << 'spec'
13 spec.pattern = 'spec/**/*_spec.rb'
14 spec.rcov = true
15 end
16
904a087 @pk Changing to the sane gemspec.
authored May 2, 2010
17 desc 'Default: run spec examples'
7fb6f64 @pk Initial commit to sequel_sluggable.
authored Nov 17, 2009
18 task :default => :spec
19
20 begin
21 require 'yard'
22 YARD::Rake::YardocTask.new
23 rescue LoadError
24 task :yardoc do
25 abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
26 end
27 end
Something went wrong with that request. Please try again.