pennyworth 14.2.0 → 14.3.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: a644cc7c2feb7d876027c06efcf5d1d10a27056272eed328d7ed2f7310ac331e
4
- data.tar.gz: d16b658a52f4c9d3fe87803978214d57139fd83d1ba7cc9163be4cdf9057c3cf
3
+ metadata.gz: 7b134daf60efd3fcaab42d2c10f38267b4e6a62b18464df1fa22cb5d63b94bfd
4
+ data.tar.gz: 8da4f47900223e63394d840a03a7f825fc76e71cff8c611907d09277835f2a26
5
5
  SHA512:
6
- metadata.gz: a7cd0f05cea18d2ac72dbfb838abfb02dac2db41cb199ba263b9554305ae51b23319463596a8398953ca62ad20736501ad3e0bb8f61c340a661bcafe7e792cf3
7
- data.tar.gz: dfe155de1442c3097d9254054b1c3fba0260dcdb63b5b619d16d9ef7f7a2e089b6bceeab6ae34d3afa8f9eca9c2f963afcb66d1930a5b5efaa0461e7cfce89af
6
+ metadata.gz: 77de0d855c33857bce881eb70bc136fb4f6767c674fb9dc5fb2a562ad8880bc43d373872a7a7cc1bb3689ce4dcaf0eeca48b01df795e04d45801104b55f6ca63
7
+ data.tar.gz: 69096aeae87c4e069524414c39715aa7cdf12f541d0cdde5ab7c93f8d2dd94bcf781672862892d825381a8b62a302bab88d43c36486668dce98b6609f877aaf0
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -38,7 +38,16 @@ All of the workflows, scripts, examples for this gem use {bash_link} syntax. Tha
38
38
 
39
39
  == Setup
40
40
 
41
- To install, run:
41
+ To install _with_ security, run:
42
+
43
+ [source,bash]
44
+ ----
45
+ # 💡 Skip this line if you already have the public certificate installed.
46
+ gem cert --add <(curl --compressed --location https://alchemists.io/gems.pem)
47
+ gem install pennyworth --trust-policy HighSecurity
48
+ ----
49
+
50
+ To install _without_ security, run:
42
51
 
43
52
  [source,bash]
44
53
  ----
@@ -5,14 +5,14 @@ module Pennyworth
5
5
  module Actions
6
6
  # Handles the encodings action.
7
7
  class Encodings
8
- include Pennyworth::Import[:logger]
8
+ include Pennyworth::Import[:kernel]
9
9
 
10
10
  def initialize(processor: Processor.for_encodings, **)
11
11
  super(**)
12
12
  @processor = processor
13
13
  end
14
14
 
15
- def call = processor.call.to_json.then { |json| logger.info { json } }
15
+ def call = kernel.puts processor.call.to_json
16
16
 
17
17
  private
18
18
 
@@ -5,18 +5,14 @@ module Pennyworth
5
5
  module Actions
6
6
  # Handles the GitHub action.
7
7
  class GitHub
8
- include Pennyworth::Import[:logger]
8
+ include Pennyworth::Import[:kernel]
9
9
 
10
10
  def initialize(processor: Processor.for_projects, **)
11
11
  super(**)
12
12
  @processor = processor
13
13
  end
14
14
 
15
- def call endpoint
16
- processor.call(endpoint)
17
- .to_json
18
- .then { |json| logger.info { json } }
19
- end
15
+ def call(endpoint) = kernel.puts processor.call(endpoint).to_json
20
16
 
21
17
  private
22
18
 
@@ -5,14 +5,14 @@ module Pennyworth
5
5
  module Actions
6
6
  # Handles the HTTP statuses action.
7
7
  class HTTPStatuses
8
- include Pennyworth::Import[:logger]
8
+ include Pennyworth::Import[:kernel]
9
9
 
10
10
  def initialize(processor: Processor.for_http_statuses, **)
11
11
  super(**)
12
12
  @processor = processor
13
13
  end
14
14
 
15
- def call = processor.call.to_json.then { |json| logger.info { json } }
15
+ def call = kernel.puts processor.call.to_json
16
16
 
17
17
  private
18
18
 
@@ -5,18 +5,14 @@ module Pennyworth
5
5
  module Actions
6
6
  # Handles the RubyGems action.
7
7
  class RubyGems
8
- include Pennyworth::Import[:logger]
8
+ include Pennyworth::Import[:kernel]
9
9
 
10
10
  def initialize(processor: Processor.for_gems, **)
11
11
  super(**)
12
12
  @processor = processor
13
13
  end
14
14
 
15
- def call endpoint
16
- processor.call(endpoint)
17
- .to_json
18
- .then { |json| logger.info { json } }
19
- end
15
+ def call(endpoint) = kernel.puts processor.call(endpoint).to_json
20
16
 
21
17
  private
22
18
 
@@ -5,14 +5,14 @@ module Pennyworth
5
5
  module Actions
6
6
  # Handles the system errors action.
7
7
  class StandardErrors
8
- include Pennyworth::Import[:logger]
8
+ include Pennyworth::Import[:kernel]
9
9
 
10
10
  def initialize(processor: Processor.for_standard_errors, **)
11
11
  super(**)
12
12
  @processor = processor
13
13
  end
14
14
 
15
- def call = processor.call.to_json.then { |json| logger.info { json } }
15
+ def call = kernel.puts processor.call.to_json
16
16
 
17
17
  private
18
18
 
@@ -6,14 +6,14 @@ module Pennyworth
6
6
  module System
7
7
  # Handles the system errors action.
8
8
  class Errors
9
- include Pennyworth::Import[:logger]
9
+ include Pennyworth::Import[:kernel]
10
10
 
11
11
  def initialize(processor: Processor.for_system_errors, **)
12
12
  super(**)
13
13
  @processor = processor
14
14
  end
15
15
 
16
- def call = processor.call.to_json.then { |json| logger.info { json } }
16
+ def call = kernel.puts processor.call.to_json
17
17
 
18
18
  private
19
19
 
@@ -6,14 +6,14 @@ module Pennyworth
6
6
  module System
7
7
  # Handles the signal action.
8
8
  class Signals
9
- include Pennyworth::Import[:logger]
9
+ include Pennyworth::Import[:kernel]
10
10
 
11
11
  def initialize(processor: Processor.for_system_signals, **)
12
12
  super(**)
13
13
  @processor = processor
14
14
  end
15
15
 
16
- def call = processor.call.to_json.then { |json| logger.info { json } }
16
+ def call = kernel.puts processor.call.to_json
17
17
 
18
18
  private
19
19
 
@@ -5,14 +5,14 @@ module Pennyworth
5
5
  module Actions
6
6
  # Handles the text action.
7
7
  class Text
8
- include Pennyworth::Import[:logger]
8
+ include Pennyworth::Import[:kernel]
9
9
 
10
10
  def initialize(processor: Processor.for_text, **)
11
11
  super(**)
12
12
  @processor = processor
13
13
  end
14
14
 
15
- def call(content) = processor.call(content).to_json.then { |json| logger.info { json } }
15
+ def call(content) = kernel.puts processor.call(content).to_json
16
16
 
17
17
  private
18
18
 
@@ -11,13 +11,14 @@ module Pennyworth
11
11
  :encodings,
12
12
  :git_hub,
13
13
  :http_statuses,
14
+ :kernel,
15
+ :logger,
14
16
  :ruby_gems,
17
+ :specification,
15
18
  :standard_errors,
16
19
  :system_errors,
17
20
  :system_signals,
18
21
  :text,
19
- :specification,
20
- :logger
21
22
  ]
22
23
 
23
24
  def initialize(parser: Parser.new, **)
@@ -49,8 +50,8 @@ module Pennyworth
49
50
  in action_system_errors: true then system_errors.call
50
51
  in action_system_signals: true then system_signals.call
51
52
  in action_text: String => content then text.call content
52
- in action_version: true then logger.info { specification.labeled_version }
53
- else logger.any { parser.to_s }
53
+ in action_version: true then kernel.puts specification.labeled_version
54
+ else kernel.puts parser.to_s
54
55
  end
55
56
  end
56
57
  end
@@ -15,6 +15,6 @@ module Pennyworth
15
15
  register(:environment) { ENV }
16
16
  register(:kernel) { Kernel }
17
17
  register(:http) { HTTP }
18
- register(:logger) { Cogger::Client.new }
18
+ register(:logger) { Cogger.new formatter: :emoji }
19
19
  end
20
20
  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 = "14.2.0"
5
+ spec.version = "14.3.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/pennyworth"
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.cert_chain = [Gem.default_cert_path]
24
24
 
25
25
  spec.required_ruby_version = "~> 3.2"
26
- spec.add_dependency "cogger", "~> 0.5"
26
+ spec.add_dependency "cogger", "~> 0.8"
27
27
  spec.add_dependency "core", "~> 0.1"
28
28
  spec.add_dependency "dry-container", "~> 0.11"
29
29
  spec.add_dependency "ghub", "~> 0.3"
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: 14.2.0
4
+ version: 14.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,25 +10,32 @@ bindir: exe
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIC/jCCAeagAwIBAgIBBTANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMjAzMTkxNzI0MzJaFw0yMzAzMTkx
15
- NzI0MzJaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
16
- IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
17
- xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
18
- brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
19
- 9z0A8KcGhz67SdcoQiD7qiCjL/2NTeWHOzkpPrdGlt088+VerEEGf5I13QCvaftP
20
- D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
21
- 3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
22
- AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU0nzow9vc
23
- 2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAJbbNyWzFjqUNVPPCUCo
24
- IMrhDa9xf1xkORXNYYbmXgoxRy/KyNbUr+jgEEoWJAm9GXlcqxxWAUI6pK/i4/Qi
25
- X6rPFEFmeObDOHNvuqy8Hd6AYsu+kP94U/KJhe9wnWGMmGoNKJNU3EkW3jM/osSl
26
- +JRxiH5t4WtnDiVyoYl5nYC02rYdjJkG6VMxDymXTqn7u6HhYgZkGujq1UPar8x2
27
- hNIWJblDKKSu7hA2d6+kUthuYo13o1s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mv0tYMZnItuPycSM
27
+ F5wykJEVMB8GA1UdEQQYMBaBFGJyb29rZUBhbGNoZW1pc3RzLmlvMB8GA1UdEgQY
28
+ MBaBFGJyb29rZUBhbGNoZW1pc3RzLmlvMA0GCSqGSIb3DQEBCwUAA4IBgQAX+EGY
29
+ 9RLYGxF1VLZz+G1ACQc4uyrCB6kXwI06kzUa5dF9tPXqTX9ffnz3/W8ck2IQhKzu
30
+ MKO2FVijzbDWTsZeZGglS4E+4Jxpau1lU9HhOIcKolv6LeC6UdALTFudY+GLb8Xw
31
+ REXgaJkjzzhkUSILmEnRwEbY08dVSl7ZAaxVI679vfI2yapLlIwpbBgmQTiTvPr3
32
+ qyyLUno9flYEOv9fmGHunSrM+gE0/0niGTXa5GgXBXYGS2he4LQGgSBfGp/cTwMU
33
+ rDKJRcusZ12lNBeDfgqACz/BBJF8FLodgk6rGMRZz7+ZmjjHEmpG5bQpR6Q2BuWL
34
+ XMtYk/QzaWuhiR7pWjiF8jbdd7RO6or0ohq7iFkokz/5xrtQ/vPzU2RQ3Qc6YaKw
35
+ 3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
+ gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
30
37
  -----END CERTIFICATE-----
31
- date: 2023-03-01 00:00:00.000000000 Z
38
+ date: 2023-04-13 00:00:00.000000000 Z
32
39
  dependencies:
33
40
  - !ruby/object:Gem::Dependency
34
41
  name: cogger
@@ -36,14 +43,14 @@ dependencies:
36
43
  requirements:
37
44
  - - "~>"
38
45
  - !ruby/object:Gem::Version
39
- version: '0.5'
46
+ version: '0.8'
40
47
  type: :runtime
41
48
  prerelease: false
42
49
  version_requirements: !ruby/object:Gem::Requirement
43
50
  requirements:
44
51
  - - "~>"
45
52
  - !ruby/object:Gem::Version
46
- version: '0.5'
53
+ version: '0.8'
47
54
  - !ruby/object:Gem::Dependency
48
55
  name: core
49
56
  requirement: !ruby/object:Gem::Requirement
@@ -278,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
278
285
  - !ruby/object:Gem::Version
279
286
  version: '0'
280
287
  requirements: []
281
- rubygems_version: 3.4.7
288
+ rubygems_version: 3.4.12
282
289
  signing_key:
283
290
  specification_version: 4
284
291
  summary: A command line interface that augments Alfred workflows.
metadata.gz.sig CHANGED
Binary file