Sha256: a27167360abe3e2546532b682cc50d4a04ec8cae07173c475e53e290217b8315

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

require 'rake'
require 'rake/rdoctask'
 
desc 'Generate documentation for the contact_info plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'ruby-flickr'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

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

task :default => :spec

desc "Run the specs under spec/models"
Spec::Rake::SpecTask.new do |t|
  t.spec_opts = ['--options', "spec/spec.opts"]
  t.spec_files = FileList['spec/**/*_spec.rb']
end

desc "Run rcov"
task :rcov do
  system "rcov spec/**/*.rb -x /var/lib -x spec/"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
commonthread-flickr_fu-0.2.0 Rakefile
commonthread-flickr_fu-0.2.1 Rakefile
commonthread-flickr_fu-0.2.2 Rakefile