tocer 12.0.0 → 12.0.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: '096af23217cee6fd1f0fc3193a733eae8fff2cc586bce9058fde6d67c409aca3'
4
- data.tar.gz: e491575b96fe2dfdad444015d228cd5150d2e8a2aebd85f98977fed6b598e268
3
+ metadata.gz: fbb0b5122d22bc49315768eaa8da1ad803be7a116dbbc628d0cf21fc0e7f3e5e
4
+ data.tar.gz: e271feacaaa9643cc05d656f32ac00dfba47a7f7a63cfa4c330e4f33188d4ca0
5
5
  SHA512:
6
- metadata.gz: 51f72f12821e8101fac9ce9f062879756493916725d4bc5c25129e9a4b13338f5b524a51ce66a4f9387404499ea8baa3d7eb1db764ef58315af9f1c9bc9ee37e
7
- data.tar.gz: 5ea05ed97e8a350c3a32470f7627e47e60d2be56368da9e738ea5e9a302a5998dae9ea93706f9e7f9c19609b0f7d98dd324a621ea0eb3a2b6fc36fb410e8c766
6
+ metadata.gz: fbfd2fcf7ae70d445c41fef7d1f190f43b23f8af12985e2ad0c75996e7a38795423b620f0865e48171637d545914c95fc8020244413ef299a3af112215562448
7
+ data.tar.gz: f24e6608ed56a388c0ec4e5acf2d906138c86c55002b8d17fcfc85a7048f490a0eaf631bb38972eb60b634ed69a4b180b22740840f12d88c7bcea586b6119d61
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,14 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "runcom"
4
-
5
3
  module Tocer
6
4
  module CLI
7
5
  module Parsers
8
- SECTIONS = [Core, Build].freeze # Order is important.
9
-
10
6
  # Assembles and parses all Command Line Interface (CLI) options.
11
7
  class Assembler
8
+ SECTIONS = [Core, Build].freeze # Order is important.
9
+
12
10
  def initialize configuration: CLI::Configuration::Loader.call,
13
11
  sections: SECTIONS,
14
12
  client: CLIENT
@@ -29,7 +27,7 @@ module Tocer
29
27
 
30
28
  private
31
29
 
32
- attr_reader :options, :client, :sections
30
+ attr_reader :options, :sections, :client
33
31
  end
34
32
  end
35
33
  end
@@ -25,9 +25,7 @@ module Tocer
25
25
 
26
26
  attr_reader :options, :client
27
27
 
28
- def collate
29
- private_methods.sort.grep(/add_/).each { |method| __send__ method }
30
- end
28
+ def collate = private_methods.sort.grep(/add_/).each { |method| __send__ method }
31
29
 
32
30
  def add_config
33
31
  client.on(
@@ -5,7 +5,7 @@ module Tocer
5
5
  module Identity
6
6
  NAME = "tocer"
7
7
  LABEL = "Tocer"
8
- VERSION = "12.0.0"
8
+ VERSION = "12.0.1"
9
9
  VERSION_LABEL = "#{LABEL} #{VERSION}"
10
10
  SUMMARY = "A command line interface for generating table of contents for Markdown files."
11
11
  end
@@ -21,7 +21,7 @@ module Tocer
21
21
  def install
22
22
  desc "Add/Update Table of Contents (README)"
23
23
  task :toc, %i[label includes] do |_task, arguments|
24
- runner.call(**configuration.merge(**arguments.to_h).to_h).call
24
+ runner.call(**configuration.merge(**arguments.to_h).to_h)
25
25
  end
26
26
  end
27
27
 
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: 12.0.0
4
+ version: 12.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
29
29
  W2A=
30
30
  -----END CERTIFICATE-----
31
- date: 2021-04-17 00:00:00.000000000 Z
31
+ date: 2021-04-18 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: refinements
metadata.gz.sig CHANGED
Binary file