slack_progress_bar 0.1.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: e51319bfad1449d02de2bb1bf0cf42667d6ef61493a08e71bc3091cc893482cc
4
- data.tar.gz: e9abfed3a6fdcb1004226926732f51cfd857d0dcb98211cf7076021b490b701b
3
+ metadata.gz: d14c2c0f97c374374ce83a58330e72ed0f4c80dc1d46749dd6ccd2b1e013ec3d
4
+ data.tar.gz: 90cc409fb0c6f8b45a0b7df4312b5b0a56afe9fb3f7b22ad4720e70d522cde72
5
5
  SHA512:
6
- metadata.gz: 408b6e327c38a008aceb3a28024e76ca9da1c87eb80fbda7e2b3832e23b38d340c32a8e653e29b32d01a2d61962d994577103a5fd009c34a4dba2d21d4ceb47c
7
- data.tar.gz: 28611fa55290eed2374251d8f71e1db9c6388dc3a790406fe9571337ea6b10d6c78121e3c222047da29d8bfc538f0393ce3ac6dff7a6fec94c8a795eee4bfc9a
6
+ metadata.gz: 8ae1d8b18e9eccaf8818a4ca67ec5e9ccc4de52e7a88c4794bcf3d8eeea9aeac27eb6629a1b32b6af09a7f2de9d70e4668e0aeb203f2f0dd3b46d3eabed5894c
7
+ data.tar.gz: 72d83f5ae8a0a949f0251560bd5a39d0fa0b1d013240331b8779d1b7761a4a5f2ec558270b3444687da9e6098dbec25ed4763ff0830953eeb05186d9dffb9b45
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
- # Slack Progress Bar<br><img src="https://user-images.githubusercontent.com/34264/125970661-b3229a24-439c-43e5-9108-97f46a2c47a6.png" alt="Progress bar preview" width="404" height="20" aria-hidden="true">
1
+ # Slack Progress Bar<br><img src="https://user-images.githubusercontent.com/34264/125970661-b3229a24-439c-43e5-9108-97f46a2c47a6.png" width="404" aria-hidden="true">
2
2
 
3
3
  Create _beautiful_ progress bars for Slack using **emoji**!
4
4
 
