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: 4d1bbaee075a651e5c3e5c13fa5b2937595b6698
4
- data.tar.gz: 81d7c14757bc1d738ed7b457c5eb0b7a88b2ff16
3
+ metadata.gz: 05b7312688f8144ea4e8273ba6736c3f3c2d8ac5
4
+ data.tar.gz: 60f89c0702cfbe5194796841836f5fb4713bd30d
5
5
  SHA512:
6
- metadata.gz: bfb1fbe59fd4bbcbf449e212785455eb843a43ed4aaa73807c447239c899e2a5a54b9171d3ad9b872afaacf4e8d41a4303122f5878bf2373187bddcc9708e4a9
7
- data.tar.gz: 71b32216d7c947dbf92810ca08fa1991ca7badb938d79a9e07d3afbcff4b4db06703c39feb7716588a5fe9e140e67bb0712497a4d80fc43b4a51021cf67a04c4
6
+ metadata.gz: bd58cd39f5386aa79c895e7489ca340dcfb320c9b864a8b807eca1758176cba4a577a6013f90efc86f2b6a4dcf7bb1d536079bdce34b9df4d196e1cbde2f50d8
7
+ data.tar.gz: d280ce5b914cd992f1eb300fe860d59a3130fbf3c73fbbbffcaa653ec9abb8f3a3c49f4931f5e4d5d4f95a8c5391ef1d2215b10d2b914107b64a2ca2e61448b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cupertino (0.9.7)
4
+ cupertino (1.0.0)
5
5
  certified (>= 0.1.0)
6
6
  commander (~> 4.1.2)
7
7
  mechanize (~> 2.5.1)
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
@@ -1,3 +1,3 @@
1
1
  module Cupertino
2
- VERSION = '0.9.7'
2
+ VERSION = '1.0.0'
3
3
  end
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.9.7
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