cupertino 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +3 -3
- data/README.md +11 -3
- data/bin/ios +1 -1
- data/cupertino.gemspec +1 -1
- data/lib/cupertino/provisioning_portal/agent.rb +3 -2
- data/lib/cupertino/provisioning_portal/commands/login.rb +2 -4
- data/lib/cupertino/provisioning_portal/commands/logout.rb +2 -4
- data/lib/cupertino.rb +1 -1
- metadata +20 -20
data/Gemfile.lock
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cupertino (0.
|
4
|
+
cupertino (0.5.0)
|
5
5
|
commander (~> 4.1.2)
|
6
6
|
mechanize (~> 2.5.1)
|
7
|
-
|
7
|
+
security (~> 0.1.1)
|
8
8
|
term-ansicolor (~> 1.0.7)
|
9
9
|
terminal-table (~> 1.4.5)
|
10
10
|
|
@@ -27,11 +27,11 @@ GEM
|
|
27
27
|
mime-types (1.19)
|
28
28
|
net-http-digest_auth (1.2.1)
|
29
29
|
net-http-persistent (2.7)
|
30
|
-
netrc (0.7.5)
|
31
30
|
nokogiri (1.5.5)
|
32
31
|
ntlm-http (0.1.1)
|
33
32
|
rake (0.9.2.2)
|
34
33
|
rspec (0.6.4)
|
34
|
+
security (0.1.1)
|
35
35
|
term-ansicolor (1.0.7)
|
36
36
|
terminal-table (1.4.5)
|
37
37
|
unf (0.0.5)
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ $ gem install cupertino
|
|
19
19
|
$ ios login
|
20
20
|
```
|
21
21
|
|
22
|
-
_Credentials are saved in
|
22
|
+
_Credentials are saved in the keychain. You will not be prompted for your username or password by commands while you are logged in._
|
23
23
|
|
24
24
|
### Devices
|
25
25
|
|
@@ -51,11 +51,19 @@ $ ios profiles:list
|
|
51
51
|
+----------------------------------+--------------+---------+
|
52
52
|
```
|
53
53
|
|
54
|
+
---
|
55
|
+
|
54
56
|
```sh
|
55
57
|
$ ios profiles:manage:devices
|
56
58
|
```
|
57
59
|
|
58
|
-
_Opens an editor with a list of devices, each of which can be commented
|
60
|
+
_Opens an editor with a list of devices, each of which can be commented / uncommented to turn them off / on for that provisioning profile._
|
61
|
+
|
62
|
+
```
|
63
|
+
# Comment / Uncomment Devices to Turn Off / On for Provisioning Profile
|
64
|
+
Johnny Appleseed iPad 0123456789012345678901234567890123abcdef
|
65
|
+
# Johnny Appleseed iPhone abcdef0123456789012345678901234567890123
|
66
|
+
```
|
59
67
|
|
60
68
|
### App IDs
|
61
69
|
|
@@ -103,7 +111,7 @@ _Crossed out commands are not yet implemented_
|
|
103
111
|
- ~~`profiles:edit`~~
|
104
112
|
|
105
113
|
- `certificates:list [development|distribution]`
|
106
|
-
- `certificates:download
|
114
|
+
- `certificates:download`
|
107
115
|
- ~~`certificates:revoke CERTIFICATE_NAME`~~
|
108
116
|
|
109
117
|
- `app_ids:list`
|
data/bin/ios
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
require 'commander/import'
|
4
4
|
require 'terminal-table'
|
5
5
|
require 'term/ansicolor'
|
6
|
-
require 'netrc'
|
7
6
|
|
8
7
|
require 'cupertino'
|
9
8
|
|
10
9
|
HighLine.track_eof = false # Fix for built-in Ruby
|
10
|
+
Signal.trap("INT") {} # Suppress backtrace when exiting command
|
11
11
|
|
12
12
|
program :version, Cupertino::VERSION
|
13
13
|
program :description, 'A command-line interface for the iOS Provisioning Portal'
|
data/cupertino.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.add_dependency "terminal-table", "~> 1.4.5"
|
20
20
|
s.add_dependency "term-ansicolor", "~> 1.0.7"
|
21
21
|
s.add_dependency "mechanize", "~> 2.5.1"
|
22
|
-
s.add_dependency "
|
22
|
+
s.add_dependency "security", "~> 0.1.1"
|
23
23
|
|
24
24
|
s.files = Dir["./**/*"].reject { |file| file =~ /\.\/(bin|log|pkg|script|spec|test|vendor)/ }
|
25
25
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'mechanize'
|
2
|
-
require '
|
2
|
+
require 'security'
|
3
3
|
|
4
4
|
module Cupertino
|
5
5
|
module ProvisioningPortal
|
@@ -10,7 +10,8 @@ module Cupertino
|
|
10
10
|
super
|
11
11
|
self.user_agent_alias = 'Mac Safari'
|
12
12
|
|
13
|
-
|
13
|
+
pw = Security::InternetPassword.find(:server => Cupertino::HOSTNAME)
|
14
|
+
@username, @password = pw.attributes['acct'], pw.password if pw
|
14
15
|
end
|
15
16
|
|
16
17
|
def get(uri, parameters = [], referer = nil, headers = {})
|
@@ -4,14 +4,12 @@ command :login do |c|
|
|
4
4
|
c.description = ''
|
5
5
|
|
6
6
|
c.action do |args, options|
|
7
|
-
say_warning "You are already authenticated" if
|
7
|
+
say_warning "You are already authenticated" if Security::InternetPassword.find(:server => Cupertino::HOSTNAME)
|
8
8
|
|
9
9
|
user = ask "Username:"
|
10
10
|
pass = password "Password:"
|
11
11
|
|
12
|
-
|
13
|
-
netrc[Cupertino::HOSTNAME] = user, pass
|
14
|
-
netrc.save
|
12
|
+
Security::InternetPassword.add(Cupertino::HOSTNAME, user, pass)
|
15
13
|
|
16
14
|
say_ok "Account credentials saved"
|
17
15
|
end
|
@@ -4,11 +4,9 @@ command :logout do |c|
|
|
4
4
|
c.description = ''
|
5
5
|
|
6
6
|
c.action do |args, options|
|
7
|
-
say_error "You are not authenticated" and abort unless
|
7
|
+
say_error "You are not authenticated" and abort unless Security::InternetPassword.find(:server => Cupertino::HOSTNAME)
|
8
8
|
|
9
|
-
|
10
|
-
netrc.delete(Cupertino::HOSTNAME)
|
11
|
-
netrc.save
|
9
|
+
Security::InternetPassword.delete(:server => Cupertino::HOSTNAME)
|
12
10
|
|
13
11
|
say_ok "Account credentials removed"
|
14
12
|
end
|
data/lib/cupertino.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: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-21 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70290206924400 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.6.1
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70290206924400
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rake
|
27
|
-
requirement: &
|
27
|
+
requirement: &70290206917720 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.2
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70290206917720
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: commander
|
38
|
-
requirement: &
|
38
|
+
requirement: &70290206917240 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 4.1.2
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70290206917240
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: terminal-table
|
49
|
-
requirement: &
|
49
|
+
requirement: &70290206916680 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: 1.4.5
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70290206916680
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: term-ansicolor
|
60
|
-
requirement: &
|
60
|
+
requirement: &70290206916080 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 1.0.7
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70290206916080
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mechanize
|
71
|
-
requirement: &
|
71
|
+
requirement: &70290206915060 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ~>
|
@@ -76,18 +76,18 @@ dependencies:
|
|
76
76
|
version: 2.5.1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *70290206915060
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
82
|
-
requirement: &
|
81
|
+
name: security
|
82
|
+
requirement: &70290206913600 !ruby/object:Gem::Requirement
|
83
83
|
none: false
|
84
84
|
requirements:
|
85
85
|
- - ~>
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 0.
|
87
|
+
version: 0.1.1
|
88
88
|
type: :runtime
|
89
89
|
prerelease: false
|
90
|
-
version_requirements: *
|
90
|
+
version_requirements: *70290206913600
|
91
91
|
description: A command-line interface for the iOS Provisioning Portal
|
92
92
|
email: m@mattt.me
|
93
93
|
executables:
|
@@ -127,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
segments:
|
129
129
|
- 0
|
130
|
-
hash:
|
130
|
+
hash: 3157854321204032822
|
131
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
132
|
none: false
|
133
133
|
requirements:
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
segments:
|
138
138
|
- 0
|
139
|
-
hash:
|
139
|
+
hash: 3157854321204032822
|
140
140
|
requirements: []
|
141
141
|
rubyforge_project:
|
142
142
|
rubygems_version: 1.8.15
|