cupertino 1.1.2 → 1.2.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cupertino/provisioning_portal/agent.rb +4 -1
- data/lib/cupertino/provisioning_portal/commands/certificates.rb +1 -1
- data/lib/cupertino/provisioning_portal/commands/profiles.rb +2 -2
- data/lib/cupertino/provisioning_portal.rb +2 -8
- data/lib/cupertino/version.rb +1 -1
- metadata +2 -4
- data/cupertino-1.1.0.gem +0 -0
- data/cupertino-1.1.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd0a61cccbc1ca526aea8ad1103ed0874eaec815
|
4
|
+
data.tar.gz: 67d73e429a0b9f48040945483972277ddf6c340b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abc6ba9435542b3da8e428c9002a201027963af30db8c72185b0e939573f86c8b31b1d5e058c7926d57e00210fbd4547ee643d4f6d7e3d8be6c70ae44492c45d
|
7
|
+
data.tar.gz: 56d26d5ede2c34ef30696f317bfa3f7660e778120d2b16d8327ffdb227d9561dfc3d69ecc7cf3d85f27abe9fa8bdef629d835a006cad2059e4e3a4644481917d
|
data/Gemfile.lock
CHANGED
@@ -2,6 +2,8 @@ require 'mechanize'
|
|
2
2
|
require 'security'
|
3
3
|
require 'uri'
|
4
4
|
require 'json'
|
5
|
+
require 'date'
|
6
|
+
require 'time'
|
5
7
|
require 'logger'
|
6
8
|
|
7
9
|
module Cupertino
|
@@ -90,7 +92,7 @@ module Cupertino
|
|
90
92
|
certificate.name = row['name']
|
91
93
|
certificate.type = type
|
92
94
|
certificate.download_url = "https://developer.apple.com/account/ios/certificate/certificateContentDownload.action?displayId=#{row['certificateId']}&type=#{row['certificateTypeDisplayId']}"
|
93
|
-
certificate.
|
95
|
+
certificate.expiration = (Date.parse(row['expirationDateString']) rescue nil)
|
94
96
|
certificate.status = row['statusString']
|
95
97
|
certificates << certificate
|
96
98
|
end
|
@@ -202,6 +204,7 @@ module Cupertino
|
|
202
204
|
profile.type = type
|
203
205
|
profile.app_id = row['appId']['appIdId']
|
204
206
|
profile.status = row['status']
|
207
|
+
profile.expiration = (Time.parse(row['dateExpire']) rescue nil)
|
205
208
|
profile.download_url = "https://developer.apple.com/account/ios/profile/profileContentDownload.action?displayId=#{row['provisioningProfileId']}"
|
206
209
|
profile.edit_url = "https://developer.apple.com/account/ios/profile/profileEdit.action?provisioningProfileId=#{row['provisioningProfileId']}"
|
207
210
|
profiles << profile
|
@@ -11,7 +11,7 @@ command :'profiles:list' do |c|
|
|
11
11
|
say_warning "No #{type} provisioning profiles found." and abort if profiles.empty?
|
12
12
|
|
13
13
|
table = Terminal::Table.new do |t|
|
14
|
-
t << ["Profile", "App ID", "Status"]
|
14
|
+
t << ["Profile", "App ID", "Expiration", "Status"]
|
15
15
|
t.add_separator
|
16
16
|
profiles.each do |profile|
|
17
17
|
status = case profile.status
|
@@ -21,7 +21,7 @@ command :'profiles:list' do |c|
|
|
21
21
|
profile.status.green
|
22
22
|
end
|
23
23
|
|
24
|
-
t << [profile.name, profile.app_id, status]
|
24
|
+
t << [profile.name, profile.app_id, profile.expiration, status]
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
@@ -14,7 +14,7 @@ module Cupertino
|
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
class Certificate < Struct.new(:name, :type, :
|
17
|
+
class Certificate < Struct.new(:name, :type, :expiration, :status, :download_url)
|
18
18
|
def to_s
|
19
19
|
"#{self.name}"
|
20
20
|
end
|
@@ -26,7 +26,7 @@ module Cupertino
|
|
26
26
|
end
|
27
27
|
end
|
28
28
|
|
29
|
-
class ProvisioningProfile < Struct.new(:name, :type, :app_id, :status, :download_url, :edit_url)
|
29
|
+
class ProvisioningProfile < Struct.new(:name, :type, :app_id, :status, :expiration, :download_url, :edit_url)
|
30
30
|
def to_s
|
31
31
|
"#{self.name}"
|
32
32
|
end
|
@@ -38,12 +38,6 @@ module Cupertino
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
class PassCertificate < Struct.new(:name, :status, :expiration_date, :certificate_id)
|
42
|
-
def to_s
|
43
|
-
"#{self.certificate_id}"
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
41
|
class Team < Struct.new(:name, :programs, :identifier)
|
48
42
|
def to_s
|
49
43
|
"#{self.name} (#{self.identifier})" + (" [#{self.programs.join(', ')}]" unless self.programs.empty?).to_s
|
data/lib/cupertino/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cupertino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattt Thompson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|
@@ -157,8 +157,6 @@ executables:
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
-
- ./cupertino-1.1.0.gem
|
161
|
-
- ./cupertino-1.1.1.gem
|
162
160
|
- ./cupertino.gemspec
|
163
161
|
- ./Gemfile
|
164
162
|
- ./Gemfile.lock
|
data/cupertino-1.1.0.gem
DELETED
Binary file
|
data/cupertino-1.1.1.gem
DELETED
Binary file
|