pennyworth 12.0.2 → 12.1.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: 6fd88cbdb95d2b5fc10af2cf5fdb1c242e10ba700e0817f1e4d413e6f2aca7a5
4
- data.tar.gz: 43b90ea5a31fced6acff2c2ac5fba9f5f226d303fc2e2d92a683cc2577e23a24
3
+ metadata.gz: e8c7fefef8785a6a07a95413077109920e78688ee568e0c3f7d5958fbd1c7967
4
+ data.tar.gz: 24efa76273415f66f1b1ee22bc30ac2450f6d4ed6a1f7ecf5037e10ab1cb2e70
5
5
  SHA512:
6
- metadata.gz: a1153ca63dc893776982b7a3874b498d8879424025a458cde6bf97971d4e9a1ff3657e905009691768f1e250f636a299092c318a0c88221795570ce720ff0df7
7
- data.tar.gz: 4c832cc8d84908c6b11d7bb3fabe7c27cf2f86f56a6e159f60b16fe33848dcc2927a38a1a4e873908050f53ae656735518f21a6a7493b205deb77b1453be7eb8
6
+ metadata.gz: c8160a0abcba2ac04f8e920305d5b8943098918c9086f6a7b5eb0e899276a69ba497fa4acebd948743f15a5b83b10bbd69b9ed1db9803b903ec302f397190b9a
7
+ data.tar.gz: f5d0fa2930afb61b293ce592d60db87ac9dd21742e6bfcef2e3af67b29a0299d01e29fe12067c7a9a8d2ee83e0133fe441cd89d7361c23e2d397dc780d54511c
checksums.yaml.gz.sig CHANGED
Binary file
data/exe/pennyworth CHANGED
@@ -3,5 +3,4 @@
3
3
 
4
4
  require "pennyworth"
5
5
 
6
- Process.setproctitle Pennyworth::Identity::VERSION_LABEL
7
6
  Pennyworth::CLI::Shell.new.call ARGV
@@ -12,13 +12,16 @@ module Pennyworth
12
12
  class Core
13
13
  def self.call(...) = new(...).call
14
14
 
15
- def initialize configuration = Configuration::Loader.call, client: Parser::CLIENT
15
+ def initialize configuration = Configuration::Loader.call,
16
+ client: Parser::CLIENT,
17
+ container: Container
16
18
  @configuration = configuration
17
19
  @client = client
20
+ @container = container
18
21
  end
19
22
 
20
23
  def call arguments = []
21
- client.banner = "#{Identity::LABEL} - #{Identity::SUMMARY}"
24
+ client.banner = "Pennyworth - #{specification.summary}"
22
25
  client.separator "\nUSAGE:\n"
23
26
  collate
24
27
  client.parse arguments
@@ -27,7 +30,7 @@ module Pennyworth
27
30
 
28
31
  private
29
32
 
30
- attr_reader :configuration, :client
33
+ attr_reader :configuration, :client, :container
31
34
 
32
35
  def collate = private_methods.sort.grep(/add_/).each { |method| __send__ method }
33
36
 
@@ -95,6 +98,8 @@ module Pennyworth
95
98
  configuration.action_help = true
96
99
  end
97
100
  end
101
+
102
+ def specification = container[__method__]
98
103
  end
99
104
  end
100
105
  end
@@ -43,7 +43,7 @@ module Pennyworth
43
43
  in action_system_signals: true then system_signals
44
44
  in action_system_errors: true then system_errors
45
45
  in action_text: String => content then text content
46
- in action_version: true then logger.info { Identity::VERSION_LABEL }
46
+ in action_version: true then logger.info { "Pennyworth #{specification.version}" }
47
47
  else usage
48
48
  end
49
49
  end
@@ -75,6 +75,8 @@ module Pennyworth
75
75
 
76
76
  def usage = logger.unknown { parser.to_s }
77
77
 
78
+ def specification = container[__method__]
79
+
78
80
  def logger = container[__method__]
79
81
  end
80
82
  end
@@ -14,7 +14,7 @@ module Pennyworth
14
14
  using Refinements::Structs
15
15
 
16
16
  DEFAULTS = YAML.load_file(Pathname(__dir__).join("defaults.yml")).freeze
17
- CLIENT = Runcom::Config.new "#{Identity::NAME}/configuration.yml", defaults: DEFAULTS
17
+ CLIENT = Runcom::Config.new "pennyworth/configuration.yml", defaults: DEFAULTS
18
18
 
19
19
  def self.call = new.call
20
20
 
@@ -10,7 +10,10 @@ module Pennyworth
10
10
  module Container
11
11
  extend Dry::Container::Mixin
12
12
 
13
+ SPEC_PATH = "#{__dir__}/../../pennyworth.gemspec".freeze
14
+
13
15
  register(:configuration) { Configuration::Loader.call }
