pulp_2to3_migration_client 0.12.0.dev1623556137 → 0.13.0.dev1625370861

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +4 -4
  4. data/lib/pulp_2to3_migration_client.rb +1 -1
  5. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +1 -1
  6. data/lib/pulp_2to3_migration_client/api/pulp2_content_api.rb +1 -1
  7. data/lib/pulp_2to3_migration_client/api/pulp2_repositories_api.rb +1 -1
  8. data/lib/pulp_2to3_migration_client/api_client.rb +12 -8
  9. data/lib/pulp_2to3_migration_client/api_error.rb +1 -1
  10. data/lib/pulp_2to3_migration_client/configuration.rb +8 -1
  11. data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +1 -1
  12. data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +1 -1
  13. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_migration_plan_response_list.rb +1 -1
  14. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_content_response_list.rb +1 -1
  15. data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_repository_response_list.rb +1 -1
  16. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +1 -1
  17. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +1 -1
  18. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_response.rb +1 -1
  19. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_response.rb +1 -1
  20. data/lib/pulp_2to3_migration_client/version.rb +2 -2
  21. data/pulp_2to3_migration_client.gemspec +1 -1
  22. data/spec/api/migration_plans_api_spec.rb +1 -1
  23. data/spec/api/pulp2_content_api_spec.rb +1 -1
  24. data/spec/api/pulp2_repositories_api_spec.rb +1 -1
  25. data/spec/api_client_spec.rb +2 -2
  26. data/spec/configuration_spec.rb +1 -1
  27. data/spec/models/async_operation_response_spec.rb +1 -1
  28. data/spec/models/migration_plan_run_spec.rb +1 -1
  29. data/spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb +1 -1
  30. data/spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb +1 -1
  31. data/spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb +1 -1
  32. data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +1 -1
  33. data/spec/models/pulp2to3_migration_migration_plan_spec.rb +1 -1
  34. data/spec/models/pulp2to3_migration_pulp2_content_response_spec.rb +1 -1
  35. data/spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb +1 -1
  36. data/spec/spec_helper.rb +1 -1
  37. metadata +7 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d727fd26050ab5473bc092c15831f140dddcc9121989f64367ff5c5da26afce
4
- data.tar.gz: d5bdfe5f7c391ce4a0e1421101043eefd963e3f0d514289fd03dc910a54b3f15
3
+ metadata.gz: 56b0244595b7e168c9a0f1770148d51ce91ee9fcd780e88f7d9fc3167e9d1d19
4
+ data.tar.gz: 235fbb6198d16911772ea0cca50f93d62912f68554350edeb9233d10b44e4e18
5
5
  SHA512:
6
- metadata.gz: a6f52285f51fe52b52ff96d6dd675390cf14747af5f4b58347a20f5b3322965dbdbb27340ede6347c887714689a22e7a85e52ceb801f20bb767e54a381df2de8
7
- data.tar.gz: 33b4abd4dc51081b9f2d634fb359f1f2bcb2ac1dfdcb717181a4d7064d1293c3d46d228fc915fed90baff4abc72904028ea1624120eae33f71b8d4b038ee040f
6
+ metadata.gz: 8c80bf29f168c71a0901a21ad00e110c434d2678d22f4763a38844e5a460a15f83db52b21d34f1bf44f2b7de6d687378e15a63744846fb7ed48e18d0bc58daf9
7
+ data.tar.gz: 4531f72ead0b3cdfeb378600e70de9b51dd7110d6da3e15d7401069bc50c11608bad69934ddff51b1d9e18a4fb1f1d0f54aa2624102efb21b7b44c7d6fa6287f
data/Gemfile CHANGED
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 13.0.1'
7
7
  gem 'pry-byebug'
8
8
  gem 'rubocop', '~> 0.66.0'
9
9
  end
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 0.12.0.dev1623556137
10
+ - Package version: 0.13.0.dev1625370861
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_2to3_migration_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_2to3_migration_client-0.12.0.dev1623556137.gem
27
+ gem install ./pulp_2to3_migration_client-0.13.0.dev1625370861.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_2to3_migration_client-0.12.0.dev1623556137.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_2to3_migration_client-0.13.0.dev1625370861.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_2to3_migration_client', '~> 0.12.0.dev1623556137'
36
+ gem 'pulp_2to3_migration_client', '~> 0.13.0.dev1625370861'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -53,8 +53,10 @@ module Pulp2to3MigrationClient
53
53
  :client_cert => @config.ssl_client_cert,
