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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +10 -1
- data/lib/pennyworth/cli/actions/encodings.rb +2 -2
- data/lib/pennyworth/cli/actions/git_hub.rb +2 -6
- data/lib/pennyworth/cli/actions/http_statuses.rb +2 -2
- data/lib/pennyworth/cli/actions/ruby_gems.rb +2 -6
- data/lib/pennyworth/cli/actions/standard_errors.rb +2 -2
- data/lib/pennyworth/cli/actions/system/errors.rb +2 -2
- data/lib/pennyworth/cli/actions/system/signals.rb +2 -2
- data/lib/pennyworth/cli/actions/text.rb +2 -2
- data/lib/pennyworth/cli/shell.rb +5 -4
- data/lib/pennyworth/container.rb +1 -1
- data/pennyworth.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b134daf60efd3fcaab42d2c10f38267b4e6a62b18464df1fa22cb5d63b94bfd
|
4
|
+
data.tar.gz: 8da4f47900223e63394d840a03a7f825fc76e71cff8c611907d09277835f2a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[:
|
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
|
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[:
|
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[:
|
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
|
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[:
|
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[:
|
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
|
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[:
|
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
|
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[:
|
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
|
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[:
|
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
|
15
|
+
def call(content) = kernel.puts processor.call(content).to_json
|
16
16
|
|
17
17
|
private
|
18
18
|
|
data/lib/pennyworth/cli/shell.rb
CHANGED
@@ -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
|
53
|
-
else
|
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
|
data/lib/pennyworth/container.rb
CHANGED
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.
|
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.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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
|