Sha256: 2f5555b1f17c6a0b85bdb6bc14e1a524ea2c64f9e45fd82c6862ca8a29d1332b

Contents?: true

Size: 964 Bytes

Versions: 8

Compression:

Stored size: 964 Bytes

Contents

require 'bundler/gem_tasks'
require 'yard'

desc 'Generate API documentation'
YARD::Rake::YardocTask.new

desc 'Download the latest schema and build a new client'
task :build do
  sh 'curl -o schema.json -H "Accept: application/vnd.heroku+json; version=3" https://api.heroku.com/schema'
  sh 'bundle exec heroics-generate ./config/client-config.rb > lib/platform-api/client.rb'
end

desc 'Publish API documentation'
task :publish_docs => [:build] do
  sh 'rake yard'
  sh 'cp -R doc /tmp/platform-api-doc'
  sh 'git checkout gh-pages'
  sh 'cp -R /tmp/platform-api-doc/* .'
  sh 'rm -rf /tmp/platform-api-doc'
  sh 'git add .'
  sh 'git commit -am "Rebuild documentation"'
  sh 'git push origin gh-pages'
  sh 'git checkout master'
end

# After releasing publish the docs
Rake::Task["release"].enhance do
  Rake::Task[:publish_docs].invoke
end

begin
  require "rspec/core/rake_task"
  RSpec::Core::RakeTask.new(:spec)
  task default: [:spec]
rescue LoadError
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
platform-api-3.5.0 Rakefile
platform-api-3.3.0 Rakefile
platform-api-3.2.0 Rakefile
platform-api-3.0.0 Rakefile
platform-api-2.3.0 Rakefile
platform-api-3.0.0.pre.1 Rakefile
platform-api-2.3.0.pre.2 Rakefile
platform-api-2.3.0.pre.1 Rakefile