forked from asciidoctor/asciidoctor-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asciidoctor-pdf.gemspec
53 lines (44 loc) · 2.16 KB
/
asciidoctor-pdf.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- encoding: utf-8 -*-
require File.expand_path('lib/asciidoctor-pdf/version', File.dirname(__FILE__))
require 'open3' unless defined? Open3
Gem::Specification.new do |s|
s.name = 'asciidoctor-pdf'
s.version = Asciidoctor::Pdf::VERSION
s.summary = 'Converts AsciiDoc documents to PDF using Prawn'
s.description = <<-EOS
An extension for Asciidoctor that converts AsciiDoc documents to PDF using the Prawn PDF library.
EOS
s.authors = ['Dan Allen', 'Sarah White']
s.email = '[email protected]'
s.homepage = 'https://github.com/asciidoctor/asciidoctor-pdf'
s.license = 'MIT'
s.required_ruby_version = '>= 1.9.3'
files = begin
(result = Open3.popen3('git ls-files -z') {|_, out| out.read }.split %(\0)).empty? ? Dir['**/*'] : result
rescue
Dir['**/*']
end
s.files = files.grep %r/^(?:(?:data|docs|lib)\/.+|Gemfile|Rakefile|(?:CHANGELOG|LICENSE|NOTICE|README)\.adoc|#{s.name}\.gemspec)$/
# FIXME optimize-pdf is currently a shell script, so listing it here won't work
#s.executables = ['asciidoctor-pdf', 'optimize-pdf']
s.executables = ['asciidoctor-pdf']
s.test_files = files.grep %r/^(?:test|spec|feature)\/.*$/
s.require_paths = ['lib']
s.has_rdoc = true
s.rdoc_options = ['--charset=UTF-8', '--title="Asciidoctor PDF"', '--main=README.adoc', '-ri']
s.extra_rdoc_files = ['CHANGELOG.adoc', 'LICENSE.adoc', 'NOTICE.adoc', 'README.adoc']
s.add_development_dependency 'rake'
#s.add_development_dependency 'rdoc', '~> 4.1.0'
s.add_runtime_dependency 'asciidoctor', '>= 1.5.0'
# Prawn >= 2.0.0 requires Ruby >= 2.0.0, so we must cast a wider net to support Ruby 1.9.3
s.add_runtime_dependency 'prawn', '>= 1.3.0', '< 3.0.0'
s.add_runtime_dependency 'prawn-table', '0.2.2'
s.add_runtime_dependency 'prawn-templates', '0.0.3'
# Prawn SVG >= 0.22.1 requires Ruby >= 2.0.0, so we must cast a wider net to support Ruby 1.9.3
s.add_runtime_dependency 'prawn-svg', '>= 0.21.0', '< 0.26.0'
s.add_runtime_dependency 'prawn-icon', '1.2.0'
s.add_runtime_dependency 'safe_yaml', '~> 1.0.4'
s.add_runtime_dependency 'thread_safe', '~> 0.3.5'
# For our usage, treetop 1.6.2 is slower than 1.5.3
s.add_runtime_dependency 'treetop', '1.5.3'
end