platform-api 2.1.0 → 2.2.0
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 +5 -5
- data/CONTRIBUTING.md +5 -5
- data/Gemfile.lock +26 -27
- data/README.md +13 -3
- data/lib/platform-api/client.rb +5297 -3033
- data/lib/platform-api/version.rb +1 -1
- data/platform-api.gemspec +2 -2
- data/schema.json +4823 -2933
- data/spec/acceptance/generated_client_spec.rb +6 -2
- metadata +7 -8
@@ -3,7 +3,7 @@ require 'platform-api'
|
|
3
3
|
|
4
4
|
describe 'The generated platform api client' do
|
5
5
|
it "can get account info" do
|
6
|
-
expect(client.account.info
|
6
|
+
expect(client.account.info).not_to be_empty
|
7
7
|
end
|
8
8
|
|
9
9
|
it "can get addon info for an app" do
|
@@ -38,13 +38,17 @@ describe 'The generated platform api client' do
|
|
38
38
|
end
|
39
39
|
|
40
40
|
it "can get add-on plan info" do
|
41
|
-
expect(client.plan.
|
41
|
+
expect(client.plan.list_by_addon('heroku-postgresql')).not_to be_empty
|
42
42
|
end
|
43
43
|
|
44
44
|
it "can get release info" do
|
45
45
|
expect(client.release.list(an_app['name'])).not_to be_empty
|
46
46
|
end
|
47
47
|
|
48
|
+
it "can get app webhooks" do
|
49
|
+
expect(client.app_webhook.list(an_app['name'])).not_to be_empty
|
50
|
+
end
|
51
|
+
|
48
52
|
def an_app
|
49
53
|
@app ||= client.app.list.first
|
50
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platform-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jkakar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.0.
|
103
|
+
version: 0.0.25
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.0.
|
110
|
+
version: 0.0.25
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: moneta
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.
|
117
|
+
version: 1.0.0
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.
|
124
|
+
version: 1.0.0
|
125
125
|
description: Ruby HTTP client for the Heroku API.
|
126
126
|
email:
|
127
127
|
- jkakar@kakar.ca
|
@@ -168,9 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.7.6
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Ruby HTTP client for the Heroku API.
|
175
175
|
test_files: []
|
176
|
-
has_rdoc:
|