xcode-install 2.0.8 → 2.0.9

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: a1e2ae0187eda3c31aac9125c8987c54462438a8
4
- data.tar.gz: f2ab21cc64adb2494da4ef93f8b48ea546eab07b
3
+ metadata.gz: 8721577e1d69efb392fbc3218ddb1757c32f7298
4
+ data.tar.gz: b00225420fb68bc10db34bea70535589d8e5f6be
5
5
  SHA512:
6
- metadata.gz: 282ae9135e58b17c32e23fe28b4926e58204886e714ddaadbe5cd4867e116ddcdac763da1d86437961b79593f80e6ee9b69c92a2f2205411cdbb910178cae5df
7
- data.tar.gz: de30f1b636a7c18fe3ac7002bf22b49df2a698c8ec0fc2a3abbf82a5131c730a2cb3a10a209fcba825f2be77b9d257e6aca324646b63311044c417c10f06c383
6
+ metadata.gz: 90d09b323335848a550583bae9764bf7f99e6cc2a9b50a01b261fbfc6b4850539972a84cfa0be95306e0a41776c8bb844f80e88cb0ba764fc28a80fbc36d3401
7
+ data.tar.gz: f9525dfbf37167f0a1459fac064ecdc91de3920fa509fad85488713791cc5e10766113a729210e04f30e1286dbee6d846d640590f66ba4de7daa2c9cd0743226
data/Rakefile CHANGED
@@ -13,4 +13,4 @@ end
13
13
  desc 'Lints all the files'
14
14
  RuboCop::RakeTask.new(:rubocop)
15
15
 
16
- task default: [:spec]
16
+ task default: [:spec, :rubocop]
data/lib/xcode/install.rb CHANGED
@@ -468,7 +468,13 @@ HELP
468
468
  end
469
469
 
470
470
  def downloadable_index_url
471
- @downloadable_index_url ||= "https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/index-#{bundle_version}-#{uuid}.dvtdownloadableindex"
471
+ @downloadable_index_url ||= begin
472
+ if Gem::Version.new(version) >= Gem::Version.new('8.1')
473
+ "https://devimages-cdn.apple.com/downloads/xcode/simulators/index-#{bundle_version}-#{uuid}.dvtdownloadableindex"
474
+ else
475
+ "https://devimages.apple.com.edgekey.net/downloads/xcode/simulators/index-#{bundle_version}-#{uuid}.dvtdownloadableindex"
476
+ end
477
+ end
472
478
  end
473
479
 
474
480
  def approve_license
@@ -1,3 +1,3 @@
1
1
  module XcodeInstall
2
- VERSION = '2.0.8'.freeze
2
+ VERSION = '2.0.9'.freeze
3
3
  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: 2.0.8
4
+ version: 2.0.9
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-10-25 00:00:00.000000000 Z
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.6.6
161
+ rubygems_version: 2.6.7
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Xcode installation manager.
@@ -189,4 +189,3 @@ test_files:
189
189
  - spec/prerelease_spec.rb
190
190
  - spec/spec_helper.rb
191
191
  - spec/uninstall_spec.rb
192
- has_rdoc: