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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 226f7b0ca4254f9cd60ca4518b4161cca612fa4c
4
- data.tar.gz: d77e473e68d21c253693210fc39934596ba06ec2
3
+ metadata.gz: e0d8b0f5e8ffd7710c22c1db6b208a5f85e3830c
4
+ data.tar.gz: c2ff50b2c53c2ab17e64e643a59b88ce41684901
5
5
  SHA512:
6
- metadata.gz: a229907ca50c9ee94aaa18055728b202d6645db1c4a7f539e0a31e5eb6b685a805f71ed015fbdf35201ff3696d072d40770a0026983e918ce3db72f375e6153c
7
- data.tar.gz: 0db31206155037c7e9670119b3bbd12f0d616a1b87d582d15174f7c4cc799d1d34ee5c7d17a6e5642d0c06684d5e146223522abb030d07a36b23eab7c95d454d
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
@@ -1,7 +1,7 @@
1
1
  module PackageCloud
2
2
  MAJOR_VERSION = "0"
3
3
  MINOR_VERSION = "2"
4
- PATCH_VERSION = "41"
4
+ PATCH_VERSION = "42"
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.41
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-02-22 00:00:00.000000000 Z
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.4.8
163
+ rubygems_version: 2.6.10
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: https://packagecloud.io