cupertinopro 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 125d0575cf1aff5322d6896069f2f855dd7dd714
4
- data.tar.gz: b68575108f6659ac4f2a40258805a7f8bec9a18a
3
+ metadata.gz: 2b82a3c180e55cd64335838ddc8103a1f6524162
4
+ data.tar.gz: a360815ab212905a0b02ad35d649de7426f58aa0
5
5
  SHA512:
6
- metadata.gz: 78551d611468315678e0f2eb532e116aadda7cf7b47e5b5b6297d06992a7c344ff7fb5af7cffe4ca8b829d1e6b4bd6e1e0171cdc9191f382ac2b0bc86476f4e6
7
- data.tar.gz: 84e418d022c43d29fc944fd72f583dc2af31fd6cdf94215d7a3f9ad5d8c17232fb78aae55a2e57c5ab8a8d0263eca1a02b91593a688afbae66ee3b42ba8c2c3c
6
+ metadata.gz: d872b0d7dc3b76bcb94434c2c240124fd2458520212ca84851131f24e64b649c15c59937696cc3c8b89547443c87875062b36d98dc4d35cc1466676307fa9158
7
+ data.tar.gz: 95ae64eca16e8cd0db34eed1888304386523a9f5083009b1d9b204686a665361ab5c08757b9da91b85496239243582915638d14b490e48bf003ffdf4a2ee9599
data/Gemfile.lock ADDED
@@ -0,0 +1,92 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ cupertinopro (0.1.0)
5
+ certified (>= 0.1.0)
6
+ commander (~> 4.1.2)
7
+ mechanize (~> 2.5.1)
8
+ nokogiri (~> 1.5.9)
9
+ security (~> 0.1.2)
10
+ shenzhen (>= 0.0.1)
11
+ term-ansicolor (~> 1.0.7)
12
+ terminal-table (~> 1.4.5)
13
+
14
+ GEM
15
+ remote: https://rubygems.org/
16
+ specs:
17
+ aws-sdk (1.41.0)
18
+ json (~> 1.4)
19
+ nokogiri (>= 1.4.4)
20
+ certified (0.1.2)
21
+ commander (4.1.6)
22
+ highline (~> 1.6.11)
23
+ diff-lcs (1.2.5)
24
+ domain_name (0.5.18)
25
+ unf (>= 0.0.5, < 1.0.0)
26
+ dotenv (0.11.1)
27
+ dotenv-deployment (~> 0.0.2)
28
+ dotenv-deployment (0.0.2)
29
+ faraday (0.8.9)
30
+ multipart-post (~> 1.2.0)
31
+ faraday_middleware (0.9.1)
32
+ faraday (>= 0.7.4, < 0.10)
33
+ highline (1.6.21)
34
+ json (1.8.1)
35
+ mechanize (2.5.1)
36
+ domain_name (~> 0.5, >= 0.5.1)
37
+ mime-types (~> 1.17, >= 1.17.2)
38
+ net-http-digest_auth (~> 1.1, >= 1.1.1)
39
+ net-http-persistent (~> 2.5, >= 2.5.2)
40
+ nokogiri (~> 1.4)
41
+ ntlm-http (~> 0.1, >= 0.1.1)
42
+ webrobots (~> 0.0, >= 0.0.9)
43
+ mime-types (1.25.1)
44
+ multipart-post (1.2.0)
45
+ net-http-digest_auth (1.4)
46
+ net-http-persistent (2.9.4)
47
+ net-sftp (2.1.2)
48
+ net-ssh (>= 2.6.5)
49
+ net-ssh (2.9.1)
50
+ nokogiri (1.5.11)
51
+ ntlm-http (0.1.1)
52
+ plist (3.1.0)
53
+ rake (10.3.2)
54
+ rspec (3.0.0)
55
+ rspec-core (~> 3.0.0)
56
+ rspec-expectations (~> 3.0.0)
57
+ rspec-mocks (~> 3.0.0)
58
+ rspec-core (3.0.0)
59
+ rspec-support (~> 3.0.0)
60
+ rspec-expectations (3.0.0)
61
+ diff-lcs (>= 1.2.0, < 2.0)
62
+ rspec-support (~> 3.0.0)
63
+ rspec-mocks (3.0.0)
64
+ rspec-support (~> 3.0.0)
65
+ rspec-support (3.0.0)
66
+ rubyzip (1.1.3)
67
+ security (0.1.2)
68
+ shenzhen (0.7.0)
69
+ aws-sdk (~> 1.0)
70
+ commander (~> 4.1)
71
+ dotenv (~> 0.7)
72
+ faraday (~> 0.8.9)
73
+ faraday_middleware (~> 0.9)
74
+ json (~> 1.8)
75
+ net-sftp (~> 2.1.2)
76
+ plist (~> 3.1.0)
77
+ rubyzip (~> 1.1)
78
+ terminal-table (~> 1.4.5)
79
+ term-ansicolor (1.0.7)
80
+ terminal-table (1.4.5)
81
+ unf (0.1.4)
82
+ unf_ext
83
+ unf_ext (0.0.6)
84
+ webrobots (0.1.1)
85
+
86
+ PLATFORMS
87
+ ruby
88
+
89
+ DEPENDENCIES
90
+ cupertinopro!
91
+ rake
92
+ rspec
@@ -44,6 +44,8 @@ module CupertinoPro
44
44
 
45
45
  return page unless page.respond_to?(:title)
