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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b3919c52677addf994f14d7eafa62b9df318f0499f42afc263df8096b1fb60c
4
- data.tar.gz: 500e5d4a91f46d95d833a79e8fc4d99cf659dc1cbf4d1a1ecbef1e985b842763
3
+ metadata.gz: 732909ab15b2ae4bc9c017c9c21d3b1ce19d4df1fe630832f7278d94c0744d2c
4
+ data.tar.gz: e6e4ca54a8d7cf83dc60c97c9615093b9b4536b921ac728d2a34cffb591ebcd9
5
5
  SHA512:
6
- metadata.gz: 6e7870a0deb2b68edfa9e8efb2f0db6b21d98ff1765b7cc31bf16ec79b0a4b95b5523d56d8cecf202bf44ca5c120dec904c83971ea8f1cc3c624c9297f0ad0c9
7
- data.tar.gz: '059aae2ba389d5544a45ef617cf4a897dbba98899c7361192a17ee645383e2e6df068ac5a2bd7272fb0a29d86a9f072fc0b7624afe7d5536e635c1183e7f0c21'
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://www.alchemists.io/projects/xdg[XDG] environment
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
- bundle exec rake
279
+ bin/rake
280
280
  ----
281
281
 
282
- == link:https://www.alchemists.io/policies/license[License]
282
+ == link:https://alchemists.io/policies/license[License]
283
283
 
284
- == link:https://www.alchemists.io/policies/security[Security]
284
+ == link:https://alchemists.io/policies/security[Security]
285
285
 
286
- == link:https://www.alchemists.io/policies/code_of_conduct[Code of Conduct]
286
+ == link:https://alchemists.io/policies/code_of_conduct[Code of Conduct]
287
287
 
288
- == link:https://www.alchemists.io/policies/contributions[Contributions]
288
+ == link:https://alchemists.io/policies/contributions[Contributions]
289
289
 
290
- == link:https://www.alchemists.io/projects/pragmater/versions[Versions]
290
+ == link:https://alchemists.io/projects/pragmater/versions[Versions]
291
291
 
292
- == link:https://www.alchemists.io/community[Community]
292
+ == link:https://alchemists.io/community[Community]
293
293
 
294
294
  == Credits
295
295
 
296
- * Built with link:https://www.alchemists.io/projects/gemsmith[Gemsmith].
297
- * Engineered by link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
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 client: Configuration::Loader::CLIENT, **dependencies
11
- super(**dependencies)
10
+ def initialize(client: Configuration::Loader::CLIENT, **)
11
+ super(**)
12
12
  @client = client
13
13
  end
14
14
 
@@ -7,8 +7,8 @@ module Pragmater
7
7
  class Run
8
8
  include Pragmater::Import[:logger]
9
9
 
10
- def initialize runner: Runner.new, **dependencies
11
- super(**dependencies)
10
+ def initialize(runner: Runner.new, **)
11
+ super(**)
12
12
  @runner = runner
13
13
  end
14
14
 
@@ -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 sections: SECTIONS, client: CLIENT, **dependencies
16
- super(**dependencies)
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 configuration = Container[:configuration],
18
- client: Parser::CLIENT,
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
@@ -8,13 +8,13 @@ module Pragmater
8
8
  class Shell
9
9
  include Actions::Import[:config, :run, :specification, :logger]
10
10
 
11
- def initialize parser: Parser.new, **dependencies
12
- super(**dependencies)
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
- perform parser.call(arguments)
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 perform configuration
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
@@ -9,8 +9,8 @@ module Pragmater
9
9
 
10
10
  using Refinements::Pathnames
11
11
 
12
- def initialize parser: Parsers::File.new, **dependencies
13
- super(**dependencies)
12
+ def initialize(parser: Parsers::File.new, **)
13
+ super(**)
14
14
  @parser = parser
15
15
  end
16
16
 
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.0"
5
+ spec.version = "12.1.2"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
- spec.homepage = "https://www.alchemists.io/projects/pragmater"
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://www.alchemists.io/projects/pragmater/versions",
15
- "documentation_uri" => "https://www.alchemists.io/projects/pragmater",
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.0
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
- MIIC/jCCAeagAwIBAgIBBTANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMjAzMTkxNzI0MzJaFw0yMzAzMTkx
15
- NzI0MzJaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
16
- IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
17
- xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
18
- brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
19
- 9z0A8KcGhz67SdcoQiD7qiCjL/2NTeW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bdd7RO6or0ohq7iFkokz/5xrtQ/vPzU2RQ3Qc6YaKw
35
+ 3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
+ gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
30
37
  -----END CERTIFICATE-----
31
- date: 2023-01-08 00:00:00.000000000 Z
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://www.alchemists.io/projects/pragmater
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://www.alchemists.io/projects/pragmater/versions
189
- documentation_uri: https://www.alchemists.io/projects/pragmater
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.2
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