getv 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/getv/package/docker.rb +3 -0
- data/lib/getv/package/gem.rb +3 -0
- data/lib/getv/package/github/commit.rb +4 -1
- data/lib/getv/package/github/release.rb +3 -0
- data/lib/getv/package/github/tag.rb +3 -0
- data/lib/getv/package/helm.rb +3 -0
- data/lib/getv/package/npm.rb +3 -0
- data/lib/getv/package/pypi.rb +3 -0
- data/lib/getv/package/text.rb +3 -0
- data/lib/getv/package/xml.rb +3 -0
- data/lib/getv/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: 4a93d786b9109d9f99361e2e5fbda52af315ee2945d1d286910a2f26afcf4426
|
4
|
+
data.tar.gz: d39c715cf2a38fee4a326d577bf238ae44399078ef562d1f585945bc012377b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bbd5cfeff4a45f151a77dcfe7660cf4a333852419b68df6f4b21d5acef4dd8cb4facd48a34b1e5eaff35905f62c10a9378c6d5afadcbc9eb17d42edfb435bfa
|
7
|
+
data.tar.gz: 71a67c7993e38745ea78880b68abffe0284c6260357585d55b887c11d53be23b805739b15da2a91d520fa53161f8e938e645a15fbef1acacafa988e07a5f2928
|
data/README.md
CHANGED
@@ -39,7 +39,7 @@ SYNOPSIS
|
|
39
39
|
|
40
40
|
|
41
41
|
VERSION
|
42
|
-
2.1.
|
42
|
+
2.1.2
|
43
43
|
|
44
44
|
|
45
45
|
|
@@ -72,7 +72,7 @@ Show the latest available version of the `getv` gem:
|
|
72
72
|
|
73
73
|
```console
|
74
74
|
$ getv --latest gem getv
|
75
|
-
2.1.
|
75
|
+
2.1.2
|
76
76
|
```
|
77
77
|
|
78
78
|
Show all `dep` GitHub release versions in JSON:
|
data/lib/getv/package/docker.rb
CHANGED
@@ -38,10 +38,13 @@ module Getv
|
|
38
38
|
|
39
39
|
def retrieve_versions
|
40
40
|
require 'docker_registry2'
|
41
|
+
retries ||= 0
|
41
42
|
docker = DockerRegistry2.connect(opts[:url], docker_opts)
|
42
43
|
docker.tags("#{opts[:owner]}/#{opts[:repo]}")['tags'] || []
|
43
44
|
rescue DockerRegistry2::NotFound
|
44
45
|
[]
|
46
|
+
rescue StandardError
|
47
|
+
retry if (retries += 1) < 4
|
45
48
|
end
|
46
49
|
end
|
47
50
|
end
|
data/lib/getv/package/gem.rb
CHANGED
@@ -14,9 +14,12 @@ module Getv
|
|
14
14
|
|
15
15
|
def retrieve_versions
|
16
16
|
require 'json'
|
17
|
+
retries ||= 0
|
17
18
|
JSON.parse(get("https://rubygems.org/api/v1/versions/#{opts[:gem]}.json")).map do |v|
|
18
19
|
v['number']
|
19
20
|
end
|
21
|
+
rescue StandardError
|
22
|
+
retry if (retries += 1) < 4
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
@@ -18,10 +18,13 @@ module Getv
|
|
18
18
|
|
19
19
|
private
|
20
20
|
|
21
|
-
def retrieve_versions
|
21
|
+
def retrieve_versions # rubocop:disable Metrics/AbcSize
|
22
|
+
retries ||= 0
|
22
23
|
github.commits("#{opts[:owner]}/#{opts[:repo]}", opts[:branch]).map do |c|
|
23
24
|
"#{DateTime.parse(c[:commit][:author][:date].to_s).strftime('%Y%m%d%H%M%S')},#{c[:sha]}"
|
24
25
|
end
|
26
|
+
rescue StandardError
|
27
|
+
retry if (retries += 1) < 4
|
25
28
|
end
|
26
29
|
end
|
27
30
|
end
|
data/lib/getv/package/helm.rb
CHANGED
@@ -14,9 +14,12 @@ module Getv
|
|
14
14
|
|
15
15
|
def retrieve_versions
|
16
16
|
require 'yaml'
|
17
|
+
retries ||= 0
|
17
18
|
YAML.safe_load(get("#{opts[:url]}/index.yaml")).fetch('entries', {}).fetch(opts[:chart], []).map do |e|
|
18
19
|
e['version']
|
19
20
|
end
|
21
|
+
rescue StandardError
|
22
|
+
retry if (retries += 1) < 4
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|
data/lib/getv/package/npm.rb
CHANGED
data/lib/getv/package/pypi.rb
CHANGED
data/lib/getv/package/text.rb
CHANGED
data/lib/getv/package/xml.rb
CHANGED
data/lib/getv/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- harbottle
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|