getv 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/Gemfile +3 -0
- data/Rakefile +5 -3
- data/lib/getv/package.rb +4 -1
- 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: 8b7033c123fd837edd23f202973d20c313932df2e35bb8eb680c2ecd4aa3f674
|
4
|
+
data.tar.gz: 5e66336327fc70676fba92f92eb56398b00bdfcc780cf4ec54365c38bf1edce3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf6eb57389b7cf24b99177a8dba23da0095719da908672489b5e137e4c89aee948fd134f28bba952785098db43f60cf2645b2bf0bfaffcb81be849382c26db5b
|
7
|
+
data.tar.gz: 1b24a3216e4b33febabe870994c901c48e17108718f5d5d86dee79f0dabd77936e26b20a3b19ea41160a7774e8eb2e27ae69a31d32fd887d192a6c2ba52e7ffb
|
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -12,6 +12,9 @@ gem 'octokit', '~> 4.21'
|
|
12
12
|
gem 'rake', '~> 12.0'
|
13
13
|
gem 'rdoc', '~> 6.4'
|
14
14
|
gem 'rspec', '~> 3.0'
|
15
|
+
gem 'rubocop', '~> 1.24', require: false
|
16
|
+
gem 'rubocop-rake', '~> 0.6', require: false
|
17
|
+
gem 'rubocop-rspec', '~> 2.7', require: false
|
15
18
|
gem 'semantic', '~> 1.6'
|
16
19
|
gem 'vcr', '~> 6.0'
|
17
20
|
gem 'webmock', '~> 3.0'
|
data/Rakefile
CHANGED
data/lib/getv/package.rb
CHANGED
@@ -5,7 +5,7 @@ module Getv
|
|
5
5
|
class Package # rubocop:disable Metrics/ClassLength
|
6
6
|
attr_accessor :name, :opts
|
7
7
|
|
8
|
-
def initialize(name, opts = {}) # rubocop:disable Metrics/MethodLength,Metrics/CyclomaticComplexity,Metrics/AbcSize
|
8
|
+
def initialize(name, opts = {}) # rubocop:disable Metrics/MethodLength,Metrics/CyclomaticComplexity,Metrics/AbcSize,Metrics/PerceivedComplexity
|
9
9
|
@name = name
|
10
10
|
case name
|
11
11
|
when /rubygem-.*/
|
@@ -32,6 +32,9 @@ module Getv
|
|
32
32
|
versions: nil,
|
33
33
|
latest_version: nil
|
34
34
|
}.merge(opts)
|
35
|
+
if (opts[:type] == 'docker' || opts[:type] =~ /github.*/) && (name.count('/') == 1)
|
36
|
+
opts = { owner: name.split('/')[0], repo: name.split('/')[1] }.merge(opts)
|
37
|
+
end
|
35
38
|
case opts[:type]
|
36
39
|
when 'docker'
|
37
40
|
opts = { owner: 'library', repo: name, url: 'https://registry.hub.docker.com' }.merge(opts)
|
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: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- harbottle
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker_registry2
|