pennyworth 13.4.0 → 13.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a70ea5cd5aa4c287e81bf9e6a2f63840d7fd094131c608f70d20320b4059922
4
- data.tar.gz: 5e5a733c3c7fe096fa5e65506a66d23f2b905272400f4fd2a8251ad8717d2011
3
+ metadata.gz: 64bd73512d764d2120bf1305eb76f39af603dfe17a080eb71cb86b04ea658486
4
+ data.tar.gz: 484adaa563add99da0406490c4439fabc8c109339704d2caa857fe0f67448428
5
5
  SHA512:
6
- metadata.gz: 1530b4fa82f7f53f2660a8a181217170ee2872fc4ff07fff95afd6bb690c8ca35fc64a8560667678b4d8c8594a738ea3fbf97ee56202d8b1fdcf33f34b6ff6a3
7
- data.tar.gz: fe69aaa256d7b9c435f0552869c66c82b3ef92227c50ef474b5c3ab46c91a7d041339eccdd127417a6fc178b8fe1a9f32e83d2dab182fb0c417dd6fcd0b16eb5
6
+ metadata.gz: e8917108db9c4d24c020fb8d1ea0ebf9f54b5e034d9bc8d1233cab44dfddb7d82d5db38c9a331c0c8b1e494cef8d7eba8ae7a2c234e363ddf5522d5cd4143795
7
+ data.tar.gz: b5046a86c01d01cda85b29a3a3f4cde8831f78ac7711c788a21289407efe8cbb75900c7a8aa8ca3eb8f236eb9847d42e1e0c05f751967b0e6a948fc574299a9a
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -181,7 +181,7 @@ The default configuration is as follows:
181
181
  :user:
182
182
  :http:
183
183
  :statuses:
184
- :url: "https://httpstatuses.com"
184
+ :url: "https://developer.mozilla.org/docs/Web/HTTP/Status"
185
185
  :ruby_gems:
186
186
  :api_url: "https://rubygems.org/api/v1"
187
187
  :owner:
@@ -339,6 +339,16 @@ Provides quick access to link:https://bundler.io[Bundler] related resources.
339
339
  double click to install.
340
340
  2. Click on _Configure Workflow_ to configure the workflow and view documentation.
341
341
 
342
+ ===== Circle CI
343
+
344
+ image:https://www.alchemists.io/images/projects/pennyworth/screenshots/circle_ci.png[Circle CI workflow screenshot.,width=706,height=416,role=focal_point]
345
+
346
+ Provides quick access to link:https://circleci.com/[Circle CI] resources.
347
+
348
+ 1. link:https://www.alchemists.io/public/alfred/workflows/circle_ci.alfredworkflow[Download] and
349
+ double click to install.
350
+ 2. Click on _Configure Workflow_ to configure the workflow and view documentation.
351
+
342
352
  ===== Crystal
343
353
 
344
354
  image:https://www.alchemists.io/images/projects/pennyworth/screenshots/crystal.png[Crystal workflow screenshot.,width=706,height=632,role=focal_point]
@@ -44,7 +44,7 @@
44
44
  :user:
45
45
  :http:
46
46
  :statuses:
47
- :url: "https://httpstatuses.com"
47
+ :url: "https://developer.mozilla.org/docs/Web/HTTP/Status"
48
48
  :ruby_gems:
49
49
  :api_url: "https://rubygems.org/api/v1"
50
50
  :owner:
@@ -6,6 +6,7 @@ module Pennyworth
6
6
  module Presenters
7
7
  # Renders RubyGems records into a compatible format for use in Alfred script filters.
8
8
  class Gem
9
+ using Refinements::Arrays
9
10
  using Refinements::Strings
10
11
 
11
12
  def initialize record, inflector: Inflector.new
@@ -15,18 +16,13 @@ module Pennyworth
15
16
 
16
17
  def id = record.fetch(:name)
17
18
 
18
- def label = inflector.call(id.titleize)
19
+ def label = "#{inflector.call id.titleize} #{version}"
19
20
 
20
- def subtitle
21
- "Version: #{version}. " \
22
- "Updated: #{updated_at[..9]}. " \
23
- "Licenses: #{licenses}. " \
24
- "Downloads: #{downloads}."
25
- end
21
+ def subtitle = "Downloads: #{downloads}. Licenses: #{licenses}. Updated: #{updated_at[..9]}."
26
22
 
27
23
  def version = record.fetch(__method__)
28
24
 
29
- def licenses = Array(record.fetch(__method__)).join(", ")
25
+ def licenses = Array(record.fetch(__method__)).to_sentence
30
26
 
31
27
  def downloads = record.fetch(__method__)
32
28
 
@@ -4,6 +4,8 @@ module Pennyworth
4
4
  module Serializers
5
5
  # Serializes a encoding into a compatible format for parsing within Alfred script filters.
6
6
  class Encoding
7
+ using Refinements::Arrays
8
+
7
9
  def initialize presenter
8
10
  @presenter = presenter
9
11
  end
@@ -12,10 +14,10 @@ module Pennyworth
12
14
  {
13
15
  uid: presenter.id,
14
16
  title: label,
15
- subtitle: %(Aliases: #{aliases}.),
17
+ subtitle: %(Aliases: #{aliases.to_sentence}.),
16
18
  arg: label,
17
19
  mods: {
18
- alt: {subtitle: "Copy aliases.", arg: aliases}
20
+ alt: {subtitle: "Copy aliases.", arg: aliases.join(", ")}
19
21
  },
20
22
  text: {copy: label, largetype: label}
21
23
  }
@@ -27,7 +29,7 @@ module Pennyworth
27
29
 
28
30
  def label = presenter.label
29
31
 
30
- def aliases = presenter.aliases.join(", ")
32
+ def aliases = presenter.aliases
31
33
  end
32
34
  end
33
35
  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 = "13.4.0"
5
+ spec.version = "13.5.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.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: 13.4.0
4
+ version: 13.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
29
  RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-07-17 00:00:00.000000000 Z
31
+ date: 2022-08-01 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: auto_injector
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.3.18
254
+ rubygems_version: 3.3.19
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: A command line interface that augments Alfred workflows.
metadata.gz.sig CHANGED
Binary file