Sha256: a72f4b6c0b23383eedf88caf6ab9428f7a2ac4a24b521fc1e99b1ac5649bab56
Contents?: true
Size: 1.51 KB
Versions: 4
Compression:
Stored size: 1.51 KB
Contents
require 'rake' require 'bundler' require 'bundler/gem_tasks' 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 # add tasks defined in lib/tasks # Dir.glob('lib/tasks/*.rake').each { |r| import r } # desc 'Open an irb session preloaded with this library' # task :console do # sh 'irb -rubygems -I lib -r ./frda_indexer.rb' # end task default: :ci desc 'run continuous integration suite' task ci: [:rspec, :rubocop] task spec: :rspec require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:rspec) do |spec| spec.rspec_opts = ['-c', '-f progress', '--tty', '-r ./spec/spec_helper.rb'] end RSpec::Core::RakeTask.new(:rspec_wip) do |spec| spec.rspec_opts = ['-c', '-f d', '--tty', '-r ./spec/spec_helper.rb', '-t wip'] 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', 'Gryphondor Indexer 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
gdor-indexer-0.7.1 | Rakefile |
gdor-indexer-0.6.0 | Rakefile |
gdor-indexer-0.5.0 | Rakefile |
gdor-indexer-0.4.1 | Rakefile |