cupertino 1.1.2 → 1.2.0

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: 5ddb87126d4d06a1aa10f8f64f2f9c792df0a6b1
4
- data.tar.gz: 859843cd43bb74394cbc2bdbc99e71368530d1c9
3
+ metadata.gz: fd0a61cccbc1ca526aea8ad1103ed0874eaec815
4
+ data.tar.gz: 67d73e429a0b9f48040945483972277ddf6c340b
5
5
  SHA512:
6
- metadata.gz: 59d1bf441b4130af6142e0cda67e3ea32445649de4289b686f1722e5b0660e810d7b6bde14ab69f20631fa087bc71dfae62e24120b66390ad7a4ef3ebfd7641f
7
- data.tar.gz: 3559e83308f539c75026cfb99685fbff49740dce9a491e82b0a7f789ab1933d1971e97c1e8ba09031da9d4cbe6e21bfadb5f492d78bb7677ccc73dfe9f5856fe
6
+ metadata.gz: abc6ba9435542b3da8e428c9002a201027963af30db8c72185b0e939573f86c8b31b1d5e058c7926d57e00210fbd4547ee643d4f6d7e3d8be6c70ae44492c45d
7
+ data.tar.gz: 56d26d5ede2c34ef30696f317bfa3f7660e778120d2b16d8327ffdb227d9561dfc3d69ecc7cf3d85f27abe9fa8bdef629d835a006cad2059e4e3a4644481917d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cupertino (1.1.2)
4
+ cupertino (1.2.0)
5
5
  certified (>= 0.1.0)
6
6
  commander (~> 4.1.2)
7
7
  mechanize (~> 2.5.1)
@@ -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.expiration_date = row['expirationDateString']
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
@@ -19,7 +19,7 @@ command :'certificates:list' do |c|
19
19
  certificate.status.red
20
20
  end
21
21
 
22
- t << [certificate.name, certificate.type, certificate.expiration_date, status]
22
+ t << [certificate.name, certificate.type, certificate.expiration, status]
23
23
  end
24
24
  end
25
25
 
@@ -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, :expiration_date, :status, :download_url)
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
@@ -1,3 +1,3 @@
1
1
  module Cupertino
2
- VERSION = '1.1.2'
2
+ VERSION = '1.2.0'
3
3
  end
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.1.2
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 00:00:00.000000000 Z
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