pennyworth 14.2.1 → 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: 4ad975113036f7190110342ba57762ac8d5b8074352128e741166e6d5d2d965d
4
- data.tar.gz: 178a7dea64fc0e9c26dfdb19eb236ec71bc95c9486e9cdfdcc2b6adab87b6d88
3
+ metadata.gz: 7b134daf60efd3fcaab42d2c10f38267b4e6a62b18464df1fa22cb5d63b94bfd
4
+ data.tar.gz: 8da4f47900223e63394d840a03a7f825fc76e71cff8c611907d09277835f2a26
5
5
  SHA512:
6
- metadata.gz: bc9e845281ee478829b352c59a58861a040d5b2afc1a01932682bdf6afeb6f05ca7304872f09c6abae00e162f61eb60ffa14c549c0b96fe22bf1f2d3526afabe
7
- data.tar.gz: 2f686c128f9b3b35d1e132ea56b09b1a803543edd37c8a29fc5084e5879ad34f2f3b3186fefcdd73845b64024d7834b7f389aec26b03f425ebadd4326dfb735c
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.1"
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.1
4
+ version: 14.3.0
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: 2023-03-22 00:00:00.000000000 Z
38
+ date: 2023-04-13 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.5'
46
+ version: '0.8'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.5'
53
+ version: '0.8'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: core
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  - !ruby/object:Gem::Version
286
286
  version: '0'
287
287
  requirements: []
288
- rubygems_version: 3.4.9
288
+ rubygems_version: 3.4.12
289
289
  signing_key:
290
290
  specification_version: 4
291
291
  summary: A command line interface that augments Alfred workflows.
metadata.gz.sig CHANGED
Binary file