xcode-install 2.6.7 → 2.6.8
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/.circleci/config.yml +1 -1
- data/lib/xcode/install.rb +8 -0
- data/lib/xcode/install/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24b5d7d3549fb76b669aa736ff9c2cf5e0892131d2c8624e38555cac486f35e1
|
|
4
|
+
data.tar.gz: 0e2e82a56b815efe8659d3b00c26e426e720877fa7107fd3cc47e56ed7532ce3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0924a4c6ab8e04733f66797cd52753e7f829cfc7d2e190ee9dfb0afe3b74d52e2bd5b835cecc038612417d82713ea96eb718a561ec3fb135c0e5a0519f0893a
|
|
7
|
+
data.tar.gz: b4664fae73d216b4e2b6a6ef82bd67ffdfd642f5420ed04b22fbb2706de6159a87bf236d2e9b1c1c622f559d053a26f6a56ed0133e002a8584577c1c6226afdc
|
data/.circleci/config.yml
CHANGED
data/lib/xcode/install.rb
CHANGED
|
@@ -464,6 +464,7 @@ HELP
|
|
|
464
464
|
links
|
|
465
465
|
end
|
|
466
466
|
|
|
467
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
467
468
|
def compare_versions(first, second)
|
|
468
469
|
# Sort by version number
|
|
469
470
|
numeric_comparation = first.to_f <=> second.to_f
|
|
@@ -481,9 +482,16 @@ HELP
|
|
|
481
482
|
return -1 if is_first_gm && !is_second_gm
|
|
482
483
|
return 1 if !is_first_gm && is_second_gm
|
|
483
484
|
|
|
485
|
+
# Return Release Candidate versions before others
|
|
486
|
+
is_first_rc = first.include?('RC') || first.include?('Release Candidate')
|
|
487
|
+
is_second_rc = second.include?('RC') || second.include?('Release Candidate')
|
|
488
|
+
return -1 if is_first_rc && !is_second_rc
|
|
489
|
+
return 1 if !is_first_rc && is_second_rc
|
|
490
|
+
|
|
484
491
|
# Sort alphabetically
|
|
485
492
|
first <=> second
|
|
486
493
|
end
|
|
494
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
|
487
495
|
|
|
488
496
|
def hdiutil(*args)
|
|
489
497
|
io = IO.popen(['hdiutil', *args])
|
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.6.
|
|
4
|
+
version: 2.6.8
|
|
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: 2020-
|
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: claide
|
|
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
160
160
|
- !ruby/object:Gem::Version
|
|
161
161
|
version: '0'
|
|
162
162
|
requirements: []
|
|
163
|
-
rubygems_version: 3.
|
|
163
|
+
rubygems_version: 3.1.4
|
|
164
164
|
signing_key:
|
|
165
165
|
specification_version: 4
|
|
166
166
|
summary: Xcode installation manager.
|