pragmater 12.1.0 → 12.1.1

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: 17995f32ef6db1b8bd5c02c2da9d1c9af1b0cb9d51ae0812fcd2a937613a2518
4
+ data.tar.gz: 81b887a4d5d57586288651585a48f02119b5f5044ac263181ac470bc020032a1
5
5
  SHA512:
6
- metadata.gz: 6e7870a0deb2b68edfa9e8efb2f0db6b21d98ff1765b7cc31bf16ec79b0a4b95b5523d56d8cecf202bf44ca5c120dec904c83971ea8f1cc3c624c9297f0ad0c9
7
- data.tar.gz: '059aae2ba389d5544a45ef617cf4a897dbba98899c7361192a17ee645383e2e6df068ac5a2bd7272fb0a29d86a9f072fc0b7624afe7d5536e635c1183e7f0c21'
6
+ metadata.gz: 7c5f1fe0b8b00ba157c0bc4624e3f81af69ca5d6e4309aeddc975415793f3a368353305c83018383b8af0217b410dd5b043dce3938509d077a52486e0b453fb9
7
+ data.tar.gz: 4193ce3882a12d3bde0679a364a8d4d1cd2a0ad595afaae71d0cf2aa39e4979e4e87f433bd3977471c2dc694080939b3308709943c0b8c0bde04e21101fcbb2d
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -276,7 +276,7 @@ To test, run:
276
276
 
277
277
  [source,bash]
278
278
  ----
279
- bundle exec rake
279
+ bin/rake
280
280
  ----
281
281
 
282
282
  == link:https://www.alchemists.io/policies/license[License]
@@ -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,7 +2,7 @@
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.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/pragmater"
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.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-01-08 00:00:00.000000000 Z
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.2
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