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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0fea81231fe9d81aed11e53e9340d8749cb90b12b61cf455ef216c4659beaf85
4
- data.tar.gz: d385404265a3453ff25f3f6c2c532235ca7ed9769e0c1b808c64749f930f6eca
3
+ metadata.gz: 24b5d7d3549fb76b669aa736ff9c2cf5e0892131d2c8624e38555cac486f35e1
4
+ data.tar.gz: 0e2e82a56b815efe8659d3b00c26e426e720877fa7107fd3cc47e56ed7532ce3
5
5
  SHA512:
6
- metadata.gz: 4147ef290648e0f0ac2122be32a2cc0d4fd26d3c9509767661107527fe20e58534bab89c505d992a876202a40effa7913b3901e24f504952839e5f416d011503
7
- data.tar.gz: fa470926afe6472b552bd7be37619542024913101997df6e00a47064714199594c6c0dafbf1a41c07aa79ea1cb22e35f3cca75a1bbce8bb068b9453ec7bc6a6d
6
+ metadata.gz: e0924a4c6ab8e04733f66797cd52753e7f829cfc7d2e190ee9dfb0afe3b74d52e2bd5b835cecc038612417d82713ea96eb718a561ec3fb135c0e5a0519f0893a
7
+ data.tar.gz: b4664fae73d216b4e2b6a6ef82bd67ffdfd642f5420ed04b22fbb2706de6159a87bf236d2e9b1c1c622f559d053a26f6a56ed0133e002a8584577c1c6226afdc
@@ -3,7 +3,7 @@ version: 2
3
3
  jobs:
4
4
  build:
5
5
  macos:
6
- xcode: "9.0"
6
+ xcode: "9.4.1"
7
7
  working_directory: ~/xcode-install
8
8
  shell: /bin/bash --login -eo pipefail
9
9
  steps:
@@ -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])
@@ -1,3 +1,3 @@
1
1
  module XcodeInstall
2
- VERSION = '2.6.7'.freeze
2
+ VERSION = '2.6.8'.freeze
3
3
  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.6.7
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-10-28 00:00:00.000000000 Z
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.0.6
163
+ rubygems_version: 3.1.4
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Xcode installation manager.