cupertino 0.9.7 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05b7312688f8144ea4e8273ba6736c3f3c2d8ac5
|
4
|
+
data.tar.gz: 60f89c0702cfbe5194796841836f5fb4713bd30d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd58cd39f5386aa79c895e7489ca340dcfb320c9b864a8b807eca1758176cba4a577a6013f90efc86f2b6a4dcf7bb1d536079bdce34b9df4d196e1cbde2f50d8
|
7
|
+
data.tar.gz: d280ce5b914cd992f1eb300fe860d59a3130fbf3c73fbbbffcaa653ec9abb8f3a3c49f4931f5e4d5d4f95a8c5391ef1d2215b10d2b914107b64a2ca2e61448b1
|
data/Gemfile.lock
CHANGED
data/cupertino-0.9.7.gem
ADDED
Binary file
|
@@ -29,6 +29,13 @@ module Cupertino
|
|
29
29
|
@username, @password = pw.attributes['acct'], pw.password if pw
|
30
30
|
end
|
31
31
|
|
32
|
+
def username=(value)
|
33
|
+
@username = value
|
34
|
+
|
35
|
+
pw = Security::InternetPassword.find(:a => self.username, :server => Cupertino::ProvisioningPortal::HOST)
|
36
|
+
@password = pw.password if pw
|
37
|
+
end
|
38
|
+
|
32
39
|
def get(uri, parameters = [], referer = nil, headers = {})
|
33
40
|
uri = ::File.join("https://#{Cupertino::ProvisioningPortal::HOST}", uri) unless /^https?/ === uri
|
34
41
|
|
@@ -117,6 +124,7 @@ module Cupertino
|
|
117
124
|
device.name = row['name']
|
118
125
|
device.enabled = (row['status'] == 'c' ? 'Y' : 'N')
|
119
126
|
device.device_id = row['deviceId']
|
127
|
+
device.udid = row['deviceName']
|
120
128
|
devices << device
|
121
129
|
end
|
122
130
|
|
@@ -203,8 +211,6 @@ module Cupertino
|
|
203
211
|
end
|
204
212
|
|
205
213
|
def download_profile(profile)
|
206
|
-
list_profiles(profile.type)
|
207
|
-
|
208
214
|
self.pluggable_parser.default = Mechanize::Download
|
209
215
|
download = get(profile.download_url)
|
210
216
|
download.save
|
@@ -138,7 +138,7 @@ command :'profiles:manage:devices:add' do |c|
|
|
138
138
|
|
139
139
|
device = (on + off).detect{|d| d.name === name}
|
140
140
|
say_warning "No device named #{name} was found." unless device
|
141
|
-
devices << Device.new(name, device.udid)
|
141
|
+
devices << Device.new(name, device.udid, "Y", device.device_id)
|
142
142
|
end
|
143
143
|
|
144
144
|
on + devices
|
data/lib/cupertino/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cupertino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mattt Thompson
|
@@ -157,6 +157,7 @@ executables:
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
+
- ./cupertino-0.9.7.gem
|
160
161
|
- ./cupertino.gemspec
|
161
162
|
- ./Gemfile
|
162
163
|
- ./Gemfile.lock
|