Sha256: 6262842128e1af7aafeb22530f752235e752f6237eb3b80d704c5be8b548614c

Contents?: true

Size: 1.41 KB

Versions: 7

Compression:

Stored size: 1.41 KB

Contents

require "bundler/gem_tasks"

require 'rake'
require 'bundler'


begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

task :default => [:rspec, :rubocop]

desc "run continuous integration suite (tests, coverage, docs)"
task :ci => [:rspec, :doc]

task :spec => :rspec

require 'rspec/core/rake_task'

desc "run specs EXCEPT integration specs"
RSpec::Core::RakeTask.new(:spec_fast) do |spec|
  spec.rspec_opts = ["-c", "-f progress", "--tty", "-t ~integration", "-r ./spec/spec_helper.rb"]
end

RSpec::Core::RakeTask.new(:rspec) do |spec|
  spec.rspec_opts = ["-c", "-f progress", "--tty", "-r ./spec/spec_helper.rb"]
end

require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)

# Use yard to build docs
require 'yard'
require 'yard/rake/yardoc_task'
begin
  project_root = File.expand_path(File.dirname(__FILE__))
  doc_dest_dir = File.join(project_root, 'doc')

  YARD::Rake::YardocTask.new(:doc) do |yt|
    yt.files = Dir.glob(File.join(project_root, 'lib', '**', '*.rb')) +
                 [ File.join(project_root, 'README.rdoc') ]
    yt.options = ['--output-dir', doc_dest_dir, '--readme', 'README.rdoc', '--title', 'Harvestdor Gem Documentation']
  end
rescue LoadError
  desc "Generate YARD Documentation"
  task :doc do
    abort "Please install the YARD gem to generate rdoc."
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
harvestdor-0.3.2 Rakefile
harvestdor-0.3.1 Rakefile
harvestdor-0.3.0 Rakefile
harvestdor-0.2.0 Rakefile
harvestdor-0.1.2 Rakefile
harvestdor-0.1.1 Rakefile
harvestdor-0.1.0 Rakefile