pennyworth 17.4.0 → 17.4.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: 8c64185db3d1ff451a3c2d1eeb3f339e75e4de547a1a3d09d716f3ec506154e7
4
- data.tar.gz: aec6e33ebebe91ec50035a64cda46be8643ea764d7f5824ad7d3f3217285223a
3
+ metadata.gz: 3e145f2b67767dfb8c5d062c72afc8cb5ab8778d4e51622c4f78d654df96a8d0
4
+ data.tar.gz: cd34eb5c7fa9f3e8cca5f8d608fec04faeedece9549b2e24702b5cb1aabde7af
5
5
  SHA512:
6
- metadata.gz: ef6e10ecb5dcc3df7e5fa8f7097d043024459ae7cc62a354cd7b6ca1038126c57f69e38f832c52c1853dcc360009efae22dda9bbef73fb2bc028e85bc17f3831
7
- data.tar.gz: 7183d127ad96ce64a20d46bf36706dafb0f90d47f4d3460037d5fab2130fdac19bf271666e420ea03c61b5117539351fef874f1fd7e58640b6b373994e7e1f93
6
+ metadata.gz: 81352f6b2797fb4c0bb1a59200a5b80e2fdea7a8550a367afeed1feeec3445479be33d9bb5e3866e5181a87860d31a92854558c35436e37cd1d79eb3fd95b989
7
+ data.tar.gz: 4a6ccfe6684c736c7d64b54be544bba1183bb5ce728975b6857f47e9ca0e7378ca9c9ab13039b708d102cd3584847f3b3f9904a3142f05804040f0d2b66726f8
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -2,7 +2,9 @@
2
2
  :toclevels: 5
3
3
  :figure-caption!:
4
4
 
5
+ :alfred_link: link:https://www.alfredapp.com[Alfred]
5
6
  :bash_link: link:https://www.gnu.org/software/bash[Bash]
7
+ :ruby_link: link:https://www.ruby-lang.org[Ruby]
6
8
  :ruby_version_managers_link: link:https://alchemists.io/articles/ruby_version_managers[Ruby Version Manager]
7
9
 
8
10
  = Pennyworth
@@ -28,9 +30,9 @@ video::https://alchemists.io/videos/projects/pennyworth/demo.mp4[poster=https://
28
30
 
29
31
  . link:https://www.apple.com/macos[macOS]
30
32
  . {bash_link}
31
- . link:https://www.alfredapp.com[Alfred]
33
+ . {alfred_link}
32
34
  . link:https://www.alfredapp.com/purchase[Alfred Powerpack]
33
- . link:https://www.ruby-lang.org[Ruby]
35
+ . {ruby_link}
34
36
 
35
37
  While using a {ruby_version_managers_link} is not a hard requirement, it is strongly encouraged since a version manager will give you the freedom to toggle between different Ruby versions since this gem has strict Ruby version requirements (especially in regards to using a modern version of Ruby).
36
38
 
@@ -201,15 +203,19 @@ directly].
201
203
 
202
204
  === Workflows
203
205
 
204
- Not all workflows require Pennyworth to run properly (see the _Other_ section below for details).
205
- For the workflows that _do_ require Pennyworth support, the following assumptions are made:
206
+ All workflows are split into two categories:
206
207
 
207
- 1. Your link:https://alchemists.io/projects/dotfiles[Dotfiles] are configured to use {bash_link} and load your environment appropriately. Bash is not a hard requirement, though. You can use _any shell_ you are comfortable with as long as you teach Alfred to load your development environment before running the Alfred Workflow.
208
- 2. You have the latest version of Alfred, Ruby, and Pennyworth installed.
209
- 3. You are using a {ruby_version_managers_link} which ensures Ruby is on your load path. As mentioned in the _Requirements_ section above, this is not a hard requirement so if you have the correct version of Ruby required by this gem on your path, that'll work too.
208
+ * xref:_ruby_required[Ruby Required]
209
+ * xref:_ruby_optional[Ruby Optional]
210
210
 
211
- With the above requirements in mind, the following sections document how to download and install all
212
- Pennyworth workflows that are compatible with Alfred. Should you want to tweak any of these
211
+ For workflows that _do_ require {ruby_link} and this gem, the following assumptions are made:
212
+
213
+ . Your link:https://alchemists.io/projects/dotfiles[Dotfiles] are configured to use {bash_link} and load your environment appropriately. Bash is not a hard requirement, though. You can use _any shell_ you are comfortable with as long as you teach Alfred to load your development environment before running the Alfred Workflow.
214
+ . You have the latest version of {alfred_link}, {ruby_link}, and this gem installed.
215
+ . You are using a {ruby_version_managers_link} which ensures Ruby is on your load path. As mentioned in the xref:_requirements[Requirements], this is not a hard requirement so if you have the correct version of Ruby required by this gem on your path, that'll work too.
216
+
217
+ With the above in mind, the following sections document how to download and install all
218
+ Pennyworth workflows that are compatible with {alfred_link}. Should you want to tweak any of these
213
219
  workflows, you'd only need to edit an existing workflow or build your own with these settings:
214
220
 
215
221
  image:https://alchemists.io/images/projects/pennyworth/screenshots/script_filter.png[Script Filter,width=776,height=635,role=focal_point]
@@ -224,7 +230,11 @@ to all workflows depending on what kind of item is currently selected within the
224
230
  current selection.
225
231
  * `ENTER` Will either copy selection to clipboard or launch URL in default web browser.
226
232
 
