uffizzi_core 2.0.22 → 2.0.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/clients/uffizzi_core/docker_registry_client.rb +10 -0
- data/lib/uffizzi_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8aafbb5ee5ef2caafb70db7078d6705266858e0f963b8cad7f8d95eae435fbf
|
4
|
+
data.tar.gz: a8cb20e5027724a8fbb374ca6648c3dd28b92f00de8454ecd3e0af58975d254f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3311070210f6022ac352a003785c871b78ef65e58ddf6e7f614e5d9f1aab3927b1a5fd862ae62cfdbafb23d36655dd03162691ed01cd4e10d97332db3eb4e490
|
7
|
+
data.tar.gz: 792fe71fb5fc50a5e2543b059ba8bfd017c93f5a955c77d7499b7fb3b77e816580ac0a235a68bfe0405b3f7c785c1cac846214675a26a95b0ad55f2fb26c3d7a
|
@@ -1,6 +1,15 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class UffizziCore::DockerRegistryClient
|
4
|
+
ACCEPTED_TYPES = [
|
5
|
+
'application/vnd.oci.image.index.v1+json',
|
6
|
+
'application/vnd.oci.image.manifest.v1+json',
|
7
|
+
'application/vnd.docker.distribution.manifest.v1+json',
|
8
|
+
'application/vnd.docker.distribution.manifest.v2+json',
|
9
|
+
'application/vnd.docker.distribution.manifest.list.v2+json',
|
10
|
+
'*/*',
|
11
|
+
].freeze
|
12
|
+
|
4
13
|
def initialize(registry_url:, username: nil, password: nil)
|
5
14
|
@registry_url = registry_url
|
6
15
|
@connection = build_connection(@registry_url, username, password)
|
@@ -24,6 +33,7 @@ class UffizziCore::DockerRegistryClient
|
|
24
33
|
|
25
34
|
def build_connection(registry_url, username, password)
|
26
35
|
connection = Faraday.new(registry_url) do |faraday|
|
36
|
+
faraday.headers['Accept'] = ACCEPTED_TYPES
|
27
37
|
faraday.request(:basic_auth, username, password) if username.present? && password.present?
|
28
38
|
faraday.request(:json)
|
29
39
|
faraday.response(:json)
|
data/lib/uffizzi_core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uffizzi_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Thurman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-01-
|
12
|
+
date: 2023-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aasm
|