xcode-install 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin//360/237/216/211 +1 -1
- data/lib/xcode/install.rb +3 -2
- data/lib/xcode/install/version.rb +1 -1
- data/spec/list_spec.rb +5 -0
- data/xcode-install.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 425c3fc2af23deed5eced899dd8872ad250400c8
|
4
|
+
data.tar.gz: f5c3e3d584a870cff1cc3759042bda3f7664b942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 356735fa355bb556d8016bae1843905a0b81617f7477b11259799a8df5d99bfb4ff30b533a66b41033515e200f42135865c8d070c9ac31148508489609cf2981
|
7
|
+
data.tar.gz: 591bda404fc8e63ab6ac8c55208a8d32052d8b5e515893343f09c0f852aa0e5f03a93e04413ef48a2ea51b8e78f696de357e738c762fe49d326da6d769753ab8
|
data/bin//360/237/216/211
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
xcversion
|
data/lib/xcode/install.rb
CHANGED
@@ -158,9 +158,10 @@ HELP
|
|
158
158
|
end
|
159
159
|
|
160
160
|
def list_current
|
161
|
-
|
161
|
+
safe_list_versions = list_versions.reject { |v| v.nil? || v.empty? }
|
162
|
+
stable_majors = safe_list_versions.reject { |v| /beta/i =~ v }.map { |v| v.split('.')[0] }.map { |v| v.split(' ')[0] }
|
162
163
|
latest_stable_major = stable_majors.select { |v| v.length == 1 }.uniq.sort.last.to_i
|
163
|
-
current_versions =
|
164
|
+
current_versions = safe_list_versions.select { |v| v.split('.')[0].to_i >= latest_stable_major }.sort
|
164
165
|
list_annotated(current_versions)
|
165
166
|
end
|
166
167
|
|
data/spec/list_spec.rb
CHANGED
@@ -40,6 +40,11 @@ module XcodeInstall
|
|
40
40
|
fake_xcodes '5', '6.1', '6', '6.4 beta', '7 beta'
|
41
41
|
installer.list_current.should == "6\n6.1\n6.4 beta\n7 beta"
|
42
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
|
43
48
|
end
|
44
49
|
end
|
45
50
|
end
|
data/xcode-install.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
23
|
spec.add_dependency 'claide', '>= 0.9.1', '< 1.1.0'
|
24
|
-
spec.add_dependency 'fastlane', '>= 2.1.
|
24
|
+
spec.add_dependency 'fastlane', '>= 2.1.0', '< 3.0.0'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
27
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
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.1.
|
4
|
+
version: 2.1.1
|
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:
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.1.
|
39
|
+
version: 2.1.0
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 3.0.0
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
requirements:
|
47
47
|
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.1.
|
49
|
+
version: 2.1.0
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 3.0.0
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
160
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.
|
161
|
+
rubygems_version: 2.5.1
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Xcode installation manager.
|