xcode-install 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -8
- data/lib/xcode/install.rb +1 -1
- data/lib/xcode/install/version.rb +1 -1
- data/spec/installed_spec.rb +10 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d231d1786e54c1e8b2e96c036a237e5d4883a9e
|
4
|
+
data.tar.gz: b57ea20a2b18350181ec7aa4591172e8723a7a15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e98f95e482bfc1e2d4f6dbc37c2184affb09bccac736b9e36c289432e13054f98af6fd660052e99ea851dd5c85bf7b7c27958b518a6e3613993627e477c89655
|
7
|
+
data.tar.gz: 38744910f43927e98a90064e743b9f3c4452618e49035b0f232ae59514ff9c2127e99a1b652e7b4811396f530e4a135debd5697c3ba2015cdb32dfa20d5e6e52
|
data/README.md
CHANGED
@@ -52,15 +52,9 @@ This will download and install that version of Xcode. It will also be automatica
|
|
52
52
|
|
53
53
|
## Limitations
|
54
54
|
|
55
|
-
|
55
|
+
Because some dependencies uses C extensions, a working Xcode is required to actually install this gem (see [#17](../../issues/17)).
|
56
56
|
|
57
|
-
|
58
|
-
- No automatic uninstallation [#3](/../../issues/3)
|
59
|
-
|
60
|
-
I will be addressing those in the future, but feel free to send PRs or report additional
|
61
|
-
bugs and shortcomings.
|
62
|
-
|
63
|
-
![](http://f.cl.ly/items/3h2O2k2K37280I331C3j/Screen%20Shot%202015-04-12%20at%2015.32.38.png)
|
57
|
+
![](http://i.giphy.com/aImJnc9F8Omzu.gif)
|
64
58
|
|
65
59
|
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. 📡
|
66
60
|
|
data/lib/xcode/install.rb
CHANGED
@@ -219,7 +219,7 @@ module XcodeInstall
|
|
219
219
|
:private
|
220
220
|
|
221
221
|
def get_version(xcode_path)
|
222
|
-
output = `DEVELOPER_DIR='' #{xcode_path}/Contents/Developer/usr/bin/xcodebuild -version`
|
222
|
+
output = `DEVELOPER_DIR='' "#{xcode_path}/Contents/Developer/usr/bin/xcodebuild" -version`
|
223
223
|
output.split("\n").first.split(' ')[1]
|
224
224
|
end
|
225
225
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require File.expand_path('../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
module XcodeInstall
|
4
|
+
describe InstalledXcode do
|
5
|
+
it "finds the current Xcode version with whitespace chars" do
|
6
|
+
InstalledXcode.any_instance.expects(:`).with("DEVELOPER_DIR='' \"/Volumes/Macintosh HD/Applications/Xcode Beta/Contents/Developer/usr/bin/xcodebuild\" -version").returns("Xcode 6.3.1\nBuild version 6D1002")
|
7
|
+
installed = InstalledXcode.new("/Volumes/Macintosh HD/Applications/Xcode Beta")
|
8
|
+
end
|
9
|
+
end
|
10
|
+
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.1.
|
4
|
+
version: 0.1.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-04-
|
11
|
+
date: 2015-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- spec/fixtures/xcode_63.json
|
109
109
|
- spec/fixtures/yolo.json
|
110
110
|
- spec/install_spec.rb
|
111
|
+
- spec/installed_spec.rb
|
111
112
|
- spec/json_spec.rb
|
112
113
|
- spec/spec_helper.rb
|
113
114
|
- xcode-install.gemspec
|
@@ -140,6 +141,7 @@ test_files:
|
|
140
141
|
- spec/fixtures/xcode_63.json
|
141
142
|
- spec/fixtures/yolo.json
|
142
143
|
- spec/install_spec.rb
|
144
|
+
- spec/installed_spec.rb
|
143
145
|
- spec/json_spec.rb
|
144
146
|
- spec/spec_helper.rb
|
145
147
|
has_rdoc:
|