16
+ register(:specification) { Gem::Specification.load SPEC_PATH }
14
17
  register(:environment) { ENV }
15
18
  register(:kernel) { Kernel }
16
19
  register(:http) { HTTP }
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "pennyworth"
5
+ spec.version = "12.1.0"
6
+ spec.platform = Gem::Platform::RUBY
7
+ spec.authors = ["Brooke Kuhlmann"]
8
+ spec.email = ["brooke@alchemists.io"]
9
+ spec.homepage = "https://www.alchemists.io/projects/pennyworth"
10
+ spec.summary = "A command line interface that augments Alfred workflows."
11
+ spec.license = "Hippocratic-3.0"
12
+
13
+ spec.metadata = {
14
+ "bug_tracker_uri" => "https://github.com/bkuhlmann/pennyworth/issues",
15
+ "changelog_uri" => "https://www.alchemists.io/projects/pennyworth/versions",
16
+ "documentation_uri" => "https://www.alchemists.io/projects/pennyworth",
17
+ "label" => "Pennyworth",
18
+ "rubygems_mfa_required" => "true",
19
+ "source_code_uri" => "https://github.com/bkuhlmann/pennyworth"
20
+ }
21
+
22
+ spec.signing_key = Gem.default_key_path
23
+ spec.cert_chain = [Gem.default_cert_path]
24
+
25
+ spec.required_ruby_version = "~> 3.1"
26
+ spec.add_dependency "dry-container", "~> 0.8"
27
+ spec.add_dependency "http", "~> 5.0"
28
+ spec.add_dependency "pastel", "~> 0.8"
29
+ spec.add_dependency "rack", "~> 2.2"
30
+ spec.add_dependency "refinements", "~> 9.1"
31
+ spec.add_dependency "runcom", "~> 8.0"
32
+ spec.add_dependency "zeitwerk", "~> 2.5"
33
+
34
+ spec.bindir = "exe"
35
+ spec.executables << "pennyworth"
36
+ spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
37
+ spec.files = Dir["*.gemspec", "lib/**/*"]
38
+ spec.require_paths = ["lib"]
39
+ end
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: 12.0.2
4
+ version: 12.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
29
29
  W2A=
30
30
  -----END CERTIFICATE-----
31
- date: 2022-01-09 00:00:00.000000000 Z
31
+ date: 2022-01-23 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: dry-container
@@ -92,14 +92,14 @@ dependencies:
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '9.0'
95
+ version: '9.1'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '9.0'
102
+ version: '9.1'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: runcom
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -159,7 +159,6 @@ files:
159
159
  - lib/pennyworth/configuration/defaults.yml
160
160
  - lib/pennyworth/configuration/loader.rb
161
161
  - lib/pennyworth/container.rb
162
- - lib/pennyworth/identity.rb
163
162
  - lib/pennyworth/inflector.rb
164
163
  - lib/pennyworth/integrations/git_hub/client.rb
165
164
  - lib/pennyworth/integrations/git_hub/response.rb
@@ -189,6 +188,7 @@ files:
189
188
  - lib/pennyworth/serializers/system/error.rb
190
189
  - lib/pennyworth/serializers/system/signal.rb
191
190
  - lib/pennyworth/serializers/text.rb
191
+ - pennyworth.gemspec
192
192
  homepage: https://www.alchemists.io/projects/pennyworth
193
193
  licenses:
194
194
  - Hippocratic-3.0
@@ -196,6 +196,7 @@ metadata:
196
196
  bug_tracker_uri: https://github.com/bkuhlmann/pennyworth/issues
197
197
  changelog_uri: https://www.alchemists.io/projects/pennyworth/versions
198
198
  documentation_uri: https://www.alchemists.io/projects/pennyworth
199
+ label: Pennyworth
199
200
  rubygems_mfa_required: 'true'
200
201
  source_code_uri: https://github.com/bkuhlmann/pennyworth
201
202
  post_install_message:
@@ -213,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
214
  - !ruby/object:Gem::Version
214
215
  version: '0'
215
216
  requirements: []
216
- rubygems_version: 3.3.4
217
+ rubygems_version: 3.3.5
217
218
  signing_key:
218
219
  specification_version: 4
219
220
  summary: A command line interface that augments Alfred workflows.
metadata.gz.sig CHANGED
Binary file
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Pennyworth
4
- # Gem identity information.
5
- module Identity
6
- NAME = "pennyworth"
7
- LABEL = "Pennyworth"
8
- SUMMARY = "A command line interface that augments Alfred workflows."
9
- VERSION = "12.0.2"
10
- VERSION_LABEL = "#{LABEL} #{VERSION}".freeze
11
- end
12
- end