pragmater 12.1.0 → 12.1.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +10 -10
- 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 +4 -4
- data.tar.gz.sig +0 -0
- metadata +30 -23
- 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: 732909ab15b2ae4bc9c017c9c21d3b1ce19d4df1fe630832f7278d94c0744d2c
|
4
|
+
data.tar.gz: e6e4ca54a8d7cf83dc60c97c9615093b9b4536b921ac728d2a34cffb591ebcd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70eae7defcec55f2de54ad952b142f45bd85d74aca7f8588d46dcfa90d8286a1397d6ed8e52f79cb9f71ac27742c6c2791ef7f810ce35497c23fccb74f670ebd
|
7
|
+
data.tar.gz: 2cf2d47d76129f20f4370b9078deab766a1619cb3a681278507ea85986191b10f21349d2ad02e7a2791cfca648b82c24be8a2e87e69fe173085f2ce3965d2020
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -77,7 +77,7 @@ directory.
|
|
77
77
|
|
78
78
|
This gem can be configured via a global configuration: `$HOME/.config/pragmater/configuration.yml`
|
79
79
|
|
80
|
-
It can also be configured via link:https://
|
80
|
+
It can also be configured via link:https://alchemists.io/projects/xdg[XDG] environment
|
81
81
|
variables.
|
82
82
|
|
83
83
|
The default configuration is as follows:
|
@@ -276,22 +276,22 @@ To test, run:
|
|
276
276
|
|
277
277
|
[source,bash]
|
278
278
|
----
|
279
|
-
|
279
|
+
bin/rake
|
280
280
|
----
|
281
281
|
|
282
|
-
== link:https://
|
282
|
+
== link:https://alchemists.io/policies/license[License]
|
283
283
|
|
284
|
-
== link:https://
|
284
|
+
== link:https://alchemists.io/policies/security[Security]
|
285
285
|
|
286
|
-
== link:https://
|
286
|
+
== link:https://alchemists.io/policies/code_of_conduct[Code of Conduct]
|
287
287
|
|
288
|
-
== link:https://
|
288
|
+
== link:https://alchemists.io/policies/contributions[Contributions]
|
289
289
|
|
290
|
-
== link:https://
|
290
|
+
== link:https://alchemists.io/projects/pragmater/versions[Versions]
|
291
291
|
|
292
|
-
== link:https://
|
292
|
+
== link:https://alchemists.io/community[Community]
|
293
293
|
|
294
294
|
== Credits
|
295
295
|
|
296
|
-
* Built with link:https://
|
297
|
-
* Engineered by link:https://
|
296
|
+
* Built with link:https://alchemists.io/projects/gemsmith[Gemsmith].
|
297
|
+
* Engineered by link:https://alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
|
@@ -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
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "pragmater"
|
5
|
-
spec.version = "12.1.
|
5
|
+
spec.version = "12.1.2"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
|
-
spec.homepage = "https://
|
8
|
+
spec.homepage = "https://alchemists.io/projects/pragmater"
|
9
9
|
spec.summary = "A command line interface for managing/formatting source file pragma comments."
|
10
10
|
spec.license = "Hippocratic-2.1"
|
11
11
|
|
12
12
|
spec.metadata = {
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/pragmater/issues",
|
14
|
-
"changelog_uri" => "https://
|
15
|
-
"documentation_uri" => "https://
|
14
|
+
"changelog_uri" => "https://alchemists.io/projects/pragmater/versions",
|
15
|
+
"documentation_uri" => "https://alchemists.io/projects/pragmater",
|
16
16
|
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
17
17
|
"label" => "Pragmater",
|
18
18
|
"rubygems_mfa_required" => "true",
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -10,25 +10,32 @@ bindir: exe
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
13
|
+
MIIEeDCCAuCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
+
aW8wHhcNMjMwMzIyMTYxNDQxWhcNMjUwMzIxMTYxNDQxWjBBMQ8wDQYDVQQDDAZi
|
16
|
+
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
+
GRYCaW8wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCro8tj5/E1Hg88
|
18
|
+
f4qfiwP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QGgSBfGp/cTwMU
|
33
|
+
rDKJRcusZ12lNBeDfgqACz/BBJF8FLodgk6rGMRZz7+ZmjjHEmpG5bQpR6Q2BuWL
|
34
|
+
XMtYk/QzaWuhiR7pWjiF8jbdd7RO6or0ohq7iFkokz/5xrtQ/vPzU2RQ3Qc6YaKw
|
35
|
+
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
|
+
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
30
37
|
-----END CERTIFICATE-----
|
31
|
-
date: 2023-
|
38
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
32
39
|
dependencies:
|
33
40
|
- !ruby/object:Gem::Dependency
|
34
41
|
name: cogger
|
@@ -180,13 +187,13 @@ files:
|
|
180
187
|
- lib/pragmater/processors/remover.rb
|
181
188
|
- lib/pragmater/runner.rb
|
182
189
|
- pragmater.gemspec
|
183
|
-
homepage: https://
|
190
|
+
homepage: https://alchemists.io/projects/pragmater
|
184
191
|
licenses:
|
185
192
|
- Hippocratic-2.1
|
186
193
|
metadata:
|
187
194
|
bug_tracker_uri: https://github.com/bkuhlmann/pragmater/issues
|
188
|
-
changelog_uri: https://
|
189
|
-
documentation_uri: https://
|
195
|
+
changelog_uri: https://alchemists.io/projects/pragmater/versions
|
196
|
+
documentation_uri: https://alchemists.io/projects/pragmater
|
190
197
|
funding_uri: https://github.com/sponsors/bkuhlmann
|
191
198
|
label: Pragmater
|
192
199
|
rubygems_mfa_required: 'true'
|
@@ -206,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
213
|
- !ruby/object:Gem::Version
|
207
214
|
version: '0'
|
208
215
|
requirements: []
|
209
|
-
rubygems_version: 3.4.
|
216
|
+
rubygems_version: 3.4.9
|
210
217
|
signing_key:
|
211
218
|
specification_version: 4
|
212
219
|
summary: A command line interface for managing/formatting source file pragma comments.
|
metadata.gz.sig
CHANGED
Binary file
|