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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68d3c3b54444d29ee89642ab3cc5a4c140d4ebd8d3285109c8f58ce523dec0fc
4
- data.tar.gz: affc1729365659a246ae3af13ce77883eefb74b35d51938dd750733584e75bd2
3
+ metadata.gz: 74f692fa4bb40d9c467b059a723d622acf96a7beb5c4c75b74c5188821f11dca
4
+ data.tar.gz: 0a901d56f4645f234dc3dd3bd87dacd1a2d3c58763e909f85759e07f06dd6852
5
5
  SHA512:
6
- metadata.gz: d62764bd66bf50b64c9ef1749ab36a0c187448e180b63545d25df0f5f525daf0b8054940dc6cbf32a7bcdda338bf1f639596473637bf242289561547fc8b5b00
7
- data.tar.gz: 14a074228da2d5cb4f69147df2bd14c69136a9645dcce6f12cf38cffe16a682b0e8d6f9338c209b8c9722391e05f24cce0d6b0e400a00c0c3446c4ee8e29cd72
6
+ metadata.gz: 2c78f4bbbee1026f7f7e0606981721f811156e226c1ef2cb1c0d0a42086fecf80903f4e8f8238cdd307023a8c45dc00e212d7c24607c048d74e88f33d7df197d
7
+ data.tar.gz: ce66b90a21eac2f27494526d4e913db42429be2c8655dc80ba41d3b3848ef08a381c4fb18e235d95d8df3eec3585852aa85027ca008e62c3a9cfbccbad15501c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apple_certs_info (0.3.0)
4
+ apple_certs_info (0.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 = certificate_development_list.concat(certificate_distribution_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
 
@@ -1,3 +1,3 @@
1
1
  module AppleCertsInfo
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_certs_info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tarappo