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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f9a2b9a23675e7111f4d7a5bdae131bfa6ca037c
4
- data.tar.gz: 2064cb76dfb3155849b76cabc3f2d4cd7b1720cc
3
+ metadata.gz: 6e1fc0d6c0b52dce5f3eee51b11195bf9bd92cd3
4
+ data.tar.gz: 64c4a8aa6956f450f97bfa21314e4ea2188c992e
5
5
  SHA512:
6
- metadata.gz: 03b0aeb185803c8399b770ef758a357c3eb3bf181ca6ed1e841206afdff72dbfcd1f34e8a5dcae13db6083b301425887148f8e0279ac6a28a42ec0fd4ef88596
7
- data.tar.gz: c55d5fd8caf861fe2901bf137480e0f3603fea7d17c7d61400f56985379d47ec88cbdefa05a65e95b788b6d95f489458bc5a93fb0e7c404750ec707affee3267
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
@@ -1,7 +1,7 @@
1
1
  module PackageCloud
2
2
  MAJOR_VERSION = "0"
3
3
  MINOR_VERSION = "3"
4
- PATCH_VERSION = "07"
4
+ PATCH_VERSION = "08"
5
5
 
6
6
  VERSION = [MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION].join(".")
7
7
  end
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.07
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-19 00:00:00.000000000 Z
11
+ date: 2021-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor