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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08a1d3dd5708644d6bba67a98257a03a6007631da8048c00442323d8ea14e454'
4
- data.tar.gz: e91bd6898142124fcfd59a0ad794194db54085a22f67731fbb8e152e20790ab8
3
+ metadata.gz: a8aafbb5ee5ef2caafb70db7078d6705266858e0f963b8cad7f8d95eae435fbf
4
+ data.tar.gz: a8cb20e5027724a8fbb374ca6648c3dd28b92f00de8454ecd3e0af58975d254f
5
5
  SHA512:
6
- metadata.gz: eeee8c6d59619b064c2ac94035abcdb931bbfde55151f65725b564118fef2cdceaa5db128df4badf362fcee5073fdc53e62541ba974c36fddc504e8ac9c7f431
7
- data.tar.gz: a213dc22b1f17b9cb1d3df69b6dba1d9b860dbf7cd0acc7be21789eef1d5b0d8e799306ec2684cbf27f070fe04747260bf25f3636ce06bf16c0747b6fe582f56
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.0.22'
4
+ VERSION = '2.0.24'
5
5
  end
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.22
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-16 00:00:00.000000000 Z
12
+ date: 2023-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm