xcode-install 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f35f3bf3a7aac145047a95d07c5bdb1344600dc
4
- data.tar.gz: 283c261a2a28d86116dcfcad1677f2df5e000a2d
3
+ metadata.gz: 2d231d1786e54c1e8b2e96c036a237e5d4883a9e
4
+ data.tar.gz: b57ea20a2b18350181ec7aa4591172e8723a7a15
5
5
  SHA512:
6
- metadata.gz: 99fb6cb82e6131948512f46f082c7eff162e4c414bba18da8c32d36346ff8080ea3ade45a413d43973c43098346443488a8ec6f6b947439ad4e1c82f536f9fd5
7
- data.tar.gz: 760efcea4598e41a98dde02f23345ed7de599d70dd43ee6782da57c1a8a6be26481db2df9b7cedf5079eb4db09661001e9486b279a8908a8aa77c8eb1384da64
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
- This is a first shot, there are currently some limitations:
55
+ Because some dependencies uses C extensions, a working Xcode is required to actually install this gem (see [#17](../../issues/17)).
56
56
 
57
- - No cleanup of caches in `~/Library/Caches/XcodeInstall` [#6](/../../issues/6)
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
@@ -1,3 +1,3 @@
1
1
  module XcodeInstall
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  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.0
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-14 00:00:00.000000000 Z
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: