-
Notifications
You must be signed in to change notification settings - Fork 67
/
asciidoctor-epub3.gemspec
49 lines (39 loc) · 1.78 KB
/
asciidoctor-epub3.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
# frozen_string_literal: true
require_relative 'lib/asciidoctor-epub3/version'
require 'open3' unless defined? Open3
Gem::Specification.new do |s|
s.name = 'asciidoctor-epub3'
s.version = Asciidoctor::Epub3::VERSION
s.summary = 'Converts AsciiDoc documents to EPUB3 e-book format'
s.description = <<~EOS
An extension for Asciidoctor that converts AsciiDoc documents to EPUB3 e-book format.
EOS
s.authors = ['Dan Allen', 'Sarah White']
s.email = '[email protected]'
s.homepage = 'https://github.com/asciidoctor/asciidoctor-epub3'
s.license = 'MIT'
s.required_ruby_version = '>= 2.7.0'
files = begin
(result = Open3.popen3('git ls-files -z') { |_, out| out.read }.split %(\0)).empty? ? Dir['**/*'] : result
rescue StandardError
Dir['**/*']
end
s.files = files.grep %r{^(?:(?:data/(?:fonts|images|styles)|lib)/.+|Gemfile|Rakefile|LICENSE|(?:CHANGELOG|NOTICE|README)\.adoc|\.yardopts|#{s.name}\.gemspec)$}
s.executables = %w[asciidoctor-epub3]
s.require_paths = ['lib']
s.add_development_dependency 'asciidoctor-diagram', '~> 2.0'
s.add_development_dependency 'asciimath', '~> 2.0'
s.add_development_dependency 'coderay', '~> 1.1.0'
s.add_development_dependency 'pygments.rb', '~> 3.0.0'
s.add_development_dependency 'rake', '~> 13.2.0'
s.add_development_dependency 'rouge', '~> 3.0'
s.add_development_dependency 'rspec', '~> 3.13.0'
s.add_development_dependency 'rubocop', '~> 1.50.2'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'rubocop-rspec', '~> 2.20.0'
s.add_runtime_dependency 'asciidoctor', '~> 2.0'
s.add_runtime_dependency 'gepub', '~> 1.0.0'
s.add_runtime_dependency 'mime-types', '~> 3.0'
# TODO: switch to 'sass-embedded' when we drop Ruby 2.5 support
s.add_runtime_dependency 'sass'
end