-
Notifications
You must be signed in to change notification settings - Fork 500
/
asciidoctor-pdf.gemspec
50 lines (46 loc) · 2.33 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
begin
require_relative 'lib/asciidoctor/pdf/version'
rescue LoadError
require 'asciidoctor/pdf/version'
end
Gem::Specification.new do |s|
s.name = 'asciidoctor-pdf'
s.version = Asciidoctor::PDF::VERSION
s.summary = 'Converts AsciiDoc documents to PDF using Asciidoctor and Prawn'
s.description = 'An add-on converter for Asciidoctor that converts AsciiDoc documents to PDF using the Prawn PDF generation library.'
s.authors = ['Dan Allen', 'Sarah White']
s.email = 'dan@opendevise.com'
s.homepage = 'https://asciidoctor.org/docs/asciidoctor-pdf'
s.license = 'MIT'
# NOTE required ruby version is informational only; it's not enforced since it can't be overridden and can cause builds to break
#s.required_ruby_version = '>= 2.7.0'
s.metadata = {
'bug_tracker_uri' => 'https://github.com/asciidoctor/asciidoctor-pdf/issues',
'changelog_uri' => 'https://github.com/asciidoctor/asciidoctor-pdf/blob/main/CHANGELOG.adoc',
'mailing_list_uri' => 'http://discuss.asciidoctor.org',
'source_code_uri' => 'https://github.com/asciidoctor/asciidoctor-pdf'
}
# NOTE the logic to build the list of files is designed to produce a usable package even when the git command is not available
begin
files = (result = `git ls-files -z`.split ?\0).empty? ? Dir['**/*'] : result
rescue
files = Dir['**/*']
end
s.files = files.grep %r/^(?:(?:data|lib)\/.+|docs\/theming-guide\.adoc|LICENSE|(?:CHANGELOG|NOTICE|README)\.adoc|\.yardopts|#{s.name}\.gemspec)$/
s.executables = (files.grep %r/^bin\//).map {|f| File.basename f }
s.require_paths = ['lib']
#s.test_files = files.grep %r/^(?:test|spec|feature)\/.*$/
s.add_runtime_dependency 'asciidoctor', '~> 2.0'
s.add_runtime_dependency 'prawn', '~> 2.4.0'
s.add_runtime_dependency 'matrix', '~> 0.4' # required until prawn >= 2.5.0 is released
s.add_runtime_dependency 'prawn-table', '~> 0.2.0'
s.add_runtime_dependency 'prawn-templates', '~> 0.1.0'
s.add_runtime_dependency 'prawn-svg', '~> 0.34.0'
s.add_runtime_dependency 'prawn-icon', '~> 3.1.0'
s.add_runtime_dependency 'concurrent-ruby', '~> 1.1'
s.add_runtime_dependency 'treetop', '~> 1.6.0'
s.add_development_dependency 'rake', '~> 13.0.0'
s.add_development_dependency 'rspec', '~> 3.12.0'
s.add_development_dependency 'pdf-inspector', '~> 1.3.0'
s.add_development_dependency 'chunky_png', '~> 1.4.0'
end