docrb-html 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +38 -33
- data/docrb-html.gemspec +2 -2
- data/exe/docrb-html +3 -1
- data/lib/renderer/metadata.rb +1 -1
- data/lib/renderer/page.rb +2 -3
- data/lib/renderer/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8177cf41f1d1e312dd444d6356020fbdde269736c11b3eabe607d493768a78bf
|
4
|
+
data.tar.gz: efc631e7c5410540f92c8475c6112a2322a95bf301e50632a04c3c208ecf440e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c00b20e8b7af0395b8e19f9557b42d737c2a51583009b6b7e27836ffddd864379123d8133a59efd1e68d1a49d62450837bc9b192847c323a265c22d89d96174
|
7
|
+
data.tar.gz: e0cf34b6bd2b4b95c6ea5c5452e0ff7beb3c3c207145a164853c86e323e5bf1b502276fd72a3705e572a7e80f5cbf391b20ec1e3e683a1978594252129225b5b
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
docrb-html (0.3.
|
4
|
+
docrb-html (0.3.4)
|
5
5
|
nokogiri (~> 1.14)
|
6
6
|
redcarpet (~> 3.6)
|
7
7
|
rouge (~> 4.1)
|
@@ -13,61 +13,66 @@ GEM
|
|
13
13
|
ast (2.4.2)
|
14
14
|
awesome_print (1.9.2)
|
15
15
|
byebug (11.1.3)
|
16
|
-
diff-lcs (1.5.
|
17
|
-
ffi (1.
|
18
|
-
|
16
|
+
diff-lcs (1.5.1)
|
17
|
+
ffi (1.17.0-aarch64-linux-gnu)
|
18
|
+
ffi (1.17.0-arm64-darwin)
|
19
|
+
ffi (1.17.0-x86_64-darwin)
|
20
|
+
ffi (1.17.0-x86_64-linux-gnu)
|
21
|
+
json (2.7.2)
|
19
22
|
language_server-protocol (3.17.0.3)
|
20
|
-
nokogiri (1.
|
23
|
+
nokogiri (1.16.7-aarch64-linux)
|
21
24
|
racc (~> 1.4)
|
22
|
-
nokogiri (1.
|
25
|
+
nokogiri (1.16.7-arm64-darwin)
|
23
26
|
racc (~> 1.4)
|
24
|
-
nokogiri (1.
|
27
|
+
nokogiri (1.16.7-x86_64-darwin)
|
25
28
|
racc (~> 1.4)
|
26
|
-
|
27
|
-
|
29
|
+
nokogiri (1.16.7-x86_64-linux)
|
30
|
+
racc (~> 1.4)
|
31
|
+
parallel (1.26.3)
|
32
|
+
parser (3.3.5.0)
|
28
33
|
ast (~> 2.4.1)
|
29
34
|
racc
|
30
|
-
racc (1.
|
35
|
+
racc (1.8.1)
|
31
36
|
rainbow (3.1.1)
|
32
|
-
rake (13.
|
37
|
+
rake (13.2.1)
|
33
38
|
redcarpet (3.6.0)
|
34
|
-
regexp_parser (2.
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
rspec-
|
39
|
-
rspec-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
rspec-expectations (3.12.3)
|
39
|
+
regexp_parser (2.9.2)
|
40
|
+
rouge (4.4.0)
|
41
|
+
rspec (3.13.0)
|
42
|
+
rspec-core (~> 3.13.0)
|
43
|
+
rspec-expectations (~> 3.13.0)
|
44
|
+
rspec-mocks (~> 3.13.0)
|
45
|
+
rspec-core (3.13.1)
|
46
|
+
rspec-support (~> 3.13.0)
|
47
|
+
rspec-expectations (3.13.3)
|
44
48
|
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
-
rspec-support (~> 3.
|
46
|
-
rspec-mocks (3.
|
49
|
+
rspec-support (~> 3.13.0)
|
50
|
+
rspec-mocks (3.13.1)
|
47
51
|
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
-
rspec-support (~> 3.
|
49
|
-
rspec-support (3.
|
50
|
-
rubocop (1.
|
52
|
+
rspec-support (~> 3.13.0)
|
53
|
+
rspec-support (3.13.1)
|
54
|
+
rubocop (1.66.1)
|
51
55
|
json (~> 2.3)
|
52
56
|
language_server-protocol (>= 3.17.0)
|
53
57
|
parallel (~> 1.10)
|
54
|
-
parser (>= 3.
|
58
|
+
parser (>= 3.3.0.2)
|
55
59
|
rainbow (>= 2.2.2, < 4.0)
|
56
|
-
regexp_parser (>=
|
57
|
-
|
58
|
-
rubocop-ast (>= 1.28.1, < 2.0)
|
60
|
+
regexp_parser (>= 2.4, < 3.0)
|
61
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
59
62
|
ruby-progressbar (~> 1.7)
|
60
63
|
unicode-display_width (>= 2.4.0, < 3.0)
|
61
|
-
rubocop-ast (1.
|
62
|
-
parser (>= 3.
|
64
|
+
rubocop-ast (1.32.3)
|
65
|
+
parser (>= 3.3.1.0)
|
63
66
|
ruby-progressbar (1.13.0)
|
64
67
|
sassc (2.4.0)
|
65
68
|
ffi (~> 1.9)
|
66
|
-
unicode-display_width (2.
|
69
|
+
unicode-display_width (2.6.0)
|
67
70
|
|
68
71
|
PLATFORMS
|
72
|
+
aarch64-linux
|
69
73
|
arm64-darwin-22
|
70
74
|
arm64-darwin-23
|
75
|
+
arm64-darwin-24
|
71
76
|
x86_64-darwin-22
|
72
77
|
x86_64-linux
|
73
78
|
|
data/docrb-html.gemspec
CHANGED
@@ -5,7 +5,7 @@ require_relative "lib/renderer/version"
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "docrb-html"
|
7
7
|
spec.version = Renderer::VERSION
|
8
|
-
spec.authors = ["
|
8
|
+
spec.authors = ["Vito Sartori"]
|
9
9
|
spec.email = ["hey@vito.io"]
|
10
10
|
|
11
11
|
spec.summary = "Docrb's HTML Generator"
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.required_ruby_version = ">= 3.2"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
-
spec.metadata["source_code_uri"] = "#{spec.homepage}/tree/
|
18
|
+
spec.metadata["source_code_uri"] = "#{spec.homepage}/tree/master/lib/docrb-html"
|
19
19
|
spec.metadata["changelog_uri"] = spec.homepage
|
20
20
|
spec.metadata["rubygems_mfa_required"] = "true"
|
21
21
|
|
data/exe/docrb-html
CHANGED
data/lib/renderer/metadata.rb
CHANGED
@@ -12,7 +12,7 @@ class Renderer
|
|
12
12
|
|
13
13
|
def self.project_links(meta)
|
14
14
|
links = []
|
15
|
-
links << { kind: "rubygems", href: meta[:host_url] } if meta.key? :host_url
|
15
|
+
links << { kind: "rubygems", href: meta[:host_url] } if meta.key?(:host_url) && !meta[:host_url].nil?
|
16
16
|
|
17
17
|
if meta.key? :git_url
|
18
18
|
links << if meta[:git_url].index("github.com/")
|
data/lib/renderer/page.rb
CHANGED
@@ -8,7 +8,7 @@ class Renderer
|
|
8
8
|
@title = "#{title} - Docrb"
|
9
9
|
@body = body || -> { "" }
|
10
10
|
@level = level
|
11
|
-
@make_path = ->
|
11
|
+
@make_path = ->(path) { Helpers.current_renderer.make_path(path) }
|
12
12
|
end
|
13
13
|
|
14
14
|
def render
|
@@ -16,8 +16,7 @@ class Renderer
|
|
16
16
|
make_path: @make_path,
|
17
17
|
title: @title,
|
18
18
|
level: @level,
|
19
|
-
body: @body.call
|
20
|
-
)
|
19
|
+
body: @body.call)
|
21
20
|
end
|
22
21
|
|
23
22
|
def render_to(path) = File.write(path, render)
|
data/lib/renderer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docrb-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Vito Sartori
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -208,7 +208,7 @@ licenses:
|
|
208
208
|
- MIT
|
209
209
|
metadata:
|
210
210
|
homepage_uri: https://github.com/heyvito/docrb
|
211
|
-
source_code_uri: https://github.com/heyvito/docrb/tree/
|
211
|
+
source_code_uri: https://github.com/heyvito/docrb/tree/master/lib/docrb-html
|
212
212
|
changelog_uri: https://github.com/heyvito/docrb
|
213
213
|
rubygems_mfa_required: 'true'
|
214
214
|
post_install_message:
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
229
|
+
rubygems_version: 3.5.18
|
230
230
|
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Docrb's HTML Generator
|