apple_certs_info 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/apple_certs_info.rb +9 -5
- data/lib/apple_certs_info/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74f692fa4bb40d9c467b059a723d622acf96a7beb5c4c75b74c5188821f11dca
|
4
|
+
data.tar.gz: 0a901d56f4645f234dc3dd3bd87dacd1a2d3c58763e909f85759e07f06dd6852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c78f4bbbee1026f7f7e0606981721f811156e226c1ef2cb1c0d0a42086fecf80903f4e8f8238cdd307023a8c45dc00e212d7c24607c048d74e88f33d7df197d
|
7
|
+
data.tar.gz: ce66b90a21eac2f27494526d4e913db42429be2c8655dc80ba41d3b3848ef08a381c4fb18e235d95d8df3eec3585852aa85027ca008e62c3a9cfbccbad15501c
|
data/Gemfile.lock
CHANGED
data/lib/apple_certs_info.rb
CHANGED
@@ -16,7 +16,11 @@ module AppleCertsInfo
|
|
16
16
|
# Remove duplicate certificate
|
17
17
|
# remove first data
|
18
18
|
def self.remove_duplicate_certificate
|
19
|
-
list =
|
19
|
+
list = []
|
20
|
+
dist_list = certificate_distribution_list
|
21
|
+
develop_list = certificate_development_list
|
22
|
+
list.concat(dist_list) unless dist_list.nil?
|
23
|
+
list.concat(develop_list) unless develop_list.nil?
|
20
24
|
|
21
25
|
duplicate_cname = list.group_by{ |e| e[:cname] }.select { |k, v| v.size > 1 }.map(&:first)
|
22
26
|
duplicate_cname.each do |cname|
|
@@ -63,8 +67,8 @@ module AppleCertsInfo
|
|
63
67
|
list = []
|
64
68
|
iphone_list = certificate_list_for(name: "iPhone Developer")
|
65
69
|
apple_list = certificate_list_for(name: "Apple Development")
|
66
|
-
list.concat(iphone_list)
|
67
|
-
list.concat(apple_list)
|
70
|
+
list.concat(iphone_list) unless iphone_list.nil?
|
71
|
+
list.concat(apple_list) unless apple_list.nil?
|
68
72
|
return list
|
69
73
|
end
|
70
74
|
|
@@ -73,8 +77,8 @@ module AppleCertsInfo
|
|
73
77
|
list = []
|
74
78
|
iphone_list = certificate_list_for(name: "iPhone Distribution")
|
75
79
|
apple_list = certificate_list_for(name: "Apple Distribution")
|
76
|
-
list.concat(iphone_list)
|
77
|
-
list.concat(apple_list)
|
80
|
+
list.concat(iphone_list) unless iphone_list.nil?
|
81
|
+
list.concat(apple_list) unless apple_list.nil?
|
78
82
|
return list
|
79
83
|
end
|
80
84
|
|