platform-api 2.2.0 → 2.3.0.pre.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: platform-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0.pre.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - jkakar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-14 00:00:00.000000000 Z
11
+ date: 2020-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,20 +94,48 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: heroku_hatchet
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: heroics
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
129
  - - "~>"
102
130
  - !ruby/object:Gem::Version
103
- version: 0.0.25
131
+ version: 0.1.1
104
132
  type: :runtime
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
136
  - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: 0.0.25
138
+ version: 0.1.1
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: moneta
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +150,20 @@ dependencies:
122
150
  - - "~>"
123
151
  - !ruby/object:Gem::Version
124
152
  version: 1.0.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: rate_throttle_client
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.1.0
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.1.0
125
167
  description: Ruby HTTP client for the Heroku API.
126
168
  email:
127
169
  - jkakar@kakar.ca
@@ -129,25 +171,27 @@ executables: []
129
171
  extensions: []
130
172
  extra_rdoc_files: []
131
173
  files:
174
+ - ".circleci/config.yml"
175
+ - ".github/workflows/check_changelog.yml"
132
176
  - ".gitignore"
133
177
  - ".rspec"
134
178
  - ".yardopts"
179
+ - CHANGELOG.md
135
180
  - CONTRIBUTING.md
136
181
  - CONTRIBUTORS.md
137
182
  - Gemfile
138
- - Gemfile.lock
139
183
  - LICENSE.md
140
184
  - README.md
141
185
  - Rakefile
142
186
  - config/client-config.rb
187
+ - hatchet.json
188
+ - hatchet.lock
143
189
  - lib/platform-api.rb
144
190
  - lib/platform-api/client.rb
145
191
  - lib/platform-api/schema.json
146
192
  - lib/platform-api/version.rb
147
193
  - platform-api.gemspec
148
194
  - schema.json
149
- - spec/acceptance/generated_client_spec.rb
150
- - spec/spec_helper.rb
151
195
  homepage: https://github.com/heroku/platform-api
152
196
  licenses:
153
197
  - MIT
@@ -163,12 +207,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
207
  version: '0'
164
208
  required_rubygems_version: !ruby/object:Gem::Requirement
165
209
  requirements:
166
- - - ">="
210
+ - - ">"
167
211
  - !ruby/object:Gem::Version
168
- version: '0'
212
+ version: 1.3.1
169
213
  requirements: []
170
- rubyforge_project:
171
- rubygems_version: 2.7.6
214
+ rubygems_version: 3.1.2
172
215
  signing_key:
173
216
  specification_version: 4
174
217
  summary: Ruby HTTP client for the Heroku API.
@@ -1,56 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- platform-api (2.2.0)
5
- heroics (~> 0.0.25)
6
- moneta (~> 1.0.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- coderay (1.1.2)
12
- diff-lcs (1.3)
13
- erubis (2.7.0)
14
- excon (0.62.0)
15
- heroics (0.0.25)
16
- erubis (~> 2.0)
17
- excon
18
- moneta
19
- multi_json (>= 1.9.2)
20
- method_source (0.9.0)
21
- moneta (1.0.0)
22
- multi_json (1.13.1)
23
- netrc (0.11.0)
24
- pry (0.11.3)
25
- coderay (~> 1.1.0)
26
- method_source (~> 0.9.0)
27
- rake (12.3.1)
28
- rspec (3.8.0)
29
- rspec-core (~> 3.8.0)
30
- rspec-expectations (~> 3.8.0)
31
- rspec-mocks (~> 3.8.0)
32
- rspec-core (3.8.0)
33
- rspec-support (~> 3.8.0)
34
- rspec-expectations (3.8.1)
35
- diff-lcs (>= 1.2.0, < 2.0)
36
- rspec-support (~> 3.8.0)
37
- rspec-mocks (3.8.0)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-support (3.8.0)
41
- yard (0.9.16)
42
-
43
- PLATFORMS
44
- ruby
45
-
46
- DEPENDENCIES
47
- bundler (~> 1.3)
48
- netrc
49
- platform-api!
50
- pry
51
- rake
52
- rspec
53
- yard
54
-
55
- BUNDLED WITH
56
- 1.16.4
@@ -1,74 +0,0 @@
1
- require 'netrc'
2
- require 'platform-api'
3
-
4
- describe 'The generated platform api client' do
5
- it "can get account info" do
6
- expect(client.account.info).not_to be_empty
7
- end
8
-
9
- it "can get addon info for an app" do
10
- expect(client.addon.list_by_app(an_app['name'])).not_to be_empty
11
- end
12
-
13
- it "can list apps" do
14
- expect(client.app.list).not_to be_empty
15
- end
16
-
17
- it "can get app info" do
18
- expect(client.app.info(an_app['name'])).to eq an_app
19
- end
20
-
21
- it "can get build info" do
22
- expect(client.build.list(an_app['name'])).not_to be_empty
23
- end
24
-
25
- it "can get config vars" do
26
- expect(client.config_var.info_for_app(an_app['name'])).not_to be_empty
27
- end
28
-
29
- it "can get domain list and info" do
30
- domains = client.domain.list(an_app['name'])
31
- expect(domains).not_to be_empty
32
-
33
- expect(client.domain.info(an_app['name'], domains.first['hostname'])).not_to be_empty
34
- end
35
-
36
- it "can get dyno sizes" do
37
- expect(client.dyno_size.list).not_to be_empty
38
- end
39
-
40
- it "can get add-on plan info" do
41
- expect(client.plan.list_by_addon('heroku-postgresql')).not_to be_empty
42
- end
43
-
44
- it "can get release info" do
45
- expect(client.release.list(an_app['name'])).not_to be_empty
46
- end
47
-
48
- it "can get app webhooks" do
49
- expect(client.app_webhook.list(an_app['name'])).not_to be_empty
50
- end
51
-
52
- def an_app
53
- @app ||= client.app.list.first
54
- end
55
-
56
- def email
57
- @email
58
- end
59
-
60
- def client
61
- @client ||=
62
- begin
63
- entry = Netrc.read['api.heroku.com']
64
- if entry
65
- oauth_token = entry.password
66
- @email = entry.login
67
- else
68
- oauth_token = ENV['OAUTH_TOKEN']
69
- @email = ENV['ACCOUNT_EMAIL']
70
- end
71
- PlatformAPI.connect_oauth(oauth_token)
72
- end
73
- end
74
- end
@@ -1,20 +0,0 @@
1
- require 'pry'
2
- RSpec.configure do |config|
3
- config.expect_with :rspec do |expectations|
4
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
5
- end
6
-
7
- config.mock_with :rspec do |mocks|
8
- mocks.verify_partial_doubles = true
9
- end
10
-
11
- config.shared_context_metadata_behavior = :apply_to_host_groups
12
- config.filter_run_when_matching :focus
13
- config.example_status_persistence_file_path = "spec/examples.txt"
14
- config.warnings = true
15
- if config.files_to_run.one?
16
- config.default_formatter = 'doc'
17
- end
18
- config.order = :random
19
- Kernel.srand config.seed
20
- end