pragmater 12.1.0 → 12.1.1
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 +1 -1
- data/lib/pragmater/cli/actions/config.rb +2 -2
- data/lib/pragmater/cli/actions/run.rb +2 -2
- data/lib/pragmater/cli/parser.rb +2 -2
- data/lib/pragmater/cli/parsers/core.rb +2 -4
- data/lib/pragmater/cli/shell.rb +4 -4
- data/lib/pragmater/runner.rb +2 -2
- data/pragmater.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 17995f32ef6db1b8bd5c02c2da9d1c9af1b0cb9d51ae0812fcd2a937613a2518
|
4
|
+
data.tar.gz: 81b887a4d5d57586288651585a48f02119b5f5044ac263181ac470bc020032a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c5f1fe0b8b00ba157c0bc4624e3f81af69ca5d6e4309aeddc975415793f3a368353305c83018383b8af0217b410dd5b043dce3938509d077a52486e0b453fb9
|
7
|
+
data.tar.gz: 4193ce3882a12d3bde0679a364a8d4d1cd2a0ad595afaae71d0cf2aa39e4979e4e87f433bd3977471c2dc694080939b3308709943c0b8c0bde04e21101fcbb2d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -7,8 +7,8 @@ module Pragmater
|
|
7
7
|
class Config
|
8
8
|
include Pragmater::Import[:kernel, :logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
super(**
|
10
|
+
def initialize(client: Configuration::Loader::CLIENT, **)
|
11
|
+
super(**)
|
12
12
|
@client = client
|
13
13
|
end
|
14
14
|
|
data/lib/pragmater/cli/parser.rb
CHANGED
@@ -12,8 +12,8 @@ module Pragmater
|
|
12
12
|
CLIENT = OptionParser.new nil, 40, " "
|
13
13
|
SECTIONS = [Parsers::Core, Parsers::Flag].freeze # Order matters.
|
14
14
|
|
15
|
-
def initialize
|
16
|
-
super(**
|
15
|
+
def initialize(sections: SECTIONS, client: CLIENT, **)
|
16
|
+
super(**)
|
17
17
|
@sections = sections
|
18
18
|
@client = client
|
19
19
|
@configuration_duplicate = configuration.dup
|
@@ -14,10 +14,8 @@ module Pragmater
|
|
14
14
|
|
15
15
|
def self.call(...) = new(...).call
|
16
16
|
|
17
|
-
def initialize
|
18
|
-
|
19
|
-
**dependencies
|
20
|
-
super(**dependencies)
|
17
|
+
def initialize(configuration = Container[:configuration], client: Parser::CLIENT, **)
|
18
|
+
super(**)
|
21
19
|
@configuration = configuration
|
22
20
|
@client = client
|
23
21
|
end
|
data/lib/pragmater/cli/shell.rb
CHANGED
@@ -8,13 +8,13 @@ module Pragmater
|
|
8
8
|
class Shell
|
9
9
|
include Actions::Import[:config, :run, :specification, :logger]
|
10
10
|
|
11
|
-
def initialize
|
12
|
-
super(**
|
11
|
+
def initialize(parser: Parser.new, **)
|
12
|
+
super(**)
|
13
13
|
@parser = parser
|
14
14
|
end
|
15
15
|
|
16
16
|
def call arguments = Core::EMPTY_ARRAY
|
17
|
-
|
17
|
+
act_on parser.call(arguments)
|
18
18
|
rescue OptionParser::ParseError => error
|
19
19
|
logger.error { error.message }
|
20
20
|
end
|
@@ -23,7 +23,7 @@ module Pragmater
|
|
23
23
|
|
24
24
|
attr_reader :parser
|
25
25
|
|
26
|
-
def
|
26
|
+
def act_on configuration
|
27
27
|
case configuration
|
28
28
|
in action_config: Symbol => action then config.call action
|
29
29
|
in {action_insert: true} | {action_remove: true} then run.call configuration
|
data/lib/pragmater/runner.rb
CHANGED
data/pragmater.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragmater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.1.
|
4
|
+
version: 12.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2023-
|
31
|
+
date: 2023-02-05 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cogger
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
- !ruby/object:Gem::Version
|
207
207
|
version: '0'
|
208
208
|
requirements: []
|
209
|
-
rubygems_version: 3.4.
|
209
|
+
rubygems_version: 3.4.6
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: A command line interface for managing/formatting source file pragma comments.
|
metadata.gz.sig
CHANGED
Binary file
|