46
46
 
47
+ #puts page.body
48
+
47
49
  case page.title
48
50
  when /Sign in with your Apple ID/
49
51
  login! and redo
@@ -60,9 +62,9 @@ module CupertinoPro
60
62
  def list_certificates(type = :development)
61
63
  url = case type
62
64
  when :development
63
- "https://developer.apple.com/account/iospro/certificate/certificateList.action?type=development"
65
+ "https://developer.apple.com/account/ios/certificate/certificateList.action?type=development"
64
66
  when :distribution
65
- "https://developer.apple.com/account/iospro/certificate/certificateList.action?type=distribution"
67
+ "https://developer.apple.com/account/ios/certificate/certificateList.action?type=distribution"
66
68
  else
67
69
  raise ArgumentError, "Certificate type must be :development or :distribution"
68
70
  end
@@ -89,7 +91,7 @@ module CupertinoPro
89
91
  certificate = Certificate.new
90
92
  certificate.name = row['name']
91
93
  certificate.type = type
92
- certificate.download_url = "https://developer.apple.com/account/iospro/certificate/certificateContentDownload.action?displayId=#{row['certificateId']}&type=#{row['certificateTypeDisplayId']}"
94
+ certificate.download_url = "https://developer.apple.com/account/ios/certificate/certificateContentDownload.action?displayId=#{row['certificateId']}&type=#{row['certificateTypeDisplayId']}"
93
95
  certificate.expiration_date = row['expirationDateString']
94
96
  certificate.status = row['statusString']
95
97
  certificates << certificate
@@ -108,7 +110,11 @@ module CupertinoPro
108
110
  end
109
111
 
110
112
  def list_devices
111
- get('https://developer.apple.com/account/iospro/device/deviceList.action')
113
+ puts "TEST"
114
+
115
+ get('https://developer.apple.com/account/ios/device/deviceList.action')
116
+
117
+ puts page.body
112
118
 
113
119
  regex = /deviceDataURL = "([^"]*)"/
114
120
  device_data_url = (page.body.match regex or raise UnexpectedContentError)[1]
@@ -136,7 +142,7 @@ module CupertinoPro
136
142
  def add_devices(*devices)
137
143
  return if devices.empty?
138
144
 
139
- get('https://developer.apple.com/account/iospro/device/deviceCreate.action')
145
+ get('https://developer.apple.com/account/ios/device/deviceCreate.action')
140
146
 
141
147
  begin
142
148
  file = Tempfile.new(%w(devices .txt))
@@ -174,9 +180,9 @@ module CupertinoPro
174
180
  def list_profiles(type = :development)
175
181
  url = case type
176
182
  when :development
177
- 'https://developer.apple.com/account/iospro/profile/profileList.action?type=limited'
183
+ 'https://developer.apple.com/account/ios/profile/profileList.action?type=limited'
178
184
  when :distribution
179
- 'https://developer.apple.com/account/iospro/profile/profileList.action?type=production'
185
+ 'https://developer.apple.com/account/ios/profile/profileList.action?type=production'
180
186
  else
181
187
  raise ArgumentError, 'Provisioning profile type must be :development or :distribution'
182
188
  end
@@ -208,8 +214,8 @@ module CupertinoPro
208
214
  profile.type = type
209
215
  profile.app_id = row['appId']['appIdId']
210
216
  profile.status = row['status']
211
- profile.download_url = "https://developer.apple.com/account/iospro/profile/profileContentDownload.action?displayId=#{row['provisioningProfileId']}"
212
- profile.edit_url = "https://developer.apple.com/account/iospro/profile/profileEdit.action?provisioningProfileId=#{row['provisioningProfileId']}"
217
+ profile.download_url = "https://developer.apple.com/account/ios/profile/profileContentDownload.action?displayId=#{row['provisioningProfileId']}"
218
+ profile.edit_url = "https://developer.apple.com/account/ios/profile/profileEdit.action?provisioningProfileId=#{row['provisioningProfileId']}"
213
219
  profile.uuid = row['UUID']
214
220
  profiles << profile
215
221
  end
@@ -266,7 +272,7 @@ module CupertinoPro
266
272
  end
267
273
 
268
274
  def list_app_ids
269
- get('https://developer.apple.com/account/iospro/identifiers/bundle/bundleList.action')
275
+ get('https://developer.apple.com/account/ios/identifiers/bundle/bundleList.action')
270
276
 
271
277
  regex = /bundleDataURL = "([^"]*)"/
272
278
  bundle_data_url = (page.body.match regex or raise UnexpectedContentError)[1]
@@ -4,6 +4,7 @@ command :'devices:list' do |c|
4
4
  c.description = ''
5
5
 
6
6
  c.action do |args, options|
7
+
7
8
  devices = try{agent.list_devices}
8
9
 
9
10
  if (agent.format == "csv")
@@ -1,3 +1,3 @@
1
1
  module CupertinoPro
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cupertinopro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
@@ -160,6 +160,7 @@ extra_rdoc_files: []
160
160
  files:
161
161
  - "./cupertinopro.gemspec"
162
162
  - "./Gemfile"
163
+ - "./Gemfile.lock"
163
164
  - "./lib/cupertinopro/provisioning_portal/agent.rb"
164
165
  - "./lib/cupertinopro/provisioning_portal/commands/app_ids.rb"
165
166
  - "./lib/cupertinopro/provisioning_portal/commands/certificates.rb"