54
54
  :client_key => @config.ssl_client_key
55
55
  }
56
-
57
- connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
56
+ request_options = {
57
+ :params_encoder => @config.params_encoder
58
+ }
59
+ connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
58
60
  conn.basic_auth(config.username, config.password)
59
61
  if opts[:header_params]["Content-Type"] == "multipart/form-data"
60
62
  conn.request :multipart
@@ -285,11 +287,13 @@ module Pulp2to3MigrationClient
285
287
  tempfile.write(chunk)
286
288
  end
287
289
  request.on_complete do |response|
288
- tempfile.close if tempfile
289
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
290
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
291
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
292
- "explicitly with `tempfile.delete`"
290
+ if tempfile
291
+ tempfile.close
292
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
293
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
294
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
295
+ "explicitly with `tempfile.delete`"
296
+ end
293
297
  end
294
298
  end
295
299
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -109,6 +109,12 @@ module Pulp2to3MigrationClient
109
109
  # Client private key file (for client certificate)
110
110
  attr_accessor :ssl_client_key
111
111
 
112
+ # Set this to customize parameters encoder of array parameter.
113
+ # Default to nil. Faraday uses NestedParamsEncoder when nil.
114
+ #
115
+ # @see The params_encoder option of Faraday. Related source code:
116
+ # https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
117
+ attr_accessor :params_encoder
112
118
  # Set this to customize parameters encoding of array parameter with multi collectionFormat.
113
119
  # Default to nil.
114
120
  #
@@ -133,6 +139,7 @@ module Pulp2to3MigrationClient
133
139
  @ssl_ca_file = nil
134
140
  @ssl_client_cert = nil
135
141
  @ssl_client_key = nil
142
+ @params_encoder = nil
136
143
  @debugging = false
137
144
  @inject_format = false
138
145
  @force_ending_format = false
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
13
13
  module Pulp2to3MigrationClient
14
- VERSION = '0.12.0.dev1623556137'
14
+ VERSION = '0.13.0.dev1625370861'
15
15
  end
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: v3
9
9
  Contact: pulp-list@redhat.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.3
11
+ OpenAPI Generator version: 4.3.1
12
12
 
13
13
  =end
14
14
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -118,7 +118,7 @@ describe Pulp2to3MigrationClient::ApiClient do
118
118
  end
119
119
 
120
120
  it 'fails for invalid collection format' do
121
- expect{api_client.build_collection_param(param, :INVALID)}.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
121
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
122
122
  end
123
123
  end
124
124
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_2to3_migration_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0.dev1623556137
4
+ version: 0.13.0.dev1625370861
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-13 00:00:00.000000000 Z
11
+ date: 2021-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -145,17 +145,17 @@ specification_version: 4
145
145
  summary: Pulp 3 API Ruby Gem
146
146
  test_files:
147
147
  - spec/api/migration_plans_api_spec.rb
148
- - spec/api/pulp2_repositories_api_spec.rb
149
148
  - spec/api/pulp2_content_api_spec.rb
149
+ - spec/api/pulp2_repositories_api_spec.rb
150
150
  - spec/api_client_spec.rb
151
151
  - spec/configuration_spec.rb
152
- - spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb
153
152
  - spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb
154
- - spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb
155
- - spec/models/pulp2to3_migration_pulp2_content_response_spec.rb
156
153
  - spec/models/pulp2to3_migration_migration_plan_response_spec.rb
157
154
  - spec/models/async_operation_response_spec.rb
155
+ - spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb
156
+ - spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb
157
+ - spec/models/migration_plan_run_spec.rb
158
+ - spec/models/pulp2to3_migration_pulp2_content_response_spec.rb
158
159
  - spec/models/pulp2to3_migration_migration_plan_spec.rb
159
160
  - spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb
160
- - spec/models/migration_plan_run_spec.rb
161
161
  - spec/spec_helper.rb