pennyworth 11.2.2 → 12.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/LICENSE.adoc +207 -155
  4. data/README.adoc +28 -45
  5. data/exe/pennyworth +0 -1
  6. data/lib/pennyworth/cli/actions/config.rb +1 -1
  7. data/lib/pennyworth/cli/actions/encodings.rb +1 -1
  8. data/lib/pennyworth/cli/actions/git_hub.rb +1 -1
  9. data/lib/pennyworth/cli/actions/http_statuses.rb +1 -1
  10. data/lib/pennyworth/cli/actions/ruby_gems.rb +1 -1
  11. data/lib/pennyworth/cli/actions/system/errors.rb +1 -1
  12. data/lib/pennyworth/cli/actions/system/signals.rb +1 -1
  13. data/lib/pennyworth/cli/actions/text.rb +1 -1
  14. data/lib/pennyworth/cli/parser.rb +33 -0
  15. data/lib/pennyworth/cli/parsers/core.rb +11 -5
  16. data/lib/pennyworth/cli/parsers/git_hub.rb +3 -2
  17. data/lib/pennyworth/cli/parsers/ruby_gems.rb +3 -2
  18. data/lib/pennyworth/cli/shell.rb +5 -3
  19. data/lib/pennyworth/configuration/content.rb +33 -0
  20. data/lib/pennyworth/{cli/configuration → configuration}/defaults.yml +0 -0
  21. data/lib/pennyworth/configuration/loader.rb +35 -0
  22. data/lib/pennyworth/container.rb +4 -1
  23. data/lib/pennyworth/inflector.rb +1 -1
  24. data/lib/pennyworth/integrations/git_hub/client.rb +1 -1
  25. data/lib/pennyworth/loaders/http_statuses.rb +2 -2
  26. data/lib/pennyworth/loaders/system/signals.rb +1 -1
  27. data/lib/pennyworth/presenters/gem.rb +6 -1
  28. data/lib/pennyworth/presenters/repository.rb +6 -1
  29. data/lib/pennyworth/serializers/project.rb +2 -2
  30. data/pennyworth.gemspec +39 -0
  31. data.tar.gz.sig +0 -0
  32. metadata +16 -16
  33. metadata.gz.sig +0 -0
  34. data/lib/pennyworth/cli/configuration/content.rb +0 -28
  35. data/lib/pennyworth/cli/configuration/loader.rb +0 -37
  36. data/lib/pennyworth/cli/parsers/assembler.rb +0 -32
  37. data/lib/pennyworth/cli/parsers.rb +0 -11
  38. 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
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "optparse"
4
-
5
- module Pennyworth
6
- module CLI
7
- module Parsers
8
- CLIENT = OptionParser.new nil, 40, " "
9
- end
10
- end
11
- end
@@ -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