docrb-html 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -6
- data/docrb-html.gemspec +2 -2
- data/exe/docrb-html +3 -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: 4e8f34e78e39808248f3d91c29b2e751f27ef38d79c81ca48f5c8639accb9195
|
4
|
+
data.tar.gz: 17339acf6ab7f1c867872ac676a6fcb7ae5ce73fd059f9665fde66a3c070ca07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82f1fb93629cc7e64c8972e34ca61b5d60006b3301b6c0b400bf38cb612ec729709d680d843c1efeaf19a9d85a8bf1b9739fd23f7a3457afff025df2530643ff
|
7
|
+
data.tar.gz: ab4c3e0001fec898dcf3955b5443bac4b8eb3142ec5d5f7712eaf5cd887abd6d6a2c722af786672d67f507c26ffde9e439b5e766f93deee1b9b906821ae67443
|
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.3)
|
5
5
|
nokogiri (~> 1.14)
|
6
6
|
redcarpet (~> 3.6)
|
7
7
|
rouge (~> 4.1)
|
@@ -17,11 +17,9 @@ GEM
|
|
17
17
|
ffi (1.15.5)
|
18
18
|
json (2.6.3)
|
19
19
|
language_server-protocol (3.17.0.3)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
racc (~> 1.4)
|
24
|
-
nokogiri (1.14.2-x86_64-linux)
|
20
|
+
mini_portile2 (2.8.7)
|
21
|
+
nokogiri (1.14.2)
|
22
|
+
mini_portile2 (~> 2.8.0)
|
25
23
|
racc (~> 1.4)
|
26
24
|
parallel (1.23.0)
|
27
25
|
parser (3.2.2.4)
|
@@ -66,6 +64,7 @@ GEM
|
|
66
64
|
unicode-display_width (2.5.0)
|
67
65
|
|
68
66
|
PLATFORMS
|
67
|
+
aarch64-linux
|
69
68
|
arm64-darwin-22
|
70
69
|
arm64-darwin-23
|
71
70
|
x86_64-darwin-22
|
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/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.3
|
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-17 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
|