asciidoctor-multipage 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/asciidoctor-multipage +28 -0
- data/lib/asciidoctor-multipage/version.rb +3 -0
- data/lib/asciidoctor-multipage.rb +1 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92ae4009df03264cc6ecf2dc5826234151da1125abe9e7cbb01cba9a6f53d08e
|
4
|
+
data.tar.gz: 855ad21500928a3d166aa360fec6fe2d332c3b4e3efdbddb5f0402c32c8ee4e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 307a0f3299bf032d2e043d0593b7b9ecba1de9958646495986a6c6462e8c47e49a1a5eadff5e3f2160a2bd8d7cd029b4d711cbc183c42dccedd55e238bcc1495
|
7
|
+
data.tar.gz: 22d1d18fa6e488813cf3836a1d76d085cf216a7f3bc2c5d55aeef8ad9f2d3f8c007f2c4d0896351bbf3d7ba8a8122e40fc7922c15734d1a0dc32a3642b708ea1
|
@@ -0,0 +1,28 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
# This executable is based on `bin/asciidoctor-pdf` from the
|
4
|
+
# asciidoctor/asciidoctor-pdf project. Please consult that file for
|
5
|
+
# potential updates.
|
6
|
+
|
7
|
+
require 'asciidoctor-multipage'
|
8
|
+
require 'asciidoctor-multipage/version'
|
9
|
+
require 'asciidoctor/cli'
|
10
|
+
|
11
|
+
options = Asciidoctor::Cli::Options.new backend: 'multipage_html5'
|
12
|
+
|
13
|
+
# FIXME (from asciidoctor-pdf) provide an API in Asciidoctor for sub-components to print version information
|
14
|
+
unless ARGV != ['-v'] && (ARGV & ['-V', '--version']).empty?
|
15
|
+
$stdout.write %(Asciidoctor Multipage #{AsciidoctorMultipage::VERSION} using )
|
16
|
+
options.print_version
|
17
|
+
exit 0
|
18
|
+
end
|
19
|
+
|
20
|
+
# FIXME (from bespoke) This is a really bizarre API. Please make me simpler.
|
21
|
+
if Integer === (result = options.parse! ARGV)
|
22
|
+
exit result
|
23
|
+
else
|
24
|
+
invoker = Asciidoctor::Cli::Invoker.new options
|
25
|
+
GC.start
|
26
|
+
invoker.invoke!
|
27
|
+
exit invoker.code
|
28
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asciidoctor-multipage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Owen T. Heisler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -89,11 +89,14 @@ dependencies:
|
|
89
89
|
description: An Asciidoctor extension that generates HTML output using multiple pages
|
90
90
|
email:
|
91
91
|
- writer@owenh.net
|
92
|
-
executables:
|
92
|
+
executables:
|
93
|
+
- asciidoctor-multipage
|
93
94
|
extensions: []
|
94
95
|
extra_rdoc_files: []
|
95
96
|
files:
|
97
|
+
- bin/asciidoctor-multipage
|
96
98
|
- lib/asciidoctor-multipage.rb
|
99
|
+
- lib/asciidoctor-multipage/version.rb
|
97
100
|
homepage: https://github.com/owenh000/asciidoctor-multipage
|
98
101
|
licenses:
|
99
102
|
- MIT
|