xcode-install 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +4 -4
- data/.travis.yml +2 -0
- data/lib/xcode/install.rb +52 -21
- data/lib/xcode/install/version.rb +1 -1
- data/spec/fixtures/devcenter/xcode-20160601.html +1872 -0
- data/spec/fixtures/mail-verify.html +222 -0
- data/spec/install_spec.rb +6 -0
- data/spec/prerelease_spec.rb +7 -0
- metadata +7 -3
@@ -0,0 +1,222 @@
|
|
1
|
+
|
2
|
+
<!DOCTYPE html>
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
|
+
<meta name="Author" content="Apple Inc." />
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
8
|
+
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, IE=9">
|
9
|
+
<link rel="shortcut icon" href="/favicon.ico" />
|
10
|
+
<link rel="icon" href="/favicon.ico" />
|
11
|
+
<link rel="mask-icon" href="/apple-logo.svg" color="#333333">
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="/assets/styles/globalnav.css" type="text/css" />
|
14
|
+
<link rel="stylesheet" href="/assets/styles/global.css" type="text/css" />
|
15
|
+
|
16
|
+
<script src="https://devimages.apple.com.edgekey.net/assets/scripts/lib/jquery/jquery-1.11.0.min.js"></script>
|
17
|
+
<script src="https://devimages.apple.com.edgekey.net/assets/scripts/lib/jquery/jquery.retinate.js" type="text/javascript" charset="utf-8"></script>
|
18
|
+
<!--[if lt IE 9]>
|
19
|
+
<link rel="stylesheet" href="/assets/styles/oldie.css" type="text/css" />
|
20
|
+
<script src="/assets/scripts/html5.js"></script>
|
21
|
+
<![endif]-->
|
22
|
+
<script src="/assets/scripts/lg-search.js"></script>
|
23
|
+
<script src="/assets/scripts/global.js"></script>
|
24
|
+
|
25
|
+
<link rel="stylesheet" href="https://www.apple.com/wss/fonts?family=Myriad+Set+Pro&v=2" type="text/css" />
|
26
|
+
|
27
|
+
<title>Verify Your Email Address - Apple Developer</title>
|
28
|
+
<meta name="omni_page" content="" />
|
29
|
+
<meta name="robots" content="noindex, nofollow">
|
30
|
+
<style>
|
31
|
+
.subnav ul li a {
|
32
|
+
color: #0088cc !important;
|
33
|
+
}
|
34
|
+
.subnav ul li a:hover {
|
35
|
+
text-decoration: underline;
|
36
|
+
}
|
37
|
+
</style>
|
38
|
+
</head>
|
39
|
+
<body>
|
40
|
+
<nav id="globalheader" role="navigation" aria-label="Global Navigation">
|
41
|
+
<div id="gh-content" class="gh-content">
|
42
|
+
<ul class="gh-menu">
|
43
|
+
<li id="gh-menu-icon-toggle" class="gh-menu-icon gh-menu-icon-toggle enhance">
|
44
|
+
<button id="gh-svg-icons" class="gh-svg-wrapper">
|
45
|
+
<span class="text-replace">Menu</span>
|
46
|
+
<svg x="0px" y="0px" width="100%" viewBox="0 0 96 96" class="gh-svg gh-svg-top" enable-background="new 0 0 96 96"><rect width="32" height="4" x="32" y="46" class="gh-svg-rect gh-svg-rect-top"></rect></svg>
|
47
|
+
<svg x="0px" y="0px" width="100%" viewBox="0 0 96 96" class="gh-svg gh-svg-bottom" enable-background="new 0 0 96 96"><rect width="32" height="4" x="32" y="46" class="gh-svg-rect gh-svg-rect-bottom"></rect></svg>
|
48
|
+
</button>
|
49
|
+
</li>
|
50
|
+
<li id="gh-menu-icon-home" class="gh-menu-icon gh-menu-icon-home">
|
51
|
+
<a href="/">
|
52
|
+
<span class="text-replace">Apple Developer</span>
|
53
|
+
</a>
|
54
|
+
</li>
|
55
|
+
</ul>
|
56
|
+
<div class="gh-nav">
|
57
|
+
<div class="gh-nav-view">
|
58
|
+
<ul class="gh-nav-list">
|
59
|
+
|
60
|
+
<li class="gh-tab gh-nav-developer" data-hires="true"><a class="gh-tab-link" href="/"><span class="text-replace">Apple Developer</span></a></li>
|
61
|
+
<li class="gh-tab gh-nav-technologies"><a class="gh-tab-link" href="/platforms/">Platforms</a></li>
|
62
|
+
<li class="gh-tab gh-nav-resources"><a class="gh-tab-link" href="/resources/">Resources</a></li>
|
63
|
+
<li class="gh-tab gh-nav-programs"><a class="gh-tab-link" href="/programs/">Program</a></li>
|
64
|
+
<li class="gh-tab gh-nav-support"><a class="gh-tab-link" href="/support/">Support</a></li>
|
65
|
+
<li class="gh-tab gh-nav-account">
|
66
|
+
<a class="gh-tab-link gh-account-profile" href="/account/">Account</a>
|
67
|
+
</li>
|
68
|
+
<li class="gh-tab gh-nav-search">
|
69
|
+
|
70
|
+
<div id="gh-search" class="gh-search" role="search">
|
71
|
+
<form action="/search/index.php" method="get" class="gh-search-form" id="gh-search-form" role="search">
|
72
|
+
|
73
|
+
<div class="gh-search-input-wrapper">
|
74
|
+
<label for="gh-search-input" class="text-replace">Search Apple Developer</label>
|
75
|
+
<input type="text" name="q" id="gh-search-input" class="augmented gh-search-input" placeholder="Search Apple Developer" autocomplete="off" autocorrect="off" autocapitalize="off">
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<button disabled type="submit" id="gh-search-submit" class="gh-search-submit gh-search-magnify"><span class="text-replace">Search Apple Developer</span></button>
|
79
|
+
<button disabled type="reset" id="gh-search-reset" class="gh-search-reset"><span class="text-replace">Reset</span></button>
|
80
|
+
|
81
|
+
</form>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<a class="gh-search-magnify" href="/search/"><span class="text-replace">Search Apple Developer</span></a>
|
85
|
+
|
86
|
+
</li>
|
87
|
+
</ul>
|
88
|
+
</div>
|
89
|
+
</div>
|
90
|
+
</div>
|
91
|
+
</nav>
|
92
|
+
|
93
|
+
<div id="top">
|
94
|
+
<!-- SiteCatalyst code version: H.8. Copyright 1997-2006 Omniture, Inc. -->
|
95
|
+
<script type="text/javascript">
|
96
|
+
/* RSID: */
|
97
|
+
var s_account="appleglobal,appleusdeveloper"
|
98
|
+
</script>
|
99
|
+
|
100
|
+
<script type="text/javascript" src="https://www.apple.com/metrics/scripts/s_code_h.js"></script>
|
101
|
+
<script type="text/javascript">
|
102
|
+
s.pageName= AC && AC.Tracking && AC.Tracking.pageName();
|
103
|
+
s.channel="www.us.developer"
|
104
|
+
|
105
|
+
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
|
106
|
+
var s_code=s.t();if(s_code)document.write(s_code)</script>
|
107
|
+
<!-- End SiteCatalyst code version: H.8. -->
|
108
|
+
</div>
|
109
|
+
<nav class="subnav">
|
110
|
+
<ul>
|
111
|
+
<li class="not-link">Michael Ruhl</li>
|
112
|
+
<li class="not-link"> | </li>
|
113
|
+
<li><a href="/logout/?return=%2F" class="sign-out">Sign Out</a></li>
|
114
|
+
</ul>
|
115
|
+
</nav>
|
116
|
+
|
117
|
+
<section class="grid">
|
118
|
+
<section class="row padding-top padding-bottom">
|
119
|
+
<section class="col-100 text-center">
|
120
|
+
|
121
|
+
<h2>Verify Your Email Address</h2>
|
122
|
+
<p>Your Apple ID cannot be used until your email address has been verified. <br>To verify your email address, please visit
|
123
|
+
<a class="return-link" href="https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/directToSignIn?appId=632">My Apple ID</a>.
|
124
|
+
</p>
|
125
|
+
|
126
|
+
<p><a class="button-blue return-link" href="https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/wa/directToSignIn?appId=632">Verify Now</a></p>
|
127
|
+
|
128
|
+
</section>
|
129
|
+
</section>
|
130
|
+
</section>
|
131
|
+
|
132
|
+
<footer id="globalfooter" role="contentinfo">
|
133
|
+
<nav class="footer-breadory">
|
134
|
+
<a href="/" class="home breadcrumbs-home"><span aria-hidden="true"></span><span class="breadcrumbs-home-label">Developer</span></a>
|
135
|
+
<section class="breadcrumbs">
|
136
|
+
<ol class="breadcrumbs-list">
|
137
|
+
<li>Verify Your Email Address</li>
|
138
|
+
</ol>
|
139
|
+
</section>
|
140
|
+
<div id="directorynav" class="directorynav">
|
141
|
+
<div id="dn-cola" class="column">
|
142
|
+
<h3><a href="/platforms/">Platforms</a></h3>
|
143
|
+
<ul>
|
144
|
+
<li><a href="/ios/">iOS</a></li>
|
145
|
+
<li><a href="/osx/">OS X</a></li>
|
146
|
+
<li><a href="/watchos/">watchOS</a></li>
|
147
|
+
<li><a href="/tvos/">tvOS</a></li>
|
148
|
+
</ul>
|
149
|
+
<h3><a href="/resources/">Tools</a></h3>
|
150
|
+
<ul>
|
151
|
+
<li><a href="/xcode/">Xcode</a></li>
|
152
|
+
<li><a href="/swift/">Swift</a></li>
|
153
|
+
</ul>
|
154
|
+
</div>
|
155
|
+
<div id="dn-colb" class="column">
|
156
|
+
<h3><a href="/resources/">Resources</a></h3>
|
157
|
+
<ul>
|
158
|
+
<li><a href="/library/">Documentation</a></li>
|
159
|
+
<li><a href="/videos/">Videos</a></li>
|
160
|
+
<li><a href="https://forums.developer.apple.com/">Forums</a></li>
|
161
|
+
<li><a href="/app-store/">App Store</a></li>
|
162
|
+
<li><a href="/safari/">Safari and Web</a></li>
|
163
|
+
<li><a href="/education/">Education</a></li>
|
164
|
+
<li><a href="/enterprise/">Enterprise</a></li>
|
165
|
+
</ul>
|
166
|
+
</div>
|
167
|
+
<div id="dn-colc" class="column">
|
168
|
+
<h3><a href="/programs/">Programs</a></h3>
|
169
|
+
<ul>
|
170
|
+
<li><a href="/programs/">Developer Program</a></li>
|
171
|
+
<li><a href="/programs/enterprise/">Enterprise Program</a></li>
|
172
|
+
<li><a href="/programs/ios/university/">iOS University Program</a></li>
|
173
|
+
<li><a href="/programs/mfi/">MFi Program</a></li>
|
174
|
+
</ul>
|
175
|
+
</div>
|
176
|
+
<div id="dn-cold" class="column">
|
177
|
+
<h3><a href="/support/">Support</a></h3>
|
178
|
+
<ul>
|
179
|
+
<li><a href="/support/development/">Development</a></li>
|
180
|
+
<li><a href="/support/distribution/">Distribution</a></li>
|
181
|
+
<li><a href="/support/membership/">Membership</a></li>
|
182
|
+
<li><a href="/system-status/">System Status</a></li>
|
183
|
+
</ul>
|
184
|
+
</div>
|
185
|
+
<div id="dn-cole" class="column">
|
186
|
+
<h3><a href="/account/">Account</a></h3>
|
187
|
+
<ul>
|
188
|
+
<li><a href="/account/">Developer Account</a></li>
|
189
|
+
<li><a href="https://developer.apple.com/go/?id=certificates-ids-profiles">Certificates, IDs & Profiles</a></li>
|
190
|
+
<li><a href="https://itunesconnect.apple.com">iTunes Connect</a></li>
|
191
|
+
<li><a href="/terms/">License Agreements</a></li>
|
192
|
+
</ul>
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
</nav>
|
197
|
+
<ul class="gf-links piped footer-links">
|
198
|
+
<li><a href="/news/" class="first">News & Updates</a></li>
|
199
|
+
<li><a href="/bug-reporting/">Report Bugs</a></li>
|
200
|
+
<li><a href="/contact/">Contact Us</a></li>
|
201
|
+
</ul>
|
202
|
+
|
203
|
+
<div class="gf-sosumi footer-sosumi">
|
204
|
+
<p>Copyright © 2016 Apple Inc. All rights reserved.</p>
|
205
|
+
<ul class="piped">
|
206
|
+
<li><a href="http://www.apple.com/legal/internet-services/terms/site.html" class="first">Terms of Use</a></li>
|
207
|
+
<li><a href="http://www.apple.com/privacy/privacy-policy/">Privacy Policy</a></li>
|
208
|
+
</ul>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<!--<div id="gf-links piped footer-links">
|
212
|
+
<ul>
|
213
|
+
<li><a href="/cn/" title="Simplified Chinese">简体中文</a></li>
|
214
|
+
<li><a href="/jp/" title="Japanese">日本語</a></li>
|
215
|
+
<li><a href="/kr/" title="Korean">한국어</a></li>
|
216
|
+
</ul>
|
217
|
+
</div>-->
|
218
|
+
|
219
|
+
</footer><!-- globalfooter -->
|
220
|
+
|
221
|
+
</body>
|
222
|
+
</html>
|
data/spec/install_spec.rb
CHANGED
@@ -44,5 +44,11 @@ module XcodeInstall
|
|
44
44
|
location = installer.send(:mount, Pathname.new('/some/path'))
|
45
45
|
location.should == '/Volumes/XcodeME'
|
46
46
|
end
|
47
|
+
|
48
|
+
it 'gives more helpful error when downloaded DMG turns out to be HTML' do
|
49
|
+
installer = Installer.new
|
50
|
+
should.raise(Informative) { installer.mount('spec/fixtures/mail-verify.html') }.message
|
51
|
+
.should.include 'logging into your account from a browser'
|
52
|
+
end
|
47
53
|
end
|
48
54
|
end
|
data/spec/prerelease_spec.rb
CHANGED
@@ -69,5 +69,12 @@ module XcodeInstall
|
|
69
69
|
prereleases.first.should == Xcode.new_prerelease('7.1 beta', '/Developer_Tools/Xcode_7.1_beta/Xcode_7.1_beta.dmg', '/Developer_Tools/Xcode_7.1_beta/Xcode_7.1_beta_Release_Notes.pdf')
|
70
70
|
prereleases.last.should == Xcode.new_prerelease('7 GM seed', '/Developer_Tools/Xcode_7_GM_seed/Xcode_7_GM_seed.dmg', nil)
|
71
71
|
end
|
72
|
+
|
73
|
+
it 'can parse prereleases from 20160601' do
|
74
|
+
prereleases = parse_prereleases('20160601')
|
75
|
+
|
76
|
+
prereleases.count.should == 1
|
77
|
+
prereleases.first.should == Xcode.new('8 beta', '/services-account/download?path=/WWDC_2016/Xcode_8_beta/Xcode_8_beta.xip', '/go/?id=xcode-8-beta-rn')
|
78
|
+
end
|
72
79
|
end
|
73
80
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcode-install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Bügling
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -120,7 +120,9 @@ files:
|
|
120
120
|
- spec/fixtures/devcenter/xcode-20150608.html
|
121
121
|
- spec/fixtures/devcenter/xcode-20150624.html
|
122
122
|
- spec/fixtures/devcenter/xcode-20150909.html
|
123
|
+
- spec/fixtures/devcenter/xcode-20160601.html
|
123
124
|
- spec/fixtures/hdiutil.plist
|
125
|
+
- spec/fixtures/mail-verify.html
|
124
126
|
- spec/fixtures/xcode.json
|
125
127
|
- spec/fixtures/xcode_63.json
|
126
128
|
- spec/fixtures/yolo.json
|
@@ -152,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
154
|
version: '0'
|
153
155
|
requirements: []
|
154
156
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.0.14
|
157
|
+
rubygems_version: 2.0.14.1
|
156
158
|
signing_key:
|
157
159
|
specification_version: 4
|
158
160
|
summary: Xcode installation manager.
|
@@ -166,7 +168,9 @@ test_files:
|
|
166
168
|
- spec/fixtures/devcenter/xcode-20150608.html
|
167
169
|
- spec/fixtures/devcenter/xcode-20150624.html
|
168
170
|
- spec/fixtures/devcenter/xcode-20150909.html
|
171
|
+
- spec/fixtures/devcenter/xcode-20160601.html
|
169
172
|
- spec/fixtures/hdiutil.plist
|
173
|
+
- spec/fixtures/mail-verify.html
|
170
174
|
- spec/fixtures/xcode.json
|
171
175
|
- spec/fixtures/xcode_63.json
|
172
176
|
- spec/fixtures/yolo.json
|