pulp_file_client 1.10.1 → 1.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/pulp_file_client/api_client.rb +2 -5
- data/lib/pulp_file_client/configuration.rb +1 -0
- data/lib/pulp_file_client/version.rb +1 -1
- data/pulp_file_client.gemspec +3 -3
- metadata +41 -36
- data/git_push.sh +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7162cb1fddf25cb18d92f628c2228fa4df66f491e411d3d43683bc31669b6aed
|
4
|
+
data.tar.gz: 35181dea2790b0c2e5519df820cdb3feb53d69285d56c83b51411dc7b1349be5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '088bebf9c98ddd0007941080e865510b16fdebb291ddb9b20aadcf1cb00ffb80ba93cd3d7ced41f64aae31125a949b7621af29c7f02196aae73815aab13da73b'
|
7
|
+
data.tar.gz: 7eb693879d28187e7a7d3f5fc14f655e30e80a3d123ab19991e2e38d2612052a56458680583c9bdfaa3f432d010446ac349d6ba5da00ac07b89225a1d05e2673
|
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: 1.10.
|
10
|
+
- Package version: 1.10.4
|
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_file_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_file_client-1.10.
|
27
|
+
gem install ./pulp_file_client-1.10.4.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_file_client-1.10.
|
30
|
+
(for development, run `gem install --dev ./pulp_file_client-1.10.4.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_file_client', '~> 1.10.
|
36
|
+
gem 'pulp_file_client', '~> 1.10.4'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -118,9 +118,6 @@ module PulpFileClient
|
|
118
118
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
119
119
|
|
120
120
|
req_opts = {
|
121
|
-
:method => http_method,
|
122
|
-
:headers => header_params,
|
123
|
-
:params => query_params,
|
124
121
|
:params_encoding => @config.params_encoding,
|
125
122
|
:timeout => @config.timeout,
|
126
123
|
:verbose => @config.debugging
|
@@ -128,13 +125,13 @@ module PulpFileClient
|
|
128
125
|
|
129
126
|
if [:post, :patch, :put, :delete].include?(http_method)
|
130
127
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
131
|
-
req_opts.update :body => req_body
|
132
128
|
if @config.debugging
|
133
129
|
@config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
|
134
130
|
end
|
135
131
|
end
|
136
132
|
request.headers = header_params
|
137
133
|
request.body = req_body
|
134
|
+
request.options = OpenStruct.new(req_opts)
|
138
135
|
request.url url
|
139
136
|
request.params = query_params
|
140
137
|
download_file(request) if opts[:return_type] == 'File'
|
@@ -157,7 +154,7 @@ module PulpFileClient
|
|
157
154
|
case value
|
158
155
|
when ::File, ::Tempfile
|
159
156
|
# TODO hardcode to application/octet-stream, need better way to detect content type
|
160
|
-
data[key] = Faraday::
|
157
|
+
data[key] = Faraday::FilePart.new(value.path, 'application/octet-stream', value.path)
|
161
158
|
when ::Array, nil
|
162
159
|
# let Faraday handle Array and nil parameters
|
163
160
|
data[key] = value
|
data/pulp_file_client.gemspec
CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.platform = Gem::Platform::RUBY
|
22
22
|
s.authors = ["OpenAPI-Generator"]
|
23
23
|
s.email = ["pulp-list@redhat.com"]
|
24
|
-
s.homepage = "https://
|
24
|
+
s.homepage = "https://github.com/pulp/pulp_file"
|
25
25
|
s.summary = "Pulp 3 API Ruby Gem"
|
26
26
|
s.description = "Fetch, Upload, Organize, and Distribute Software Packages"
|
27
|
-
s.license = '
|
27
|
+
s.license = 'GPLv2+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '>= 0.
|
30
|
+
s.add_runtime_dependency 'faraday', '>= 0.17', '< 2.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_file_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.10.
|
4
|
+
version: 1.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.17'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '2.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
29
|
+
version: '0.17'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '2.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: json
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -113,7 +119,6 @@ files:
|
|
113
119
|
- docs/RepositoryVersion.md
|
114
120
|
- docs/RepositoryVersionResponse.md
|
115
121
|
- docs/TaskGroupOperationResponse.md
|
116
|
-
- git_push.sh
|
117
122
|
- lib/pulp_file_client.rb
|
118
123
|
- lib/pulp_file_client/api/acs_file_api.rb
|
119
124
|
- lib/pulp_file_client/api/content_files_api.rb
|
@@ -201,9 +206,9 @@ files:
|
|
201
206
|
- spec/models/repository_version_spec.rb
|
202
207
|
- spec/models/task_group_operation_response_spec.rb
|
203
208
|
- spec/spec_helper.rb
|
204
|
-
homepage: https://
|
209
|
+
homepage: https://github.com/pulp/pulp_file
|
205
210
|
licenses:
|
206
|
-
-
|
211
|
+
- GPLv2+
|
207
212
|
metadata: {}
|
208
213
|
post_install_message:
|
209
214
|
rdoc_options: []
|
@@ -225,45 +230,45 @@ signing_key:
|
|
225
230
|
specification_version: 4
|
226
231
|
summary: Pulp 3 API Ruby Gem
|
227
232
|
test_files:
|
228
|
-
- spec/api/
|
233
|
+
- spec/api/publications_file_api_spec.rb
|
229
234
|
- spec/api/remotes_file_api_spec.rb
|
230
|
-
- spec/api/acs_file_api_spec.rb
|
231
235
|
- spec/api/repositories_file_api_spec.rb
|
232
|
-
- spec/api/
|
233
|
-
- spec/api/publications_file_api_spec.rb
|
236
|
+
- spec/api/acs_file_api_spec.rb
|
234
237
|
- spec/api/content_files_api_spec.rb
|
238
|
+
- spec/api/repositories_file_versions_api_spec.rb
|
239
|
+
- spec/api/distributions_file_api_spec.rb
|
235
240
|
- spec/api_client_spec.rb
|
236
241
|
- spec/configuration_spec.rb
|
237
|
-
- spec/models/
|
238
|
-
- spec/models/
|
239
|
-
- spec/models/
|
240
|
-
- spec/models/
|
241
|
-
- spec/models/
|
242
|
+
- spec/models/file_file_repository_response_spec.rb
|
243
|
+
- spec/models/file_file_remote_response_spec.rb
|
244
|
+
- spec/models/paginatedfile_file_content_response_list_spec.rb
|
245
|
+
- spec/models/patchedfile_file_alternate_content_source_spec.rb
|
246
|
+
- spec/models/patchedfile_file_repository_spec.rb
|
242
247
|
- spec/models/async_operation_response_spec.rb
|
243
|
-
- spec/models/
|
244
|
-
- spec/models/
|
245
|
-
- spec/models/
|
246
|
-
- spec/models/content_summary_spec.rb
|
247
|
-
- spec/models/task_group_operation_response_spec.rb
|
248
|
-
- spec/models/file_file_alternate_content_source_response_spec.rb
|
249
|
-
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
250
|
-
- spec/models/policy_enum_spec.rb
|
248
|
+
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
249
|
+
- spec/models/file_file_repository_spec.rb
|
250
|
+
- spec/models/repository_version_response_spec.rb
|
251
251
|
- spec/models/repository_sync_url_spec.rb
|
252
|
-
- spec/models/paginatedfile_file_publication_response_list_spec.rb
|
253
|
-
- spec/models/file_file_remote_spec.rb
|
254
252
|
- spec/models/patchedfile_file_remote_spec.rb
|
255
|
-
- spec/models/
|
256
|
-
- spec/models/
|
257
|
-
- spec/models/
|
258
|
-
- spec/models/
|
253
|
+
- spec/models/file_file_remote_spec.rb
|
254
|
+
- spec/models/policy_enum_spec.rb
|
255
|
+
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
256
|
+
- spec/models/file_file_distribution_response_spec.rb
|
257
|
+
- spec/models/paginatedfile_file_publication_response_list_spec.rb
|
259
258
|
- spec/models/repository_add_remove_content_spec.rb
|
259
|
+
- spec/models/file_file_alternate_content_source_spec.rb
|
260
|
+
- spec/models/patchedfile_file_distribution_spec.rb
|
261
|
+
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
262
|
+
- spec/models/file_file_alternate_content_source_response_spec.rb
|
263
|
+
- spec/models/task_group_operation_response_spec.rb
|
264
|
+
- spec/models/repository_version_spec.rb
|
260
265
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
261
|
-
- spec/models/file_file_repository_response_spec.rb
|
262
266
|
- spec/models/paginatedfile_file_repository_response_list_spec.rb
|
263
|
-
- spec/models/
|
264
|
-
- spec/models/
|
265
|
-
- spec/models/
|
266
|
-
- spec/models/patchedfile_file_repository_spec.rb
|
267
|
-
- spec/models/paginatedfile_file_alternate_content_source_response_list_spec.rb
|
267
|
+
- spec/models/file_file_content_response_spec.rb
|
268
|
+
- spec/models/file_file_publication_response_spec.rb
|
269
|
+
- spec/models/file_file_publication_spec.rb
|
268
270
|
- spec/models/file_file_content_spec.rb
|
271
|
+
- spec/models/file_file_distribution_spec.rb
|
272
|
+
- spec/models/content_summary_spec.rb
|
273
|
+
- spec/models/content_summary_response_spec.rb
|
269
274
|
- spec/spec_helper.rb
|
data/git_push.sh
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
|
-
#
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
5
|
-
|
6
|
-
git_user_id=$1
|
7
|
-
git_repo_id=$2
|
8
|
-
release_note=$3
|
9
|
-
git_host=$4
|
10
|
-
|
11
|
-
if [ "$git_host" = "" ]; then
|
12
|
-
git_host="github.com"
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
-
fi
|
15
|
-
|
16
|
-
if [ "$git_user_id" = "" ]; then
|
17
|
-
git_user_id="GIT_USER_ID"
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
19
|
-
fi
|
20
|
-
|
21
|
-
if [ "$git_repo_id" = "" ]; then
|
22
|
-
git_repo_id="GIT_REPO_ID"
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
24
|
-
fi
|
25
|
-
|
26
|
-
if [ "$release_note" = "" ]; then
|
27
|
-
release_note="Minor update"
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
29
|
-
fi
|
30
|
-
|
31
|
-
# Initialize the local directory as a Git repository
|
32
|
-
git init
|
33
|
-
|
34
|
-
# Adds the files in the local repository and stages them for commit.
|
35
|
-
git add .
|
36
|
-
|
37
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
38
|
-
git commit -m "$release_note"
|
39
|
-
|
40
|
-
# Sets the new remote
|
41
|
-
git_remote=`git remote`
|
42
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
43
|
-
|
44
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
47
|
-
else
|
48
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
|
49
|
-
fi
|
50
|
-
|
51
|
-
fi
|
52
|
-
|
53
|
-
git pull origin master
|
54
|
-
|
55
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
-
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
57
|
-
git push origin master 2>&1 | grep -v 'To https'
|
58
|
-
|