summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2017-07-23 19:54:53 -0600
committerDan Allen <dan.j.allen@gmail.com>2017-07-23 19:56:36 -0600
commit56e96359f7157fa2435f1bf18358b52457b63c4d (patch)
treef03db4c94b3a28a762d1e15e94eeb0c14703ac6a /Gemfile
parent9a0c974d845786840fb3f3829b792f7c5bed89c0 (diff)
document how to install Asciidoctor PDF on Ruby 2.0.0
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Gemfile b/Gemfile
index 627dd511..7dba5710 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,14 +1,19 @@
source 'https://rubygems.org'
-if (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.0.0')
- gem 'addressable', '2.4.0'
- gem 'prawn', '1.3.0'
- gem 'prawn-svg', '0.21.0'
-end
-
# Look in asciidoctor-pdf.gemspec for runtime and development dependencies
gemspec
+if (ruby_version = Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.1.0')
+ if ruby_version < (Gem::Version.new '2.0.0')
+ gem 'addressable', '2.4.0'
+ gem 'prawn', '1.3.0'
+ gem 'prawn-svg', '0.21.0'
+ else
+ gem 'prawn', '2.1.0'
+ gem 'prawn-svg', '0.26.0'
+ end
+end
+
group :examples do
gem 'rouge', '2.0.7'
# Add unicode (preferred) or activesupport to transform case of text containing multibyte chars on Ruby < 2.4