xcode-install 2.0.2 → 2.0.3
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/README.md +2 -4
- data/bin//360/237/216/211 +1 -0
- data/lib/xcode/install.rb +14 -2
- data/lib/xcode/install/version.rb +1 -1
- metadata +22 -22
- data/bin//360/237/216/211 +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6a7ead8e362add2bbf5738284d738293203b985
|
4
|
+
data.tar.gz: 14da9635b40e2ad6c83a2fa1272c99fda3f2cbe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b81b941c3d34ec102d3f565dc3a098654deadcc2adeddfb77c860963a5af00d610d6d54d0deba1cbc80c9014bba5ac587755ba057b1053f6b8a81d82e78846b
|
7
|
+
data.tar.gz: f832a860866c3069d4b319b737891d0a6a6fe726b4ffb4968fb7c7d56234d8dca6efaabe6681b961b4094c438a816c2527689ef042060101593d880733948c91
|
data/README.md
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
# Xcode::Install
|
2
2
|
|
3
|
-
[](https://coveralls.io/r/neonichu/xcode-install)
|
3
|
+
[](https://travis-ci.org/neonichu/xcode-install)
|
5
4
|
[](http://badge.fury.io/rb/xcode-install)
|
6
|
-
[](https://codeclimate.com/github/neonichu/xcode-install)
|
7
5
|
|
8
6
|
Install and update your Xcodes automatically.
|
9
7
|
|
@@ -30,7 +28,7 @@ $ rm -f domain_name-0.5.99999999.gem
|
|
30
28
|
## Usage
|
31
29
|
|
32
30
|
XcodeInstall needs environment variables with your credentials to access the Apple Developer
|
33
|
-
Center, they are stored using the [
|
31
|
+
Center, they are stored using the [credentials_manager][1] of [fastlane][2]:
|
34
32
|
|
35
33
|
```
|
36
34
|
XCODE_INSTALL_USER
|
@@ -0,0 +1 @@
|
|
1
|
+
bin/xcversion
|
data/lib/xcode/install.rb
CHANGED
@@ -123,7 +123,11 @@ HELP
|
|
123
123
|
dmg_path = get_dmg(version, progress, url)
|
124
124
|
fail Informative, "Failed to download Xcode #{version}." if dmg_path.nil?
|
125
125
|
|
126
|
-
|
126
|
+
if install
|
127
|
+
install_dmg(dmg_path, "-#{version.split(' ')[0]}", switch, clean)
|
128
|
+
else
|
129
|
+
puts "Downloaded Xcode #{version} to '#{dmg_path}'"
|
130
|
+
end
|
127
131
|
|
128
132
|
open_release_notes_url(version) unless url
|
129
133
|
end
|
@@ -280,7 +284,15 @@ HELP
|
|
280
284
|
links = links.map { |pre| Xcode.new_prerelease(pre[2].strip.gsub(/.*Xcode /, ''), pre[0], pre[3]) }
|
281
285
|
|
282
286
|
if links.count == 0
|
283
|
-
|
287
|
+
rg = %r{Xcode.* beta.*<\/p>}
|
288
|
+
scan = body.scan(rg)
|
289
|
+
|
290
|
+
if scan.count == 0
|
291
|
+
rg = %r{Xcode.* GM.*<\/p>}
|
292
|
+
scan = body.scan(rg)
|
293
|
+
end
|
294
|
+
|
295
|
+
version = scan.last.gsub(/<.*?>/, '').gsub(/.*Xcode /, '')
|
284
296
|
link = body.scan(%r{<button .*"(.+?.xip)".*</button>}).first.first
|
285
297
|
notes = body.scan(%r{<a.+?href="(/go/\?id=xcode-.+?)".*>(.*)</a>}).first.first
|
286
298
|
links << Xcode.new(version, link, notes)
|
metadata
CHANGED
@@ -1,81 +1,81 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcode-install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
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-07
|
11
|
+
date: 2016-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.9.1
|
20
|
-
- - <
|
20
|
+
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 1.1.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: 0.9.1
|
30
|
-
- - <
|
30
|
+
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.1.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: spaceship
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- -
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: 0.25.1
|
40
|
-
- - <
|
40
|
+
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.0.0
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: 0.25.1
|
50
|
-
- - <
|
50
|
+
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.0.0
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: bundler
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ~>
|
57
|
+
- - "~>"
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '1.7'
|
60
60
|
type: :development
|
61
61
|
prerelease: false
|
62
62
|
version_requirements: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- - ~>
|
64
|
+
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '1.7'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: rake
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- - ~>
|
71
|
+
- - "~>"
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '10.0'
|
74
74
|
type: :development
|
75
75
|
prerelease: false
|
76
76
|
version_requirements: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- - ~>
|
78
|
+
- - "~>"
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '10.0'
|
81
81
|
description: Download, install and upgrade Xcodes with ease.
|
@@ -87,11 +87,11 @@ executables:
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- .gitattributes
|
91
|
-
- .gitignore
|
92
|
-
- .rubocop.yml
|
93
|
-
- .rubocop_todo.yml
|
94
|
-
- .travis.yml
|
90
|
+
- ".gitattributes"
|
91
|
+
- ".gitignore"
|
92
|
+
- ".rubocop.yml"
|
93
|
+
- ".rubocop_todo.yml"
|
94
|
+
- ".travis.yml"
|
95
95
|
- Gemfile
|
96
96
|
- LICENSE.txt
|
97
97
|
- README.md
|
@@ -146,17 +146,17 @@ require_paths:
|
|
146
146
|
- lib
|
147
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- -
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
151
|
version: 2.0.0
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- -
|
154
|
+
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
158
|
rubyforge_project:
|
159
|
-
rubygems_version: 2.
|
159
|
+
rubygems_version: 2.6.6
|
160
160
|
signing_key:
|
161
161
|
specification_version: 4
|
162
162
|
summary: Xcode installation manager.
|
data/bin//360/237/216/211
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
if $PROGRAM_NAME == __FILE__
|
4
|
-
ENV['BUNDLE_GEMFILE'] = File.expand_path('../../Gemfile', __FILE__)
|
5
|
-
require 'rubygems'
|
6
|
-
require 'bundler/setup'
|
7
|
-
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
8
|
-
end
|
9
|
-
|
10
|
-
require 'xcode/install'
|
11
|
-
|
12
|
-
XcodeInstall::Command.run(ARGV)
|