smart_proxy_container_gateway 3.4.1 → 3.4.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d6e568aa93e31c6a60234698cbbc0a86fb61c71179e01692dd7f22193e3e096
|
|
4
|
+
data.tar.gz: 2085424bbca11bd822b190eadf4ccb14519397e2b8f1d8fff6182bacbd73c5ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5ebdf2d44f61b518be4115b73e5b6fae57364753c84cd61fc361e3275883b9c07f9c60e28b0e674f968dd14abacd35e1e62c1288d48c7f8dff0d60134fe6c24
|
|
7
|
+
data.tar.gz: f4a21694af41c33ba437e2c5e53e6bbed64a0e26d99a9c4ffd56c27b421d16ee8e28d261016d5a36b53d55e3405d376eabe5d1d58344590f7deccf3b041e717f
|
|
@@ -262,7 +262,8 @@ module Proxy
|
|
|
262
262
|
database.connection.transaction(isolation: :serializable, retry_on: [Sequel::SerializationFailure]) do
|
|
263
263
|
hosts_table = database.connection[:hosts]
|
|
264
264
|
hosts_table.delete
|
|
265
|
-
|
|
265
|
+
valid_hosts = hosts.filter_map { |host| [host['uuid']] if host['uuid'].present? }
|
|
266
|
+
hosts_table.import(%i[uuid], valid_hosts) unless valid_hosts.empty?
|
|
266
267
|
end
|
|
267
268
|
{}
|
|
268
269
|
end
|
|
@@ -277,6 +278,8 @@ module Proxy
|
|
|
277
278
|
do_authorize_any
|
|
278
279
|
params['hosts'].flat_map do |host_map|
|
|
279
280
|
host_map.filter_map do |host_uuid, repos|
|
|
281
|
+
next if host_uuid.nil? || host_uuid.to_s.strip.empty?
|
|
282
|
+
|
|
280
283
|
if repos.nil? || repos.empty?
|
|
281
284
|
repo_names = []
|
|
282
285
|
else
|
|
@@ -214,6 +214,8 @@ module Proxy
|
|
|
214
214
|
end
|
|
215
215
|
|
|
216
216
|
def build_host_entries(hosts, repositories, host_uuid, repos)
|
|
217
|
+
return if host_uuid.nil? || host_uuid.to_s.strip.empty?
|
|
218
|
+
|
|
217
219
|
host = hosts[{ uuid: host_uuid }]
|
|
218
220
|
return unless host
|
|
219
221
|
return if repos.nil? || repos.empty?
|
|
@@ -232,7 +234,11 @@ module Proxy
|
|
|
232
234
|
end
|
|
233
235
|
|
|
234
236
|
def update_host_repositories(uuid, repositories)
|
|
237
|
+
return if uuid.nil? || uuid.to_s.strip.empty?
|
|
238
|
+
|
|
235
239
|
host = find_or_create_host(uuid)
|
|
240
|
+
return unless host
|
|
241
|
+
|
|
236
242
|
hosts_repositories = database.connection[:hosts_repositories]
|
|
237
243
|
database.connection.transaction(isolation: :serializable,
|
|
238
244
|
retry_on: [Sequel::SerializationFailure],
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_proxy_container_gateway
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ian Ballou
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2025-12-05 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: activesupport
|
|
@@ -76,8 +77,8 @@ email: ianballou67@gmail.com
|
|
|
76
77
|
executables: []
|
|
77
78
|
extensions: []
|
|
78
79
|
extra_rdoc_files:
|
|
79
|
-
- LICENSE
|
|
80
80
|
- README.md
|
|
81
|
+
- LICENSE
|
|
81
82
|
files:
|
|
82
83
|
- LICENSE
|
|
83
84
|
- README.md
|
|
@@ -102,6 +103,7 @@ homepage: https://github.com/Katello/smart_proxy_container_gateway
|
|
|
102
103
|
licenses:
|
|
103
104
|
- GPL-3.0-only
|
|
104
105
|
metadata: {}
|
|
106
|
+
post_install_message:
|
|
105
107
|
rdoc_options: []
|
|
106
108
|
require_paths:
|
|
107
109
|
- lib
|
|
@@ -109,14 +111,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
109
111
|
requirements:
|
|
110
112
|
- - ">="
|
|
111
113
|
- !ruby/object:Gem::Version
|
|
112
|
-
version: '
|
|
114
|
+
version: '3.0'
|
|
113
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
116
|
requirements:
|
|
115
117
|
- - ">="
|
|
116
118
|
- !ruby/object:Gem::Version
|
|
117
119
|
version: '0'
|
|
118
120
|
requirements: []
|
|
119
|
-
rubygems_version: 3.
|
|
121
|
+
rubygems_version: 3.2.33
|
|
122
|
+
signing_key:
|
|
120
123
|
specification_version: 4
|
|
121
124
|
summary: Pulp 3 container registry support for Foreman/Katello Smart-Proxy
|
|
122
125
|
test_files: []
|