xcode-install 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43d37a17db67d22edd50424ccf56a2e88fdfe46a
4
- data.tar.gz: 5a5adb23dc67519d513176a1ed796c9aa54e5c1f
3
+ metadata.gz: 5260476f97cc4d644d141f6f8a367d0c2bf519ce
4
+ data.tar.gz: 47e67556cba8e2d47b9cfe87cb0b9e04bb078dc4
5
5
  SHA512:
6
- metadata.gz: 4dc978f5f136e1a621e3a7cbf293d2292dc0e9e00d20f9b0338daa28c37c849742a5c3b8d7f7a9e831f12eca4ac892faacdf938117d8a8100446b42c1467b5a8
7
- data.tar.gz: 39ed9aa06b63e5d65c357752898783a80095eb6e1f3311079371a650c6e37e959d5f27575ab9f21b781c5f853af1d21470dbf3fcd670dbce2f623a906b5f3bd8
6
+ metadata.gz: 5173e9d88a5024ed6679a9cbc0b3adeb4fbb8938a6f402816cca102934a556aaa7650284ec2965bb2823dc7114c21af514b11ce8858e122463ea77c5cd939555
7
+ data.tar.gz: a3dc0f514732d1354df38007a1b1819224acda74329d1976dd8066c0112e3ee41a0f4b2df05dbf818b1b17c25d96c0f56c89cdee11e43eeded63c5c00f40be79
data/README.md CHANGED
@@ -39,7 +39,7 @@ $ xcversion list
39
39
  6.3
40
40
  ```
41
41
 
42
- By default, only the latest major version is listed.
42
+ Installed versions will be omitted and by default, only the latest major version is listed.
43
43
 
44
44
  To install a certain version, simply:
45
45
 
@@ -1,3 +1,3 @@
1
1
  module XcodeInstall
2
- VERSION = '1.2.0'
2
+ VERSION = '1.2.1'
3
3
  end
data/lib/xcode/install.rb CHANGED
@@ -151,6 +151,14 @@ HELP
151
151
  File.absolute_path(File.readlink(current_symlink), SYMLINK_PATH.dirname) if current_symlink
152
152
  end
153
153
 
154
+ def mount(dmg_path)
155
+ plist = hdiutil('mount', '-plist', '-nobrowse', '-noverify', dmg_path.to_s)
156
+ document = REXML::Document.new(plist)
157
+ node = REXML::XPath.first(document, "//key[.='mount-point']/following-sibling::*[1]")
158
+ fail Informative, 'Failed to mount image.' unless node
159
+ node.text
160
+ end
161
+
154
162
  private
155
163
 
156
164
  def spaceship
@@ -276,14 +284,6 @@ HELP
276
284
  fail Informative, 'Failed to invoke hdiutil.' unless $?.exitstatus == 0
277
285
  result
278
286
  end
279
-
280
- def mount(dmg_path)
281
- plist = hdiutil('mount', '-plist', '-nobrowse', '-noverify', dmg_path.to_s)
282
- document = REXML::Document.new(plist)
283
- node = REXML::XPath.first(document, "//key[.='mount-point']/following-sibling::*[1]")
284
- fail Informative, 'Failed to mount image.' unless node
285
- node.text
286
- end
287
287
  end
288
288
 
289
289
  class Simulator
@@ -345,7 +345,7 @@ HELP
345
345
 
346
346
  def prepare_package
347
347
  puts 'Mounting DMG'
348
- mount_location = mount(dmg_path)
348
+ mount_location = Installer.new.mount(dmg_path)
349
349
  puts 'Expanding pkg'
350
350
  expanded_pkg_path = CACHE_DIR + identifier
351
351
  FileUtils.rm_rf(expanded_pkg_path)
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: 1.2.0
4
+ version: 1.2.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: 2015-11-14 00:00:00.000000000 Z
11
+ date: 2015-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide