xcode-install 0.9.4 → 0.9.5

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
  SHA1:
3
- metadata.gz: d15a8d796c7ad1cea26c0c0383c71a880068ef43
4
- data.tar.gz: e9e2b4c06461351c2769572a836c520fc2329da5
3
+ metadata.gz: 3f61fb89ee9fecddefddd87b1df67c29cf5c371f
4
+ data.tar.gz: 2d6dde670a447ae9a11c9e631a295d7d87efb963
5
5
  SHA512:
6
- metadata.gz: 108a708788f8dcf609792e52c9a3b3921c46e83a5da8ecc02e7b207ad572dd55dac07ee80c338b409f41fab4e20da8bd72d57b38b44e70017e0b6de965a03326
7
- data.tar.gz: 658f4df2d572e0d6bf096a0ed75d2ab1d7bf263c978fa3503a00a2f115f75bdf76f658c108ef939c1399260e9958195a23cf0c492f84395586b9a5f8f59d509b
6
+ metadata.gz: 144ae8e0f03074a598f387715650e2661b9e0d9defb2bf47f522c1ab423e79b70dd3a6c657a9490d58c3587f915b6e0324ff96b6022ee31f6c62d4ecd1339603
7
+ data.tar.gz: 3eaf14c307554b72074c0dc2c5e1ae9b670e253ddc34f982983ecbfa8fdf4ea013b38202cf68b5da47f9e9fbedd67c1e7077f69b84cd26c6aa3b93cb15a8b53b
data/README.md CHANGED
@@ -55,6 +55,16 @@ Build version 6D570
55
55
 
56
56
  This will download and install that version of Xcode. It will also be automatically selected.
57
57
 
58
+ Note: GMs and beta versions usually have special names, e.g.
59
+
60
+ ```bash
61
+ $ xcode-install list
62
+ 7 GM seed
63
+ 7.1 beta
64
+ ```
65
+
66
+ they have to be installed using the full name, e.g. `xcode-install install '7 GM seed'`.
67
+
58
68
  ## Limitations
59
69
 
60
70
  Unfortunately, the installation size of Xcodes downloaded will be bigger than when downloading via the Mac App Store, see [#10](/../../issues/10) and feel free to dupe the radar. 📡
data/lib/xcode/install.rb CHANGED
@@ -90,6 +90,10 @@ HELP
90
90
  `sudo ditto "#{source}" "#{xcode_path}"`
91
91
  `umount "/Volumes/Xcode"`
92
92
 
93
+ if not verify_integrity(xcode_path)
94
+ `sudo rm -f #{xcode_path}`
95
+ end
96
+
93
97
  enable_developer_mode
94
98
  `sudo xcodebuild -license` unless xcode_license_approved?
95
99
  install_components(xcode_path) if components
@@ -240,6 +244,11 @@ HELP
240
244
  xcodes || fetch_seedlist
241
245
  end
242
246
 
247
+ def verify_integrity(path)
248
+ puts `codesign --verify --verbose #{path}`
249
+ $?.exitstatus == 0
250
+ end
251
+
243
252
  def xcode_license_approved?
244
253
  !(`/usr/bin/xcrun clang 2>&1` =~ /license/ && !$CHILD_STATUS.success?)
245
254
  end
@@ -1,3 +1,3 @@
1
1
  module XcodeInstall
2
- VERSION = '0.9.4'
2
+ VERSION = '0.9.5'
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: 0.9.4
4
+ version: 0.9.5
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: 2015-09-09 00:00:00.000000000 Z
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide