fastlane-plugin-emoji_fetcher 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e8153a7fc296033bc0252bdfec3903edc2b9e61f
4
+ data.tar.gz: 70345dd8ff6e5a725b8b61ff973843bd335014ff
5
+ SHA512:
6
+ metadata.gz: 404f13ade37a9fd2d219e2e29c61f6652a5a27f6dc39fa62d1f90e05267b45c402ee9eb6932a4beb4f35e2bd9691be2ca0d6189b45add41d5af5374949ca68e5
7
+ data.tar.gz: 7ae6d3ddcc222166a841e4aec4d9af8ee4ef006738ec5dab79cdf01e865b886f7d92ce242a8be2d6d4e98fe0c9fe9f34c444d0248feba889ea0026943ed2f169
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Felix Krause <emoji@krausefx.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # fastlane-plugin-emoji_fetcher `fastlane` Plugin
2
+
3
+ [![Gem](assets/plugin-badge.svg)](https://rubygems.org/gems/emoji_fetcher)
4
+
5
+ ## Getting Started
6
+
7
+ This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with fastlane-plugin-emoji_fetcher, add it to your project by running:
8
+
9
+ ```bash
10
+ fastlane add_plugin emoji_fetcher
11
+ ```
12
+
13
+ ## About emoji_fetcher
14
+
15
+ Fetch the emoji font file and copy it to a local directory
16
+
17
+ ## Issues and Feedback
18
+
19
+ For any other issues and feedback about this plugin, please submit it to this repository.
20
+
21
+ ## Troubleshooting
22
+
23
+ For some , check out the [Plugins Troubleshooting](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md) doc in the main `fastlane` repo.
24
+
25
+ ## Using `fastlane` Plugins
26
+
27
+ For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Plugins.md) in the main `fastlane` repo.
28
+
29
+ ## About `fastlane`
30
+
31
+ `fastlane` automates building, testing, and releasing your app for beta and app store distributions. To learn more about `fastlane`, check out [fastlane.tools](https://fastlane.tools).
@@ -0,0 +1,16 @@
1
+ require 'fastlane/plugin/emoji_fetcher/version'
2
+
3
+ module Fastlane
4
+ module EmojiFetcher
5
+ # Return all .rb files inside the "actions" and "helper" directory
6
+ def self.all_classes
7
+ Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))]
8
+ end
9
+ end
10
+ end
11
+
12
+ # By default we want to import all available actions and helpers
13
+ # A plugin can contain any number of actions and plugins
14
+ Fastlane::EmojiFetcher.all_classes.each do |current|
15
+ require current
16
+ end
@@ -0,0 +1,36 @@
1
+ module Fastlane
2
+ module Actions
3
+ class EmojiFetcherAction < Action
4
+ def self.run(params)
5
+ require 'fileutils'
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])
10
+ UI.success("Successfully fetched Emoji font")
11
+ end
12
+
13
+ def self.description
14
+ "Fetch the emoji font file and copy it into a local directory"
15
+ end
16
+
17
+ def self.authors
18
+ ["Felix Krause"]
19
+ end
20
+
21
+ def self.available_options
22
+ [
23
+ FastlaneCore::ConfigItem.new(key: :path,
24
+ env_name: "EMOJI_FETCHER_PATH",
25
+ description: "Path to which the emoji file should be copied to",
26
+ optional: false,
27
+ type: String)
28
+ ]
29
+ end
30
+
31
+ def self.is_supported?(platform)
32
+ true
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,5 @@
1
+ module Fastlane
2
+ module EmojiFetcher
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastlane-plugin-emoji_fetcher
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Felix Krause
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pry
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: fastlane
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 1.91.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 1.91.0
69
+ description:
70
+ email: emoji@krausefx.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files: []
74
+ files:
75
+ - LICENSE
76
+ - README.md
77
+ - lib/fastlane/plugin/emoji_fetcher.rb
78
+ - lib/fastlane/plugin/emoji_fetcher/actions/emoji_fetcher_action.rb
79
+ - lib/fastlane/plugin/emoji_fetcher/version.rb
80
+ homepage: https://github.com/<GITHUB_USERNAME>/fastlane-plugin-emoji_fetcher
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 2.4.8
101
+ signing_key:
102
+ specification_version: 4
103
+ summary: Fetch the emoji font file and copy it to a local directory
104
+ test_files: []
105
+ has_rdoc: