scalingo 3.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/.rubocop.yml +16 -0
- data/.travis.yml +24 -0
- data/CHANGELOG.md +29 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +110 -0
- data/LICENSE.txt +22 -0
- data/README.md +147 -0
- data/Rakefile +6 -0
- data/bin/console +12 -0
- data/bin/setup +8 -0
- data/lib/scalingo.rb +2 -0
- data/lib/scalingo/api/client.rb +79 -0
- data/lib/scalingo/api/endpoint.rb +23 -0
- data/lib/scalingo/api/response.rb +71 -0
- data/lib/scalingo/auth.rb +21 -0
- data/lib/scalingo/auth/keys.rb +56 -0
- data/lib/scalingo/auth/scm_integrations.rb +57 -0
- data/lib/scalingo/auth/tokens.rb +78 -0
- data/lib/scalingo/auth/two_factor_auth.rb +61 -0
- data/lib/scalingo/auth/user.rb +31 -0
- data/lib/scalingo/bearer_token.rb +20 -0
- data/lib/scalingo/client.rb +105 -0
- data/lib/scalingo/config.rb +38 -0
- data/lib/scalingo/error/expired_token.rb +6 -0
- data/lib/scalingo/error/unauthenticated.rb +6 -0
- data/lib/scalingo/errors.rb +2 -0
- data/lib/scalingo/regional.rb +35 -0
- data/lib/scalingo/regional/addons.rb +109 -0
- data/lib/scalingo/regional/apps.rb +109 -0
- data/lib/scalingo/regional/collaborators.rb +57 -0
- data/lib/scalingo/regional/containers.rb +57 -0
- data/lib/scalingo/regional/deployments.rb +44 -0
- data/lib/scalingo/regional/domains.rb +70 -0
- data/lib/scalingo/regional/environment.rb +83 -0
- data/lib/scalingo/regional/events.rb +55 -0
- data/lib/scalingo/regional/logs.rb +38 -0
- data/lib/scalingo/regional/metrics.rb +41 -0
- data/lib/scalingo/regional/notifiers.rb +96 -0
- data/lib/scalingo/regional/operations.rb +18 -0
- data/lib/scalingo/regional/scm_repo_links.rb +109 -0
- data/lib/scalingo/version.rb +3 -0
- data/samples/auth/keys/_meta.json +13 -0
- data/samples/auth/keys/all-200.json +62 -0
- data/samples/auth/keys/create-201.json +67 -0
- data/samples/auth/keys/create-422.json +34 -0
- data/samples/auth/keys/destroy-204.json +19 -0
- data/samples/auth/keys/destroy-404.json +19 -0
- data/samples/auth/keys/show-200.json +60 -0
- data/samples/auth/keys/show-404.json +19 -0
- data/samples/auth/scm_integrations/_meta.json +14 -0
- data/samples/auth/scm_integrations/all-200.json +41 -0
- data/samples/auth/scm_integrations/create-201.json +41 -0
- data/samples/auth/scm_integrations/create-422.json +36 -0
- data/samples/auth/scm_integrations/destroy-204.json +15 -0
- data/samples/auth/scm_integrations/destroy-404.json +23 -0
- data/samples/auth/scm_integrations/show-200.json +34 -0
- data/samples/auth/scm_integrations/show-404.json +23 -0
- data/samples/auth/tokens/_meta.json +13 -0
- data/samples/auth/tokens/all-200.json +32 -0
- data/samples/auth/tokens/create-201.json +37 -0
- data/samples/auth/tokens/destroy-204.json +19 -0
- data/samples/auth/tokens/destroy-404.json +19 -0
- data/samples/auth/tokens/exchange-200.json +25 -0
- data/samples/auth/tokens/exchange-401.json +24 -0
- data/samples/auth/tokens/renew-200.json +32 -0
- data/samples/auth/tokens/renew-404.json +20 -0
- data/samples/auth/two_factor_auth/_meta.json +10 -0
- data/samples/auth/two_factor_auth/disable-not-initiated.json +23 -0
- data/samples/auth/two_factor_auth/disable-success.json +29 -0
- data/samples/auth/two_factor_auth/initiate-already-enabled.json +29 -0
- data/samples/auth/two_factor_auth/initiate-success.json +36 -0
- data/samples/auth/two_factor_auth/initiate-wrong-provider.json +29 -0
- data/samples/auth/two_factor_auth/status.json +29 -0
- data/samples/auth/two_factor_auth/validate-not-initiated.json +29 -0
- data/samples/auth/two_factor_auth/validate-success.json +49 -0
- data/samples/auth/two_factor_auth/validate-wrong.json +29 -0
- data/samples/auth/user/_meta.json +10 -0
- data/samples/auth/user/self.json +54 -0
- data/samples/auth/user/update-200.json +59 -0
- data/samples/auth/user/update-422.json +33 -0
- data/samples/regional/addons/_meta.json +22 -0
- data/samples/regional/addons/categories-guest.json +36 -0
- data/samples/regional/addons/categories-logged.json +37 -0
- data/samples/regional/addons/destroy-204.json +19 -0
- data/samples/regional/addons/destroy-404.json +24 -0
- data/samples/regional/addons/find-200.json +48 -0
- data/samples/regional/addons/find-404.json +24 -0
- data/samples/regional/addons/for-200.json +50 -0
- data/samples/regional/addons/providers-guest.json +588 -0
- data/samples/regional/addons/providers-logged.json +705 -0
- data/samples/regional/addons/provision-201.json +58 -0
- data/samples/regional/addons/provision-400.json +29 -0
- data/samples/regional/addons/sso-200.json +49 -0
- data/samples/regional/addons/sso-404.json +24 -0
- data/samples/regional/addons/update-200.json +58 -0
- data/samples/regional/addons/update-404.json +30 -0
- data/samples/regional/apps/_meta.json +52 -0
- data/samples/regional/apps/all.json +99 -0
- data/samples/regional/apps/create-201.json +66 -0
- data/samples/regional/apps/create-422.json +34 -0
- data/samples/regional/apps/destroy-204.json +19 -0
- data/samples/regional/apps/destroy-404.json +24 -0
- data/samples/regional/apps/destroy-422.json +27 -0
- data/samples/regional/apps/find-200.json +60 -0
- data/samples/regional/apps/find-404.json +24 -0
- data/samples/regional/apps/logs_url.json +62 -0
- data/samples/regional/apps/rename-200.json +65 -0
- data/samples/regional/apps/rename-404.json +29 -0
- data/samples/regional/apps/rename-422.json +33 -0
- data/samples/regional/apps/transfer-200.json +65 -0
- data/samples/regional/apps/transfer-404.json +27 -0
- data/samples/regional/apps/transfer-422.json +34 -0
- data/samples/regional/apps/update-200.json +66 -0
- data/samples/regional/apps/update-stack-404.json +30 -0
- data/samples/regional/collaborators/_meta.json +17 -0
- data/samples/regional/collaborators/accept-200.json +60 -0
- data/samples/regional/collaborators/accept-400.json +24 -0
- data/samples/regional/collaborators/accept-404.json +24 -0
- data/samples/regional/collaborators/destroy-204.json +19 -0
- data/samples/regional/collaborators/destroy-404.json +24 -0
- data/samples/regional/collaborators/for-200.json +34 -0
- data/samples/regional/collaborators/invite-201.json +37 -0
- data/samples/regional/collaborators/invite-422.json +34 -0
- data/samples/regional/containers/_meta.json +25 -0
- data/samples/regional/containers/for-200.json +39 -0
- data/samples/regional/containers/restart-202.json +28 -0
- data/samples/regional/containers/restart-422.json +33 -0
- data/samples/regional/containers/scale-202.json +48 -0
- data/samples/regional/containers/scale-422.json +36 -0
- data/samples/regional/containers/sizes-guest.json +115 -0
- data/samples/regional/containers/sizes-logged.json +116 -0
- data/samples/regional/deployments/_meta.json +8 -0
- data/samples/regional/deployments/find-200.json +45 -0
- data/samples/regional/deployments/find-404.json +24 -0
- data/samples/regional/deployments/for-with-paging.json +35 -0
- data/samples/regional/deployments/for-without-pages.json +56 -0
- data/samples/regional/deployments/logs-200.json +22 -0
- data/samples/regional/deployments/logs-404.json +24 -0
- data/samples/regional/domains/_meta.json +21 -0
- data/samples/regional/domains/create-201.json +44 -0
- data/samples/regional/domains/create-422.json +33 -0
- data/samples/regional/domains/destroy-204.json +19 -0
- data/samples/regional/domains/destroy-404.json +24 -0
- data/samples/regional/domains/find-200.json +38 -0
- data/samples/regional/domains/find-404.json +24 -0
- data/samples/regional/domains/for-200.json +40 -0
- data/samples/regional/domains/update-200.json +44 -0
- data/samples/regional/domains/update-404.json +30 -0
- data/samples/regional/domains/update-422.json +33 -0
- data/samples/regional/environment/_meta.json +43 -0
- data/samples/regional/environment/bulk-destroy-204.json +19 -0
- data/samples/regional/environment/bulk-update-200.json +70 -0
- data/samples/regional/environment/create-201.json +36 -0
- data/samples/regional/environment/create-422.json +37 -0
- data/samples/regional/environment/destroy-204.json +19 -0
- data/samples/regional/environment/destroy-404.json +24 -0
- data/samples/regional/environment/for-200.json +31 -0
- data/samples/regional/environment/update-200.json +35 -0
- data/samples/regional/environment/update-404.json +30 -0
- data/samples/regional/events/_meta.json +3 -0
- data/samples/regional/events/all-200.json +619 -0
- data/samples/regional/events/categories-guest.json +66 -0
- data/samples/regional/events/categories-logged.json +67 -0
- data/samples/regional/events/for-200.json +404 -0
- data/samples/regional/events/types-guest.json +288 -0
- data/samples/regional/events/types-logged.json +289 -0
- data/samples/regional/logs/_meta.json +11 -0
- data/samples/regional/logs/archives-200.json +28 -0
- data/samples/regional/logs/get-guest-200.json +18 -0
- data/samples/regional/logs/get-logged-200.json +19 -0
- data/samples/regional/logs/get-with-limit-200.json +18 -0
- data/samples/regional/metrics/_meta.json +15 -0
- data/samples/regional/metrics/for-invalid-400.json +23 -0
- data/samples/regional/metrics/for-valid-cpu-200.json +747 -0
- data/samples/regional/metrics/for-valid-router-404.json +23 -0
- data/samples/regional/metrics/types-guest.json +66 -0
- data/samples/regional/metrics/types-logged.json +67 -0
- data/samples/regional/notifiers/_meta.json +23 -0
- data/samples/regional/notifiers/create-201.json +55 -0
- data/samples/regional/notifiers/create-404.json +30 -0
- data/samples/regional/notifiers/create-422.json +36 -0
- data/samples/regional/notifiers/destroy-204.json +19 -0
- data/samples/regional/notifiers/destroy-404.json +24 -0
- data/samples/regional/notifiers/find-200.json +47 -0
- data/samples/regional/notifiers/find-404.json +24 -0
- data/samples/regional/notifiers/for-200.json +49 -0
- data/samples/regional/notifiers/platforms-guest.json +184 -0
- data/samples/regional/notifiers/platforms-logged.json +185 -0
- data/samples/regional/notifiers/test-200.json +22 -0
- data/samples/regional/notifiers/test-404.json +25 -0
- data/samples/regional/notifiers/update-200.json +53 -0
- data/samples/regional/operations/_meta.json +5 -0
- data/samples/regional/operations/find-200.json +31 -0
- data/samples/regional/operations/find-404.json +24 -0
- data/samples/regional/scm_repo_links/_meta.json +22 -0
- data/samples/regional/scm_repo_links/create-201.json +54 -0
- data/samples/regional/scm_repo_links/destroy-204.json +15 -0
- data/samples/regional/scm_repo_links/manual-deploy-200.json +32 -0
- data/samples/regional/scm_repo_links/show-200.json +43 -0
- data/samples/regional/scm_repo_links/update-200.json +50 -0
- data/scalingo.gemspec +51 -0
- data/spec/scalingo/auth/keys_spec.rb +58 -0
- data/spec/scalingo/auth/scm_integrations_spec.rb +58 -0
- data/spec/scalingo/auth/tokens_spec.rb +74 -0
- data/spec/scalingo/auth/two_factor_auth_spec.rb +69 -0
- data/spec/scalingo/auth/user_spec.rb +25 -0
- data/spec/scalingo/regional/addons_spec.rb +133 -0
- data/spec/scalingo/regional/apps_spec.rb +137 -0
- data/spec/scalingo/regional/collaborators_spec.rb +69 -0
- data/spec/scalingo/regional/containers_spec.rb +67 -0
- data/spec/scalingo/regional/deployments_spec.rb +45 -0
- data/spec/scalingo/regional/domains_spec.rb +84 -0
- data/spec/scalingo/regional/environment_spec.rb +77 -0
- data/spec/scalingo/regional/events_spec.rb +65 -0
- data/spec/scalingo/regional/logs_spec.rb +39 -0
- data/spec/scalingo/regional/metrics_spec.rb +46 -0
- data/spec/scalingo/regional/notifiers_spec.rb +113 -0
- data/spec/scalingo/regional/operations_spec.rb +19 -0
- data/spec/scalingo/regional/scm_repo_links_spec.rb +48 -0
- metadata +488 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Scalingo::Regional::Operations do
|
4
|
+
describe_method "find" do
|
5
|
+
context "success" do
|
6
|
+
let(:arguments) { [meta[:app_id], meta[:id]] }
|
7
|
+
let(:stub_pattern) { "find-200" }
|
8
|
+
|
9
|
+
it_behaves_like "a singular object response"
|
10
|
+
end
|
11
|
+
|
12
|
+
context "failure" do
|
13
|
+
let(:arguments) { [meta[:app_id], meta[:not_found_id]] }
|
14
|
+
let(:stub_pattern) { "find-404" }
|
15
|
+
|
16
|
+
it_behaves_like "a not found response"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
RSpec.describe Scalingo::Regional::ScmRepoLinks do
|
4
|
+
describe_method "show" do
|
5
|
+
context "success" do
|
6
|
+
let(:arguments) { meta[:app_id] }
|
7
|
+
let(:stub_pattern) { "show-200" }
|
8
|
+
|
9
|
+
it_behaves_like "a singular object response"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe_method "create" do
|
14
|
+
context "success" do
|
15
|
+
let(:arguments) { [meta[:app_id], meta[:create][:valid]] }
|
16
|
+
let(:stub_pattern) { "create-201" }
|
17
|
+
|
18
|
+
it_behaves_like "a singular object response", 201
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
describe_method "update" do
|
23
|
+
context "success" do
|
24
|
+
let(:arguments) { [meta[:app_id], meta[:update][:valid]] }
|
25
|
+
let(:stub_pattern) { "update-200" }
|
26
|
+
|
27
|
+
it_behaves_like "a singular object response"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe_method "deploy" do
|
32
|
+
context "success" do
|
33
|
+
let(:arguments) { [meta[:app_id], meta[:deploy][:valid]] }
|
34
|
+
let(:stub_pattern) { "manual-deploy-200" }
|
35
|
+
|
36
|
+
it_behaves_like "a singular object response"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe_method "destroy" do
|
41
|
+
context "success" do
|
42
|
+
let(:arguments) { meta[:app_id] }
|
43
|
+
let(:stub_pattern) { "destroy-204" }
|
44
|
+
|
45
|
+
it_behaves_like "an empty response"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
metadata
ADDED
@@ -0,0 +1,488 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: scalingo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0.beta.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Leo Unbekandt
|
8
|
+
- Kevin Soltysiak
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain: []
|
12
|
+
date: 2020-06-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '5'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '7'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '5'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '7'
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: activemodel
|
36
|
+
requirement: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5'
|
41
|
+
- - "<"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '7'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '5'
|
51
|
+
- - "<"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '7'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: dry-configurable
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.11'
|
61
|
+
type: :runtime
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0.11'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: faraday
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.0.1
|
75
|
+
type: :runtime
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 1.0.1
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: faraday_middleware
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 1.0.0
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 1.0.0
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: multi_json
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '1.0'
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 1.0.3
|
106
|
+
type: :runtime
|
107
|
+
prerelease: false
|
108
|
+
version_requirements: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - "~>"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '1.0'
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: 1.0.3
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: bundler
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - "~>"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '2.0'
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '2.0'
|
130
|
+
- !ruby/object:Gem::Dependency
|
131
|
+
name: rake
|
132
|
+
requirement: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '10.0'
|
137
|
+
type: :development
|
138
|
+
prerelease: false
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '10.0'
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
name: rspec
|
146
|
+
requirement: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "~>"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '3.0'
|
151
|
+
type: :development
|
152
|
+
prerelease: false
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - "~>"
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '3.0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: rubocop
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - "~>"
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: 0.83.0
|
165
|
+
type: :development
|
166
|
+
prerelease: false
|
167
|
+
version_requirements: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - "~>"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: 0.83.0
|
172
|
+
- !ruby/object:Gem::Dependency
|
173
|
+
name: standard
|
174
|
+
requirement: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: 0.4.2
|
179
|
+
type: :development
|
180
|
+
prerelease: false
|
181
|
+
version_requirements: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - "~>"
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: 0.4.2
|
186
|
+
- !ruby/object:Gem::Dependency
|
187
|
+
name: pry
|
188
|
+
requirement: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: 0.13.1
|
193
|
+
type: :development
|
194
|
+
prerelease: false
|
195
|
+
version_requirements: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 0.13.1
|
200
|
+
- !ruby/object:Gem::Dependency
|
201
|
+
name: webmock
|
202
|
+
requirement: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 3.8.0
|
207
|
+
type: :development
|
208
|
+
prerelease: false
|
209
|
+
version_requirements: !ruby/object:Gem::Requirement
|
210
|
+
requirements:
|
211
|
+
- - "~>"
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: 3.8.0
|
214
|
+
description: Ruby client library for the web APIs of Scalingo, a european Platform-as-a-Service
|
215
|
+
email:
|
216
|
+
- leo@scalingo.com
|
217
|
+
- kevin@scalingo.com
|
218
|
+
executables: []
|
219
|
+
extensions: []
|
220
|
+
extra_rdoc_files: []
|
221
|
+
files:
|
222
|
+
- ".gitignore"
|
223
|
+
- ".rubocop.yml"
|
224
|
+
- ".travis.yml"
|
225
|
+
- CHANGELOG.md
|
226
|
+
- Gemfile
|
227
|
+
- Gemfile.lock
|
228
|
+
- LICENSE.txt
|
229
|
+
- README.md
|
230
|
+
- Rakefile
|
231
|
+
- bin/console
|
232
|
+
- bin/setup
|
233
|
+
- lib/scalingo.rb
|
234
|
+
- lib/scalingo/api/client.rb
|
235
|
+
- lib/scalingo/api/endpoint.rb
|
236
|
+
- lib/scalingo/api/response.rb
|
237
|
+
- lib/scalingo/auth.rb
|
238
|
+
- lib/scalingo/auth/keys.rb
|
239
|
+
- lib/scalingo/auth/scm_integrations.rb
|
240
|
+
- lib/scalingo/auth/tokens.rb
|
241
|
+
- lib/scalingo/auth/two_factor_auth.rb
|
242
|
+
- lib/scalingo/auth/user.rb
|
243
|
+
- lib/scalingo/bearer_token.rb
|
244
|
+
- lib/scalingo/client.rb
|
245
|
+
- lib/scalingo/config.rb
|
246
|
+
- lib/scalingo/error/expired_token.rb
|
247
|
+
- lib/scalingo/error/unauthenticated.rb
|
248
|
+
- lib/scalingo/errors.rb
|
249
|
+
- lib/scalingo/regional.rb
|
250
|
+
- lib/scalingo/regional/addons.rb
|
251
|
+
- lib/scalingo/regional/apps.rb
|
252
|
+
- lib/scalingo/regional/collaborators.rb
|
253
|
+
- lib/scalingo/regional/containers.rb
|
254
|
+
- lib/scalingo/regional/deployments.rb
|
255
|
+
- lib/scalingo/regional/domains.rb
|
256
|
+
- lib/scalingo/regional/environment.rb
|
257
|
+
- lib/scalingo/regional/events.rb
|
258
|
+
- lib/scalingo/regional/logs.rb
|
259
|
+
- lib/scalingo/regional/metrics.rb
|
260
|
+
- lib/scalingo/regional/notifiers.rb
|
261
|
+
- lib/scalingo/regional/operations.rb
|
262
|
+
- lib/scalingo/regional/scm_repo_links.rb
|
263
|
+
- lib/scalingo/version.rb
|
264
|
+
- samples/auth/keys/_meta.json
|
265
|
+
- samples/auth/keys/all-200.json
|
266
|
+
- samples/auth/keys/create-201.json
|
267
|
+
- samples/auth/keys/create-422.json
|
268
|
+
- samples/auth/keys/destroy-204.json
|
269
|
+
- samples/auth/keys/destroy-404.json
|
270
|
+
- samples/auth/keys/show-200.json
|
271
|
+
- samples/auth/keys/show-404.json
|
272
|
+
- samples/auth/scm_integrations/_meta.json
|
273
|
+
- samples/auth/scm_integrations/all-200.json
|
274
|
+
- samples/auth/scm_integrations/create-201.json
|
275
|
+
- samples/auth/scm_integrations/create-422.json
|
276
|
+
- samples/auth/scm_integrations/destroy-204.json
|
277
|
+
- samples/auth/scm_integrations/destroy-404.json
|
278
|
+
- samples/auth/scm_integrations/show-200.json
|
279
|
+
- samples/auth/scm_integrations/show-404.json
|
280
|
+
- samples/auth/tokens/_meta.json
|
281
|
+
- samples/auth/tokens/all-200.json
|
282
|
+
- samples/auth/tokens/create-201.json
|
283
|
+
- samples/auth/tokens/destroy-204.json
|
284
|
+
- samples/auth/tokens/destroy-404.json
|
285
|
+
- samples/auth/tokens/exchange-200.json
|
286
|
+
- samples/auth/tokens/exchange-401.json
|
287
|
+
- samples/auth/tokens/renew-200.json
|
288
|
+
- samples/auth/tokens/renew-404.json
|
289
|
+
- samples/auth/two_factor_auth/_meta.json
|
290
|
+
- samples/auth/two_factor_auth/disable-not-initiated.json
|
291
|
+
- samples/auth/two_factor_auth/disable-success.json
|
292
|
+
- samples/auth/two_factor_auth/initiate-already-enabled.json
|
293
|
+
- samples/auth/two_factor_auth/initiate-success.json
|
294
|
+
- samples/auth/two_factor_auth/initiate-wrong-provider.json
|
295
|
+
- samples/auth/two_factor_auth/status.json
|
296
|
+
- samples/auth/two_factor_auth/validate-not-initiated.json
|
297
|
+
- samples/auth/two_factor_auth/validate-success.json
|
298
|
+
- samples/auth/two_factor_auth/validate-wrong.json
|
299
|
+
- samples/auth/user/_meta.json
|
300
|
+
- samples/auth/user/self.json
|
301
|
+
- samples/auth/user/update-200.json
|
302
|
+
- samples/auth/user/update-422.json
|
303
|
+
- samples/regional/addons/_meta.json
|
304
|
+
- samples/regional/addons/categories-guest.json
|
305
|
+
- samples/regional/addons/categories-logged.json
|
306
|
+
- samples/regional/addons/destroy-204.json
|
307
|
+
- samples/regional/addons/destroy-404.json
|
308
|
+
- samples/regional/addons/find-200.json
|
309
|
+
- samples/regional/addons/find-404.json
|
310
|
+
- samples/regional/addons/for-200.json
|
311
|
+
- samples/regional/addons/providers-guest.json
|
312
|
+
- samples/regional/addons/providers-logged.json
|
313
|
+
- samples/regional/addons/provision-201.json
|
314
|
+
- samples/regional/addons/provision-400.json
|
315
|
+
- samples/regional/addons/sso-200.json
|
316
|
+
- samples/regional/addons/sso-404.json
|
317
|
+
- samples/regional/addons/update-200.json
|
318
|
+
- samples/regional/addons/update-404.json
|
319
|
+
- samples/regional/apps/_meta.json
|
320
|
+
- samples/regional/apps/all.json
|
321
|
+
- samples/regional/apps/create-201.json
|
322
|
+
- samples/regional/apps/create-422.json
|
323
|
+
- samples/regional/apps/destroy-204.json
|
324
|
+
- samples/regional/apps/destroy-404.json
|
325
|
+
- samples/regional/apps/destroy-422.json
|
326
|
+
- samples/regional/apps/find-200.json
|
327
|
+
- samples/regional/apps/find-404.json
|
328
|
+
- samples/regional/apps/logs_url.json
|
329
|
+
- samples/regional/apps/rename-200.json
|
330
|
+
- samples/regional/apps/rename-404.json
|
331
|
+
- samples/regional/apps/rename-422.json
|
332
|
+
- samples/regional/apps/transfer-200.json
|
333
|
+
- samples/regional/apps/transfer-404.json
|
334
|
+
- samples/regional/apps/transfer-422.json
|
335
|
+
- samples/regional/apps/update-200.json
|
336
|
+
- samples/regional/apps/update-stack-404.json
|
337
|
+
- samples/regional/collaborators/_meta.json
|
338
|
+
- samples/regional/collaborators/accept-200.json
|
339
|
+
- samples/regional/collaborators/accept-400.json
|
340
|
+
- samples/regional/collaborators/accept-404.json
|
341
|
+
- samples/regional/collaborators/destroy-204.json
|
342
|
+
- samples/regional/collaborators/destroy-404.json
|
343
|
+
- samples/regional/collaborators/for-200.json
|
344
|
+
- samples/regional/collaborators/invite-201.json
|
345
|
+
- samples/regional/collaborators/invite-422.json
|
346
|
+
- samples/regional/containers/_meta.json
|
347
|
+
- samples/regional/containers/for-200.json
|
348
|
+
- samples/regional/containers/restart-202.json
|
349
|
+
- samples/regional/containers/restart-422.json
|
350
|
+
- samples/regional/containers/scale-202.json
|
351
|
+
- samples/regional/containers/scale-422.json
|
352
|
+
- samples/regional/containers/sizes-guest.json
|
353
|
+
- samples/regional/containers/sizes-logged.json
|
354
|
+
- samples/regional/deployments/_meta.json
|
355
|
+
- samples/regional/deployments/find-200.json
|
356
|
+
- samples/regional/deployments/find-404.json
|
357
|
+
- samples/regional/deployments/for-with-paging.json
|
358
|
+
- samples/regional/deployments/for-without-pages.json
|
359
|
+
- samples/regional/deployments/logs-200.json
|
360
|
+
- samples/regional/deployments/logs-404.json
|
361
|
+
- samples/regional/domains/_meta.json
|
362
|
+
- samples/regional/domains/create-201.json
|
363
|
+
- samples/regional/domains/create-422.json
|
364
|
+
- samples/regional/domains/destroy-204.json
|
365
|
+
- samples/regional/domains/destroy-404.json
|
366
|
+
- samples/regional/domains/find-200.json
|
367
|
+
- samples/regional/domains/find-404.json
|
368
|
+
- samples/regional/domains/for-200.json
|
369
|
+
- samples/regional/domains/update-200.json
|
370
|
+
- samples/regional/domains/update-404.json
|
371
|
+
- samples/regional/domains/update-422.json
|
372
|
+
- samples/regional/environment/_meta.json
|
373
|
+
- samples/regional/environment/bulk-destroy-204.json
|
374
|
+
- samples/regional/environment/bulk-update-200.json
|
375
|
+
- samples/regional/environment/create-201.json
|
376
|
+
- samples/regional/environment/create-422.json
|
377
|
+
- samples/regional/environment/destroy-204.json
|
378
|
+
- samples/regional/environment/destroy-404.json
|
379
|
+
- samples/regional/environment/for-200.json
|
380
|
+
- samples/regional/environment/update-200.json
|
381
|
+
- samples/regional/environment/update-404.json
|
382
|
+
- samples/regional/events/_meta.json
|
383
|
+
- samples/regional/events/all-200.json
|
384
|
+
- samples/regional/events/categories-guest.json
|
385
|
+
- samples/regional/events/categories-logged.json
|
386
|
+
- samples/regional/events/for-200.json
|
387
|
+
- samples/regional/events/types-guest.json
|
388
|
+
- samples/regional/events/types-logged.json
|
389
|
+
- samples/regional/logs/_meta.json
|
390
|
+
- samples/regional/logs/archives-200.json
|
391
|
+
- samples/regional/logs/get-guest-200.json
|
392
|
+
- samples/regional/logs/get-logged-200.json
|
393
|
+
- samples/regional/logs/get-with-limit-200.json
|
394
|
+
- samples/regional/metrics/_meta.json
|
395
|
+
- samples/regional/metrics/for-invalid-400.json
|
396
|
+
- samples/regional/metrics/for-valid-cpu-200.json
|
397
|
+
- samples/regional/metrics/for-valid-router-404.json
|
398
|
+
- samples/regional/metrics/types-guest.json
|
399
|
+
- samples/regional/metrics/types-logged.json
|
400
|
+
- samples/regional/notifiers/_meta.json
|
401
|
+
- samples/regional/notifiers/create-201.json
|
402
|
+
- samples/regional/notifiers/create-404.json
|
403
|
+
- samples/regional/notifiers/create-422.json
|
404
|
+
- samples/regional/notifiers/destroy-204.json
|
405
|
+
- samples/regional/notifiers/destroy-404.json
|
406
|
+
- samples/regional/notifiers/find-200.json
|
407
|
+
- samples/regional/notifiers/find-404.json
|
408
|
+
- samples/regional/notifiers/for-200.json
|
409
|
+
- samples/regional/notifiers/platforms-guest.json
|
410
|
+
- samples/regional/notifiers/platforms-logged.json
|
411
|
+
- samples/regional/notifiers/test-200.json
|
412
|
+
- samples/regional/notifiers/test-404.json
|
413
|
+
- samples/regional/notifiers/update-200.json
|
414
|
+
- samples/regional/operations/_meta.json
|
415
|
+
- samples/regional/operations/find-200.json
|
416
|
+
- samples/regional/operations/find-404.json
|
417
|
+
- samples/regional/scm_repo_links/_meta.json
|
418
|
+
- samples/regional/scm_repo_links/create-201.json
|
419
|
+
- samples/regional/scm_repo_links/destroy-204.json
|
420
|
+
- samples/regional/scm_repo_links/manual-deploy-200.json
|
421
|
+
- samples/regional/scm_repo_links/show-200.json
|
422
|
+
- samples/regional/scm_repo_links/update-200.json
|
423
|
+
- scalingo.gemspec
|
424
|
+
- spec/scalingo/auth/keys_spec.rb
|
425
|
+
- spec/scalingo/auth/scm_integrations_spec.rb
|
426
|
+
- spec/scalingo/auth/tokens_spec.rb
|
427
|
+
- spec/scalingo/auth/two_factor_auth_spec.rb
|
428
|
+
- spec/scalingo/auth/user_spec.rb
|
429
|
+
- spec/scalingo/regional/addons_spec.rb
|
430
|
+
- spec/scalingo/regional/apps_spec.rb
|
431
|
+
- spec/scalingo/regional/collaborators_spec.rb
|
432
|
+
- spec/scalingo/regional/containers_spec.rb
|
433
|
+
- spec/scalingo/regional/deployments_spec.rb
|
434
|
+
- spec/scalingo/regional/domains_spec.rb
|
435
|
+
- spec/scalingo/regional/environment_spec.rb
|
436
|
+
- spec/scalingo/regional/events_spec.rb
|
437
|
+
- spec/scalingo/regional/logs_spec.rb
|
438
|
+
- spec/scalingo/regional/metrics_spec.rb
|
439
|
+
- spec/scalingo/regional/notifiers_spec.rb
|
440
|
+
- spec/scalingo/regional/operations_spec.rb
|
441
|
+
- spec/scalingo/regional/scm_repo_links_spec.rb
|
442
|
+
homepage: https://www.scalingo.com
|
443
|
+
licenses:
|
444
|
+
- MIT
|
445
|
+
metadata:
|
446
|
+
bug_tracker_uri: https://github.com/Scalingo/scalingo-ruby-api/issues
|
447
|
+
changelog_uri: https://github.com/Scalingo/scalingo-ruby-api/blob/master/CHANGELOG.md
|
448
|
+
documentation_uri: https://developers.scalingo.com/
|
449
|
+
homepage_uri: https://www.scalingo.com/
|
450
|
+
source_code_uri: https://github.com/Scalingo/scalingo-ruby-api
|
451
|
+
post_install_message:
|
452
|
+
rdoc_options: []
|
453
|
+
require_paths:
|
454
|
+
- lib
|
455
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
456
|
+
requirements:
|
457
|
+
- - ">="
|
458
|
+
- !ruby/object:Gem::Version
|
459
|
+
version: '0'
|
460
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
461
|
+
requirements:
|
462
|
+
- - ">"
|
463
|
+
- !ruby/object:Gem::Version
|
464
|
+
version: 1.3.1
|
465
|
+
requirements: []
|
466
|
+
rubygems_version: 3.0.3
|
467
|
+
signing_key:
|
468
|
+
specification_version: 4
|
469
|
+
summary: Ruby client for Scalingo APIs
|
470
|
+
test_files:
|
471
|
+
- spec/scalingo/auth/scm_integrations_spec.rb
|
472
|
+
- spec/scalingo/auth/tokens_spec.rb
|
473
|
+
- spec/scalingo/auth/keys_spec.rb
|
474
|
+
- spec/scalingo/auth/two_factor_auth_spec.rb
|
475
|
+
- spec/scalingo/auth/user_spec.rb
|
476
|
+
- spec/scalingo/regional/collaborators_spec.rb
|
477
|
+
- spec/scalingo/regional/operations_spec.rb
|
478
|
+
- spec/scalingo/regional/notifiers_spec.rb
|
479
|
+
- spec/scalingo/regional/environment_spec.rb
|
480
|
+
- spec/scalingo/regional/deployments_spec.rb
|
481
|
+
- spec/scalingo/regional/apps_spec.rb
|
482
|
+
- spec/scalingo/regional/metrics_spec.rb
|
483
|
+
- spec/scalingo/regional/domains_spec.rb
|
484
|
+
- spec/scalingo/regional/scm_repo_links_spec.rb
|
485
|
+
- spec/scalingo/regional/addons_spec.rb
|
486
|
+
- spec/scalingo/regional/logs_spec.rb
|
487
|
+
- spec/scalingo/regional/containers_spec.rb
|
488
|
+
- spec/scalingo/regional/events_spec.rb
|