xantora 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b6544ba69c27e9bd6d6395d26ea28fd7a079c53a5e397de7aa03175e016f762
4
- data.tar.gz: d1f69ad17bbb6ee8b58daf37cc0f3c51c9060a63f73957fd7f2dbcc2978d667a
3
+ metadata.gz: 5ce20ed21a86e30f877b1eeae0151476b31d49933ddbd513b5f23b8cce15ef45
4
+ data.tar.gz: bdd95d9f9ad81bf9ba8320b561d9ed7797435767830038d9be130daa0647bee7
5
5
  SHA512:
6
- metadata.gz: df2c234502ef88e5f16e96bbdac1ca6a083cfb11506fd24b2f75f31583d85d31b853a35d111fe636ce4a7092fcce3a9c9d808687141ab4ecac6ea1ce2c81de99
7
- data.tar.gz: f5a93f5486f7eed96e43c7f058ada1aad59b20412843d0623fa7bf8155885927bffeda789881cc10717646ec0ec043c1657f1a2e938419d2c5fb0eb97916bb92
6
+ metadata.gz: '0283d87fd63d47863b2273bec248a25591470780e73146a5be9c2c1c5f9132b9d93c77d53c025647b73c1a7abaf05b535863cbf624facc1cc8b11416d808541d'
7
+ data.tar.gz: 43a32513ba16d1bef63add4effd912f42560d40aa5fcd1e1347b508ffa9e973ff7a3760bc46e29baf4863baf8ce8c2d29f66cb759b1b8463db584779cc15cf16
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xantora (0.1.0)
4
+ xantora (0.2.1)
5
5
  asciidoctor-pdf (~> 1.6.0)
6
6
  thor (~> 1.1.0)
7
7
  tty-spinner (~> 0.9.3)
@@ -8,9 +8,9 @@ font:
8
8
  italic: Roboto-Italic.ttf
9
9
  bold: Roboto-Bold.ttf
10
10
  bold_italic: Roboto-BoldItalic.ttf
11
- DroidSansFallback: DroidSansFallback.ttf
12
- fallbacks:
13
- - DroidSansFallback
11
+ M+ 1p Fallback: GEM_FONTS_DIR/mplus1p-regular-fallback.ttf
12
+ Noto Emoji: GEM_FONTS_DIR/notoemoji-subset.ttf
13
+ fallbacks: [M+ 1p Fallback, Noto Emoji]
14
14
  ulist:
15
15
  marker:
16
16
  circle:
data/lib/xantora/cli.rb CHANGED
@@ -21,10 +21,6 @@ module Xantora
21
21
  map %w[--version -v] => :version
22
22
 
23
23
  desc "convert SOURCE (.adoc or modules-path)", "Convert Antora a document(s) to PDF. SOURCE can be an AsciiDoc-file or an Antora modules-path."
24
- # option :source,
25
- # desc: "Antora document (.adoc) or modules path",
26
- # aliases: %w[-s],
27
- # required: true
28
24
  option :output,
29
25
  desc: "destination file or directory",
30
26
  aliases: %w[-o],
@@ -40,10 +36,10 @@ module Xantora
40
36
  aliases: %w[-A],
41
37
  default: false
42
38
  def convert(source)
43
- if File.directory? source #options[:source]
44
- puts "[.] Scanning module directory for .adoc files ..."
45
- Dir.glob("#{options[:source]}/**/pages/*.adoc") { |file| convert_document(file, options) }
46
- elsif options[:source].end_with? ".adoc"
39
+ if File.directory? source
40
+ puts "[.] Scanning #{source} directory for .adoc files ..."
41
+ Dir.glob(File.join(source, "/**/pages/*.adoc")) { |file| convert_document(file, options) }
42
+ elsif source.end_with? ".adoc"
47
43
  convert_document(source, options)
48
44
  else
49
45
  puts "[error] No valid source detected."
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Xantora
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xantora
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nik Wolfgramm
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-16 00:00:00.000000000 Z
11
+ date: 2021-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor-pdf
@@ -69,7 +69,6 @@ files:
69
69
  - LICENSE.txt
70
70
  - README.md
71
71
  - Rakefile
72
- - asciidoctor-pdf/fonts/DroidSansFallback.ttf
73
72
  - asciidoctor-pdf/fonts/Roboto-Bold.ttf
74
73
  - asciidoctor-pdf/fonts/Roboto-BoldItalic.ttf
75
74
  - asciidoctor-pdf/fonts/Roboto-Italic.ttf