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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd9bcb5d1929a71e1a54b46c9d03ac992113de4a
4
- data.tar.gz: 81fce340dddd5f00b36ec61f05039c770533d154
3
+ metadata.gz: 8808af7a5daf7a202ae7e48363c9f75ea831cfb9
4
+ data.tar.gz: 4928fe654f17164cdc8eb7a6115b388b2b2df758
5
5
  SHA512:
6
- metadata.gz: 0c4d6f8180f2779473365b04488406775fb8d8fadd92a12db0b570b55a3fea41d7d04162fc355f1738b4c6e91a063510730572e693df2c6b1a04beac4aef409a
7
- data.tar.gz: d532b8f0ab2367fbd673c494aea6c6159250566a1777f37aa3eb8a4cfc89b52fb7ef8ea31d5207ff32a106f57787eb83f07ae75dafa12f43d04a186baf452b75
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 digest(tag)
25
- api_call.get(hash_uri(tag)).digest
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] = digest(tag)
34
+ dict[tag] = hash(tag)["fsLayers"]
35
35
  dict
36
36
  end
37
37
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Tagfish
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
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.3
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-03-22 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler