package_cloud 0.2.41 → 0.2.42
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/distro.rb +22 -2
- data/lib/package_cloud/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0d8b0f5e8ffd7710c22c1db6b208a5f85e3830c
|
4
|
+
data.tar.gz: c2ff50b2c53c2ab17e64e643a59b88ce41684901
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b6b44c7579c1266f4e713e5380170a283f5208b9bed39f082a7e3178b0aa5807310b635093f42328db08bb36d353a9e2f2eee2b2e5614e1cd727dd9a8120022
|
7
|
+
data.tar.gz: 228f9a5bd7457a3a61e5495de8c7acc3884f9efe824fbca7e866c1c25839910ec7939395e14d060b1133aa8ffa8ffaa3fbe7f8f32dcefe69250ac3f306703de9
|
@@ -13,9 +13,9 @@ module PackageCloud
|
|
13
13
|
puts "Listing distributions for #{package_type}:"
|
14
14
|
distros.each do |distro|
|
15
15
|
next if distro["index_name"] == "any"
|
16
|
-
puts "\n #{distro["display_name"]} (#{distro["index_name"]}):\n\n"
|
16
|
+
puts "\n #{parse_display_name(distro["display_name"])} (#{distro["index_name"]}):\n\n"
|
17
17
|
distro["versions"].each do |ver|
|
18
|
-
puts " #{ver["display_name"]} (#{ver["index_name"]})"
|
18
|
+
puts " #{parse_version_name(ver["display_name"])} (#{ver["index_name"]})"
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -26,6 +26,26 @@ module PackageCloud
|
|
26
26
|
exit(1)
|
27
27
|
end
|
28
28
|
end
|
29
|
+
|
30
|
+
private
|
31
|
+
def parse_display_name(name)
|
32
|
+
if name == "Enterprise Linux"
|
33
|
+
"#{name} - Amazon Linux | CentOS | RedHat"
|
34
|
+
else
|
35
|
+
name
|
36
|
+
end
|
37
|
+
end
|
38
|
+
def parse_version_name(name)
|
39
|
+
if name == 'Enterprise Linux 5.0'
|
40
|
+
"#{name} | CentOS 5"
|
41
|
+
elsif name == 'Enterprise Linux 6.0'
|
42
|
+
"#{name} | CentOS 6 | Amazon Linux"
|
43
|
+
elsif name == 'Enterprise Linux 7.0'
|
44
|
+
"#{name} | CentOS 7"
|
45
|
+
else
|
46
|
+
name
|
47
|
+
end
|
48
|
+
end
|
29
49
|
end
|
30
50
|
end
|
31
51
|
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.
|
4
|
+
version: 0.2.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Damato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
160
|
version: '0'
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 2.
|
163
|
+
rubygems_version: 2.6.10
|
164
164
|
signing_key:
|
165
165
|
specification_version: 4
|
166
166
|
summary: https://packagecloud.io
|