apple_certs_info 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: c31c885d87acfafec09d0e05c5394bdb8171cb0b7e8d0a8123fdba45fbe4e6cd
4
- data.tar.gz: 1b32182ba8b37d81e9b046c231d21101c53bfe9195c305b4154e8e0321944e82
3
+ metadata.gz: 84b7f8e2689acf89f4413b083da27c05798cb1867fe0ea0fc22942d5ecabdc48
4
+ data.tar.gz: b3d409307713e9f0db5ba668ec887853e74acb5fd7464cb8fef7b61db259bee3
5
5
  SHA512:
6
- metadata.gz: 6fd35aa677a7f1bf80a423c88e1f88ef76f83c9a0ca2805c3517863004cc91aa7342fed8bc0bf205c466c3d8ca18ff4e86b46bdd82db86fe53b9cc58faa847e8
7
- data.tar.gz: 54c6186d19b49ca1b4ae87f61d6d8813b578ae69f6f0c9ba5cf55af80f8880da6591f488c08982bce63b3ceda82984e3e2e90e219b20db018c330c013ef520bb
6
+ metadata.gz: 5b4e58366fb218cf58711095678e10eab3888d03734dc9003de7200369f356d487b8c564613065f025c09958bc8c9b4f6c7a991330e882a76069fdc43cac20eb
7
+ data.tar.gz: df6ec91474cf50b9f0e71c9ccf2fd34e35410aba9f7094e7dd448a48f63c013c1bfb832a0485e8849184d9af23085a0d55ff547c65b34977acfd59daf88017bf
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- apple_certs_info (0.1.6)
4
+ apple_certs_info (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -34,14 +34,20 @@ module AppleCertsInfo
34
34
 
35
35
  def self.certificate_development_list
36
36
  list = []
37
- list = certificate_list_for(name: "iPhone Developer")
38
- list << certificate_list_for(name: "Apple Development")
37
+ iphone_list = certificate_list_for(name: "iPhone Developer")
38
+ apple_list = certificate_list_for(name: "Apple Development")
39
+ list.concat(iphone_list)
40
+ list.concat(apple_list)
41
+ return list
39
42
  end
40
43
 
41
44
  def self.certificate_distribution_list
42
45
  list = []
43
- list = certificate_list_for(name: "iPhone Distribution")
44
- list << certificate_list_for(name: "Apple Distribution")
46
+ iphone_list = certificate_list_for(name: "iPhone Distribution")
47
+ apple_list = certificate_list_for(name: "Apple Distribution")
48
+ list.concat(iphone_list)
49
+ list.concat(apple_list)
50
+ return list
45
51
  end
46
52
 
47
53
  def self.certificate_info_for(name:)
@@ -128,7 +134,7 @@ module AppleCertsInfo
128
134
 
129
135
  danger_list = []
130
136
  list.each do |info|
131
- danger_list << info if info[:limit_days] <= days
137
+ danger_list << info if info[:limit_days].to_i <= days.to_i
132
138
  end
133
139
 
134
140
  danger_list
@@ -1,3 +1,3 @@
1
1
  module AppleCertsInfo
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toshiyuki Hirata