tocer 2.0.0 → 2.1.0
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.tar.gz.sig +0 -0
- data/lib/tasks/console.rake +0 -2
- data/lib/tocer.rb +2 -0
- data/lib/tocer/builder.rb +8 -4
- data/lib/tocer/cli.rb +2 -0
- data/lib/tocer/configuration.rb +2 -0
- data/lib/tocer/elements/comment_block.rb +2 -0
- data/lib/tocer/identity.rb +3 -1
- data/lib/tocer/parsers/header.rb +2 -0
- data/lib/tocer/transformers/link.rb +2 -0
- data/lib/tocer/transformers/text.rb +2 -0
- data/lib/tocer/writer.rb +2 -0
- metadata +39 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac24c13d33c311c26f78a2d2ff7e0b1879530229
|
4
|
+
data.tar.gz: 5cfd0003a9c25046810c964f2e1e98ce9ccdb23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6357230e4a39dca32f34b7faf1629937e7aaf6d20a324f779a2d5ffd91755622c03a4ca6038989cb26d9a0c73d8ff7459e4b5c282b8b44bdd796f9c3f3e8b95c
|
7
|
+
data.tar.gz: 5decd7f245812cc95155330896e2f9cb3c8c3ff26fb7a490a42fd122e282d19a119f4fffad2aaae329c3445fa2547691da78bc7322ec27e78f6fd666c7cbd269
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/lib/tasks/console.rake
CHANGED
data/lib/tocer.rb
CHANGED
data/lib/tocer/builder.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Tocer
|
2
4
|
# Builds a table of contents for a Markdown document.
|
3
5
|
class Builder
|
@@ -15,10 +17,12 @@ module Tocer
|
|
15
17
|
def build
|
16
18
|
return "" if headers.empty?
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
20
|
+
[
|
21
|
+
"#{comment_block.start}\n\n",
|
22
|
+
"#{label}\n\n",
|
23
|
+
headers_as_links.join("\n"),
|
24
|
+
"\n\n#{comment_block.finish}\n\n"
|
25
|
+
].join
|
22
26
|
end
|
23
27
|
|
24
28
|
private
|
data/lib/tocer/cli.rb
CHANGED
data/lib/tocer/configuration.rb
CHANGED
data/lib/tocer/identity.rb
CHANGED
data/lib/tocer/parsers/header.rb
CHANGED
data/lib/tocer/writer.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tocer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
+
aW8wHhcNMTUwNzA1MTQ1MzExWhcNMTYwNzA0MTQ1MzExWjBBMQ8wDQYDVQQDDAZi
|
16
|
+
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
+
GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzhOVcvLGBCceM
|
18
|
+
PppVpJLUKsnskWzc1VqBXmv30feKNw+MOxMQaDsIP421qwqGO/2JHY60Kuobssk+
|
19
|
+
8/wqZkVFF/FFKxoQjuhlhc+VWLm8jWgXd4N1kwO2yytscQTzxc5qXarwA+36fqVH
|
20
|
+
RhBAHhjka+HdBI+6o3CXRHJoC47iav+QpR7u/wYl3gNq6MJO3MmTKqHegEDLjRN0
|
21
|
+
FJAr3bRAwq03ZtTuAVA2bdKLGThehe1RRRtJHJ/PHpmL2c203/GTXYtG6C8ILZIp
|
22
|
+
ZroTqQ8yglCJ+3hSOmodZqSAQ0Rj7GJgtuNH81qlSrHu5sTvoZjGmEqSIhvsSJ80
|
23
|
+
wKoPdZnFAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
24
|
+
BBSUnF478a5lB4xuOBiktJdMJv6JmDAfBgNVHREEGDAWgRRicm9va2VAYWxjaGVt
|
25
|
+
aXN0cy5pbzAfBgNVHRIEGDAWgRRicm9va2VAYWxjaGVtaXN0cy5pbzANBgkqhkiG
|
26
|
+
9w0BAQUFAAOCAQEAT7KtBXWsq1KA7NOSMeFEDeSvhrgdLwCG/37pIu0rjvx9iAW4
|
27
|
+
gncxV0MccqIUtaF+lekjlXkIO+rXAVjvdha23KtpFTW90dYXp4NLPnPlSdyvYzJy
|
28
|
+
FIAaWGvujOT8xEu4umd45q5aepE8li4bR071i5Z7F0trKNVYYrxjQFmH5SSKYRT/
|
29
|
+
fXtICtAh1de3z3SOSK58IMPwjuoApYBxiqlmx0Uhla7mrzCE5+NmLPit3hLH6JFK
|
30
|
+
aSif+qBc6oHD7EQWPF5cZkzkIURuwNwPBngZGxIKaMAgRhjGFXzUMAaq++r59cS9
|
31
|
+
xTfQ4k6fglKEgpnLAXiKdo2c8Ym+X4rIKFfedQ==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: thor
|
@@ -66,6 +88,20 @@ dependencies:
|
|
66
88
|
- - ">="
|
67
89
|
- !ruby/object:Gem::Version
|
68
90
|
version: '0'
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: gemsmith
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '7.0'
|
98
|
+
type: :development
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '7.0'
|
69
105
|
- !ruby/object:Gem::Dependency
|
70
106
|
name: pry
|
71
107
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
ADDED
Binary file
|