xcode-install 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin//360/237/216/211 +3 -0
- data/lib/xcode/install.rb +0 -8
- data/lib/xcode/install/list.rb +2 -12
- data/lib/xcode/install/version.rb +1 -1
- data/spec/list_spec.rb +0 -17
- metadata +3 -3
- data/bin//360/237/216/211 +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef72b2afcf976df4f9444a45bc21779a0c38afde
|
4
|
+
data.tar.gz: 27a817bc906e93a371fc0c81d46bc70227fe559f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03625d471acfec92df550fcb5c7035d4ae28865f57a8dcfe0da28e9f2297c6d4d37153301a7ad1cb31e50692e72a1a60e1d276d10f42dc5ae8a91ccd5bfb5d65
|
7
|
+
data.tar.gz: 4a345f696c651b5049806134bcc03e073765a9903b9d63ed1520028b6405662be5aabcd334bd1503dc40d1ff9a75fcd359d07d67675ed6010753cbcaa4a99f66
|
data/README.md
CHANGED
@@ -145,7 +145,7 @@ This project is licensed under the terms of the MIT license. See the [LICENSE](L
|
|
145
145
|
|
146
146
|
> This project and all fastlane tools are in no way affiliated with Apple Inc or Google. This project is open source under the MIT license, which means you have full access to the source code and can modify it to fit your own needs. All fastlane tools run on your own computer or server, so your credentials or other sensitive information will never leave your own computer. You are responsible for how you use fastlane tools.
|
147
147
|
|
148
|
-
[1]: https://github.com/fastlane/credentials_manager#using-environment-variables
|
148
|
+
[1]: https://github.com/fastlane/fastlane/tree/master/credentials_manager#using-environment-variables
|
149
149
|
[2]: http://fastlane.tools
|
150
150
|
[3]: http://atastypixel.com/blog/resuming-adc-downloads-cos-safari-sucks/
|
151
151
|
[4]: https://github.com/magneticbear/Jenkins_Bootstrap
|
data/lib/xcode/install.rb
CHANGED
@@ -166,14 +166,6 @@ HELP
|
|
166
166
|
xcodes_list.map { |x| installed.include?(x) ? "#{x} (installed)" : x }.join("\n")
|
167
167
|
end
|
168
168
|
|
169
|
-
def list_current
|
170
|
-
safe_list_versions = list_versions.reject { |v| v.nil? || v.empty? }
|
171
|
-
stable_majors = safe_list_versions.reject { |v| /beta/i =~ v }.map { |v| v.split('.')[0] }.map { |v| v.split(' ')[0] }
|
172
|
-
latest_stable_major = stable_majors.select { |v| v.length == 1 }.uniq.sort.last.to_i
|
173
|
-
current_versions = safe_list_versions.select { |v| v.split('.')[0].to_i >= latest_stable_major }.sort
|
174
|
-
list_annotated(current_versions)
|
175
|
-
end
|
176
|
-
|
177
169
|
def list
|
178
170
|
list_annotated(list_versions.sort)
|
179
171
|
end
|
data/lib/xcode/install/list.rb
CHANGED
@@ -5,22 +5,12 @@ module XcodeInstall
|
|
5
5
|
self.summary = 'List Xcodes available for download.'
|
6
6
|
|
7
7
|
def self.options
|
8
|
-
[['--all', 'Show all available versions.']].concat(super)
|
9
|
-
end
|
10
|
-
|
11
|
-
def initialize(argv)
|
12
|
-
@all = argv.flag?('all', false)
|
13
|
-
super
|
8
|
+
[['--all', 'Show all available versions. (Default, Deprecated)']].concat(super)
|
14
9
|
end
|
15
10
|
|
16
11
|
def run
|
17
12
|
installer = XcodeInstall::Installer.new
|
18
|
-
|
19
|
-
if @all
|
20
|
-
puts installer.list
|
21
|
-
else
|
22
|
-
puts installer.list_current
|
23
|
-
end
|
13
|
+
puts installer.list
|
24
14
|
end
|
25
15
|
end
|
26
16
|
end
|
data/spec/list_spec.rb
CHANGED
@@ -29,22 +29,5 @@ module XcodeInstall
|
|
29
29
|
installer.list.should == "1\n2.3\n3 some\n4 beta"
|
30
30
|
end
|
31
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
|
-
|
44
|
-
it 'shows removes spurious versions from the list' do
|
45
|
-
fake_xcodes '8.1', '8.2', '', nil
|
46
|
-
installer.list_current.should == "8.1\n8.2"
|
47
|
-
end
|
48
|
-
end
|
49
32
|
end
|
50
33
|
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: 2.
|
4
|
+
version: 2.3.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: 2017-
|
11
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.6.
|
162
|
+
rubygems_version: 2.6.10
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Xcode installation manager.
|
data/bin//360/237/216/211
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
bin/xcversion
|