xcode-install 0.3.1 → 0.3.2
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/Rakefile +1 -1
- data/lib/xcode/install.rb +3 -3
- data/lib/xcode/install/version.rb +1 -1
- data/spec/fixtures/devcenter/xcode-20150624.html +318 -0
- data/spec/list_spec.rb +45 -0
- data/spec/prerelease_spec.rb +10 -1
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6b87f893b10cddae2347fdbd7efb04798a7a355
|
|
4
|
+
data.tar.gz: 8e95f4459e1caca918bfb2ae5b466ccd522ea438
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc08c7e3e75b4107474e54e259c6700af820c614f57cd1976bfc608fdd1f23395276fb21c1f3f3911ff941f9b79074de4db7f07aa24c18a09e775c1b44ca6246
|
|
7
|
+
data.tar.gz: 94e6b8ef8923103e2f030c54cfef8454d49ef034e1aa0823d87bf7c7298fffd23d7cb3d75ebc5748da85e848afafb3d341f1d51677c18ea93ec09ddc0703fee0
|
data/Rakefile
CHANGED
data/lib/xcode/install.rb
CHANGED
|
@@ -144,9 +144,9 @@ module XcodeInstall
|
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
def list_current
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
list_versions.select { |v| v.
|
|
147
|
+
stable_majors = list_versions.reject { |v| /beta/i =~ v }.map { |v| v.split('.')[0] }.map { |v| v.split(' ')[0] }
|
|
148
|
+
latest_stable_major = stable_majors.select { |v| v.length == 1 }.uniq.sort.last.to_i
|
|
149
|
+
list_versions.select { |v| v.split('.')[0].to_i >= latest_stable_major }.sort.join("\n")
|
|
150
150
|
end
|
|
151
151
|
|
|
152
152
|
def list
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
5
|
+
<meta name="Author" content="Apple Inc." />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7, IE=9">
|
|
8
|
+
<link rel="shortcut icon" href="/favicon.ico" />
|
|
9
|
+
<link rel="icon" href="/favicon.ico" />
|
|
10
|
+
|
|
11
|
+
<link rel="stylesheet" href="/assets/styles/global.css" type="text/css" />
|
|
12
|
+
|
|
13
|
+
<script src="https://devimages.apple.com.edgekey.net/assets/scripts/lib/jquery/jquery-1.11.0.min.js"></script>
|
|
14
|
+
<script src="https://devimages.apple.com.edgekey.net/assets/scripts/lib/jquery/jquery.retinate.js" type="text/javascript" charset="utf-8"></script>
|
|
15
|
+
<!--[if lt IE 9]>
|
|
16
|
+
<link rel="stylesheet" href="/assets/styles/oldie.css" type="text/css" />
|
|
17
|
+
<script src="/assets/scripts/html5.js"></script>
|
|
18
|
+
<![endif]-->
|
|
19
|
+
<script src="/assets/scripts/lg-search.js"></script>
|
|
20
|
+
<script src="/assets/scripts/global.js"></script>
|
|
21
|
+
|
|
22
|
+
<link rel="stylesheet" href="https://www.apple.com/wss/fonts?family=Myriad+Set+Pro&v=1" type="text/css" />
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<title>Xcode - Downloads - Apple Developer</title>
|
|
26
|
+
<meta name="omni_page" content="Xcode Downloads and Resources - (English)">
|
|
27
|
+
<meta name="Description" content="Xcode includes the Xcode IDE, Instruments, iOS Simulator, the latest OS X and iOS SDKs, and more. Download Xcode and start creating apps for iOS and OS X.">
|
|
28
|
+
<meta name="robots" content="noodp,noydir" />
|
|
29
|
+
<link rel="alternate" href="https://developer.apple.com/kr/xcode/downloads/" hreflang="ko-KR" />
|
|
30
|
+
<link rel="alternate" href="https://developer.apple.com/jp/xcode/downloads/" hreflang="ja-JP" />
|
|
31
|
+
<link rel="alternate" href="https://developer.apple.com/cn/xcode/downloads/" hreflang="zh-CN" />
|
|
32
|
+
<link rel="alternate" href="https://developer.apple.com/xcode/downloads/" hreflang="en" />
|
|
33
|
+
<link rel="stylesheet" href="/xcode/styles/xcode.css" type="text/css" />
|
|
34
|
+
<style>
|
|
35
|
+
.bg-light {background-color:#fafafa;}
|
|
36
|
+
</style>
|
|
37
|
+
</head>
|
|
38
|
+
<body>
|
|
39
|
+
<nav id="globalheader" role="navigation" aria-label="Global Navigation">
|
|
40
|
+
<div id="gh-content" class="gh-content">
|
|
41
|
+
<ul class="gh-menu">
|
|
42
|
+
<li id="gh-menu-icon-toggle" class="gh-menu-icon gh-menu-icon-toggle enhance">
|
|
43
|
+
<button id="gh-svg-icons" class="gh-svg-wrapper">
|
|
44
|
+
<span class="text-replace">Menu</span>
|
|
45
|
+
<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>
|
|
46
|
+
<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>
|
|
47
|
+
</button>
|
|
48
|
+
</li>
|
|
49
|
+
<li id="gh-menu-icon-home" class="gh-menu-icon gh-menu-icon-home">
|
|
50
|
+
<a href="/">
|
|
51
|
+
<span class="text-replace">Apple Developer</span>
|
|
52
|
+
</a>
|
|
53
|
+
</li>
|
|
54
|
+
</ul>
|
|
55
|
+
<div class="gh-nav">
|
|
56
|
+
<div class="gh-nav-view">
|
|
57
|
+
<ul class="gh-nav-list">
|
|
58
|
+
|
|
59
|
+
<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>
|
|
60
|
+
<li class="gh-tab gh-nav-technologies"><a class="gh-tab-link" href="/technologies/">Technologies</a></li>
|
|
61
|
+
<li class="gh-tab gh-nav-resources"><a class="gh-tab-link" href="/resources/">Resources</a></li>
|
|
62
|
+
<li class="gh-tab gh-nav-programs"><a class="gh-tab-link" href="/programs/">Programs</a></li>
|
|
63
|
+
<li class="gh-tab gh-nav-support"><a class="gh-tab-link" href="/support/">Support</a></li>
|
|
64
|
+
<li class="gh-tab gh-nav-account gh-nav-membercenter">
|
|
65
|
+
<a class="gh-tab-link" href="/membercenter/">Member Center</a>
|
|
66
|
+
</li>
|
|
67
|
+
<li class="gh-tab gh-nav-search">
|
|
68
|
+
|
|
69
|
+
<div id="gh-search" class="gh-search" role="search">
|
|
70
|
+
<form action="/search/index.php" method="get" class="gh-search-form" id="gh-search-form" role="search">
|
|
71
|
+
|
|
72
|
+
<div class="gh-search-input-wrapper">
|
|
73
|
+
<label for="gh-search-input" class="text-replace">Search Apple Developer</label>
|
|
74
|
+
<input type="text" name="q" id="gh-search-input" class="augmented gh-search-input" placeholder="Search Apple Developer" autocomplete="off">
|
|
75
|
+
</div>
|
|
76
|
+
|
|
77
|
+
<button disabled type="submit" id="gh-search-submit" class="gh-search-submit gh-search-magnify"><span class="text-replace">Search Apple Developer</span></button>
|
|
78
|
+
<button disabled type="reset" id="gh-search-reset" class="gh-search-reset"><span class="text-replace">Reset</span></button>
|
|
79
|
+
|
|
80
|
+
</form>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<a class="gh-search-magnify" href="/search/"><span class="text-replace">Search Apple Developer</span></a>
|
|
84
|
+
|
|
85
|
+
</li>
|
|
86
|
+
</ul>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</nav>
|
|
91
|
+
|
|
92
|
+
<div id="top">
|
|
93
|
+
<!-- SiteCatalyst code version: H.8. Copyright 1997-2006 Omniture, Inc. -->
|
|
94
|
+
<script type="text/javascript">
|
|
95
|
+
/* RSID: */
|
|
96
|
+
var s_account="appleglobal,appleusdeveloper"
|
|
97
|
+
</script>
|
|
98
|
+
|
|
99
|
+
<script type="text/javascript" src="https://www.apple.com/metrics/scripts/s_code_h.js"></script>
|
|
100
|
+
<script type="text/javascript">
|
|
101
|
+
s.pageName=AC.Tracking.pageName();
|
|
102
|
+
s.channel="www.us.developer"
|
|
103
|
+
|
|
104
|
+
/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
|
|
105
|
+
var s_code=s.t();if(s_code)document.write(s_code)</script>
|
|
106
|
+
<!-- End SiteCatalyst code version: H.8. -->
|
|
107
|
+
</div>
|
|
108
|
+
|
|
109
|
+
<main id="main" class="main" role="main" data-hires="true">
|
|
110
|
+
|
|
111
|
+
<section class="sticky">
|
|
112
|
+
<nav class="subnav" role="navigation" aria-label="Local Navigation" data-hires="true">
|
|
113
|
+
<section class="sub-title"><h2><a href="/xcode/">Xcode</a></h2></section>
|
|
114
|
+
<ul>
|
|
115
|
+
<li><a href="/xcode/">What's New</a></li>
|
|
116
|
+
<li><a href="/xcode/ide/">Xcode IDE</a></li>
|
|
117
|
+
<li><a href="/xcode/interface-builder/">Interface Builder</a></li>
|
|
118
|
+
<li><a href="/xcode/features/">Features</a></li>
|
|
119
|
+
<li><a class="active" href="/xcode/downloads/">Download</a></li>
|
|
120
|
+
</ul>
|
|
121
|
+
</nav>
|
|
122
|
+
</section>
|
|
123
|
+
|
|
124
|
+
<section class="grid">
|
|
125
|
+
<section class="row">
|
|
126
|
+
<section class="col-100 text-center padding-top">
|
|
127
|
+
<h1>Download Xcode for Free</h1>
|
|
128
|
+
</section>
|
|
129
|
+
</section>
|
|
130
|
+
</section>
|
|
131
|
+
|
|
132
|
+
<div class="bg-light">
|
|
133
|
+
<div class="grid">
|
|
134
|
+
<section class="row compact">
|
|
135
|
+
<section class="col-20 padding-top">
|
|
136
|
+
<img class="center" src="https://devimages.apple.com.edgekey.net/assets/elements/icons/128x128/xcode6-beta.png" width="128" height="128" alt="">
|
|
137
|
+
</section>
|
|
138
|
+
<section class="col-60 padding-top">
|
|
139
|
+
<h4>Xcode 7 beta 2<span class="tag-purple">Pre-release</span></h4>
|
|
140
|
+
<p>This release includes the Xcode IDE, Swift 2 compiler, Instruments, Simulator, and latest SDKs for OS X, iOS, and watchOS.</span>
|
|
141
|
+
</p>
|
|
142
|
+
<ul class="links small">
|
|
143
|
+
<li class="dmg"><a href="/services-account/download?path=/Developer_Tools/Xcode_7_beta_2/Xcode_7_beta_2.dmg">Download Xcode 7 beta 2</a></li>
|
|
144
|
+
<li class="document"><a href="/services-account/download?path=/Developer_Tools/Xcode_7_beta_2/Xcode_7_beta_2_Release_Notes.pdf">Xcode 7 beta 2 Release Notes</a></li>
|
|
145
|
+
</ul>
|
|
146
|
+
</section>
|
|
147
|
+
<section class="col-20 padding-top lighter smaller text-right">
|
|
148
|
+
<p class="padding-top no-padding-small">Released: Jun 23, 2015<br />
|
|
149
|
+
Build: 7A121l<br />
|
|
150
|
+
SDK: iOS 9 beta 2, OS X v10.11 beta<br />
|
|
151
|
+
</p>
|
|
152
|
+
</section>
|
|
153
|
+
</section>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
<div class="grid">
|
|
157
|
+
<div class="row compact">
|
|
158
|
+
<section class="col-20 padding-top">
|
|
159
|
+
<img class="center" src="/assets/elements/icons/128x128/xcode6.png" width="128" height="128" alt="">
|
|
160
|
+
</section>
|
|
161
|
+
<section class="col-60 padding-top">
|
|
162
|
+
<h4>Xcode 6.3.2</h4>
|
|
163
|
+
<p>This release includes the Xcode IDE, LLVM compiler, Instruments, iOS Simulator, the latest OS X and iOS SDKs, WatchKit and the Swift 1.2 programming language.</span>
|
|
164
|
+
</p>
|
|
165
|
+
<p><a class="more" href="http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12">View in the Mac App Store</a></p>
|
|
166
|
+
</section>
|
|
167
|
+
<section class="col-20 padding-top lighter smaller text-right">
|
|
168
|
+
<p class="padding-top no-padding-small">
|
|
169
|
+
Updated: May 18, 2015<br />
|
|
170
|
+
Build: 6D2105<br />
|
|
171
|
+
SDK: iOS 8.3, OS X v10.10
|
|
172
|
+
</p>
|
|
173
|
+
</section>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
<div class="bg-light">
|
|
178
|
+
<div class="grid">
|
|
179
|
+
<section class="row compact">
|
|
180
|
+
<section class="col-20 padding-top">
|
|
181
|
+
<img class="center" src="https://devimages.apple.com.edgekey.net/assets/elements/icons/128x128/xcode6-beta.png" width="128" height="128" alt="">
|
|
182
|
+
</section>
|
|
183
|
+
<section class="col-60 padding-top">
|
|
184
|
+
<h4>Xcode 6.4 beta 4<span class="tag-purple">Pre-release</span></h4>
|
|
185
|
+
<p>This is a pre-release version of the complete Xcode developer toolset for Mac, iPhone, iPad, and <span class="nowrap">Apple Watch.</span> This release requires <span class="nowrap">OS X Yosemite.</span>
|
|
186
|
+
</p>
|
|
187
|
+
<ul class="links small">
|
|
188
|
+
<li class="dmg"><a href="/services-account/download?path=/WWDC_2015/Xcode_6.4_beta_4/Xcode_6.4_beta_4.dmg">Download Xcode 6.4 beta 4</a></li>
|
|
189
|
+
<li class="document"><a href="/services-account/download?path=/WWDC_2015/Xcode_6.4_beta_4/Xcode_6.4_beta_4_Release_Notes.pdf">Xcode 6.4 beta 4 Release Notes</a></li>
|
|
190
|
+
</ul>
|
|
191
|
+
</section>
|
|
192
|
+
<section class="col-20 padding-top lighter smaller text-right">
|
|
193
|
+
<p class="padding-top no-padding-small">Released: Jun 9, 2015<br />
|
|
194
|
+
Build: 6E31c<br />
|
|
195
|
+
SDK: iOS 8.4 beta 4, OS X v10.10<br />
|
|
196
|
+
</p>
|
|
197
|
+
</section>
|
|
198
|
+
</section>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
|
|
202
|
+
<div class="grid">
|
|
203
|
+
<div class="row">
|
|
204
|
+
<section class="col-100 padding-top no-padding-bottom">
|
|
205
|
+
<h4>Related Downloads and Resources</h4>
|
|
206
|
+
</section>
|
|
207
|
+
</div>
|
|
208
|
+
<div class="row">
|
|
209
|
+
<section class="col-25">
|
|
210
|
+
<img src="/assets/elements/icons/32x32/download.svg" width="32" height="32" alt="" />
|
|
211
|
+
<p class="smaller no-margin"><a href="/downloads/">Additional Tools</a></p>
|
|
212
|
+
<p class="smaller">Sign in with your Apple ID to download previous versions of Xcode or additional tools from the developer downloads site.</p>
|
|
213
|
+
</section>
|
|
214
|
+
<section class="col-25">
|
|
215
|
+
<img src="/assets/elements/icons/32x32/video.svg" width="32" height="32" alt="" />
|
|
216
|
+
<p class="smaller no-margin"><a href="/videos/">Videos</a></p>
|
|
217
|
+
<p class="smaller">Watch and learn from Apple engineers as they explain how to bring the best of Apple technologies to your apps.</p>
|
|
218
|
+
</section>
|
|
219
|
+
<section class="col-25">
|
|
220
|
+
<img src="/assets/elements/icons/32x32/library.svg" width="32" height="32" alt="" />
|
|
221
|
+
<p class="smaller no-margin"><a href="/library/ios/navigation/#section=Topics&topic=Xcode">Guides and Tutorials</a></p>
|
|
222
|
+
<p class="smaller">Find a comprehensive set of programming guides, reference, and sample code for developing with the latest tools and technologies on iOS and OS X.</p>
|
|
223
|
+
</section>
|
|
224
|
+
<section class="col-25">
|
|
225
|
+
<img src="/assets/elements/icons/32x32/forum-topic.svg" width="32" height="32" alt="" />
|
|
226
|
+
<p class="smaller no-margin"><a href="/devforums/">Forums</a></p>
|
|
227
|
+
<p class="smaller">Post questions and share thoughts about using Xcode with fellow developers.</p>
|
|
228
|
+
</section>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
|
|
232
|
+
</main>
|
|
233
|
+
|
|
234
|
+
<footer id="globalfooter" class="no-margin-top" role="contentinfo">
|
|
235
|
+
<nav class="footer-breadory">
|
|
236
|
+
<a href="/" class="home breadcrumbs-home"><span aria-hidden="true"></span><span class="breadcrumbs-home-label">Developer</span></a>
|
|
237
|
+
<section class="breadcrumbs">
|
|
238
|
+
<ol class="breadcrumbs-list">
|
|
239
|
+
<li><a href="/xcode/">Xcode</a></li>
|
|
240
|
+
<li>Downloads</li>
|
|
241
|
+
</ol>
|
|
242
|
+
</section>
|
|
243
|
+
<div id="directorynav" class="directorynav">
|
|
244
|
+
<div id="dn-cola" class="column">
|
|
245
|
+
<h3><a href="/technologies/">Technologies</a></h3>
|
|
246
|
+
<ul>
|
|
247
|
+
<li><a href="/ios/pre-release/">iOS</a></li>
|
|
248
|
+
<li><a href="/osx/pre-release/">OS X</a></li>
|
|
249
|
+
<li><a href="/watchos/pre-release/">watchOS</a></li>
|
|
250
|
+
<li><a href="/xcode/">Xcode</a></li>
|
|
251
|
+
<li><a href="/swift/">Swift</a></li>
|
|
252
|
+
</ul>
|
|
253
|
+
</div>
|
|
254
|
+
<div id="dn-colb" class="column">
|
|
255
|
+
<h3><a href="/resources/">Resources</a></h3>
|
|
256
|
+
<ul>
|
|
257
|
+
<li><a href="/library/">Documentation</a></li>
|
|
258
|
+
<li><a href="/videos/">Videos</a></li>
|
|
259
|
+
<li><a href="/devforums/">Forums</a></li>
|
|
260
|
+
<li><a href="/bug-reporting/">Bug Reporting</a></li>
|
|
261
|
+
</ul>
|
|
262
|
+
|
|
263
|
+
</div>
|
|
264
|
+
<div id="dn-colc" class="column">
|
|
265
|
+
<h3><a href="/programs/">Programs</a></h3>
|
|
266
|
+
<ul>
|
|
267
|
+
<li><a href="/programs/">Developer Program</a></li>
|
|
268
|
+
<li><a href="/programs/enterprise/">Enterprise Program</a></li>
|
|
269
|
+
<li><a href="/programs/ios/university/">iOS University Program</a></li>
|
|
270
|
+
<li><a href="/programs/mfi/">MFi Program</a></li>
|
|
271
|
+
</ul>
|
|
272
|
+
</div>
|
|
273
|
+
<div id="dn-cold" class="column">
|
|
274
|
+
<h3><a href="/support/">Support</a></h3>
|
|
275
|
+
<ul>
|
|
276
|
+
<li><a href="/support/development/">Development</a></li>
|
|
277
|
+
<li><a href="/support/distribution/">Distribution</a></li>
|
|
278
|
+
<li><a href="/support/membership/">Membership</a></li>
|
|
279
|
+
<li><a href="/system-status/">System Status</a></li>
|
|
280
|
+
</ul>
|
|
281
|
+
</div>
|
|
282
|
+
<div id="dn-cole" class="column">
|
|
283
|
+
<h3><a href="/membercenter/">Member Center</a></h3>
|
|
284
|
+
<ul>
|
|
285
|
+
<li><a href="/membercenter/">Developer Account</a></li>
|
|
286
|
+
<li><a href="/account/overview.action">Certs, IDs, & Profiles</a></li>
|
|
287
|
+
<li><a href="/terms/">License Agreements</a></li>
|
|
288
|
+
</ul>
|
|
289
|
+
</div>
|
|
290
|
+
</div>
|
|
291
|
+
|
|
292
|
+
</nav>
|
|
293
|
+
<ul class="gf-links piped footer-links">
|
|
294
|
+
<li><a href="/news/" class="first">News</a></li>
|
|
295
|
+
<li><a href="/bug-reporting/">Report Bugs</a></li>
|
|
296
|
+
<li><a href="/contact/">Contact Us</a></li>
|
|
297
|
+
</ul>
|
|
298
|
+
|
|
299
|
+
<div class="gf-sosumi footer-sosumi">
|
|
300
|
+
<p>Copyright © 2015 Apple Inc. All rights reserved.</p>
|
|
301
|
+
<ul class="piped">
|
|
302
|
+
<li><a href="http://www.apple.com/legal/internet-services/terms/site.html" class="first">Terms of Use</a></li>
|
|
303
|
+
<li><a href="http://www.apple.com/privacy/privacy-policy/">Updated Privacy Policy</a></li>
|
|
304
|
+
</ul>
|
|
305
|
+
</div>
|
|
306
|
+
|
|
307
|
+
<!--<div id="gf-links piped footer-links">
|
|
308
|
+
<ul>
|
|
309
|
+
<li><a href="/cn/" title="Simplified Chinese">简体中文</a></li>
|
|
310
|
+
<li><a href="/jp/" title="Japanese">日本語</a></li>
|
|
311
|
+
<li><a href="/kr/" title="Korean">한국어</a></li>
|
|
312
|
+
</ul>
|
|
313
|
+
</div>-->
|
|
314
|
+
|
|
315
|
+
</footer><!-- globalfooter -->
|
|
316
|
+
|
|
317
|
+
</body>
|
|
318
|
+
</html>
|
data/spec/list_spec.rb
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
require File.expand_path('../spec_helper', __FILE__)
|
|
2
|
+
|
|
3
|
+
module XcodeInstall
|
|
4
|
+
describe Command::List do
|
|
5
|
+
before do
|
|
6
|
+
installer.stubs(:exists).returns(true)
|
|
7
|
+
installer.stubs(:installed_versions).returns([])
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def installer
|
|
11
|
+
@installer ||= Installer.new
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def fake_xcode(name)
|
|
15
|
+
fixture = Pathname.new('spec/fixtures/xcode_63.json').read
|
|
16
|
+
xcode = Xcode.new(JSON.parse(fixture))
|
|
17
|
+
xcode.stubs(:name).returns(name)
|
|
18
|
+
xcode
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def fake_xcodes(*names)
|
|
22
|
+
xcodes = names.map { |name| fake_xcode(name) }
|
|
23
|
+
installer.stubs(:xcodes).returns(xcodes)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
describe '#list' do
|
|
27
|
+
it 'lists all versions' do
|
|
28
|
+
fake_xcodes '1', '2.3', '3 some', '4 beta'
|
|
29
|
+
installer.list.should == "1\n2.3\n3 some\n4 beta"
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
describe '#list_current' do
|
|
34
|
+
it 'shows versions from latest version only' do
|
|
35
|
+
fake_xcodes '2', '3.0', '3.1', '1.1'
|
|
36
|
+
installer.list_current.should == "3.0\n3.1"
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
it 'shows versions of new beta releases too' do
|
|
40
|
+
fake_xcodes '5', '6.1', '6', '6.4 beta', '7 beta'
|
|
41
|
+
installer.list_current.should == "6\n6.1\n6.4 beta\n7 beta"
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
data/spec/prerelease_spec.rb
CHANGED
|
@@ -44,7 +44,16 @@ module XcodeInstall
|
|
|
44
44
|
prereleases = parse_prereleases('20150608')
|
|
45
45
|
|
|
46
46
|
prereleases.count.should == 2
|
|
47
|
-
|
|
47
|
+
prereleases.first.should == Xcode.new_prelease('7 beta', '/WWDC_2015/Xcode_7_beta/Xcode_7_beta.dmg')
|
|
48
|
+
prereleases.last.should == Xcode.new_prelease('6.4 beta 3', '/Developer_Tools/Xcode_6.4_beta_3/Xcode_6.4_beta_3.dmg')
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
it 'can parse prereleases from 20150624' do
|
|
52
|
+
prereleases = parse_prereleases('20150624')
|
|
53
|
+
|
|
54
|
+
prereleases.count.should == 2
|
|
55
|
+
prereleases.first.should == Xcode.new_prelease('7 beta 2', '/Developer_Tools/Xcode_7_beta_2/Xcode_7_beta_2.dmg')
|
|
56
|
+
prereleases.last.should == Xcode.new_prelease('6.4 beta 4', '/WWDC_2015/Xcode_6.4_beta_4/Xcode_6.4_beta_4.dmg')
|
|
48
57
|
end
|
|
49
58
|
end
|
|
50
59
|
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: 0.3.
|
|
4
|
+
version: 0.3.2
|
|
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: 2015-06-
|
|
11
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: claide
|
|
@@ -110,12 +110,14 @@ files:
|
|
|
110
110
|
- spec/fixtures/devcenter/xcode-20150508.html
|
|
111
111
|
- spec/fixtures/devcenter/xcode-20150601.html
|
|
112
112
|
- spec/fixtures/devcenter/xcode-20150608.html
|
|
113
|
+
- spec/fixtures/devcenter/xcode-20150624.html
|
|
113
114
|
- spec/fixtures/xcode.json
|
|
114
115
|
- spec/fixtures/xcode_63.json
|
|
115
116
|
- spec/fixtures/yolo.json
|
|
116
117
|
- spec/install_spec.rb
|
|
117
118
|
- spec/installed_spec.rb
|
|
118
119
|
- spec/json_spec.rb
|
|
120
|
+
- spec/list_spec.rb
|
|
119
121
|
- spec/prerelease_spec.rb
|
|
120
122
|
- spec/spec_helper.rb
|
|
121
123
|
- xcode-install.gemspec
|
|
@@ -149,12 +151,14 @@ test_files:
|
|
|
149
151
|
- spec/fixtures/devcenter/xcode-20150508.html
|
|
150
152
|
- spec/fixtures/devcenter/xcode-20150601.html
|
|
151
153
|
- spec/fixtures/devcenter/xcode-20150608.html
|
|
154
|
+
- spec/fixtures/devcenter/xcode-20150624.html
|
|
152
155
|
- spec/fixtures/xcode.json
|
|
153
156
|
- spec/fixtures/xcode_63.json
|
|
154
157
|
- spec/fixtures/yolo.json
|
|
155
158
|
- spec/install_spec.rb
|
|
156
159
|
- spec/installed_spec.rb
|
|
157
160
|
- spec/json_spec.rb
|
|
161
|
+
- spec/list_spec.rb
|
|
158
162
|
- spec/prerelease_spec.rb
|
|
159
163
|
- spec/spec_helper.rb
|
|
160
164
|
has_rdoc:
|