package_cloud 0.2.13 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da547c1bb5a039ffd16b0bd2ae9a7ed9bfcc595d
4
- data.tar.gz: 05322c214d17a1dfdff07efdf98f796a1c025b70
3
+ metadata.gz: 2655c95f8dc351944fba6b48e8f79ad2588e8f90
4
+ data.tar.gz: f5ca6132273493347e386234aa519b2dcdcfe23d
5
5
  SHA512:
6
- metadata.gz: fa498f5144a3ed889a914dbbca47c9c141270f49c54b053cef0a3c89e21819bcd8aa224d7de3e3183e71963cbf14ba0b9929e8b6818be4d554e7c8841d738bda
7
- data.tar.gz: 6044ec9e49b5d7afb6c44eb74e8084f2c99ca4fdf99cf55f1d831c7beaecffb271411ccdcc9fc14eca6ee4d83837db7ccb790dc826167a525f11f81cbec56f8e
6
+ metadata.gz: 0d3e9e5d9ba796750129655266f156bf8cab576707ec5b5fa7882f8e85aa9c4a772f8055518923d1318089f1e06c7ad2e008e5cbd511eb716d13c624c54ffc28
7
+ data.tar.gz: ac033aa6f94c073c960683ed23b2ebb1101510397b19442142bc4ddf9f01d349edba822dfe863d0a856c7b89efed0d0dfd0a4668d20e03ebceda824b34117b7f
@@ -8,6 +8,7 @@ module PackageCloud
8
8
  if distros
9
9
  puts "Listing distributions for #{package_type}:"
10
10
  distros.each do |distro|
11
+ next if distro["index_name"] == "any"
11
12
  puts "\n #{distro["display_name"]} (#{distro["index_name"]}):\n\n"
12
13
  distro["versions"].each do |ver|
13
14
  puts " #{ver["display_name"]} (#{ver["index_name"]})"
@@ -63,12 +63,15 @@ module PackageCloud
63
63
 
64
64
  def select_dist(repo, filenames, package_type)
65
65
  puts "If you don't see your OS or version here, send us an email at support@packagecloud.io:\n\n"
66
- distros = distributions[package_type]
67
- distros.each_with_index do |dist, index|
66
+ all_distros = distributions[package_type]
67
+
68
+ filtered_distros = all_distros.select {|dist| dist["index_name"] != "any"}
69
+
70
+ filtered_distros.each_with_index do |dist, index|
68
71
  puts "\t#{index}. #{dist["display_name"]}"
69
72
  end
70
73
 
71
- distro = select_from(distros)
74
+ distro = select_from(filtered_distros)
72
75
 
73
76
  puts "\nYou selected #{distro["display_name"]}. Select a version:\n\n"
74
77
  distro["versions"].each_with_index do |ver, index|
@@ -1,7 +1,7 @@
1
1
  module PackageCloud
2
2
  MAJOR_VERSION = "0"
3
3
  MINOR_VERSION = "2"
4
- PATCH_VERSION = "13"
4
+ PATCH_VERSION = "14"
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.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Damato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-07 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -164,4 +164,3 @@ signing_key:
164
164
  specification_version: 4
165
165
  summary: https://packagecloud.io
166
166
  test_files: []
167
- has_rdoc: