cupertino 1.3.4 → 1.4.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
- SHA1:
3
- metadata.gz: 72ec1f7bd38a2899eec34c618064907a6128a34a
4
- data.tar.gz: 3cdab892b67c840e03d033b89d0d8a38824dacd6
2
+ SHA256:
3
+ metadata.gz: ba47619d5faad5bde1d56a006ac31b9e8de37cc1b4979f9459b12c2f9c82cef1
4
+ data.tar.gz: 727dfaa1c52b01d34ddb3928f0c6286e2125e0872fa658fd01228b3cbb734e7e
5
5
  SHA512:
6
- metadata.gz: 9e7189767e37e3db9caef5cddcf6e8169a17f52491cd4c851ef5c571e49980dceb5bed1fc10595b656b0baf61b8626f46368240b98cf6ffe95208321f09a9c2b
7
- data.tar.gz: 584196c7be0fa9381c5c077102d8f6e5d47a84521da1d387f95916e5657f39a382d7eacadd46ad8609ead66ec29bc5a30e0c3f6b05b13f6cfdcb0de8068b4aa0
6
+ metadata.gz: 59f8b838dc4404d908d27663242dfdef21a6fcfe957e30f7b6f15f4aa0e955bf33dfb61f1817370765c0cbb26a33402a3f9618a4d8023d3b5249e4a112ab4a53
7
+ data.tar.gz: 20da5bbe6560f3f341f6426367296901e12cb72649d9fcbddf05b668c24f07b515f4ec622538abc68ed2bebf526cf7518236134d12df0de41d1c9adcbd1b58b2
@@ -1,62 +1,73 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cupertino (1.3.4)
5
- certified (~> 1.0.0)
6
- commander (~> 4.3)
7
- highline (>= 1.7.1)
8
- mechanize (~> 2.5.1)
9
- nokogiri (~> 1.6.3)
10
- security (~> 0.1.2)
11
- term-ansicolor (~> 1.0.7)
12
- terminal-table (~> 1.4.5)
4
+ cupertino (1.4.0)
5
+ certified (~> 1.0)
6
+ commander (~> 4.4)
7
+ highline (~> 1.7)
8
+ mechanize (~> 2.7)
9
+ nokogiri (~> 1.8)
10
+ security (~> 0.1)
11
+ term-ansicolor (~> 1.4)
12
+ terminal-table (~> 1.8)
13
13
 
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
17
  certified (1.0.0)
18
- commander (4.3.4)
18
+ commander (4.4.5)
19
19
  highline (~> 1.7.2)
20
- diff-lcs (1.2.5)
21
- domain_name (0.5.23)
20
+ connection_pool (2.2.2)
21
+ diff-lcs (1.3)
22
+ domain_name (0.5.20180417)
22
23
  unf (>= 0.0.5, < 1.0.0)
23
- highline (1.7.2)
24
- mechanize (2.5.1)
24
+ highline (1.7.10)
25
+ http-cookie (1.0.3)
26
+ domain_name (~> 0.5)
27
+ mechanize (2.7.6)
25
28
  domain_name (~> 0.5, >= 0.5.1)
26
- mime-types (~> 1.17, >= 1.17.2)
29
+ http-cookie (~> 1.0)
30
+ mime-types (>= 1.17.2)
27
31
  net-http-digest_auth (~> 1.1, >= 1.1.1)
28
- net-http-persistent (~> 2.5, >= 2.5.2)
29
- nokogiri (~> 1.4)
32
+ net-http-persistent (>= 2.5.2)
33
+ nokogiri (~> 1.6)
30
34
  ntlm-http (~> 0.1, >= 0.1.1)
31
- webrobots (~> 0.0, >= 0.0.9)
32
- mime-types (1.25.1)
33
- mini_portile (0.6.2)
34
- net-http-digest_auth (1.4)
35
- net-http-persistent (2.9.4)
36
- nokogiri (1.6.6.2)
37
- mini_portile (~> 0.6.0)
35
+ webrobots (>= 0.0.9, < 0.2)
36
+ mime-types (3.1)
37
+ mime-types-data (~> 3.2015)
38
+ mime-types-data (3.2016.0521)
39
+ mini_portile2 (2.3.0)
40
+ net-http-digest_auth (1.4.1)
41
+ net-http-persistent (3.0.0)
42
+ connection_pool (~> 2.2)
43
+ nokogiri (1.8.4)
44
+ mini_portile2 (~> 2.3.0)
38
45
  ntlm-http (0.1.1)
39
- rake (10.4.2)
40
- rspec (3.2.0)
41
- rspec-core (~> 3.2.0)
42
- rspec-expectations (~> 3.2.0)
43
- rspec-mocks (~> 3.2.0)
44
- rspec-core (3.2.3)
45
- rspec-support (~> 3.2.0)
46
- rspec-expectations (3.2.1)
46
+ rake (12.3.1)
47
+ rspec (3.7.0)
48
+ rspec-core (~> 3.7.0)
49
+ rspec-expectations (~> 3.7.0)
50
+ rspec-mocks (~> 3.7.0)
51
+ rspec-core (3.7.1)
52
+ rspec-support (~> 3.7.0)
53
+ rspec-expectations (3.7.0)
47
54
  diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.2.0)
49
- rspec-mocks (3.2.1)
55
+ rspec-support (~> 3.7.0)
56
+ rspec-mocks (3.7.0)
50
57
  diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.2.0)
52
- rspec-support (3.2.2)
58
+ rspec-support (~> 3.7.0)
59
+ rspec-support (3.7.1)
53
60
  security (0.1.3)
54
- term-ansicolor (1.0.7)
55
- terminal-table (1.4.5)
61
+ term-ansicolor (1.6.0)
62
+ tins (~> 1.0)
63
+ terminal-table (1.8.0)
64
+ unicode-display_width (~> 1.1, >= 1.1.1)
65
+ tins (1.16.3)
56
66
  unf (0.1.4)
57
67
  unf_ext
58
- unf_ext (0.0.6)
59
- webrobots (0.1.1)
68
+ unf_ext (0.0.7.5)
69
+ unicode-display_width (1.4.0)
70
+ webrobots (0.1.2)
60
71
 
61
72
  PLATFORMS
62
73
  ruby
@@ -65,3 +76,6 @@ DEPENDENCIES
65
76
  cupertino!
66
77
  rake
67
78
  rspec