227
- ==== Alchemists
233
+ ==== Ruby Required
234
+
235
+ The following workflows require {ruby_link} -- and this gem -- to unleash all capabilities.
236
+
237
+ ===== Alchemists
228
238
 
229
239
  image:https://alchemists.io/images/projects/pennyworth/screenshots/alchemists-projects.png[Alchemists Projects,width=706,height=631,role=focal_point]
230
240
 
@@ -234,7 +244,7 @@ Provides quick access to link:https://alchemists.io[Alchemists] resources.
234
244
  double click to install.
235
245
  2. Click on _Configure Workflow_ to view documentation.
236
246
 
237
- ==== Dry RB
247
+ ===== Dry RB
238
248
 
239
249
  image:https://alchemists.io/images/projects/pennyworth/screenshots/dry.png[Dry Gems,width=706,height=631,role=focal_point]
240
250
 
@@ -244,7 +254,17 @@ Provides quick access to link:https://dry-rb.org[Dry RB] resources.
244
254
  click to install.
245
255
  2. Click on _Configure Workflow_ to view documentation.
246
256
 
247
- ==== RuboCop
257
+ ===== htmx
258
+
259
+ image:https://alchemists.io/images/projects/pennyworth/screenshots/htmx.png[htmx workflow screenshot.,width=706,height=631,role=focal_point]
260
+
261
+ Provides quick access to the link:https://htmx.org[htmx] JavaScript library.
262
+
263
+ 1. link:https://alchemists.io/public/alfred/workflows/htmx.alfredworkflow[Download] and
264
+ double click to install.
265
+ 2. Click on _Configure Workflow_ to view documentation.
266
+
267
+ ===== RuboCop
248
268
 
249
269
  image:https://alchemists.io/images/projects/pennyworth/screenshots/rubocop-projects.png[Rubocop Projects,width=706,height=632,role=focal_point]
250
270
 
@@ -254,7 +274,7 @@ Provides quick access to link:https://docs.rubocop.org/rubocop[RuboCop] resource
254
274
  double click to install.
255
275
  2. Click on _Configure Workflow_ to view documentation.
256
276
 
257
- ==== Ruby
277
+ ===== Ruby
258
278
 
259
279
  image:https://alchemists.io/images/projects/pennyworth/screenshots/ruby.png[Ruby workflow screenshot,width=706,height=631,role=focal_point]
260
280
 
@@ -264,9 +284,9 @@ Provides quick access to link:https://www.ruby-lang.org[Ruby] resources.
264
284
  double click to install.
265
285
  2. Click on _Configure Workflow_ to view documentation.
266
286
 
267
- ==== Other
287
+ ==== Ruby Optional
268
288
 
269
- The following workflows don't require this gem to use but are provided for convenience in case they are of aid to your own productivity.
289
+ The following workflows don't require {ruby_link} -- or this gem -- to use but are provided for convenience in case they can augment your own workflow further.
270
290
 
271
291
  ===== Acronyms
272
292
 
@@ -439,16 +459,6 @@ Provides quick access to the link:https://html.spec.whatwg.org/multipage[HTML] l
439
459
  double click to install.
440
460
  2. Click on _Configure Workflow_ to view documentation.
441
461
 
442
- ===== htmx
443
-
444
- image:https://alchemists.io/images/projects/pennyworth/screenshots/htmx.png[htmx workflow screenshot.,width=706,height=631,role=focal_point]
445
-
446
- Provides quick access to the link:https://htmx.org[htmx] JavaScript library.
447
-
448
- 1. link:https://alchemists.io/public/alfred/workflows/htmx.alfredworkflow[Download] and
449
- double click to install.
450
- 2. Click on _Configure Workflow_ to view documentation.
451
-
452
462
  ===== Icon
453
463
 
454
464
  image:https://alchemists.io/images/projects/pennyworth/screenshots/icon.png[Icon workflow screenshot.,width=706,height=631,role=focal_point]
@@ -34,9 +34,7 @@ module Pennyworth
34
34
  read(uri).each.with_object [] do |row, entries|
35
35
  next unless row.locate("td") in Ox::Element => item, Ox::Element => description
36
36
 
37
- label = item.locate("*/code").first || item.locate("a").first
38
-
39
- entries.append record_for(label, description, item)
37
+ entries.append record_for(item, description, uri)
40
38
  end
41
39
  end
42
40
 
@@ -52,11 +50,11 @@ module Pennyworth
52
50
 
53
51
  def parse_rows(document) = parser.parse(document).locate "*/tr"
54
52
 
55
- def record_for label, description, item
53
+ def record_for item, description, uri
56
54
  model[
57
- label: label.text,
55
+ label: (item.locate("*/code").first || item.locate("a").first).text,
58
56
  description: "#{self.class.text_for description}.",
59
- uri: item.locate("*/@href").first
57
+ uri: item.locate("*/@href").first || uri
60
58
  ]
61
59
  end
62
60
  end
data/pennyworth.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "pennyworth"
5
- spec.version = "17.4.0"
5
+ spec.version = "17.4.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/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: 17.4.0
4
+ version: 17.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2024-09-24 00:00:00.000000000 Z
38
+ date: 2024-09-25 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
332
  - !ruby/object:Gem::Version
333
333
  version: '0'
334
334
  requirements: []
335
- rubygems_version: 3.5.19
335
+ rubygems_version: 3.5.20
336
336
  signing_key:
337
337
  specification_version: 4
338
338
  summary: A command line interface for augmented Alfred workflows.
metadata.gz.sig CHANGED
Binary file