summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2020-01-20 12:50:58 +0300
committerDan Allen <dan.j.allen@gmail.com>2020-01-20 02:50:58 -0700
commit58256160b05e61644f740771e8cd2179c62ce6c2 (patch)
tree8edc1b221e3a8b75d74b1c8613a094e1ec406cef /Gemfile
parent234e7afbe2c038941e288ad4ba7b4fe7478a1841 (diff)
Handle ASCIIDOCTOR_VERSION env variable in Gemfile (PR #227)
Commit cead09c881199388bca86dfa30df43ca2c83a175 attempted to test against asciidoctor-1.5.3 (oldest supported) on Travis. However, unlike asciidoctor-pdf, asciidoctor-epub3 didn't have any logic for ASCIIDOCTOR_VERSION.
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index ff83723..9bba0cd 100644
--- a/Gemfile
+++ b/Gemfile
@@ -5,6 +5,8 @@ source 'https://rubygems.org'
# Look in asciidoctor-epub3.gemspec for runtime and development dependencies.
gemspec
+gem 'asciidoctor', ENV['ASCIIDOCTOR_VERSION'], require: false if ENV.key? 'ASCIIDOCTOR_VERSION'
+
group :optional do
gem 'epubcheck-ruby', '4.1.1.0'
gem 'kindlegen', (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.4.0') ? '3.0.3' : '3.0.5'