fastlane-plugin-emoji_fetcher 0.1.1 → 0.2.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: c3248a42734313d33028b4f546b61fa6b100d8e4
4
- data.tar.gz: 5f8141d327fccbab533bdf4272401697b1599eec
3
+ metadata.gz: c78fb712e6437f6e680826c149ec3ca61fc30c95
4
+ data.tar.gz: 3587735bde763ebfaeff44ed8a70a4483c2f341a
5
5
  SHA512:
6
- metadata.gz: 003b942938d308189460ad2906490ea5b25089e4283edf87e8ac38dfa3213c7e661184f87add66afc87eb43108dd292a9ed28896a03b7d8f81b9e9df32e97b75
7
- data.tar.gz: 3df95f7f44f95985399a60f445a363440145d3130583dd531098d2e5957629616a9406165eb1d253bdfbb786f4f651c180f57f8d8c3400229f9cb01c415be756
6
+ metadata.gz: 0b3d1bca9e7569c4b405c661859caf9b93b2ec4142f91a4b00cbd4767d8c680c447314d4b98185c5dd84c1cff870e0a2b9c0ade69579075a24b55ed32c014164
7
+ data.tar.gz: b5834f4e3a1537baafe6fd1a36156ef47d53f6a11fe304cb95a7a50ddbbb2d4f70b634f521a7962c60c01c6368483de146b1b8bbe698968bcc98ed0d620021cc
@@ -4,9 +4,10 @@ module Fastlane
4
4
  def self.run(params)
5
5
  require 'fileutils'
6
6
 
7
- original = "/System/Library/Fonts/Apple Color Emoji.ttf"
8
- UI.user_eror!("Could not find font file at path '#{original}'") unless File.exist?(original)
9
- FileUtils.cp(original, params[:path])
7
+ paths = ["/System/Library/Fonts/Apple Color Emoji.ttc", "/System/Library/Fonts/Apple Color Emoji.ttf"]
8
+ paths = paths.delete_if? { |a| !File.exist?(a) }
9
+ UI.user_error!("Could not find Emoji font.") if paths.count == 0
10
+ FileUtils.cp(paths.first, params[:path])
10
11
  UI.success("Successfully fetched Emoji font")
11
12
  end
12
13
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module EmojiFetcher
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-emoji_fetcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-01 00:00:00.000000000 Z
11
+ date: 2016-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -97,9 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  version: '0'
98
98
  requirements: []
99
99
  rubyforge_project:
100
- rubygems_version: 2.4.8
100
+ rubygems_version: 2.6.7
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Fetch the emoji font file and copy it to a local directory
104
104
  test_files: []
105
- has_rdoc: