pennyworth 11.1.0 → 11.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
  SHA256:
3
- metadata.gz: 7728d713e396e5b7057ada093978e762b4f3391cf8d6a677d62e099b34fd23cf
4
- data.tar.gz: 4e75b766da7c629ea61dcc9a37985adca377f14d8d7f836704c947db8ad5094b
3
+ metadata.gz: e52f13fcf2643eb8077e0e3406d38e5435bee47125791b6e343419fed782d4d0
4
+ data.tar.gz: 53f1b970a78784fd46c259a57abc977459bd9904591145a4f8c506271c3e4798
5
5
  SHA512:
6
- metadata.gz: 27f7eb459bfcc51ed7e36f90ebe8dbd8a4ce4bc7254366a494364b4ff0ea0c3cafa622e37762d0122974637c46d8ede3eee6a521306a79a21a0acaa846f88a0f
7
- data.tar.gz: abe30a6358ed349bcee58e15f8ab2379dd93146c86cd785de142ada9ab75ce987d364c971962ddf9885c3fb3ef3de68c17d9b9085a510b3c656086df98bc925c
6
+ metadata.gz: 54068fb88d6aa548a2e92154f357786f56aa7990211b5ed9a6173798ed7048cf286a3726ee25c1cdb0e79daed4a1fc91319046fb4a3400503cfd3bda98e6e351
7
+ data.tar.gz: b86e2ba0d7dcc2a1ceeb2caa72d68689eb6121a4cc806daa82eb70bee7d4b24666730661357d959e3de643bee6a8c5c2a9e0ff6b56c9d5d0f21e361c8586f172
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -2,6 +2,8 @@
2
2
  :toclevels: 5
3
3
  :figure-caption!:
4
4
 
5
+ :frum_link: link:https://github.com/tako8ki/frum[Frum]
6
+
5
7
  = Pennyworth
6
8
 
7
9
  [link=http://badge.fury.io/rb/pennyworth]
@@ -11,7 +13,10 @@ image::https://img.shields.io/badge/code_style-alchemists-brightgreen.svg[Alchem
11
13
  [link=https://circleci.com/gh/bkuhlmann/pennyworth]
12
14
  image::https://circleci.com/gh/bkuhlmann/pennyworth.svg?style=svg[Circle CI Status]
13
15
 
14
- A command line interface that augments link:https://www.alfredapp.com[Alfred] workflows.
16
+ Pennyworth is a command line interface and the perfect companion to
17
+ link:https://www.alfredapp.com[Alfred]. With Pennyworth, you can unlock the full potential of the
18
+ Ruby language by leveraging modern versions of Ruby through Alfred Workflows. Perfect for when you
19
+ want to advance beyond the based workflows Alfred provides by default.
15
20
 
16
21
  toc::[]
17
22
 
@@ -23,7 +28,7 @@ toc::[]
23
28
 
24
29
  == Screencast
25
30
 
26
- video::https://www.alchemists.io/videos/projects/pennyworth/demo.mp4[poster=https://www.alchemists.io/images/projects/pennyworth/demo.png,width=1062,height=1194,role=focal_point]
31
+ video::https://www.alchemists.io/videos/projects/pennyworth/demo.mp4[poster=https://www.alchemists.io/images/projects/pennyworth/demo.png,width=700,height=636,role=focal_point]
27
32
 
28
33
  == Requirements
29
34
 
@@ -31,7 +36,7 @@ video::https://www.alchemists.io/videos/projects/pennyworth/demo.mp4[poster=http
31
36
  . link:https://www.gnu.org/software/bash[Bash]
32
37
  . link:https://www.alfredapp.com[Alfred]
33
38
  . link:https://www.alfredapp.com/purchase[Alfred Powerpack]
34
- . link:https://github.com/postmodern/chruby[chruby]
39
+ . {frum_link}
35
40
  . link:https://www.ruby-lang.org[Ruby]
36
41
 
37
42
  == Setup
@@ -143,6 +148,29 @@ The default configuration is as follows:
143
148
  - "Rubocop Ast": "Rubocop AST"
144
149
  - "Rubocop Md": "Rubocop Markdown"
145
150
  - "Rubocop Rspec": "Rubocop RSpec"
151
+ - "Tty Box": "TTY Box"
152
+ - "Tty Color": "TTY Color"
153
+ - "Tty Command": "TTY Command"
154
+ - "Tty Config": "TTY Config"
155
+ - "Tty Cursor": "TTY Cursor"
156
+ - "Tty Editor": "TTY Editor"
157
+ - "Tty File": "TTY File"
158
+ - "Tty Font": "TTY Font"
159
+ - "Tty Link": "TTY Link"
160
+ - "Tty Logger": "TTY Logger"
161
+ - "Tty Markdown": "TTY Markdown"
162
+ - "Tty Option": "TTY Option"
163
+ - "Tty Pager": "TTY Pager"
164
+ - "Tty Pie": "TTY Pie"
165
+ - "Tty Platform": "TTY Platform"
166
+ - "Tty Progressbar": "TTY ProgressBar"
167
+ - "Tty Prompt": "TTY Prompt"
168
+ - "Tty Reader": "TTY Reader"
169
+ - "Tty Screen": "TTY Screen"
170
+ - "Tty Spinner": "TTY Spinner"
171
+ - "Tty Table": "TTY Table"
172
+ - "Tty Tree": "TTY Tree"
173
+ - "Tty Which": "TTY Which"
146
174
  - "Xdg": "XDG"
147
175
  :git_hub:
148
176
  :api_url: "https://api.github.com"
@@ -161,7 +189,7 @@ Feel free to take this default configuration, modify, and save as your own custo
161
189
 
162
190
  === Themes
163
191
 
164
- image:https://www.alchemists.io/images/projects/pennyworth/screenshots/alchemists-theme.png[Alchemists Theme,width=634,height=121,role=focal_point]
192
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/alchemists-theme.png[Alchemists Theme,width=706,height=632,role=focal_point]
165
193
 
166
194
  The above is shared as the link:https://www.alfredapp.com/extras/theme/FSz9kjN1wX[Alchemists Alfred
167
195
  Theme] which can be
@@ -170,16 +198,15 @@ directly].
170
198
 
171
199
  === Workflows
172
200
 
173
- Not all workflows require Pennyworth to run properly. For the workflows that _do_ require Pennyworth
174
- support, the following assumptions are made:
201
+ Not all workflows require Pennyworth to run properly (see the _Other_ section below for details).
202
+ For the workflows that _do_ require Pennyworth support, the following assumptions are made:
175
203
 
176
204
  1. Your link:https://www.alchemists.io/projects/dotfiles[Dotfiles] are configured to use
177
205
  link:https://www.gnu.org/software/bash[Bash] and load your environment appropriately. Bash is not
178
206
  a hard requirement, though. You can use _any shell_ you are comfortable with as long as you teach
179
207
  Alfred to load your development environment before running the Alfred Workflow.
180
208
  2. You have the latest version of Alfred, Ruby, and Pennyworth installed.
181
- 3. You are using a Ruby version manager, like link:https://github.com/postmodern/chruby[chruby],
182
- which ensures Ruby is on your load path.
209
+ 3. You are using a Ruby version manager, like {frum_link}, which ensures Ruby is on your load path.
183
210
 
184
211
  With the above requirements in mind, the following sections document how to download and install all
185
212
  Pennyworth workflows that are compatible with Alfred. Should you want to tweak any of these
@@ -218,7 +245,7 @@ A link:https://dry-rb.org[Dry RB] workflow for navigating all of the Dry RB site
218
245
 
219
246
  1. link:https://www.alchemists.io/public/aflred/workflows/dry.alfredworkflow[Download] and double
220
247
  click to install.
221
- 2. Type `dry` to activate.
248
+ 2. Type `dry` to activate general information and `dryx` for project list.
222
249
 
223
250
  💡 Use `ENTER` to visit site, `CONTROL` to view changes, `OPTION` to view source, or `COMMAND` to
224
251
  view issues.
@@ -263,6 +290,14 @@ use in your own code.
263
290
  Type `encodings` to activate. Use `ENTER` to copy label or `OPTION` to copy associated aliases to
264
291
  clipboard.
265
292
 
293
+ ===== Gems
294
+
295
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/ruby-gems.png[Gems,width=706,height=362,role=focal_point]
296
+
297
+ Provides access to the RubyGems ecosystem.
298
+
299
+ Type `gems` to activate. Use the arrow keys to navigate options and `ENTER` to use.
300
+
266
301
  ===== Hex
267
302
 
268
303
  image:https://www.alchemists.io/images/projects/pennyworth/screenshots/ruby-hex.png[Hex,width=706,height=200,role=focal_point]
@@ -285,6 +320,15 @@ link:https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#Unofficial_codes[un
285
320
  Type `https` to activate. Use `ENTER` to copy symbol, `CONTROL` to copy code, `OPTION` to copy
286
321
  label, or `COMMAND` to view documentation.
287
322
 
323
+ ===== Links
324
+
325
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/ruby-links.png[Links,width=706,height=632,role=focal_point]
326
+
327
+ This keyword allows you to navigate to additional Ruby related information and resources.
328
+
329
+ Type `rb` plus `SPACE` to activate, then fuzzy type to filter the list to what you are looking for,
330
+ and hit `ENTER` to visit the link in your default browser.
331
+
288
332
  ===== Number
289
333
 
290
334
  image:https://www.alchemists.io/images/projects/pennyworth/screenshots/ruby-number.png[Number,width=706,height=200,role=focal_point]
@@ -331,7 +375,7 @@ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/ruby-text
331
375
  This keyword is for is for basic text manipulation. Supply a string, phrase, or sentence and let
332
376
  Pennyworth calculate all transformations and information you might need.
333
377
 
334
- Type `text` to activate plus andy string or phrase to transform. Use `ENTER` to copy text to
378
+ Type `text` to activate plus any string or phrase to transform. Use `ENTER` to copy text to
335
379
  clipboard.
336
380
 
337
381
  ===== UUID
@@ -355,46 +399,141 @@ by macOS.
355
399
  ==== Other
356
400
 
357
401
  The following workflows don't require Pennyworth support but are provided for convenience in case
358
- they are of interest/aid to your own productivity. Click each link to download and then double click
359
- to install:
360
-
361
- * link:https://www.alchemists.io/public/aflred/workflows/acronyms.alfredworkflow[Acronyms] - Expands
362
- acronyms into full explanations so you can think and type in terms of an acronym but appear as if
363
- you typed out the full definition each time.
364
- * https://www.alchemists.io/public/aflred/workflows/alpine.alfredworkflow[Alpine] - Provides
365
- link:https://www.alpinelinux.org[Alpine Linux] resources.
366
- * link:https://www.alchemists.io/public/aflred/workflows/applications.alfredworkflow[Applications] -
367
- Launches development environment but can be tweaked for your preferences. Using Alfred in this
368
- manner ensures your machine boots or restarts quickly and gives you more control over what is
369
- launched.
370
- * link:https://www.alchemists.io/public/aflred/workflows/browsers.alfredworkflow[Browsers] -
371
- Provides browser related utilities.
372
- * link:https://www.alchemists.io/public/aflred/workflows/hanami.alfredworkflow[Hanami] - Provides
373
- link:https://hanamirb.org[Hanami] resources.
374
- * link:https://www.alchemists.io/public/aflred/workflows/chlli.alfredworkflow[chi.li] - Shortens
375
- URLs.
376
- * link:https://www.alchemists.io/public/aflred/workflows/docker.alfredworkflow[Docker] - Provides
377
- link:https://www.docker.com[Docker] resources.
378
- * link:https://www.alchemists.io/public/aflred/workflows/mac_os.alfredworkflow[macOS] - Provides
379
- macOS utilities.
380
- * link:https://www.alchemists.io/public/aflred/workflows/terraform.alfredworkflow[Terraform] -
381
- Provides link:https://www.terraform.io[Terraform] resources.
382
- * link:https://www.alchemists.io/public/aflred/workflows/text.alfredworkflow[Text] - Provides
383
- general text manipulation utilities beyond the Pennyworth powered _text_ keyword (mentioned
384
- earlier).
402
+ they are of interest/aid to your own productivity.
403
+
404
+ ===== Acronyms
405
+
406
+ Expands acronyms so you can think and type in terms of an acronym but appear as if you typed out the
407
+ full definition each time.
408
+
409
+ 1. link:https://www.alchemists.io/public/aflred/workflows/acronyms.alfredworkflow[Download] and
410
+ double click to install.
411
+ 2. Use any of the macros provided by the workflow to expand acronyms for legibility.
412
+
413
+ ===== Alpine
414
+
415
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/alpine.png[Alpine Linux workflow screenshot.,width=706,height=632,role=focal_point]
416
+
417
+ Provides link:https://www.alpinelinux.org[Alpine Linux] resources.
418
+
419
+ 1. link:https://www.alchemists.io/public/aflred/workflows/alpine.alfredworkflow[Download] and double
420
+ click to install.
421
+ 2. Type `al` to activate.
422
+
423
+ ===== Applications
424
+
425
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/applications.png[Applications workflow screenshot.,width=706,height=362,role=focal_point]
426
+
427
+ Launches development environment but can be tweaked for your preferences. Using Alfred in this
428
+ manner ensures your machine boots or restarts quickly and gives you more control over what is
429
+ launched.
430
+
431
+ 1. link:https://www.alchemists.io/public/aflred/workflows/applications.alfredworkflow[Download] and
432
+ double click to install.
433
+ 2. Type `work` to activate.
434
+
435
+ ===== Browsers
436
+
437
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/browsers.png[Browsers workflow screenshot.,width=706,height=470,role=focal_point]
438
+
439
+ Provides browser related utilities.
440
+
441
+ 1. link:https://www.alchemists.io/public/aflred/workflows/browsers.alfredworkflow[Download] and
442
+ double click to install.
443
+ 2. Type `open` to activate.
444
+
445
+ ===== Bundler
446
+
447
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/bundler.png[Bundler workflow screenshot.,width=706,height=524,role=focal_point]
448
+
449
+ Provides quick access to link:https://bundler.io[Bundler] related resources.
450
+
451
+ 1. link:https://www.alchemists.io/public/aflred/workflows/bundler.alfredworkflow[Download] and
452
+ double click to install.
453
+ 2. Type `bundler` to activate.
454
+
455
+ ===== Elm
456
+
457
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/elm.png[Elm workflow screenshot.,width=706,height=470,role=focal_point]
458
+
459
+ A link:https://elm-lang.org[Elm] workflow for quick access to Elm resources.
460
+
461
+ 1. link:https://www.alchemists.io/public/aflred/workflows/elm.alfredworkflow[Download] and double
462
+ click to install.
463
+ 2. Type `elm` to view general information, arrow keys to navigate, and `ENTER` to view information.
464
+
465
+ ===== Hanami
466
+
467
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/hanami.png[Hanami workflow screenshot.,width=706,height=632,role=focal_point]
468
+
469
+ Provides link:https://hanamirb.org[Hanami] resources.
470
+
471
+ 1. link:https://www.alchemists.io/public/aflred/workflows/hanami.alfredworkflow[Download] and
472
+ double click to install.
473
+ 2. Type `h` to activate.
474
+
475
+ ===== chi.li
476
+
477
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/chili.png[chi.li workflow screenshot.,width=706,height=200,role=focal_point]
478
+
479
+ Shortens URLs using link:https://chl.li[chl.li].
480
+
481
+ 1. link:https://www.alchemists.io/public/aflred/workflows/chlli.alfredworkflow[Download] and
482
+ double click to install.
483
+ 2. Type `surl` to activate.
484
+
485
+ ===== Docker
486
+
487
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/docker.png[Docker workflow screenshot.,width=706,height=524,role=focal_point]
488
+
489
+ Provides link:https://www.docker.com[Docker] resources.
490
+
491
+ 1. link:https://www.alchemists.io/public/aflred/workflows/docker.alfredworkflow[Download] and
492
+ double click to install.
493
+ 2. Type `dr` to activate.
494
+
495
+ ===== macOS
496
+
497
+ Provides macOS utilities.
498
+
499
+ 1. link:https://www.alchemists.io/public/aflred/workflows/mac_os.alfredworkflow[Download] and
500
+ double click to install.
501
+ 2. Open the workflow to see all available keywords.
502
+
503
+ ===== Terraform
504
+
505
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/terraform.png[Terraform workflow screenshot.,width=362,height=524,role=focal_point]
506
+
507
+ Provides link:https://www.terraform.io[Terraform] resources.
508
+
509
+ 1. link:https://www.alchemists.io/public/aflred/workflows/terraform.alfredworkflow[Download] and
510
+ double click to install.
511
+ 2. Type `tf` to activate.
512
+
513
+ ===== Text
514
+
515
+ Provides general text manipulation utilities beyond the Pennyworth powered _text_ keyword (mentioned
516
+ earlier).
517
+
518
+ 1. link:https://www.alchemists.io/public/aflred/workflows/text.alfredworkflow[Download] and
519
+ double click to install.
520
+ 2. Use any of the following global hotkeys to activate:
521
+ ** `CONTROL + OPTION + COMMAND + o` - Open selected URL in default browser.
522
+ ** `CONTROL + OPTION + COMMAND + d` - View selected word in macOS dictionary.
523
+ ** `CONTROL + OPTION + COMMAND + t` - View selected text as Large Type.
524
+ ** `CONTROL + OPTION + COMMAND + h` - Syntax highlight selected code.
385
525
 
386
526
  == Architecture
387
527
 
388
528
  The following documents the workfow used to process all actions from Alfred.
389
529
 
390
- image::/doc/architecture.svg[Architecture Diagram]
530
+ image::https://www.alchemists.io/images/projects/pennyworth/doc/architecture.svg[Architecture Diagram]
391
531
 
392
532
  == Troubleshooting
393
533
 
394
534
  * link:https://github.com/ruby/psych[Psych] 4.0.0 has a
395
535
  link:https://github.com/ruby/psych/issues/490[bug] which prevents loading of YAML configurations
396
- that use symbols as keys. If you get caught by this, uninstall Psych 4.0.0 and fall back to 3.x.x
397
- instead.
536
+ that use symbols as keys. If you get caught by this, please upgrade to Psych 4.0.1 for the fix.
398
537
  * When your Alfred Workflow yields no output, you might want to open the
399
538
  link:https://www.alfredapp.com/help/workflows/utilities/debug[Alfred Debugger], rerun your
400
539
  workflow, and check for errors. You can also jump to the CLI and run Pennyworth directly.
@@ -12,6 +12,29 @@
12
12
  - "Rubocop Ast": "Rubocop AST"
13
13
  - "Rubocop Md": "Rubocop Markdown"
14
14
  - "Rubocop Rspec": "Rubocop RSpec"