79
+
80
+ BUNDLED WITH
81
+ 1.16.1
data/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ![Cupertino](https://raw.github.com/nomad/nomad.github.io/assets/cupertino-banner.png)
2
2
 
3
+ **Note:** Cupertino stopped working due to a recent change on the Apple Developer Portal. A maintained alternative is to use [spaceship](https://spaceship.airforce) to communicate with Apple's Developer back-end, or use any of the [fastlane tools](https://fastlane.tools), like [match](https://github.com/fastlane/fastlane/tree/master/match) or [sigh](https://github.com/fastlane/fastlane/tree/master/sigh).
4
+
5
+ ------
6
+
3
7
  Automate administrative tasks that you would normally have to do through the Apple Dev Center websites. Life's too short to manage device identifiers by hand!
4
8
 
5
9
  > Cupertino is named after [Cupertino, CA](http://en.wikipedia.org/wiki/Cupertino,_California): home to Apple, Inc.'s world headquarters.
@@ -29,6 +33,9 @@ $ ios login
29
33
 
30
34
  _Credentials are saved in the Keychain. You will not be prompted for your username or password by commands while you are logged in. (Mac only)_
31
35
 
36
+ Alternatively, username and password can also be provided by setting the
37
+ `IOS_USERNAME` and `IOS_PASSWORD` environment variables respectively.
38
+
32
39
  ### Devices
33
40
 
34
41
  ```
@@ -165,6 +172,21 @@ The following commands will format their output as [comma-separated values](http
165
172
  - `certificates:download`
166
173
  - `app_ids:list`
167
174
 
175
+ ## Options
176
+
177
+ Global options:
178
+
179
+ - `-u` : Username
180
+ - `-p` : Password
181
+ - `--team` : Team Identifier
182
+ - `--info` : Set log level to INFO
183
+ - `--debug` : Set log level to DEBUG
184
+ - `--format` : Output options are `table` or `csv`
185
+
186
+ Specific options for certain commands:
187
+
188
+ - `--type` : Options are `development` or `distribution`
189
+
168
190
  ## Proxies
169
191
 
170
192
  Cupertino will access the provisioning portal through a proxy if the `HTTP_PROXY` environment variable is set, with optional credentials `HTTP_PROXY_USER` and `HTTP_PROXY_PASSWORD`.
data/Rakefile CHANGED
@@ -1,10 +1,3 @@
1
- require "bundler"
2
- Bundler.setup
3
-
4
- gemspec = eval(File.read("cupertino.gemspec"))
1
+ require 'bundler/gem_tasks'
5
2
 
6
- task :build => "#{gemspec.full_name}.gem"
7
-
8
- file "#{gemspec.full_name}.gem" => gemspec.files + ["cupertino.gemspec"] do
9
- system "gem build cupertino.gemspec"
10
- end
3
+ Bundler.setup
Binary file
@@ -1,33 +1,32 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
1
+ $LOAD_PATH.push File.expand_path('lib', __dir__)
3
2
 
4
- require "cupertino/version"
3
+ require 'cupertino/version'
5
4
 
6
5
  Gem::Specification.new do |s|
7
- s.name = "cupertino"
8
- s.license = "MIT"
9
- s.authors = ["Mattt Thompson"]
10
- s.email = "m@mattt.me"
11
- s.homepage = "http://nomad-cli.com"
6
+ s.name = 'cupertino'
7
+ s.license = 'MIT'
8
+ s.authors = ['Mattt Thompson']
9
+ s.email = 'm@mattt.me'
10
+ s.homepage = 'http://nomad-cli.com'
12
11
  s.version = Cupertino::VERSION
13
12
  s.platform = Gem::Platform::RUBY
14
- s.summary = "Cupertino"
15
- s.description = "A command-line interface for the iOS Provisioning Portal"
13
+ s.summary = 'Cupertino'
14
+ s.description = 'A command-line interface for the iOS Provisioning Portal'
16
15
 
17
- s.add_dependency "commander", "~> 4.3"
18
- s.add_dependency "highline", ">= 1.7.1"
19
- s.add_dependency "terminal-table", "~> 1.4.5"
20
- s.add_dependency "term-ansicolor", "~> 1.0.7"
21
- s.add_dependency "mechanize", "~> 2.5.1"
22
- s.add_dependency "nokogiri", "~> 1.6.3"
23
- s.add_dependency "security", "~> 0.1.2"
24
- s.add_dependency "certified", "~> 1.0.0"
16
+ s.add_dependency 'certified', '~> 1.0'
17
+ s.add_dependency 'commander', '~> 4.4'
18
+ s.add_dependency 'highline', '~> 1.7'
19
+ s.add_dependency 'mechanize', '~> 2.7'
20
+ s.add_dependency 'nokogiri', '~> 1.8'
21
+ s.add_dependency 'security', '~> 0.1'
22
+ s.add_dependency 'term-ansicolor', '~> 1.4'
23
+ s.add_dependency 'terminal-table', '~> 1.8'
25
24
 
26
- s.add_development_dependency "rspec"
27
- s.add_development_dependency "rake"
25
+ s.add_development_dependency 'rake'
26
+ s.add_development_dependency 'rspec'
28
27
 
29
- s.files = Dir["./**/*"].reject { |file| file =~ /\.\/(bin|log|pkg|script|spec|test|vendor)/ }
28
+ s.files = Dir['./**/*'].reject { |file| file =~ /\.\/(bin|log|pkg|script|spec|test|vendor)/ }
30
29
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
31
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
32
- s.require_paths = ["lib"]
30
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
31
+ s.require_paths = ['lib']
33
32
  end
@@ -27,15 +27,21 @@ module Cupertino
27
27
  set_proxy(uri.host, uri.port, user || uri.user, password || uri.password)
28
28
  end
29
29
 
30
- pw = Security::InternetPassword.find(:server => Cupertino::ProvisioningPortal::HOST)
31
- @username, @password = pw.attributes['acct'], pw.password if pw
30
+ if ENV['IOS_USERNAME'] and ENV['IOS_PASSWORD']
31
+ @username, @password = ENV['IOS_USERNAME'], ENV['IOS_PASSWORD']
32
+ else
33
+ pw = Security::InternetPassword.find(:server => Cupertino::ProvisioningPortal::HOST)
34
+ @username, @password = pw.attributes['acct'], pw.password if pw
35
+ end
32
36
  end
33
37
 
34
38
  def username=(value)
35
39
  @username = value
36
40
 
37
- pw = Security::InternetPassword.find(:a => self.username, :server => Cupertino::ProvisioningPortal::HOST)
38
- @password = pw.password if pw
41
+ if not(@password and ENV['IOS_PASSWORD'])
42
+ pw = Security::InternetPassword.find(:a => self.username, :server => Cupertino::ProvisioningPortal::HOST)
43
+ @password = pw.password if pw
44
+ end
39
45
  end
40
46
 
41
47
  def get(uri, parameters = [], referer = nil, headers = {})
@@ -1,3 +1,3 @@
1
1
  module Cupertino
2
- VERSION = '1.3.4'
2
+ VERSION = '1.4.0'
3
3
  end
metadata CHANGED
@@ -1,153 +1,153 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cupertino
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.4.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: 2015-05-19 00:00:00.000000000 Z
11
+ date: 2018-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: commander
14
+ name: certified
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.3'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.3'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: highline
28
+ name: commander
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.7.1
33
+ version: '4.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.7.1
40
+ version: '4.4'
41
41
  - !ruby/object:Gem::Dependency
42
- name: terminal-table
42
+ name: highline
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.4.5
47
+ version: '1.7'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.4.5
54
+ version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
- name: term-ansicolor
56
+ name: mechanize
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.7
61
+ version: '2.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.7
68
+ version: '2.7'
69
69
  - !ruby/object:Gem::Dependency
70
- name: mechanize
70
+ name: nokogiri
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.5.1
75
+ version: '1.8'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.5.1
82
+ version: '1.8'
83
83
  - !ruby/object:Gem::Dependency
84
- name: nokogiri
84
+ name: security
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 1.6.3
89
+ version: '0.1'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 1.6.3
96
+ version: '0.1'
97
97
  - !ruby/object:Gem::Dependency
98
- name: security
98
+ name: term-ansicolor
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.1.2
103
+ version: '1.4'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.1.2
110
+ version: '1.4'
111
111
  - !ruby/object:Gem::Dependency
112
- name: certified
112
+ name: terminal-table
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.0
117
+ version: '1.8'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.0.0
124
+ version: '1.8'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rspec
126
+ name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: rake
140
+ name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  description: A command-line interface for the iOS Provisioning Portal
@@ -157,24 +157,25 @@ executables:
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
- - ./cupertino.gemspec
161
- - ./Gemfile
162
- - ./Gemfile.lock
163
- - ./lib/cupertino/provisioning_portal/agent.rb
164
- - ./lib/cupertino/provisioning_portal/commands/app_ids.rb
165
- - ./lib/cupertino/provisioning_portal/commands/certificates.rb
166
- - ./lib/cupertino/provisioning_portal/commands/devices.rb
167
- - ./lib/cupertino/provisioning_portal/commands/login.rb
168
- - ./lib/cupertino/provisioning_portal/commands/logout.rb
169
- - ./lib/cupertino/provisioning_portal/commands/profiles.rb
170
- - ./lib/cupertino/provisioning_portal/commands.rb
171
- - ./lib/cupertino/provisioning_portal/helpers.rb
172
- - ./lib/cupertino/provisioning_portal.rb
173
- - ./lib/cupertino/version.rb
174
- - ./lib/cupertino.rb
175
- - ./LICENSE
176
- - ./Rakefile
177
- - ./README.md
160
+ - "./Gemfile"
161
+ - "./Gemfile.lock"
162
+ - "./LICENSE"
163
+ - "./README.md"
164
+ - "./Rakefile"
165
+ - "./cupertino-1.3.4.gem"
166
+ - "./cupertino.gemspec"
167
+ - "./lib/cupertino.rb"
168
+ - "./lib/cupertino/provisioning_portal.rb"
169
+ - "./lib/cupertino/provisioning_portal/agent.rb"
170
+ - "./lib/cupertino/provisioning_portal/commands.rb"
171
+ - "./lib/cupertino/provisioning_portal/commands/app_ids.rb"
172
+ - "./lib/cupertino/provisioning_portal/commands/certificates.rb"
173
+ - "./lib/cupertino/provisioning_portal/commands/devices.rb"
174
+ - "./lib/cupertino/provisioning_portal/commands/login.rb"
175
+ - "./lib/cupertino/provisioning_portal/commands/logout.rb"
176
+ - "./lib/cupertino/provisioning_portal/commands/profiles.rb"
177
+ - "./lib/cupertino/provisioning_portal/helpers.rb"
178
+ - "./lib/cupertino/version.rb"
178
179
  - bin/ios
179
180
  homepage: http://nomad-cli.com
180
181
  licenses:
@@ -186,17 +187,17 @@ require_paths:
186
187
  - lib
187
188
  required_ruby_version: !ruby/object:Gem::Requirement
188
189
  requirements:
189
- - - '>='
190
+ - - ">="
190
191
  - !ruby/object:Gem::Version
191
192
  version: '0'
192
193
  required_rubygems_version: !ruby/object:Gem::Requirement
193
194
  requirements:
194
- - - '>='
195
+ - - ">="
195
196
  - !ruby/object:Gem::Version
196
197
  version: '0'
197
198
  requirements: []
198
199
  rubyforge_project:
199
- rubygems_version: 2.1.11
200
+ rubygems_version: 2.7.6
200
201
  signing_key:
201
202
  specification_version: 4
202
203
  summary: Cupertino