earlgrey 1.11.0 → 1.12.0

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: bfd6e0ca554d4f1deb4bf3f4266afec4bf35d07f
4
- data.tar.gz: f5d663c69207dbff6deccc524b0dfaa2ba40b5e9
3
+ metadata.gz: 96fff4c2f7e23d27d24016442b8081b6cfa21e0d
4
+ data.tar.gz: fdc9e54507c28e8ba68c3418ef8aee783905d39b
5
5
  SHA512:
6
- metadata.gz: 7ed3187106ebed5009372d99f4c7504b64f08037ebdc451a1721aeb5726d662f9ba4d3bb4b868b67ecaba521d72445cd6be7e389e0d349812c07cccfae22ba87
7
- data.tar.gz: 27612c874e84ee1ed37d590ea1a180f7c4ceaa415e2ddde8b096fe819d3f69fcd55bd634fcc78aa89b6d1dd7ea08d06316eecb6f1993eb84c0e41b63b5e1adb9
6
+ metadata.gz: 5220b0b3c0020599d4ac5863394a007774d84fce9a51741c570d5c310022665294967bbb973446fecd74fd0ff03bbfb3b57acd6eec492e7a21e5a4d8419cc6a6
7
+ data.tar.gz: aa40833895f89d3a1d60a8acf2bfd186d65f52f09088fbbd6c13013fb746f4873e2885c6fc25d30e072bf1b5ea012e97c511411a654c10d860b1a6745a9ee261
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  #
4
- # Copyright 2016 Google Inc.
4
+ # Copyright 2017 Google Inc.
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -378,7 +378,15 @@ module EarlGrey
378
378
  src_swift_name = 'EarlGrey.swift'
379
379
  src_swift = File.join(src_root, "Swift-#{swift_version}", src_swift_name)
380
380
 
381
- raise 'Bundled swift missing' unless File.exist? src_swift
381
+ unless File.exist? src_swift
382
+ puts_magenta "EarlGrey.swift for version #{swift_version} not found. " \
383
+ 'Falling back to version 3.0.'
384
+ swift_fallback = 'Swift-3.0'
385
+ src_swift = File.join(src_root, swift_fallback, src_swift_name)
386
+ unless File.exist?(src_swift)
387
+ raise "Unable to locate #{swift_fallback} file at path #{src_swift}."
388
+ end
389
+ end
382
390
  dst_swift = File.join(dst_root, src_swift_name)
383
391
 
384
392
  FileUtils.copy src_swift, dst_swift
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
 
16
16
  module EarlGrey
17
- VERSION = '1.11.0'.freeze unless defined? ::EarlGrey::VERSION
17
+ VERSION = '1.12.0'.freeze unless defined? ::EarlGrey::VERSION
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: earlgrey
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - khandpur
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-07-22 00:00:00.000000000 Z
14
+ date: 2017-08-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: colored
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.6.8
152
+ rubygems_version: 2.6.11
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: EarlGrey installer gem