Sha256: 98f8289f00445c28bf8fb084defe2fa52c051e33f27c4d975ed968138f3f78ac
Contents?: true
Size: 689 Bytes
Versions: 9
Compression:
Stored size: 689 Bytes
Contents
# frozen_string_literal: true require "bundler/setup" require "bundler/gem_tasks" require "rake/testtask" require "rubocop/rake_task" require "yard" Rake::TestTask.new(:spec) do |t| t.libs << "spec" t.libs << "lib" t.test_files = FileList["spec/**/*_spec.rb"] t.warning = false end task test: :spec RuboCop::RakeTask.new task default: %i[spec rubocop] namespace :doc do desc "Generate docs and publish to gh-pages" task :publish do puts "Generating docs" require "fileutils" sh "yard doc" sh "git checkout gh-pages" sh "cp -R doc/* ." sh "git commit -vam 'Update documentation'" sh "git push origin gh-pages" sh "git checkout -" end end
Version data entries
9 entries across 9 versions & 1 rubygems