# -*- encoding: utf-8 -*- require File.expand_path('lib/asciidoctor-pdf/version', File.dirname(__FILE__)) 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 = 'dan@opendevise.io' s.homepage = 'https://github.com/asciidoctor/asciidoctor-pdf' s.license = 'MIT' s.required_ruby_version = '>= 1.9' begin s.files = `git ls-files -z -- {bin,data,docs,lib}/* {README.adoc,LICENSE.adoc,NOTICE.adoc,Rakefile}`.split "\0" rescue s.files = Dir['**/*'] end # FIXME optimize-pdf is currently a shell script, so listing it here won't work #s.executables = %w(asciidoctor-pdf optimize-pdf) s.executables = %w(asciidoctor-pdf) s.test_files = s.files.grep(/^(?:test|spec|feature)\/.*$/) s.require_paths = %w(lib) s.has_rdoc = true s.rdoc_options = %(--charset=UTF-8 --title="Asciidoctor PDF" --main=README.adoc -ri) s.extra_rdoc_files = %w(README.adoc LICENSE.adoc NOTICE.adoc) s.add_development_dependency 'rake', '~> 10.0' #s.add_development_dependency 'rdoc', '~> 4.1.0' s.add_runtime_dependency 'asciidoctor', '~> 1.5.0' # Prawn 2.x requires Ruby 2.x, so cast a wider net 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' s.add_runtime_dependency 'prawn-svg', '0.21.0' s.add_runtime_dependency 'prawn-icon', '0.6.4' 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