3scale_toolbox 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/lib/3scale_toolbox.rb +2 -0
  4. data/lib/3scale_toolbox/3scale_client_factory.rb +9 -5
  5. data/lib/3scale_toolbox/base_command.rb +5 -1
  6. data/lib/3scale_toolbox/cli.rb +8 -4
  7. data/lib/3scale_toolbox/commands/3scale_command.rb +6 -0
  8. data/lib/3scale_toolbox/commands/copy_command.rb +4 -0
  9. data/lib/3scale_toolbox/commands/import_command.rb +4 -0
  10. data/lib/3scale_toolbox/commands/import_command/openapi.rb +23 -11
  11. data/lib/3scale_toolbox/commands/import_command/openapi/create_activedocs_step.rb +4 -2
  12. data/lib/3scale_toolbox/commands/import_command/openapi/create_service_step.rb +6 -1
  13. data/lib/3scale_toolbox/commands/import_command/openapi/method.rb +1 -1
  14. data/lib/3scale_toolbox/commands/import_command/openapi/resource_reader.rb +2 -0
  15. data/lib/3scale_toolbox/commands/import_command/openapi/step.rb +12 -0
  16. data/lib/3scale_toolbox/commands/import_command/openapi/threescale_api_spec.rb +36 -1
  17. data/lib/3scale_toolbox/commands/import_command/openapi/update_policies_step.rb +89 -0
  18. data/lib/3scale_toolbox/commands/import_command/openapi/update_service_oidc_conf_step.rb +59 -0
  19. data/lib/3scale_toolbox/commands/import_command/openapi/update_service_proxy_step.rb +68 -0
  20. data/lib/3scale_toolbox/commands/update_command.rb +4 -0
  21. data/lib/3scale_toolbox/entities/service.rb +29 -4
  22. data/lib/3scale_toolbox/helper.rb +6 -0
  23. data/lib/3scale_toolbox/proxy_logger.rb +20 -0
  24. data/lib/3scale_toolbox/swagger.rb +1 -0
  25. data/lib/3scale_toolbox/swagger/swagger.rb +121 -0
  26. data/lib/3scale_toolbox/tasks/update_service_settings_task.rb +19 -2
  27. data/lib/3scale_toolbox/version.rb +1 -1
  28. data/resources/swagger_meta_schema.json +1607 -0
  29. metadata +15 -8
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: 3scale_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Cichra
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-03-08 00:00:00.000000000 Z
12
+ date: 2019-04-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -87,14 +87,14 @@ dependencies:
87
87
  requirements:
88
88
  - - "~>"
89
89
  - !ruby/object:Gem::Version
90
- version: 0.1.8
90
+ version: 0.1.9
91
91
  type: :runtime
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
95
  - - "~>"
96
96
  - !ruby/object:Gem::Version
97
- version: 0.1.8
97
+ version: 0.1.9
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: cri
100
100
  requirement: !ruby/object:Gem::Requirement
@@ -110,19 +110,19 @@ dependencies:
110
110
  - !ruby/object:Gem::Version
111
111
  version: '2.15'
112
112
  - !ruby/object:Gem::Dependency
113
- name: swagger-core
113
+ name: json-schema
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
116
  - - "~>"
117
117
  - !ruby/object:Gem::Version
118
- version: '0.3'
118
+ version: '2.8'
119
119
  type: :runtime
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
- version: '0.3'
125
+ version: '2.8'
126
126
  description: 3scale tools to manage your API from the terminal.
127
127
  email:
128
128
  - michal@3scale.net
@@ -157,6 +157,9 @@ files:
157
157
  - lib/3scale_toolbox/commands/import_command/openapi/resource_reader.rb
158
158
  - lib/3scale_toolbox/commands/import_command/openapi/step.rb
159
159
  - lib/3scale_toolbox/commands/import_command/openapi/threescale_api_spec.rb
160
+ - lib/3scale_toolbox/commands/import_command/openapi/update_policies_step.rb
161
+ - lib/3scale_toolbox/commands/import_command/openapi/update_service_oidc_conf_step.rb
162
+ - lib/3scale_toolbox/commands/import_command/openapi/update_service_proxy_step.rb
160
163
  - lib/3scale_toolbox/commands/remote_command.rb
161
164
  - lib/3scale_toolbox/commands/remote_command/remote_add.rb
162
165
  - lib/3scale_toolbox/commands/remote_command/remote_list.rb
@@ -169,7 +172,10 @@ files:
169
172
  - lib/3scale_toolbox/entities/service.rb
170
173
  - lib/3scale_toolbox/error.rb
171
174
  - lib/3scale_toolbox/helper.rb
175
+ - lib/3scale_toolbox/proxy_logger.rb
172
176
  - lib/3scale_toolbox/remotes.rb
177
+ - lib/3scale_toolbox/swagger.rb
178
+ - lib/3scale_toolbox/swagger/swagger.rb
173
179
  - lib/3scale_toolbox/tasks.rb
174
180
  - lib/3scale_toolbox/tasks/copy_activedocs_task.rb
175
181
  - lib/3scale_toolbox/tasks/copy_app_plans_task.rb
@@ -186,6 +192,7 @@ files:
186
192
  - lib/3scale_toolbox/tasks/helper_task.rb
187
193
  - lib/3scale_toolbox/tasks/update_service_settings_task.rb
188
194
  - lib/3scale_toolbox/version.rb
195
+ - resources/swagger_meta_schema.json
189
196
  homepage: https://github.com/3scale/3scale_toolbox
190
197
  licenses:
191
198
  - MIT
@@ -198,7 +205,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
205
  requirements:
199
206
  - - ">="
200
207
  - !ruby/object:Gem::Version
201
- version: '2.3'
208
+ version: '2.4'
202
209
  required_rubygems_version: !ruby/object:Gem::Requirement
203
210
  requirements:
204
211
  - - ">="