fastlane-plugin-bomb_emoji 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: 36d14230444c36389c30010a4cab658b8ed69d75
4
+ data.tar.gz: b72cd8c4078b6630ff9193c42a032266fa687c24
5
+ SHA512:
6
+ metadata.gz: 28a75e9072e5a069b7b270aef1d6cfece324f1487aceece1559fe1460f956e818e1804027853f4c4b23177c9ecddf52a74393383e174e90ba0dcaafe96e6d66c
7
+ data.tar.gz: d11d668687c133e496a9e882eb75aed24ffbfb16c1d0959f7b227b5563bec4a37dc52e3c74db5a3473f685497ca326bf8eb641b7db4984240a002084dd8f4b5a
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Josh Holtz <josh@rokkincat.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,52 @@
1
+ # bomb_emoji plugin
2
+
3
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-bomb_emoji)
4
+
5
+ ## Getting Started
6
+
7
+ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-bomb_emoji`, add it to your project by running:
8
+
9
+ ```bash
10
+ fastlane add_plugin bomb_emoji
11
+ ```
12
+
13
+ ## About bomb_emoji
14
+
15
+ No more emojis
16
+
17
+ **Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
18
+
19
+ ## Example
20
+
21
+ Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
22
+
23
+ **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
24
+
25
+ ## Run tests for this plugin
26
+
27
+ To run both the tests, and code style validation, run
28
+
29
+ ```
30
+ rake
31
+ ```
32
+
33
+ To automatically fix many of the styling issues, use
34
+ ```
35
+ rubocop -a
36
+ ```
37
+
38
+ ## Issues and Feedback
39
+
40
+ For any other issues and feedback about this plugin, please submit it to this repository.
41
+
42
+ ## Troubleshooting
43
+
44
+ If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
45
+
46
+ ## Using _fastlane_ Plugins
47
+
48
+ For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
49
+
50
+ ## About _fastlane_
51
+
52
+ _fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
@@ -0,0 +1,16 @@
1
+ require 'fastlane/plugin/bomb_emoji/version'
2
+
3
+ module Fastlane
4
+ module BombEmoji
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::BombEmoji.all_classes.each do |current|
15
+ require current
16
+ end
@@ -0,0 +1,40 @@
1
+ require 'fastlane/action'
2
+ require_relative '../helper/bomb_emoji_helper'
3
+
4
+ module Fastlane
5
+ module Actions
6
+ class BombEmojiAction < Action
7
+
8
+ def self.run(params)
9
+ UI.message "💣💥 Bombing all emojis" if params[:enabled]
10
+ ENV['BOMB_EMOJI_ENABLED'] = params[:enabled] ? 'true' : nil
11
+ UI.message "💣💥 Un-bombing all emojis" unless params[:enabled]
12
+ end
13
+
14
+ def self.description
15
+ "No more emojis"
16
+ end
17
+
18
+ def self.authors
19
+ ["joshdholtz"]
20
+ end
21
+
22
+ def self.details
23
+ "No more emojis"
24
+ end
25
+
26
+ def self.available_options
27
+ [
28
+ FastlaneCore::ConfigItem.new(key: :enabled,
29
+ env_name: "BOMB_EMOJI_ENABLED",
30
+ description: "Bomb all emoji from showing",
31
+ type: Boolean)
32
+ ]
33
+ end
34
+
35
+ def self.is_supported?(platform)
36
+ true
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,72 @@
1
+ require 'fastlane_core/ui/ui'
2
+ require 'emoji_regex'
3
+
4
+ module Fastlane
5
+ UI = FastlaneCore::UI unless Fastlane.const_defined?("UI")
6
+
7
+ module Helper
8
+ class BombEmojiHelper
9
+ def self.bomb(arg)
10
+ # Only bomb if we want to bomb
11
+ return arg unless ENV['BOMB_EMOJI_ENABLED']
12
+
13
+ # Don't bomb a table
14
+ return arg if arg.kind_of?(Terminal::Table)
15
+
16
+ # Don't bomb a separator
17
+ return arg if arg.start_with?("---")
18
+
19
+ # Bomb the rest
20
+ return arg.to_s.gsub!(EmojiRegex::Regex, "")
21
+ end
22
+
23
+ module IO
24
+ def puts(*args)
25
+ args = args.map do |arg|
26
+ BombEmojiHelper.bomb(arg)
27
+ end
28
+ super(args)
29
+ end
30
+ end
31
+
32
+ module Shell
33
+ def error(arg)
34
+ super(BombEmojiHelper.bomb(arg))
35
+ end
36
+ def important(arg)
37
+ super(BombEmojiHelper.bomb(arg))
38
+ end
39
+ def success(arg)
40
+ super(BombEmojiHelper.bomb(arg))
41
+ end
42
+ def message(arg)
43
+ super(BombEmojiHelper.bomb(arg))
44
+ end
45
+ def deprecated(arg)
46
+ super(BombEmojiHelper.bomb(arg))
47
+ end
48
+ def command(arg)
49
+ super(BombEmojiHelper.bomb(arg))
50
+ end
51
+ def command_output(arg)
52
+ super(BombEmojiHelper.bomb(arg))
53
+ end
54
+ def verbose(arg)
55
+ super(BombEmojiHelper.bomb(arg))
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
61
+
62
+ # Prep to 💣 emojis
63
+ class IO
64
+ prepend Fastlane::Helper::BombEmojiHelper::IO
65
+ end
66
+
67
+ # Prep to 💣 emojis
68
+ module FastlaneCore
69
+ class Shell
70
+ prepend Fastlane::Helper::BombEmojiHelper::Shell
71
+ end
72
+ end
@@ -0,0 +1,5 @@
1
+ module Fastlane
2
+ module BombEmoji
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,195 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastlane-plugin-bomb_emoji
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Josh Holtz
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: emoji_regex
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '2.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: pry
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: bundler
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rspec_junit_formatter
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: rake
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rubocop
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.49.1
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '='
115
+ - !ruby/object:Gem::Version
116
+ version: 0.49.1
117
+ - !ruby/object:Gem::Dependency
118
+ name: rubocop-require_tools
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: simplecov
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: fastlane
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: 2.119.0
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: 2.119.0
159
+ description:
160
+ email: me@joshholtz.com
161
+ executables: []
162
+ extensions: []
163
+ extra_rdoc_files: []
164
+ files:
165
+ - LICENSE
166
+ - README.md
167
+ - lib/fastlane/plugin/bomb_emoji.rb
168
+ - lib/fastlane/plugin/bomb_emoji/actions/bomb_emoji_action.rb
169
+ - lib/fastlane/plugin/bomb_emoji/helper/bomb_emoji_helper.rb
170
+ - lib/fastlane/plugin/bomb_emoji/version.rb
171
+ homepage: https://github.com/joshdholtz/fastlane-plugin-bomb_emoji
172
+ licenses:
173
+ - MIT
174
+ metadata: {}
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ requirements: []
190
+ rubyforge_project:
191
+ rubygems_version: 2.5.2.3
192
+ signing_key:
193
+ specification_version: 4
194
+ summary: "\U0001F4A3\U0001F4A5 No more emojis"
195
+ test_files: []