pulp_2to3_migration_client 0.12.0.dev1623642407 → 0.13.0.dev1626062157
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 +4 -4
- data/Gemfile +1 -1
- data/README.md +4 -4
- data/lib/pulp_2to3_migration_client.rb +1 -1
- data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +1 -1
- data/lib/pulp_2to3_migration_client/api/pulp2_content_api.rb +1 -1
- data/lib/pulp_2to3_migration_client/api/pulp2_repositories_api.rb +1 -1
- data/lib/pulp_2to3_migration_client/api_client.rb +12 -8
- data/lib/pulp_2to3_migration_client/api_error.rb +1 -1
- data/lib/pulp_2to3_migration_client/configuration.rb +8 -1
- data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_migration_plan_response_list.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_content_response_list.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/paginatedpulp2to3_migration_pulp2_repository_response_list.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_content_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_pulp2_repository_response.rb +1 -1
- data/lib/pulp_2to3_migration_client/version.rb +2 -2
- data/pulp_2to3_migration_client.gemspec +1 -1
- data/spec/api/migration_plans_api_spec.rb +1 -1
- data/spec/api/pulp2_content_api_spec.rb +1 -1
- data/spec/api/pulp2_repositories_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/migration_plan_run_spec.rb +1 -1
- data/spec/models/paginatedpulp2to3_migration_migration_plan_response_list_spec.rb +1 -1
- data/spec/models/paginatedpulp2to3_migration_pulp2_content_response_list_spec.rb +1 -1
- data/spec/models/paginatedpulp2to3_migration_pulp2_repository_response_list_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_migration_plan_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_pulp2_content_response_spec.rb +1 -1
- data/spec/models/pulp2to3_migration_pulp2_repository_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d968f2e1e92094a70b33cd1d4922f6055979348cb121f25af37f0eb5a56f4701
|
4
|
+
data.tar.gz: fc085e45912a5ab16f4649a4f2aa4791c3914ce373c37784d59cefc5985484a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d368e799d0701056e4de6ef2ed24b570bf5200325f90fa1f5d7550c91e04461d8e28bde3e97773ea53b7a723a2f61a393e637467920792ec834a34fe464c625
|
7
|
+
data.tar.gz: 658ea769c59903c68c63cfafdb4fa1d317a713883f0717a89d49c69437d996603fe217438328ad608a63602b51b3de4cf5fd9a3a71b73d7ee832e3d34053ce59
|
data/Gemfile
CHANGED
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.
|
10
|
+
- Package version: 0.13.0.dev1626062157
|
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.
|
27
|
+
gem install ./pulp_2to3_migration_client-0.13.0.dev1626062157.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.
|
30
|
+
(for development, run `gem install --dev ./pulp_2to3_migration_client-0.13.0.dev1626062157.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.
|
36
|
+
gem 'pulp_2to3_migration_client', '~> 0.13.0.dev1626062157'
|
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.
|
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
|
-
|
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
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
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.
|
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,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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module Pulp2to3MigrationClient
|
14
|
-
VERSION = '0.
|
14
|
+
VERSION = '0.13.0.dev1626062157'
|
15
15
|
end
|
data/spec/api_client_spec.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.
|
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
|
|
data/spec/configuration_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.13.0.dev1626062157
|
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-
|
11
|
+
date: 2021-07-12 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
|