platform-api 3.9.0 → 3.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52250589350e16aa52fe43d0540f27128e092885cfb546738a094c970809ca02
4
- data.tar.gz: 801a2ce042978af42acd27e4eb9876dda2bac633bbfc0fd4512ce07af5cc798f
3
+ metadata.gz: 729061eedce3c85e42d36edc8727e2635dc42a437e6dab1fe572a9314589a3fe
4
+ data.tar.gz: be2319e97c9520d86e5e88d4bd1b515cd3bb71370f55d7e905896e4df6bb9297
5
5
  SHA512:
6
- metadata.gz: 60b3f38af31cf1231b84a01dd0fdb5cc4499f5c54ce9c0c9d174f605fc888db6b29c2b3deecb5fd864ad23134a9482753058a46ec958459d15beb379e1dbe807
7
- data.tar.gz: 025f9f9f5bc3f55a2bb09052ca81a8dee8fbfb4ba5a55fc71bd96a143981cbef9cc26128eb15613883abbf7064940a5448081de9d222966e609c0da23203500c
6
+ metadata.gz: 815ffb6677b221ea337c0eac3e2c458ac2cc0cf5bdf4e84d75883a84186cc44a2b203bb676274fc52df7d754eef1270ae89b3bdf2a73e3b29d7e2477e85889f4
7
+ data.tar.gz: 83fdf958909fa7f0aa7d9dc81ce2dd3cf251fb220f0c9aa7e7016cffdbc28222b5d0ddb0e61258fd183062bb96ca8154cea23ddb077e96efbda84a55a3cb01a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Main (unreleased)
2
2
 
3
+ ## 3.9.1
4
+
5
+ - 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)
6
+
3
7
  ## 3.9.0
4
8
 
5
9
  - Pull latest JSON Schema and regenerated API.
data/Rakefile CHANGED
@@ -6,8 +6,12 @@ YARD::Rake::YardocTask.new
6
6
 
7
7
  desc 'Download the latest schema and build a new client'
8
8
  task :build do
9
+ path = "lib/platform-api/client.rb"
9
10
  sh 'curl -o schema.json -H "Accept: application/vnd.heroku+json; version=3" https://api.heroku.com/schema'
10
- sh 'bundle exec heroics-generate ./config/client-config.rb > lib/platform-api/client.rb'
11
+ sh "bundle exec heroics-generate ./config/client-config.rb > #{path}"
12
+
13
+ # Strip trailing whitespace (heroics ERB emits it after dropping erubis)
14
+ File.write(path, File.read(path).gsub(/[ \t]+$/, ''))
11
15
  end
12
16
 
13
17
  desc 'Publish API documentation'