Sha256: ff187b7a2ae402750b7d2ca2677da403b433138a1e5e8a06a002f371a0788391

Contents?: true

Size: 524 Bytes

Versions: 13

Compression:

Stored size: 524 Bytes

Contents

require 'yard'
require 'yard/rake/yardoc_task'
require 'rake/application'
require 'fileutils'
# Main namespace for Shippo specific Rake tasks

module Shippo
  DOC_FOLDER = 'doc'
end

YARD::Rake::YardocTask.new do |t|
  t.files = %w(lib/**/*.rb - README.md CHANGELOG.md)
end

namespace :doc do
  desc 'Generate API documentation and preview in browser'
  task :read do
    FileUtils.rm_rf([::Shippo::DOC_FOLDER])
    Rake.application.invoke_task('yard')
    Kernel.system("open #{::Shippo::DOC_FOLDER}/index.html")
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
shippo-4.0.0 lib/shippo/tasks/shippo.rb
shippo-3.1.0 lib/shippo/tasks/shippo.rb
shippo-3.0.1 lib/shippo/tasks/shippo.rb
shippo-3.0.0 lib/shippo/tasks/shippo.rb
shippo-2.0.8 lib/shippo/tasks/shippo.rb
shippo-2.0.7 lib/shippo/tasks/shippo.rb
shippo-2.0.6 lib/shippo/tasks/shippo.rb
shippo-2.0.5 lib/shippo/tasks/shippo.rb
shippo-2.0.4 lib/shippo/tasks/shippo.rb
shippo-2.0.3 lib/shippo/tasks/shippo.rb
shippo-2.0.2 lib/shippo/tasks/shippo.rb
shippo-2.0.1 lib/shippo/tasks/shippo.rb
shippo-2.0.0 lib/shippo/tasks/shippo.rb