-
Notifications
You must be signed in to change notification settings - Fork 188
/
asciidoctor-revealjs.gemspec
52 lines (46 loc) · 2.11 KB
/
asciidoctor-revealjs.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
# -*- encoding: utf-8 -*-
require File.expand_path '../lib/asciidoctor-revealjs/version', __FILE__
require 'open3'
Gem::Specification.new do |s|
s.name = 'asciidoctor-revealjs'
s.version = Asciidoctor::Revealjs::VERSION
s.authors = ['Olivier Bilodeau']
s.email = ['[email protected]']
s.homepage = 'https://github.com/asciidoctor/asciidoctor-reveal.js'
s.summary = 'A reveal.js converter for Asciidoctor. Write your slides in AsciiDoc!'
s.description = 'Converts AsciiDoc documents into HTML5 presentations designed to be executed by the reveal.js presentation framework.'
s.license = 'MIT'
files = begin
if (result = Open3.popen3('git ls-files -z') {|_, out| out.read }.split %(\0)).empty?
Dir['**/*']
else
# converter.rb is built locally before packaging but ignored by git. Adding manually.
result + ['lib/asciidoctor-revealjs/converter.rb']
end
rescue
Dir['**/*']
end
# TODO should we still package template files now that they are built into ruby?
s.files = files.grep %r/^(?:(?:examples|lib|templates)\/.+|Gemfile|Rakefile|(?:CHANGELOG|LICENSE|README)\.adoc|#{s.name}\.gemspec)$/
s.executables = ['asciidoctor-revealjs']
s.extra_rdoc_files = Dir['README.adoc', 'LICENSE.adoc', 'HACKING.adoc']
s.require_paths = ['lib']
s.add_runtime_dependency 'asciidoctor', ['>= 2.0.0', '< 3.0.0']
s.add_development_dependency 'rake', '~> 13.0.0'
# Overriden in Gemfile
#s.add_development_dependency 'asciidoctor-doctest', '= 2.0.0.beta.7'
s.add_development_dependency 'minitest', '~> 5.14'
if RUBY_ENGINE != 'jruby'
s.add_development_dependency 'pry', '~> 0.12.0'
s.add_development_dependency 'irb'
s.add_development_dependency 'pry-byebug'
s.add_development_dependency 'pygments.rb'
end
s.add_development_dependency 'colorize'
s.add_development_dependency 'asciidoctor-templates-compiler', '~> 0.7.0'
s.add_development_dependency 'slim', '~> 3.0.6'
s.add_development_dependency 'slim-htag', '~> 0.1.0'
s.add_development_dependency 'rouge'
# Overriden in Gemfile and Gemfile.upstream for now
#s.add_development_dependency 'opal', '~> 0.11.1'
end