fastlane-plugin-ascii_art 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a864a2dfeb84577c22bbf8caad30e17f962abfcd
4
+ data.tar.gz: ef0b547b2d4e09e584044aa79e10963efb2fe759
5
+ SHA512:
6
+ metadata.gz: ed1df9ddc1eb3d5bb83b51c7e250d8ed4b32331d5c3289a55d9c0841d0e4af0e1e31e7fd7c1d6667cbb21ddbf25b5b0c32e9e205322d18cb2f20cd79ff189151
7
+ data.tar.gz: d02d4ceb76f7b274639e541999358e1d1ad4bd28e68296f35fbbbfcaea4118a8367ac2165cea066c75e961d311d4c442bb69018208b7c1be3676e20778b35e44
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Boris Bügling <boris@icculus.org>
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.
@@ -0,0 +1,91 @@
1
+ # `fastlane` ASCII art plugin
2
+
3
+ <!--
4
+ [![fastlane Plugin Badge](https://raw.githubusercontent.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-ascii-art)
5
+ -->
6
+
7
+ ## Getting Started
8
+
9
+ This project is a [fastlane](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-ascii_art`, add it to your project by running:
10
+
11
+ ```bash
12
+ fastlane add_plugin ascii_art
13
+ ```
14
+
15
+ ## About ascii_art
16
+
17
+ Add some fun to your fastlane output.
18
+
19
+ Once you have added the plugin to your project, just call the action like this:
20
+
21
+ ```ruby
22
+ ascii_art(
23
+ image_path: 'https://avatars2.githubusercontent.com/u/11098337?v=3&s=400',
24
+ width: 40)
25
+ ```
26
+
27
+ And you get beautiful output like this:
28
+
29
+ ```
30
+ [18:27:02]: Driving the lane 'ios test' 🚀
31
+ [18:27:02]: -----------------------
32
+ [18:27:02]: --- Step: ascii_art ---
33
+ [18:27:02]: -----------------------
34
+ +------------------------------------------------------------------------------+
35
+ |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
36
+ |ooooooooooooooooooooooooooooooooooooo~=ooooooooooooooooooooooooooooooooooooooo|
37
+ |oooooooooooooooooooooooooooooooo=~ ~::~~ ~~ooooooooooooooooooooooooooooooooo|
38
+ |oooooooooooooooooooooooooooooo~ ~ ~~~=o o~ ~~ ~ooooooooooooooooooooooooooooooo|
39
+ |oooooooooooooooooooooooooooo=~ ~=ooooooooo~ =ooooooooooooooooooooooooooooo|
40
+ |ooooooooooooooooooooooooooo= :ooooo~=====oo~ :ooooooooooooooooooooooooooooo|
41
+ |ooooooooooooooooooooooooooo= oooo: ~ ~ooo::~~oooooooooooooooooooooooooooo|
42
+ |oooooooooooooooooooooooooooo oooo ~~~oooo=ooooooooooooooooooooooooooooo|
43
+ |oooooooooooooooooooooooooooo ~ooo:::~:~~ ~~ooooooooooooooooooooooooooooooooo|
44
+ |oooooooooooooooooooooooooooo= oooo=~==~~ ~::~=ooooooooooooooooooooooooooooo|
45
+ |oooooooooooo=oooooooooooooo~~ ~ ooooooooooo=: ::oooooooooooooooooooooooooooo|
46
+ |oooooooo~~::::::~oooooo :: ~=oooooooooooooooo~~: ~~~oooo=~~~~~~~::~ooooooooo|
47
+ |ooooo :::::= o ooooo~ ~~~~ooooooooooooooooooooooo ~::~~o~~:~~~~::=: ~~oooooo|
48
+ |oooo:::~=ooooooooo:~ =o=ooooooooooooooooooooooooooo:~ :~~~=oooooooo~ ~~ooooo|
49
+ |ooo::::oooo ~:~ ~~oooooooooooooooooooooooooooooooooo ~=ooo=~ : =ooo=: ~ooo|
50
+ |oo=:::ooo: ~~~ ~ooooooooooooooooooooooooooooooooooooooooo:::=::::ooo~ ~~ooo|
51
+ |oo~:::ooo::~ ~ooooooooooooooooooooooooooooooooooooooooo~::::::::ooo~::~ooo|
52
+ |ooo::: ooo~~ ~:~ooooooooooooooooooooooooooooooooooooooooooo::::::: ooo=:::ooo|
53
+ |ooo :::=ooooo~ooooooooooooooooooooooooooooooooooooooooooooooo::::~oooo ~~~ooo|
54
+ |ooooo::::= o=ooo ooooooooooooooooooooooooooooooooooooooooooo:::~oooo ~~~ ooooo|
55
+ |oooooo~~:::: ::::ooooooooooooooooooooooooooooooooooooooooo=:::ooo=:~~~~oooooo|
56
+ |ooooooooo~ ~o ::::oooooooooooooooooooooooooooooooooooooooo:::=ooooo~ooooooooo|
57
+ |ooooooooooooooo~:::=oooooooooooooooooooooooooooooooooooooo::::oooooooooooooooo|
58
+ |oooooooooooooooo~:::ooooooooooooooooooooooooooooooooooooo~:::ooooooooooooooooo|
59
+ |ooooooooooooooooo::::oooooooooooooooooooooooooooooooooooo:~~oooooooooooooooooo|
60
+ |ooooooooooooooooo=:::ooooooooooooooooooooooooooooooooooo::~ oooooooooooooooooo|
61
+ |oooooooooooooooooo~~:=ooooooooooooooooooooooooooooooooo~:::~=ooooooooooooooooo|
62
+ |ooooooooooooooooooo~::~oooooooooooooooooooooooooooooooo =:::::~ooooooooooooooo|
63
+ |ooooooooooooo: oooo ::: ooooooooooooooooooooooooooooo==oooo~::::oooooooooooooo|
64
+ |oooooooooooo~~ ~ooo~::~~::=oooooooooooooooooooooooo~ :~ooo:::~ooooooooooooo|
65
+ |oooooooooooo ~oo=::::~:::ooo=~:~ oo~~ ~ ~~ ~ :~=oo :::=oooooooooooo|
66
+ |oooooooooooo ooo=::::~::: oo ~ ~ ~ ~ =ooo:::=oooooooooooo|
67
+ |oooooooooooo~~ ooo=::::::oooo~~ ~oo=oooooooo=oooo==:: ~ oooo::::ooooooooooooo|
68
+ |oooooooooooooo ~~~ooooooooooo ~~oooooooooooooo=~oooo==ooooo::::=ooooooooooooo|
69
+ |oooooooooooooo ~ ~~ooo=~o~~ : oooooooooooooo::::~ooooo=~ :::~ooooooooooooooo|
70
+ |ooooooooooooooooo ::~~~~ ~ooooooooooooooooo::::::::::::::=oooooooooooooooo|
71
+ |oooooooooooooooooooo= = o=oooooooooooooooooooooooo = :~~ =ooooooooooooooooooo|
72
+ |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
73
+ |oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo|
74
+ +------------------------------------------------------------------------------+
75
+ ```
76
+
77
+ ## Issues and Feedback
78
+
79
+ For any other issues and feedback about this plugin, please submit it to this repository.
80
+
81
+ ## Troubleshooting
82
+
83
+ For some more detailed help with plugins problems, check out the [Plugins Troubleshooting](https://github.com/fastlane/fastlane/blob/master/fastlane/docs/PluginsTroubleshooting.md) doc in the main `fastlane` repo.
84
+
85
+ ## Using `fastlane` Plugins
86
+
87
+ 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.
88
+
89
+ ## About `fastlane`
90
+
91
+ `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/ascii_art/version'
2
+
3
+ module Fastlane
4
+ module AsciiArt
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::AsciiArt.all_classes.each do |current|
15
+ require current
16
+ end
@@ -0,0 +1,41 @@
1
+ module Fastlane
2
+ module Actions
3
+ class AsciiArtAction < Action
4
+ def self.run(params)
5
+ require 'asciiart'
6
+ require 'io/console'
7
+
8
+ a = ::AsciiArt.new(params[:image_path])
9
+ width = params[:width].nil? ? IO.console.winsize[1] - 2 : params[:width]
10
+ puts a.to_ascii_art(width: width)
11
+ end
12
+
13
+ def self.description
14
+ 'Add some fun to your fastlane output.'
15
+ end
16
+
17
+ def self.authors
18
+ ['Boris Bügling']
19
+ end
20
+
21
+ def self.available_options
22
+ [
23
+ FastlaneCore::ConfigItem.new(key: :image_path,
24
+ env_name: 'ASCII_ART_IMAGE_PATH',
25
+ description: 'Path or URL of the image you want to show',
26
+ optional: false,
27
+ type: String),
28
+ FastlaneCore::ConfigItem.new(key: :width,
29
+ env_name: 'ASCII_ART_WIDTH',
30
+ description: "Width to use for the ASCII art, defaults to your terminal's width",
31
+ optional: true,
32
+ type: Fixnum)
33
+ ]
34
+ end
35
+
36
+ def self.is_supported?(_platform)
37
+ true
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,5 @@
1
+ module Fastlane
2
+ module AsciiArt
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,147 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fastlane-plugin-ascii_art
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Boris Bügling
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: neonichu-asciiart
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.9
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.9
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry
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: bundler
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: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: fastlane
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: 1.92.0.beta2
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: 1.92.0.beta2
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: 0.35.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: 0.35.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '10.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '10.0'
111
+ description:
112
+ email: boris@icculus.org
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - lib/fastlane/plugin/ascii_art/actions/ascii_art_action.rb
118
+ - lib/fastlane/plugin/ascii_art/version.rb
119
+ - lib/fastlane/plugin/ascii_art.rb
120
+ - README.md
121
+ - LICENSE
122
+ homepage: https://github.com/neonichu/fastlane-ascii-art
123
+ licenses:
124
+ - MIT
125
+ metadata: {}
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubyforge_project:
142
+ rubygems_version: 2.0.14
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: Add some fun to your fastlane output.
146
+ test_files: []
147
+ has_rdoc: