xcode-install 1.2.6 → 1.3.0
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/.gitignore +1 -0
- data/Gemfile +1 -1
- data/README.md +9 -0
- data/lib/xcode/install.rb +0 -27
- data/lib/xcode/install/version.rb +1 -1
- data/xcode-install.gemspec +1 -2
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bbe119d0e500ca2bd3f40878365d9feccc766d78
|
4
|
+
data.tar.gz: 8e910ab1e30bbc5b66b21ea20a25b40647ebc646
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d3de0a500322bc15c834d00093a05cf206e0040b7dbd71a7d722dda859e9349e9a76f5fb8a65afdb11977c120c623bacc4721a7d512e9b0b9e94d30ac47984f
|
7
|
+
data.tar.gz: a890daa46eddcfdb241b2dc07fef0fda2f3683ca056f7d36d62a75683374d50942ce0229619776331b4307e268f1bfc5fb1fdb4792f2dec46f530cc7ee445a7f
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -18,6 +18,15 @@ $ xcversion install 6.3
|
|
18
18
|
$ gem install xcode-install
|
19
19
|
```
|
20
20
|
|
21
|
+
Note: unfortunately, XcodeInstall has a transitive dependency on a gem with native extensions and this is not really fixable at this point in time. If you are installing this on a machine without a working compiler, please use these alternative instructions instead:
|
22
|
+
|
23
|
+
```
|
24
|
+
$ curl -sL -O https://github.com/neonichu/ruby-domain_name/releases/download/v0.5.99999999/domain_name-0.5.99999999.gem
|
25
|
+
$ gem install domain_name-0.5.99999999.gem
|
26
|
+
$ gem install --conservative xcode-install
|
27
|
+
$ rm -f domain_name-0.5.99999999.gem
|
28
|
+
```
|
29
|
+
|
21
30
|
## Usage
|
22
31
|
|
23
32
|
XcodeInstall needs environment variables with your credentials to access the Apple Developer
|
data/lib/xcode/install.rb
CHANGED
@@ -7,33 +7,6 @@ require 'rubygems/version'
|
|
7
7
|
require 'xcode/install/command'
|
8
8
|
require 'xcode/install/version'
|
9
9
|
|
10
|
-
module Spaceship
|
11
|
-
class PortalClient
|
12
|
-
# 🐒🔧 to change `landing_url` 😢
|
13
|
-
# see <https://github.com/neonichu/xcode-install/issues/122>
|
14
|
-
def api_key
|
15
|
-
cache_path = '/tmp/spaceship_api_key.txt'
|
16
|
-
begin
|
17
|
-
cached = File.read(cache_path)
|
18
|
-
rescue Errno::ENOENT
|
19
|
-
end
|
20
|
-
return cached if cached
|
21
|
-
|
22
|
-
landing_url = 'https://developer.apple.com/account/'
|
23
|
-
logger.info('GET: ' + landing_url)
|
24
|
-
headers = @client.get(landing_url).headers
|
25
|
-
results = headers['location'].match(/.*appIdKey=(\h+)/)
|
26
|
-
if (results || []).length > 1
|
27
|
-
api_key = results[1]
|
28
|
-
File.write(cache_path, api_key) if api_key.length == 64
|
29
|
-
return api_key
|
30
|
-
else
|
31
|
-
fail 'Could not find latest API Key from the Dev Portal - the server might be slow right now'
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
10
|
module XcodeInstall
|
38
11
|
CACHE_DIR = Pathname.new("#{ENV['HOME']}/Library/Caches/XcodeInstall")
|
39
12
|
class Curl
|
data/xcode-install.gemspec
CHANGED
@@ -21,8 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
23
|
spec.add_dependency 'claide', '>= 0.9.1', '< 1.1.0'
|
24
|
-
|
25
|
-
spec.add_dependency 'spaceship', '= 0.15.1'
|
24
|
+
spec.add_dependency 'spaceship', '>= 0.25.1', '< 1.0.0'
|
26
25
|
|
27
26
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
28
27
|
spec.add_development_dependency 'rake', '~> 10.0'
|
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.
|
4
|
+
version: 1.3.0
|
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: 2016-04-
|
11
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|
@@ -34,16 +34,22 @@ dependencies:
|
|
34
34
|
name: spaceship
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - '
|
37
|
+
- - '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.25.1
|
40
|
+
- - <
|
38
41
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
42
|
+
version: 1.0.0
|
40
43
|
type: :runtime
|
41
44
|
prerelease: false
|
42
45
|
version_requirements: !ruby/object:Gem::Requirement
|
43
46
|
requirements:
|
44
|
-
- - '
|
47
|
+
- - '>='
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 0.25.1
|
50
|
+
- - <
|
45
51
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.
|
52
|
+
version: 1.0.0
|
47
53
|
- !ruby/object:Gem::Dependency
|
48
54
|
name: bundler
|
49
55
|
requirement: !ruby/object:Gem::Requirement
|