tagfish 1.1.3 → 1.1.4
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/lib/tagfish/docker_registry_v2_client.rb +3 -3
- data/lib/tagfish/tags_command.rb +0 -8
- data/lib/tagfish/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8808af7a5daf7a202ae7e48363c9f75ea831cfb9
|
4
|
+
data.tar.gz: 4928fe654f17164cdc8eb7a6115b388b2b2df758
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76d380787b445ebb6f369a65c92b303ed85b4f1b37df4f8425376ac6814fa624cc1396ec5fc190b806afa50561f9c691755f2171431499ca90b156d443ffd88d
|
7
|
+
data.tar.gz: adb821a92c7fbb38642d7c4b856addedd15e8d078a521da2bab5c8bbdc36307b2082a68a59faef0f1edfc3adde34698e7c2bc6b1703a61f75af9f91981b543d8
|
@@ -21,8 +21,8 @@ module Tagfish
|
|
21
21
|
api_call.get(tags_uri).json
|
22
22
|
end
|
23
23
|
|
24
|
-
def
|
25
|
-
api_call.get(hash_uri(tag)).
|
24
|
+
def hash(tag)
|
25
|
+
api_call.get(hash_uri(tag)).json
|
26
26
|
end
|
27
27
|
|
28
28
|
def tags_list
|
@@ -31,7 +31,7 @@ module Tagfish
|
|
31
31
|
end
|
32
32
|
|
33
33
|
tags_with_hashes = tag_names.inject({}) do |dict, tag|
|
34
|
-
dict[tag] =
|
34
|
+
dict[tag] = hash(tag)["fsLayers"]
|
35
35
|
dict
|
36
36
|
end
|
37
37
|
end
|
data/lib/tagfish/tags_command.rb
CHANGED
@@ -6,7 +6,6 @@ module Tagfish
|
|
6
6
|
parameter "REPOSITORY", "docker repository"
|
7
7
|
option ["-l", "--latest"], :flag, "only return latest explicitly tagged image"
|
8
8
|
option ["-s", "--short"], :flag, "only return tag, not full image path"
|
9
|
-
option ["-d", "--digest"], :flag, "returns the tag's digest (v2 API only)"
|
10
9
|
|
11
10
|
def execute
|
12
11
|
|
@@ -22,13 +21,6 @@ module Tagfish
|
|
22
21
|
end
|
23
22
|
tags_found = latest_tags
|
24
23
|
|
25
|
-
if digest?
|
26
|
-
tags_found = tags_found.map do |tag_name|
|
27
|
-
digest = tags.tag_map[tag_name]
|
28
|
-
digest.include?("sha256:") ? tag_name + '@' + digest : tag_name
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
24
|
else
|
33
25
|
tags_found = docker_api.tag_names
|
34
26
|
end
|
data/lib/tagfish/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagfish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clement Labbe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|