5
5
  Slack Progress Bar is a Ruby library capable of [generating a progress bar](https://github.com/laserlemon/slack_progress_bar/blob/main/README.md#generating-a-progress-bar) made with Slack emoji. The library can also [generate the emoji](https://github.com/laserlemon/slack_progress_bar/blob/main/README.md#generating-the-emoji) images that you'll need in your Slack workspace.
6
6
 
7
- [Try it out!](https://laserlemon.github.io/slack_progress_bar)
7
+ [Try it out!](https://laserlemon.github.io/slack_progress_bar)
8
8
 
9
9
  ## Installation
10
10
 
@@ -30,17 +30,19 @@ $ gem install slack_progress_bar
30
30
 
31
31
  ### Configuration
32
32
 
33
- The library uses default colors based on the [GitHub Primer color system](https://primer.style/css/support/color-system) that allow you to hit the ground running without any in-app configuration.
33
+ The library uses default colors based on the [GitHub Primer](https://primer.style) color system that allow you to hit the ground running without any in-app configuration.
34
+
35
+ **UPDATE:** GitHub Primer's colors have changed since this library was originally written, but we're keeping the default colors for consistency.
34
36
 
35
37
  | Alias | Letter | Hex value | Preview |
36
38
  |:--- |:---:|:--- |:---:|
37
- | `purple` | `p` | `6f42c1ff` | <img src="https://user-images.githubusercontent.com/34264/125973904-b82923e7-9457-4d47-9e38-70c36ab3f07f.png" width="20" height="20"> |
38
- | `blue` | `b` | `0366d6ff` | <img src="https://user-images.githubusercontent.com/34264/125973900-f3faa84f-d7de-4102-b39e-6e5d12a443ed.png" width="20" height="20"> |
39
- | `green` | `g` | `28a745ff` | <img src="https://user-images.githubusercontent.com/34264/125973902-74679045-0d94-4b41-81e4-56275207d97d.png" width="20" height="20"> |
40
- | `yellow` | `y` | `ffd33dff` | <img src="https://user-images.githubusercontent.com/34264/125973907-2d615a1f-1016-40c6-9061-3f6243527869.png" width="20" height="20"> |
41
- | `orange` | `o` | `f66a0aff` | <img src="https://user-images.githubusercontent.com/34264/125973903-25daa839-16b1-43e8-91a3-7f4a134aa341.png" width="20" height="20"> |
42
- | `red` | `r` | `d73a49ff` | <img src="https://user-images.githubusercontent.com/34264/125973905-2708f63c-1783-4daf-af23-da115e2612c9.png" width="20" height="20"> |
43
- | `white` | `w` | `959da544` | <img src="https://user-images.githubusercontent.com/34264/125973906-c2a9dcf2-f009-4aa7-b303-529b7a24aa0f.png" width="20" height="20"> |
39
+ | `purple` | `p` | `6f42c1ff` | <img src="https://user-images.githubusercontent.com/34264/125973904-b82923e7-9457-4d47-9e38-70c36ab3f07f.png" width="20"> |
40
+ | `blue` | `b` | `0366d6ff` | <img src="https://user-images.githubusercontent.com/34264/125973900-f3faa84f-d7de-4102-b39e-6e5d12a443ed.png" width="20"> |
41
+ | `green` | `g` | `28a745ff` | <img src="https://user-images.githubusercontent.com/34264/125973902-74679045-0d94-4b41-81e4-56275207d97d.png" width="20"> |
42
+ | `yellow` | `y` | `ffd33dff` | <img src="https://user-images.githubusercontent.com/34264/125973907-2d615a1f-1016-40c6-9061-3f6243527869.png" width="20"> |
43
+ | `orange` | `o` | `f66a0aff` | <img src="https://user-images.githubusercontent.com/34264/125973903-25daa839-16b1-43e8-91a3-7f4a134aa341.png" width="20"> |
44
+ | `red` | `r` | `d73a49ff` | <img src="https://user-images.githubusercontent.com/34264/125973905-2708f63c-1783-4daf-af23-da115e2612c9.png" width="20"> |
45
+ | `white` | `w` | `959da544` | <img src="https://user-images.githubusercontent.com/34264/125973906-c2a9dcf2-f009-4aa7-b303-529b7a24aa0f.png" width="20"> |
44
46
 
45
47
  You can configure color naming and sequence in a Rails initializer or any other Ruby configuration file:
46
48
 
@@ -49,7 +51,7 @@ SlackProgressBar.configure do |config|
49
51
  # These one-character color names are used in emoji image filenames.
50
52
  # The last color configured here is the default and is used to fill the remainder of a progress bar.
51
53
  config.letters = ["r", "g", "b", "w"]
52
-
54
+
53
55
  # Define your own aliases that map to each letter above, useful when generating a progress bar.
54
56
  config.aliases = {
55
57
  red: "r",
@@ -63,7 +65,7 @@ SlackProgressBar.configure do |config|
63
65
  end
64
66
  ```
65
67
 
66
- The default emoji prefix is `pb`. For example, one Slack emoji using the configuration above could be `:pb-rgbw:`. The separator is `-` and isn't configurable. You can customize the prefix to prevent naming collisions.
68
+ The default emoji prefix is `pb`. For example, one Slack emoji using the configuration above could be `:pb-rgbw:`. The separator is `-` and isn't configurable. You can customize the prefix to prevent naming collisions.
67
69
 
68
70
  ```ruby
69
71
  SlackProgressBar.configure do |config|
@@ -87,7 +89,7 @@ puts bar.to_s
87
89
  :pb-w-a::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-w-z:
88
90
  ```
89
91
 
90
- <img src="https://user-images.githubusercontent.com/34264/125977880-a36c14e0-3d7c-4891-a94f-0b024e3433a1.png" width="404" height="20">
92
+ <img src="https://user-images.githubusercontent.com/34264/125977880-a36c14e0-3d7c-4891-a94f-0b024e3433a1.png" width="404">
91
93
 
92
94
  But most folks want to show some, well… progress!
93
95
 
@@ -100,7 +102,7 @@ puts bar.to_s
100
102
  :pb-b-a::pb-bbbb::pb-bbbb::pb-bbbb::pb-bbbb::pb-bbbb::pb-bbbb::pb-gggg::pb-gggg::pb-gggg::pb-gggg::pb-rrrr::pb-rrrr::pb-r-z:
101
103
  ```
102
104
 
103
- <img src="https://user-images.githubusercontent.com/34264/125979277-f59e926c-2fc2-4192-9bc1-6e36b28b6f13.png" width="404" height="20">
105
+ <img src="https://user-images.githubusercontent.com/34264/125979277-f59e926c-2fc2-4192-9bc1-6e36b28b6f13.png" width="404">
104
106
 
105
107
  And if you want to indicate that progress is not yet finished:
106
108
 
@@ -114,7 +116,7 @@ puts bar.to_s
114
116
  :pb-b-a::pb-bbbb::pb-bbbb::pb-bbbb::pb-bbgg::pb-gggg::pb-gggg::pb-rrrr::pb-rwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-w-z:
115
117
  ```
116
118
 
117
- <img src="https://user-images.githubusercontent.com/34264/125979830-ccc02bba-a85c-4509-957b-3dd234500448.png" width="404" height="20">
119
+ <img src="https://user-images.githubusercontent.com/34264/125979830-ccc02bba-a85c-4509-957b-3dd234500448.png" width="404">
118
120
 
119
121
  You can also change the size (in emoji) of the progress bar from its default of 14:
120
122
 
@@ -127,7 +129,7 @@ puts bar.to_s
127
129
  :pb-b-a::pb-bbbb::pb-bbbb::pb-bggg::pb-gggg::pb-rrrw::pb-wwww::pb-wwww::pb-wwww::pb-w-z:
128
130
  ```
129
131
 
130
- <img src="https://user-images.githubusercontent.com/34264/125980287-0093d19f-0ed8-4558-9765-8d2cde706138.png" width="276" height="20">
132
+ <img src="https://user-images.githubusercontent.com/34264/125980287-0093d19f-0ed8-4558-9765-8d2cde706138.png" width="276">
131
133
 
132
134
  Finally, you can choose to generate your progress bar with square caps:
133
135
 
@@ -140,25 +142,29 @@ puts bar.to_s
140
142
  :pb-bbbb::pb-bbbb::pb-bbbb::pb-gggg::pb-gggg::pb-rrrr::pb-wwww::pb-wwww::pb-wwww::pb-wwww:
141
143
  ```
142
144
 
143
- <img src="https://user-images.githubusercontent.com/34264/125980701-f9d8a08c-d19a-424d-9198-f18ecbbd0c8d.png" width="320" height="20">
145
+ <img src="https://user-images.githubusercontent.com/34264/125980701-f9d8a08c-d19a-424d-9198-f18ecbbd0c8d.png" width="320">
144
146
 
145
147
  ### Generating the emoji
146
148
 
149
+ ⭐ **tl;dr:** If you want to use the default 7-color configuration, you can [download all 232 emoji images](https://github.com/laserlemon/slack_progress_bar/files/6848864/images.zip) (120 KB ZIP).
150
+
147
151
  The observent reader will notice that `SlackProgressBar#to_s` (above) only generates a string. For Slack to render your beautiful progress bar, you'll need to generate and upload beautiful Slack emoji images! The `slack_progress_bar` gem comes with a `slack_progress_bar` command line interface and we'll use the `slack_progress_bar generate` command to create all the images you'll need.
148
152
 
149
153
  For the default configuration, run `slack_progress_bar generate` with no arguments. Images will be created in your current working directory.
150
154
 
151
155
  ```bash
152
- slack_progress_bar generate
156
+ bundle exec slack_progress_bar generate
153
157
  ```
154
158
 
155
- The default configuration generates 233 images, which need to be uploaded to your Slack workspace. As of this writing, there is no API available to automate this manual process! 😅 You can reduce the number of images required by reducing the number of colors in your configuration:
159
+ The default configuration generates 232 images, which need to be uploaded to your Slack workspace. As of this writing, there is no API available to automate this manual process! 😅
160
+
161
+ You can reduce the number of images required by reducing the number of colors in your configuration:
156
162
 
157
163
  ```bash
158
- slack_progress_bar generate --colors r:d73a49ff g:28a745ff b:0366d6ff w:959da544
164
+ bundle exec slack_progress_bar generate --colors r:d73a49ff g:28a745ff b:0366d6ff w:959da544
159
165
  ```
160
166
 
161
- The command above, configured for four colors, will generate only 49 images. Use the table below to help determine how many colors you're willing to support:
167
+ The command above, configured for four colors, will generate only 48 images. Use the table below to help determine how many colors you're willing to support:
162
168
 
163
169
  | Colors | Images |
164
170
  | ---:| ---:|
@@ -168,10 +174,11 @@ The command above, configured for four colors, will generate only 49 images. Use
168
174
  | 5 | 86 |
169
175
  | 6 | 145 |
170
176
  | 7 | 232 |
177
+ | 8 | 355 |
171
178
 
172
- When generating your images, each color you configure contains eight hex digits. The first six are RGB and the last two are alpha transparency. You can experiment with different colors and progress bar styles below:
179
+ When generating your images, each color you configure contains eight hex digits. The first six are RGB and the last two are alpha transparency.
173
180
 
174
- ### 🛠️ [Slack Progress Bar Sandbox](https://laserlemon.github.io/slack_progress_bar)
181
+ You can experiment with different colors and progress bar styles using the [Slack Progress Bar sandbox](https://laserlemon.github.io/slack_progress_bar).
175
182
 
176
183
  ## Questions
177
184
 
@@ -187,20 +194,20 @@ By default, exactly 2%. That's why the default rounded progress bar size is 14 e
187
194
  :pb-p-a::pb-bbgg::pb-gyyy::pb-yooo::pb-oooo::pb-orrr::pb-rrrr::pb-rrrr::pb-rwww::pb-wwww::pb-wwww::pb-wwww::pb-wwww::pb-w-z:
188
195
  ```
189
196
 
190
- <img src="https://user-images.githubusercontent.com/34264/125985441-823e4c2f-379e-49f6-860a-e3d104bd173a.png" width="32" height="32">&nbsp;
191
- <img src="https://user-images.githubusercontent.com/34264/125985470-67828620-291f-412d-b573-308271dbee5b.png" width="32" height="32">&nbsp;
192
- <img src="https://user-images.githubusercontent.com/34264/125985517-28bb320f-0a58-4477-89f8-4e40a80eee6f.png" width="32" height="32">&nbsp;
193
- <img src="https://user-images.githubusercontent.com/34264/125985564-b383037d-a0e8-4612-86c8-a1d9c8699e3c.png" width="32" height="32">&nbsp;
194
- <img src="https://user-images.githubusercontent.com/34264/125985587-67b4b120-2780-4b5f-be2b-8477c966b71a.png" width="32" height="32">&nbsp;
195
- <img src="https://user-images.githubusercontent.com/34264/125985616-8a121079-1c3e-4870-9df0-396b11cfbb06.png" width="32" height="32">&nbsp;
196
- <img src="https://user-images.githubusercontent.com/34264/125985657-7f778bf3-2483-402c-97ee-72bb226c20de.png" width="32" height="32">&nbsp;
197
- <img src="https://user-images.githubusercontent.com/34264/125985657-7f778bf3-2483-402c-97ee-72bb226c20de.png" width="32" height="32">&nbsp;
198
- <img src="https://user-images.githubusercontent.com/34264/125985681-00ebfc9b-1caf-409f-966e-d2471fbe78ff.png" width="32" height="32">&nbsp;
199
- <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32" height="32">&nbsp;
200
- <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32" height="32">&nbsp;
201
- <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32" height="32">&nbsp;
202
- <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32" height="32">&nbsp;
203
- <img src="https://user-images.githubusercontent.com/34264/125985743-150c8a04-8a90-4cd0-9da3-8614ef17410f.png" width="32" height="32">&nbsp;
197
+ <img src="https://user-images.githubusercontent.com/34264/125985441-823e4c2f-379e-49f6-860a-e3d104bd173a.png" width="32">&nbsp;
198
+ <img src="https://user-images.githubusercontent.com/34264/125985470-67828620-291f-412d-b573-308271dbee5b.png" width="32">&nbsp;
199
+ <img src="https://user-images.githubusercontent.com/34264/125985517-28bb320f-0a58-4477-89f8-4e40a80eee6f.png" width="32">&nbsp;
200
+ <img src="https://user-images.githubusercontent.com/34264/125985564-b383037d-a0e8-4612-86c8-a1d9c8699e3c.png" width="32">&nbsp;
201
+ <img src="https://user-images.githubusercontent.com/34264/125985587-67b4b120-2780-4b5f-be2b-8477c966b71a.png" width="32">&nbsp;
202
+ <img src="https://user-images.githubusercontent.com/34264/125985616-8a121079-1c3e-4870-9df0-396b11cfbb06.png" width="32">&nbsp;
203
+ <img src="https://user-images.githubusercontent.com/34264/125985657-7f778bf3-2483-402c-97ee-72bb226c20de.png" width="32">&nbsp;
204
+ <img src="https://user-images.githubusercontent.com/34264/125985657-7f778bf3-2483-402c-97ee-72bb226c20de.png" width="32">&nbsp;
205
+ <img src="https://user-images.githubusercontent.com/34264/125985681-00ebfc9b-1caf-409f-966e-d2471fbe78ff.png" width="32">&nbsp;
206
+ <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32">&nbsp;
207
+ <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32">&nbsp;
208
+ <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32">&nbsp;
209
+ <img src="https://user-images.githubusercontent.com/34264/125985711-afbcff71-f933-4ad3-bc37-e73f5906403b.png" width="32">&nbsp;
210
+ <img src="https://user-images.githubusercontent.com/34264/125985743-150c8a04-8a90-4cd0-9da3-8614ef17410f.png" width="32">&nbsp;
204
211
 
205
212
  ### Why not use narrow emoji?
206
213
 
@@ -210,7 +217,7 @@ When you use a narrow rectangular emoji in Slack, horizontal margins are added s
210
217
 
211
218
  Sure! Slack's API gives you the ability to [create](https://api.slack.com/messaging/sending) and [update](https://api.slack.com/messaging/modifying) messages. So after you create your initial message with a blank progress bar, you can update that message as frequently as you like with the latest and greatest version of your progress bar.
212
219
 
213
- <img src="https://user-images.githubusercontent.com/34264/125991787-d8c49424-106f-40ea-bf58-985adced4b1b.gif" width="374" height="51">
220
+ <img src="https://user-images.githubusercontent.com/34264/125991787-d8c49424-106f-40ea-bf58-985adced4b1b.gif" width="374">
214
221
 
215
222
  ### Can I change the color order?
216
223
 
@@ -220,8 +227,8 @@ Sadly, no. 😢 In an effort to reduce the number of images you need to generate
220
227
 
221
228
  Sure, kind of! Setting alpha transparency for your color configuration gives you some control over how your progress bars look in light and dark surroundings. For example, the default "white" color is dimmed using alpha transparency. The effect is a progress bar that's beautiful any time of day _or_ night:
222
229
 
223
- <img src="https://user-images.githubusercontent.com/34264/125987921-3d7ac606-1ad3-4ebc-bf45-123df9b16411.png" width="448" height="32"><br>
224
- <img src="https://user-images.githubusercontent.com/34264/125987920-491636ad-55a7-4c63-a243-feff09c284e6.png" width="448" height="32">
230
+ <img src="https://user-images.githubusercontent.com/34264/125987921-3d7ac606-1ad3-4ebc-bf45-123df9b16411.png" width="448"><br>
231
+ <img src="https://user-images.githubusercontent.com/34264/125987920-491636ad-55a7-4c63-a243-feff09c284e6.png" width="448">
225
232
 
226
233
  ### I have a different question!
227
234
 
@@ -21,8 +21,8 @@ class SlackProgressBar
21
21
  white: "w",
22
22
  }.freeze
23
23
 
24
- PREFIX_PATTERN = /\A[0-9a-z]+\z/.freeze
25
- LETTER_PATTERN = /\A[a-z]\z/.freeze
24
+ PREFIX_PATTERN = /\A[0-9a-z]+\z/
25
+ LETTER_PATTERN = /\A[a-z]\z/
26
26
 
27
27
  SEPARATOR = "-"
28
28
  LEFT_CAP_SUFFIX = "a"
@@ -20,7 +20,7 @@ class SlackProgressBar
20
20
  # appear in the same order in a rendered progress bar.
21
21
  #
22
22
  # The default colors below were borrowed from GitHub's Primer color system.
23
- # See: https://primer.style/css/support/color-system
23
+ # See: https://primer.style
24
24
  #
25
25
  # Each color consists of a six hex digits describing the RGB color and two
26
26
  # additional hex digits to describe the color's transparency. "00" is fully
@@ -37,7 +37,7 @@ class SlackProgressBar
37
37
 
38
38
  DEFAULT_OUTPUT = "./"
39
39
 
40
- IMAGE_MAGICK_VERSION_PATTERN = /Version: ImageMagick (?<major_version>\d+)\.[^\s]+/.freeze
40
+ IMAGE_MAGICK_VERSION_PATTERN = /Version: ImageMagick (?<major_version>\d+)\.[^\s]+/
41
41
  MINIMUM_IMAGE_MAGICK_MAJOR_VERSION = 6
42
42
 
43
43
  attr_reader :colors, :prefix, :output
@@ -202,7 +202,7 @@ class SlackProgressBar
202
202
  name = "#{prefix}#{config.separator}qr"
203
203
  path = image_output_path(name)
204
204
 
205
- IO.binwrite(path, qr.as_png(
205
+ File.binwrite(path, qr.as_png(
206
206
  border_modules: 0,
207
207
  resize_exactly_to: 128,
208
208
  ))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class SlackProgressBar
4
- VERSION = Gem::Version.new("0.1.0")
4
+ VERSION = Gem::Version.new("1.0.1")
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack_progress_bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Richert
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-16 00:00:00.000000000 Z
11
+ date: 2024-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -44,28 +44,22 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '12'
47
+ version: '13'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '12'
54
+ version: '13'
55
55
  description:
56
- email: steve.richert@gmail.com
56
+ email: steve.richert@hey.com
57
57
  executables:
58
58
  - slack_progress_bar
59
59
  extensions: []
60
- extra_rdoc_files: []
60
+ extra_rdoc_files:
61
+ - README.md
61
62
  files:
62
- - ".github/FUNDING.yml"
63
- - ".github/workflows/rake.yml"
64
- - ".gitignore"
65
- - ".rspec"
66
- - ".rubocop.yml"
67
- - CODE_OF_CONDUCT.md
68
- - Gemfile
69
63
  - LICENSE.txt
70
64
  - README.md
71
65
  - exe/slack_progress_bar
@@ -74,11 +68,15 @@ files:
74
68
  - lib/slack_progress_bar/config.rb
75
69
  - lib/slack_progress_bar/generator.rb
76
70
  - lib/slack_progress_bar/version.rb
77
- - slack_progress_bar.gemspec
78
- homepage:
71
+ homepage: https://github.com/laserlemon/slack_progress_bar
79
72
  licenses:
80
73
  - MIT
81
- metadata: {}
74
+ metadata:
75
+ rubygems_mfa_required: 'true'
76
+ source_code_uri: https://github.com/laserlemon/slack_progress_bar
77
+ homepage_uri: https://github.com/laserlemon/slack_progress_bar
78
+ bug_tracker_uri: https://github.com/laserlemon/slack_progress_bar/issues
79
+ funding_uri: https://github.com/sponsors/laserlemon
82
80
  post_install_message:
83
81
  rdoc_options: []
84
82
  require_paths:
@@ -87,14 +85,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
85
  requirements:
88
86
  - - ">="
89
87
  - !ruby/object:Gem::Version
90
- version: 2.6.0
88
+ version: 3.0.0
91
89
  required_rubygems_version: !ruby/object:Gem::Requirement
92
90
  requirements:
93
91
  - - ">="
94
92
  - !ruby/object:Gem::Version
95
93
  version: '0'
96
94
  requirements: []
97
- rubygems_version: 3.2.19
95
+ rubygems_version: 3.5.7
98
96
  signing_key:
99
97
  specification_version: 4
100
98
  summary: Generate beautiful progress bars using custom Slack emoji
data/.github/FUNDING.yml DELETED
@@ -1 +0,0 @@
1
- github: [laserlemon]
@@ -1,31 +0,0 @@
1
- name: Rake
2
- on:
3
- push:
4
- branches:
5
- - main
6
- pull_request:
7
- branches:
8
- - main
9
- jobs:
10
- test:
11
- runs-on: ubuntu-latest
12
- strategy:
13
- matrix:
14
- ruby-version:
15
- - "2.6"
16
- - "2.7"
17
- - "3.0"
18
- - head
19
- steps:
20
- - uses: actions/checkout@v2
21
- - name: Set up Ruby
22
- uses: ruby/setup-ruby@v1
23
- with:
24
- ruby-version: ${{ matrix.ruby-version }}
25
- bundler-cache: true
26
- - name: Install ImageMagick
27
- run: |
28
- sudo apt-get install imagemagick
29
- convert -version
30
- - name: Run tests
31
- run: bundle exec rake
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- Gemfile.lock
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,47 +0,0 @@
1
- AllCops:
2
- NewCops: enable
3
- TargetRubyVersion: 2.6
4
-
5
- Layout/ArgumentAlignment:
6
- Enabled: true
7
- EnforcedStyle: with_fixed_indentation
8
-
9
- Layout/LineLength:
10
- Enabled: false
11
-
12
- Layout/MultilineMethodCallIndentation:
13
- Enabled: true
14
- EnforcedStyle: indented
15
-
16
- Metrics:
17
- Enabled: false
18
-
19
- Naming/RescuedExceptionsVariableName:
20
- Enabled: true
21
- PreferredName: error
22
-
23
- Style/BlockDelimiters:
24
- Enabled: true
25
- Exclude:
26
- - "spec/**/*_spec.rb"
27
-
28
- Style/Documentation:
29
- Enabled: false
30
-
31
- Style/IfUnlessModifier:
32
- Enabled: false
33
-
34
- Style/StringLiterals:
35
- Enabled: true
36
- EnforcedStyle: double_quotes
37
-
38
- Style/SymbolArray:
39
- Enabled: false
40
-
41
- Style/TrailingCommaInArguments:
42
- Enabled: true
43
- EnforcedStyleForMultiline: comma
44
-
45
- Style/TrailingCommaInHashLiteral:
46
- Enabled: true
47
- EnforcedStyleForMultiline: comma
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at steve.richert@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- gemspec
6
-
7
- gem "rqrcode", "~> 2.0"
8
- gem "rspec", "~> 3.10"
9
- gem "rubocop", "~> 1.17.0"
10
- gem "rubocop-rake", "~> 0.5.1"
11
- gem "rubocop-rspec", "~> 2.4.0"
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/slack_progress_bar/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "slack_progress_bar"
7
- spec.version = SlackProgressBar::VERSION
8
- spec.summary = "Generate beautiful progress bars using custom Slack emoji"
9
-
10
- spec.author = "Steve Richert"
11
- spec.email = "steve.richert@gmail.com"
12
- spec.license = "MIT"
13
-
14
- spec.files = Dir.chdir(__dir__) do
15
- `git ls-files -z`.split("\x0").grep_v(/\A(bin|spec|Rakefile)/)
16
- end
17
-
18
- spec.add_runtime_dependency "thor", "~> 1.0"
19
-
20
- spec.add_development_dependency "bundler", ">= 2"
21
- spec.add_development_dependency "rake", ">= 12"
22
-
23
- spec.required_ruby_version = ">= 2.6.0"
24
-
25
- spec.bindir = "exe"
26
- spec.executables = ["slack_progress_bar"]
27
- end