tocer 16.0.3 → 16.2.0

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: 26351956c1c87e0820bb41c8073583156fa2319f4bc9631f4d775ee1d0a5d42f
4
- data.tar.gz: bc85af5138d02e2995c55f5629c07cfa6e30fe30f0552292fa78d7c886026ae4
3
+ metadata.gz: 28b84d0efb9c3d8c5d3e532bead4b8753958757d7a5ab4bace1d1b3b5cdc6946
4
+ data.tar.gz: 5de978da9c69f7c3728ae7f9074dc4b3bf4bd66deb53ca7629b41ce6008e181b
5
5
  SHA512:
6
- metadata.gz: e24e8f28221a13a7badd9ff0257062a75e96e4d6aa6d7c749200b09e7c6aec12eb5857ec5bd37cf9f3749f9c6058c148e2217acc170e3e3de31502321082a810
7
- data.tar.gz: a5fbe569ad20cd59193ca115d183e0eaccefbee0defcbbb8d554383aa9e7297402d31bd64db9dce9f91d3e0def76fc6121f4bf9cb291ace128b86656d73ede00
6
+ metadata.gz: 579641be06779774cc3cca1431a69b329087fe5ac86405d9648ace9a53a1855abcca99a41f47c866c17c10bd5e8f7edfc46d403197682c47f57fd553a7ff86fa
7
+ data.tar.gz: a534eb2f8ee438133cc5592a0ceaef612e6127465620fc3bc185b41581c9d0ff6d779288859557a76964cbc5818016d5b3b807c874ea916d6f453481b95e3102
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -57,20 +57,7 @@ bundle add tocer
57
57
 
58
58
  From the command line, run: `tocer --help`
59
59
 
60
- ....
61
- USAGE
62
- tocer [OPTIONS]
63
- tocer COMMAND [OPTIONS]
64
-
65
- OPTIONS
66
- -v, --version Show version.
67
- -h, --help [COMMAND] Show this message.
68
-
69
- COMMANDS
70
- config Manage configuration.
71
- Path is dynamic per current directory.
72
- upsert Update/insert table of contents.
73
- ....
60
+ image:https://alchemists.io/images/projects/tocer/screenshots/usage.png[Usage,width=581,height=326,role=focal_point]
74
61
 
75
62
  To generate the table of contents at a specific position within your Markdown files, add the
76
63
  following lines to your file(s) prior to generation:
@@ -25,7 +25,7 @@ module Tocer
25
25
  register(:defaults_path, memoize: true) { Pathname(__dir__).join("configuration/defaults.yml") }
26
26
  register(:xdg_config, memoize: true) { Runcom::Config.new "tocer/configuration.yml" }
27
27
  register(:specification, memoize: true) { Spek::Loader.call "#{__dir__}/../../tocer.gemspec" }
28
- register(:logger, memoize: true) { Cogger.new formatter: :emoji }
28
+ register(:logger, memoize: true) { Cogger.new id: :tocer }
29
29
  register :kernel, Kernel
30
30
  end
31
31
  end
data/lib/tocer.rb CHANGED
@@ -2,12 +2,15 @@
2
2
 
3
3
  require "zeitwerk"
4
4
 
5
- Zeitwerk::Loader.for_gem.then do |loader|
5
+ Zeitwerk::Loader.new.then do |loader|
6
6
  loader.inflector.inflect "cli" => "CLI"
7
+ loader.tag = File.basename __FILE__, ".rb"
7
8
  loader.ignore "#{__dir__}/tocer/rake"
9
+ loader.push_dir __dir__
8
10
  loader.setup
9
11
  end
10
12
 
11
13
  # Main namespace.
12
14
  module Tocer
15
+ def self.loader(registry = Zeitwerk::Registry) = registry.loader_for __FILE__
13
16
  end
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 = "16.0.3"
5
+ spec.version = "16.2.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/tocer"
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
23
23
  spec.cert_chain = [Gem.default_cert_path]
24
24
 
25
25
  spec.required_ruby_version = "~> 3.2"
26
- spec.add_dependency "cogger", "~> 0.10"
26
+ spec.add_dependency "cogger", "~> 0.12"
27
27
  spec.add_dependency "core", "~> 0.1"
28
28
  spec.add_dependency "dry-container", "~> 0.11"
29
29
  spec.add_dependency "dry-schema", "~> 1.13"
30
30
  spec.add_dependency "etcher", "~> 0.2"
31
- spec.add_dependency "infusible", "~> 2.0"
31
+ spec.add_dependency "infusible", "~> 2.2"
32
32
  spec.add_dependency "refinements", "~> 11.0"
33
33
  spec.add_dependency "runcom", "~> 10.0"
34
34
  spec.add_dependency "sod", "~> 0.0"
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: 16.0.3
4
+ version: 16.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2023-07-23 00:00:00.000000000 Z
38
+ date: 2023-10-15 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.10'
46
+ version: '0.12'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.10'
53
+ version: '0.12'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: core
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -113,14 +113,14 @@ dependencies:
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '2.0'
116
+ version: '2.2'
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '2.0'
123
+ version: '2.2'
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: refinements
126
126
  requirement: !ruby/object:Gem::Requirement
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.4.17
254
+ rubygems_version: 3.4.20
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: A command line interface for generating Markdown table of contents.
metadata.gz.sig CHANGED
Binary file