tocer 15.1.0 → 15.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de1ff1beeccbc0c7aec3406d0ff33ebf20c26d0e0777be5fe33dc37c6ddc345e
4
- data.tar.gz: 96066c0c0be259676da512cd3d6f204ac0e23441f10c10051297930f9919dffb
3
+ metadata.gz: f5228d1ed73a4027f286102ed63a7b25c800ad0f6ba07425b37260c33fe05684
4
+ data.tar.gz: c3acaadfff0d633dc343203850a4099799bce151a9d26a4b7c1d76f4f1353bf5
5
5
  SHA512:
6
- metadata.gz: 81ea0e85b0c3cdf5746c634b7490612aa94295268a4cc1248a507b7942e103615048daac79007c5e9b588ae664794f3382254e5610d4ea42efeda17f28a8256f
7
- data.tar.gz: 7d21dc4e246edab4c8770031d90b2de847a042e27756933d499afdd42b5c383153d97aea20c9ae6c31475b16af07a38e23850698d995c10a16ee7fb52bccca7e
6
+ metadata.gz: dd20f829585b0df51ec615d756d70e439c0d8080300dbf0a8ecadaff460f2067ae74bab5f1eb13ca2e4bccad32a964a69d94ba4315f8c38f1a1769e7eed6c006
7
+ data.tar.gz: ba335c1761f2c54e52d8ede27648d388a9bb7b09b765615d276d8e940fe254e5969a7d6b44b70e98c445320155906d2ef2e4ad2f73236bda3951d8a8a69e180a
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -168,7 +168,7 @@ To test, run:
168
168
 
169
169
  [source,bash]
170
170
  ----
171
- bundle exec rake
171
+ bin/rake
172
172
  ----
173
173
 
174
174
  == link:https://www.alchemists.io/policies/license[License]
@@ -7,8 +7,8 @@ module Tocer
7
7
  class Config
8
8
  include Tocer::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 Tocer
7
7
  class Insert
8
8
  include Tocer::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 Tocer
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 Tocer
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 Tocer
8
8
  class Shell
9
9
  include Actions::Import[:config, :insert, :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
  puts error.message
20
20
  end
@@ -23,7 +23,7 @@ module Tocer
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 then insert.call configuration
data/tocer.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "tocer"
5
- spec.version = "15.1.0"
5
+ spec.version = "15.1.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/tocer"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tocer
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.1.0
4
+ version: 15.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
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
205
205
  - !ruby/object:Gem::Version
206
206
  version: '0'
207
207
  requirements: []
208
- rubygems_version: 3.4.2
208
+ rubygems_version: 3.4.6
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: A command line interface for generating table of contents for Markdown files.
metadata.gz.sig CHANGED
@@ -1,2 +1 @@
1
- ?�b.s�ꝪE�ڗ�ƛ���pQ��b�-�^qiA~޴���/\<(��<���Y|ލ��Ð����"^&�����f¬QKg�ڏ�.`'-�(Amΰw�`e2�����!j edf1�a�� &@��r�]/H�&�JHΔh�&X}����]�Ӷ`D6M2Ym���<�>
2
- ��;'�}�W*�`-_�c����rH�ele!���$����-@��7��{VW�؏�����ϋp��,=ai�����VncD
1
+ w��f�Ka������2ytW͍�_)���F�>k�����B29S<�6���Ȃx�&���̰Xj}Oӈ@2V���pF���X YO�\�� ϠGZ7=BU/M �@8��;�paw��-ХI9:�)PmYB�v�bGI���9���