pennyworth 11.2.2 → 12.1.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/LICENSE.adoc +207 -155
- data/README.adoc +28 -45
- data/exe/pennyworth +0 -1
- data/lib/pennyworth/cli/actions/config.rb +1 -1
- data/lib/pennyworth/cli/actions/encodings.rb +1 -1
- data/lib/pennyworth/cli/actions/git_hub.rb +1 -1
- data/lib/pennyworth/cli/actions/http_statuses.rb +1 -1
- data/lib/pennyworth/cli/actions/ruby_gems.rb +1 -1
- data/lib/pennyworth/cli/actions/system/errors.rb +1 -1
- data/lib/pennyworth/cli/actions/system/signals.rb +1 -1
- data/lib/pennyworth/cli/actions/text.rb +1 -1
- data/lib/pennyworth/cli/parser.rb +33 -0
- data/lib/pennyworth/cli/parsers/core.rb +11 -5
- data/lib/pennyworth/cli/parsers/git_hub.rb +3 -2
- data/lib/pennyworth/cli/parsers/ruby_gems.rb +3 -2
- data/lib/pennyworth/cli/shell.rb +5 -3
- data/lib/pennyworth/configuration/content.rb +33 -0
- data/lib/pennyworth/{cli/configuration → configuration}/defaults.yml +0 -0
- data/lib/pennyworth/configuration/loader.rb +35 -0
- data/lib/pennyworth/container.rb +4 -1
- data/lib/pennyworth/inflector.rb +1 -1
- data/lib/pennyworth/integrations/git_hub/client.rb +1 -1
- data/lib/pennyworth/loaders/http_statuses.rb +2 -2
- data/lib/pennyworth/loaders/system/signals.rb +1 -1
- data/lib/pennyworth/presenters/gem.rb +6 -1
- data/lib/pennyworth/presenters/repository.rb +6 -1
- data/lib/pennyworth/serializers/project.rb +2 -2
- data/pennyworth.gemspec +39 -0
- data.tar.gz.sig +0 -0
- metadata +16 -16
- metadata.gz.sig +0 -0
- data/lib/pennyworth/cli/configuration/content.rb +0 -28
- data/lib/pennyworth/cli/configuration/loader.rb +0 -37
- data/lib/pennyworth/cli/parsers/assembler.rb +0 -32
- data/lib/pennyworth/cli/parsers.rb +0 -11
- data/lib/pennyworth/identity.rb +0 -12
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Pennyworth
|
4
|
-
module CLI
|
5
|
-
module Parsers
|
6
|
-
SECTIONS = [Core, GitHub, RubyGems].freeze # Order is important.
|
7
|
-
|
8
|
-
# Assembles and parses all Command Line Interface (CLI) options.
|
9
|
-
class Assembler
|
10
|
-
def initialize configuration = CLI::Configuration::Loader.call,
|
11
|
-
sections: SECTIONS,
|
12
|
-
client: CLIENT
|
13
|
-
@configuration = configuration
|
14
|
-
@sections = sections
|
15
|
-
@client = client
|
16
|
-
end
|
17
|
-
|
18
|
-
def call arguments = []
|
19
|
-
sections.each { |parser| parser.call configuration, client: client }
|
20
|
-
client.parse! arguments
|
21
|
-
configuration
|
22
|
-
end
|
23
|
-
|
24
|
-
def to_s = client.to_s
|
25
|
-
|
26
|
-
private
|
27
|
-
|
28
|
-
attr_reader :configuration, :client, :sections
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
data/lib/pennyworth/identity.rb
DELETED
@@ -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 = "11.2.2"
|
10
|
-
VERSION_LABEL = "#{LABEL} #{VERSION}".freeze
|
11
|
-
end
|
12
|
-
end
|