Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Main (unreleased)

## 3.9.1

- Fix `NameError: uninitialized constant PlatformAPI::MultiJson` caused by heroics 0.1.4 dropping its multi_json dependency. Uses `JSON.parse` from the standard library instead. (#152)

## 3.9.0

- Pull latest JSON Schema and regenerated API.
Expand Down
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ YARD::Rake::YardocTask.new

desc 'Download the latest schema and build a new client'
task :build do
path = "lib/platform-api/client.rb"
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'
sh "bundle exec heroics-generate ./config/client-config.rb > #{path}"

# Strip trailing whitespace (heroics ERB emits it after dropping erubis)
File.write(path, File.read(path).gsub(/[ \t]+$/, ''))
Comment thread
schneems marked this conversation as resolved.
end

desc 'Publish API documentation'
Expand Down
Loading
Loading