Sha256: 9905049a1dad837ba96c1e91855905b141b05cae880487ffa0b3ae3977f52c5f

Contents?: true

Size: 759 Bytes

Versions: 11

Compression:

Stored size: 759 Bytes

Contents

Gem.activate 'rspec'
require 'rake'
require "rake/rdoctask"

begin
  require 'spec/rake/spectask'
rescue LoadError
  puts <<-EOS
To use rspec for testing you must install the rspec gem:
    gem install rspec
EOS
  exit(0)
end

desc "Run all specs"
Spec::Rake::SpecTask.new(:spec) do |t|
  t.spec_opts = ['-cfs', '--backtrace']
  t.spec_files = FileList['test/**/*_spec.rb']
end

desc "Print SpecDocs"
Spec::Rake::SpecTask.new(:doc) do |t|
  t.spec_opts = ["--format", "specdoc"]
  t.spec_files = FileList['test/*_spec.rb']
end

desc "Generate the RDoc"
Rake::RDocTask.new do |rdoc|
  files = ["README.md", "LICENSE", "lib/**/*.rb"]
  rdoc.rdoc_files.add(files)
  rdoc.main = "README.md"
  rdoc.title = "Gitrb"
end

desc "Run the rspec"
task :default => :spec

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gitrb-0.1.1 Rakefile
gitrb-0.1.0 Rakefile
gitrb-0.0.9 Rakefile
gitrb-0.0.8 Rakefile
gitrb-0.0.7 Rakefile
gitrb-0.0.6 Rakefile
gitrb-0.0.5 Rakefile
gitrb-0.0.4 Rakefile
gitrb-0.0.3 Rakefile
gitrb-0.0.2 Rakefile
gitrb-0.0.1 Rakefile