tocer 15.1.0 → 15.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +10 -10
- data/lib/tocer/cli/actions/config.rb +2 -2
- data/lib/tocer/cli/actions/insert.rb +2 -2
- data/lib/tocer/cli/parser.rb +2 -2
- data/lib/tocer/cli/parsers/core.rb +2 -4
- data/lib/tocer/cli/shell.rb +4 -4
- data/tocer.gemspec +4 -4
- data.tar.gz.sig +0 -0
- metadata +30 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2f83114e81d42e9a9ecf75882638aa429b6410378ae094f9b20ec4997aea614
|
4
|
+
data.tar.gz: 99f969f100d87661f8f3928efe3fb6fd5dc0712987377566e18b516ed24ddee2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9626eebe778cbefa8f1127f17f3ed6a3bcae0ab85d12e609b40c8df3ade998e74654f3969aa874540675b556725d2100923c776181ca8062b3066a89735f97ba
|
7
|
+
data.tar.gz: c6a4f9b2e8d216d164dba9205b64a541f2a5b83eea3780144a1d9995da55beae2b8ddb8f2698921919a10ffcce273d8cea656845e4646d9cf21034bd1e5cf0ae
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -70,7 +70,7 @@ re-run Tocer on that file to auto-update it with new table of contents.
|
|
70
70
|
|
71
71
|
This gem can be configured via a global configuration: `~/.config/tocer/configuration.yml`.
|
72
72
|
|
73
|
-
It can also be configured via link:https://
|
73
|
+
It can also be configured via link:https://alchemists.io/projects/xdg[XDG] environment
|
74
74
|
variables.
|
75
75
|
|
76
76
|
The default configuration is as follows:
|
@@ -168,22 +168,22 @@ To test, run:
|
|
168
168
|
|
169
169
|
[source,bash]
|
170
170
|
----
|
171
|
-
|
171
|
+
bin/rake
|
172
172
|
----
|
173
173
|
|
174
|
-
== link:https://
|
174
|
+
== link:https://alchemists.io/policies/license[License]
|
175
175
|
|
176
|
-
== link:https://
|
176
|
+
== link:https://alchemists.io/policies/security[Security]
|
177
177
|
|
178
|
-
== link:https://
|
178
|
+
== link:https://alchemists.io/policies/code_of_conduct[Code of Conduct]
|
179
179
|
|
180
|
-
== link:https://
|
180
|
+
== link:https://alchemists.io/policies/contributions[Contributions]
|
181
181
|
|
182
|
-
== link:https://
|
182
|
+
== link:https://alchemists.io/projects/tocer/versions[Versions]
|
183
183
|
|
184
|
-
== link:https://
|
184
|
+
== link:https://alchemists.io/community[Community]
|
185
185
|
|
186
186
|
== Credits
|
187
187
|
|
188
|
-
* Built with link:https://
|
189
|
-
* Engineered by link:https://
|
188
|
+
* Built with link:https://alchemists.io/projects/gemsmith[Gemsmith].
|
189
|
+
* Engineered by link:https://alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
|
@@ -7,8 +7,8 @@ module Tocer
|
|
7
7
|
class Config
|
8
8
|
include Tocer::Import[:kernel, :logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
super(**
|
10
|
+
def initialize(client: Configuration::Loader::CLIENT, **)
|
11
|
+
super(**)
|
12
12
|
@client = client
|
13
13
|
end
|
14
14
|
|
data/lib/tocer/cli/parser.rb
CHANGED
@@ -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
|
16
|
-
super(**
|
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
|
18
|
-
|
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
|
data/lib/tocer/cli/shell.rb
CHANGED
@@ -8,13 +8,13 @@ module Tocer
|
|
8
8
|
class Shell
|
9
9
|
include Actions::Import[:config, :insert, :specification, :logger]
|
10
10
|
|
11
|
-
def initialize
|
12
|
-
super(**
|
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
|
-
|
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
|
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,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "tocer"
|
5
|
-
spec.version = "15.1.
|
5
|
+
spec.version = "15.1.2"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
|
-
spec.homepage = "https://
|
8
|
+
spec.homepage = "https://alchemists.io/projects/tocer"
|
9
9
|
spec.summary = "A command line interface for generating table of contents for Markdown files."
|
10
10
|
spec.license = "Hippocratic-2.1"
|
11
11
|
|
12
12
|
spec.metadata = {
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/tocer/issues",
|
14
|
-
"changelog_uri" => "https://
|
15
|
-
"documentation_uri" => "https://
|
14
|
+
"changelog_uri" => "https://alchemists.io/projects/tocer/versions",
|
15
|
+
"documentation_uri" => "https://alchemists.io/projects/tocer",
|
16
16
|
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
17
17
|
"label" => "Tocer",
|
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: tocer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.1.
|
4
|
+
version: 15.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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
13
|
+
MIIEeDCCAuCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
+
aW8wHhcNMjMwMzIyMTYxNDQxWhcNMjUwMzIxMTYxNDQxWjBBMQ8wDQYDVQQDDAZi
|
16
|
+
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
+
GRYCaW8wggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCro8tj5/E1Hg88
|
18
|
+
f4qfiwPVd2zJQHvdYt4GHVvuHRRgx4HGhJuNp+4BId08RBn7V6V1MW6MY3kezRBs
|
19
|
+
M+7QOQ4b1xNLTvY7FYQB1wGK5a4x7TTokDrPYQxDB2jmsdDYCzVbIMrAvUfc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6or0ohq7iFkokz/5xrtQ/vPzU2RQ3Qc6YaKw
|
35
|
+
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
|
+
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
30
37
|
-----END CERTIFICATE-----
|
31
|
-
date: 2023-
|
38
|
+
date: 2023-03-22 00:00:00.000000000 Z
|
32
39
|
dependencies:
|
33
40
|
- !ruby/object:Gem::Dependency
|
34
41
|
name: cogger
|
@@ -179,13 +186,13 @@ files:
|
|
179
186
|
- lib/tocer/transformers/text.rb
|
180
187
|
- lib/tocer/writer.rb
|
181
188
|
- tocer.gemspec
|
182
|
-
homepage: https://
|
189
|
+
homepage: https://alchemists.io/projects/tocer
|
183
190
|
licenses:
|
184
191
|
- Hippocratic-2.1
|
185
192
|
metadata:
|
186
193
|
bug_tracker_uri: https://github.com/bkuhlmann/tocer/issues
|
187
|
-
changelog_uri: https://
|
188
|
-
documentation_uri: https://
|
194
|
+
changelog_uri: https://alchemists.io/projects/tocer/versions
|
195
|
+
documentation_uri: https://alchemists.io/projects/tocer
|
189
196
|
funding_uri: https://github.com/sponsors/bkuhlmann
|
190
197
|
label: Tocer
|
191
198
|
rubygems_mfa_required: 'true'
|
@@ -205,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
212
|
- !ruby/object:Gem::Version
|
206
213
|
version: '0'
|
207
214
|
requirements: []
|
208
|
-
rubygems_version: 3.4.
|
215
|
+
rubygems_version: 3.4.9
|
209
216
|
signing_key:
|
210
217
|
specification_version: 4
|
211
218
|
summary: A command line interface for generating table of contents for Markdown files.
|
metadata.gz.sig
CHANGED
Binary file
|