Sha256: 8abe7830fd8a79022d04cea691303c70fb99c7358bdceb42f3b7462b2067505a

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

# frozen_string_literal: true

require "bundler/setup"
require "bundler/gem_tasks"
require "rake/testtask"
require "standard/rake"
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

task default: %i[spec standard]

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

3 entries across 3 versions & 1 rubygems

Version Path
montrose-0.14.0 Rakefile
montrose-0.13.0 Rakefile
montrose-0.12.0 Rakefile