package_cloud 0.3.05 → 0.3.07

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: '092367368ac01d15e6e21b8f34017ed5d1313ccd'
4
- data.tar.gz: 2b802351b14a7d73f9dec8bf1c21930d0b06d7ed
3
+ metadata.gz: f9a2b9a23675e7111f4d7a5bdae131bfa6ca037c
4
+ data.tar.gz: 2064cb76dfb3155849b76cabc3f2d4cd7b1720cc
5
5
  SHA512:
6
- metadata.gz: 2faddb5c7c061833d26a27ee13d453ecdbfed1a681debca4a6d12f0c758b28c1f5e0ceb3c1b474f6cd79bf8597e44575ed2dacdbfe0c514fd21c33784412b95e
7
- data.tar.gz: 5df6f89cf42745308e8f185cd23831eb611520f9f394b33eaa86b1e331ebf6b43b1406c85348d0dcf94c2b3802f69406ddaf26c0fd59c04eeb39c660751a3861
6
+ metadata.gz: 03b0aeb185803c8399b770ef758a357c3eb3bf181ca6ed1e841206afdff72dbfcd1f34e8a5dcae13db6083b301425887148f8e0279ac6a28a42ec0fd4ef88596
7
+ data.tar.gz: c55d5fd8caf861fe2901bf137480e0f3603fea7d17c7d61400f56985379d47ec88cbdefa05a65e95b788b6d95f489458bc5a93fb0e7c404750ec707affee3267
@@ -12,7 +12,7 @@ module PackageCloud
12
12
  if distros
13
13
  puts "Listing distributions for #{package_type}:"
14
14
  distros.each do |distro|
15
- next if distro["index_name"] == "any"
15
+ next if (distro["index_name"] == "any" || distro["index_name"] == "rpm_any")
16
16
  puts "\n #{parse_display_name(distro["display_name"])} (#{distro["index_name"]}):\n\n"
17
17
  distro["versions"].each do |ver|
18
18
  puts " #{parse_version_name(ver["display_name"])} (#{ver["index_name"]})"
@@ -3,7 +3,7 @@ module PackageCloud
3
3
  JAVA_EXTS = ["jar", "aar", "war"]
4
4
  PY_EXTS = ["gz", "bz2", "z", "tar", "egg-info", "zip", "whl", "egg"]
5
5
  NODE_EXTS = ["tgz"]
6
- SUPPORTED_EXTS = JAVA_EXTS + PY_EXTS + NODE_EXTS + ["gem", "deb", "rpm", "dsc"]
6
+ SUPPORTED_EXTS = JAVA_EXTS + PY_EXTS + NODE_EXTS + ["gem", "deb", "rpm", "dsc", "apk"]
7
7
 
8
8
  class Entry < Base
9
9
  desc "repository SUBCMD ...ARGS", "manage repositories"
@@ -110,6 +110,7 @@ module PackageCloud
110
110
  package_files << package_file
111
111
 
112
112
  exts = package_files.map { |f| f.split(".").last }.uniq
113
+ exts = handle_special_exts(repo, exts)
113
114
 
114
115
  if package_files.length > 1 && exts.length > 1
115
116
  abort("You can't push multiple packages of different types at the same time.\nFor example, use *.deb to push all your debs at once.".color(:red))
@@ -195,6 +196,17 @@ module PackageCloud
195
196
  end
196
197
 
197
198
  private
199
+ def handle_special_exts(repo, exts)
200
+ exts.map do |elem|
201
+ case elem
202
+ when 'apk'
203
+ elem = repo.include?("alpine") ? "alpine" : elem
204
+ else
205
+ elem
206
+ end
207
+ end
208
+ end
209
+
198
210
  def expand_dist_shortcut(dist)
199
211
  case dist
200
212
  when 'java'
@@ -69,7 +69,7 @@ module PackageCloud
69
69
  puts "If you don't see your OS or version here, send us an email at support@packagecloud.io:\n\n"
70
70
  all_distros = distributions[package_type]
71
71
 
72
- filtered_distros = all_distros.select {|dist| dist["index_name"] != "any"}
72
+ filtered_distros = all_distros.select {|dist| dist["index_name"] != "any" && dist["index_name"] != "rpm_any" }
73
73
 
74
74
  filtered_distros.each_with_index do |dist, index|
75
75
  puts "\t#{index}. #{dist["display_name"]}"
@@ -1,7 +1,7 @@
1
1
  module PackageCloud
2
2
  MAJOR_VERSION = "0"
3
3
  MINOR_VERSION = "3"
4
- PATCH_VERSION = "05"
4
+ PATCH_VERSION = "07"
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.05
4
+ version: 0.3.07
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Damato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-13 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  requirements: []
181
181
  rubyforge_project:
182
- rubygems_version: 2.6.13
182
+ rubygems_version: 2.5.2.3
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: The https://packagecloud.io CLI for uploading Node.js, Debian, RPM, RubyGem,