package_cloud 0.3.07 → 0.3.08
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/package_cloud/cli/entry.rb +6 -1
- data/lib/package_cloud/validator.rb +1 -1
- data/lib/package_cloud/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: 6e1fc0d6c0b52dce5f3eee51b11195bf9bd92cd3
|
4
|
+
data.tar.gz: 64c4a8aa6956f450f97bfa21314e4ea2188c992e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 996714d5fa00f98de2f548d75747e31967c3246c0943b4083ea20d317419efb14edc8890b20bd710ac196840ea57023f6295dcff3808cd87ab6b55bd9ecdef5b
|
7
|
+
data.tar.gz: 892b3eccf25a659292f7f66403ddea716444a547982758c2afb53a44dabd0d5ccaffc1cd1edf26ae41f45c4f26cdf17bda9cf6933d8d1486d99817726a92dc60
|
@@ -2,8 +2,9 @@ module PackageCloud
|
|
2
2
|
module CLI
|
3
3
|
JAVA_EXTS = ["jar", "aar", "war"]
|
4
4
|
PY_EXTS = ["gz", "bz2", "z", "tar", "egg-info", "zip", "whl", "egg"]
|
5
|
+
ANYFILE_EXTS = ["asc"]
|
5
6
|
NODE_EXTS = ["tgz"]
|
6
|
-
SUPPORTED_EXTS = JAVA_EXTS + PY_EXTS + NODE_EXTS + ["gem", "deb", "rpm", "dsc", "apk"]
|
7
|
+
SUPPORTED_EXTS = JAVA_EXTS + PY_EXTS + ANYFILE_EXTS + NODE_EXTS + ["gem", "deb", "rpm", "dsc", "apk"]
|
7
8
|
|
8
9
|
class Entry < Base
|
9
10
|
desc "repository SUBCMD ...ARGS", "manage repositories"
|
@@ -146,6 +147,8 @@ module PackageCloud
|
|
146
147
|
validator = Validator.new(client)
|
147
148
|
if PY_EXTS.include?(exts.first.downcase)
|
148
149
|
dist_id = validator.distribution_id(repo, package_files, 'py')
|
150
|
+
elsif ANYFILE_EXTS.include?(exts.first.downcase)
|
151
|
+
dist_id = validator.distribution_id(repo, package_files, 'anyfile')
|
149
152
|
elsif NODE_EXTS.include?(exts.first.downcase)
|
150
153
|
dist_id = validator.distribution_id(repo, package_files, 'node')
|
151
154
|
elsif JAVA_EXTS.include?(exts.first.downcase)
|
@@ -213,6 +216,8 @@ module PackageCloud
|
|
213
216
|
'java/maven2'
|
214
217
|
when 'python'
|
215
218
|
'python/1'
|
219
|
+
when 'anyfile'
|
220
|
+
'anyfile/1'
|
216
221
|
when 'node'
|
217
222
|
'node/1'
|
218
223
|
else
|
@@ -9,7 +9,7 @@ module PackageCloud
|
|
9
9
|
_,_,dist_sel,ver_sel = repo.split("/")
|
10
10
|
|
11
11
|
# These are all 'single version' distros
|
12
|
-
if (dist_sel == "python" || dist_sel == "java" || dist_sel == "node")
|
12
|
+
if (dist_sel == "python" || dist_sel == "java" || dist_sel == "node" || dist_sel == "anyfile")
|
13
13
|
dist = distributions[package_type].detect { |d| d["index_name"] == dist_sel }
|
14
14
|
dist["versions"].first["id"]
|
15
15
|
elsif dist_sel && ver_sel
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: package_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.08
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Damato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|