15
+ - "Tty Box": "TTY Box"
16
+ - "Tty Color": "TTY Color"
17
+ - "Tty Command": "TTY Command"
18
+ - "Tty Config": "TTY Config"
19
+ - "Tty Cursor": "TTY Cursor"
20
+ - "Tty Editor": "TTY Editor"
21
+ - "Tty File": "TTY File"
22
+ - "Tty Font": "TTY Font"
23
+ - "Tty Link": "TTY Link"
24
+ - "Tty Logger": "TTY Logger"
25
+ - "Tty Markdown": "TTY Markdown"
26
+ - "Tty Option": "TTY Option"
27
+ - "Tty Pager": "TTY Pager"
28
+ - "Tty Pie": "TTY Pie"
29
+ - "Tty Platform": "TTY Platform"
30
+ - "Tty Progressbar": "TTY ProgressBar"
31
+ - "Tty Prompt": "TTY Prompt"
32
+ - "Tty Reader": "TTY Reader"
33
+ - "Tty Screen": "TTY Screen"
34
+ - "Tty Spinner": "TTY Spinner"
35
+ - "Tty Table": "TTY Table"
36
+ - "Tty Tree": "TTY Tree"
37
+ - "Tty Which": "TTY Which"
15
38
  - "Xdg": "XDG"
16
39
  :git_hub:
17
40
  :api_url: "https://api.github.com"
@@ -44,7 +44,6 @@ module Pennyworth
44
44
  in action_system_errors: true then system_errors
45
45
  in action_text: String => content then text content
46
46
  in action_version: String => version then logger.info version
47
- in action_help: then usage
48
47
  else usage
49
48
  end
50
49
  end
@@ -6,7 +6,7 @@ module Pennyworth
6
6
  NAME = "pennyworth"
7
7
  LABEL = "Pennyworth"
8
8
  SUMMARY = "A command line interface that augments Alfred workflows."
9
- VERSION = "11.1.0"
10
- VERSION_LABEL = "#{LABEL} #{VERSION}"
9
+ VERSION = "11.2.0"
10
+ VERSION_LABEL = "#{LABEL} #{VERSION}".freeze
11
11
  end
12
12
  end
@@ -26,7 +26,7 @@ module Pennyworth
26
26
 
27
27
  def version = record.fetch(__method__)
28
28
 
29
- def licenses = record.fetch(__method__).join(", ")
29
+ def licenses = Array(record.fetch(__method__)).join(", ")
30
30
 
31
31
  def downloads = record.fetch(__method__)
32
32
 
data/lib/pennyworth.rb CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  require "zeitwerk"
4
4
 
5
- loader = Zeitwerk::Loader.for_gem
6
- loader.inflector.inflect "cli" => "CLI",
7
- "http_status" => "HTTPStatus",
8
- "http_statuses" => "HTTPStatuses"
9
- loader.setup
5
+ Zeitwerk::Loader.for_gem.then do |loader|
6
+ loader.inflector.inflect "cli" => "CLI",
7
+ "http_status" => "HTTPStatus",
8
+ "http_statuses" => "HTTPStatuses"
9
+ loader.setup
10
+ end
10
11
 
11
12
  # Main namespace.
12
13
  module Pennyworth
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pennyworth
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.1.0
4
+ version: 11.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
29
29
  W2A=
30
30
  -----END CERTIFICATE-----
31
- date: 2021-06-08 00:00:00.000000000 Z
31
+ date: 2021-10-02 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: dry-container
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  - !ruby/object:Gem::Version
214
214
  version: '0'
215
215
  requirements: []
216
- rubygems_version: 3.2.19
216
+ rubygems_version: 3.2.28
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: A command line interface that augments Alfred workflows.
metadata.gz.sig CHANGED
Binary file