xcode-install 1.2.0 → 1.2.1
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/README.md +1 -1
- data/lib/xcode/install/version.rb +1 -1
- data/lib/xcode/install.rb +9 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5260476f97cc4d644d141f6f8a367d0c2bf519ce
|
4
|
+
data.tar.gz: 47e67556cba8e2d47b9cfe87cb0b9e04bb078dc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5173e9d88a5024ed6679a9cbc0b3adeb4fbb8938a6f402816cca102934a556aaa7650284ec2965bb2823dc7114c21af514b11ce8858e122463ea77c5cd939555
|
7
|
+
data.tar.gz: a3dc0f514732d1354df38007a1b1819224acda74329d1976dd8066c0112e3ee41a0f4b2df05dbf818b1b17c25d96c0f56c89cdee11e43eeded63c5c00f40be79
|
data/README.md
CHANGED
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.
|
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-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|