summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.adoc1
-rw-r--r--asciidoctor-pdf.gemspec2
-rw-r--r--scripts/switch-to-prawn-master.rb1
3 files changed, 2 insertions, 2 deletions
diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc
index 2b73529a..c2a29ec1 100644
--- a/CHANGELOG.adoc
+++ b/CHANGELOG.adoc
@@ -103,6 +103,7 @@ Compliance::
* drop support for versions of Asciidoctor < 2 (#1552)
* drop support for Ruby < 2.5 (which includes JRuby 9.1) (#1681)
* release lock on ttfunk version (1.6 produces slightly different output from 1.5 for certain missing glyphs)
+* upgrade to Prawn 2.3.0
* drop deprecated Pdf module alias in API (leaving only PDF)
* remove deprecated "ascii" fonts; only bundle the more complete "subset" fonts
* remove asciidoctor-pdf/converter and asciidoctor-pdf/version shim scripts; use asciidoctor/pdf/converter and asciidoctor/pdf/version instead
diff --git a/asciidoctor-pdf.gemspec b/asciidoctor-pdf.gemspec
index da21697f..9b6ecdaa 100644
--- a/asciidoctor-pdf.gemspec
+++ b/asciidoctor-pdf.gemspec
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
#s.test_files = files.grep %r/^(?:test|spec|feature)\/.*$/
s.add_runtime_dependency 'asciidoctor', '~> 2.0'
- s.add_runtime_dependency 'prawn', '~> 2.2.0'
+ s.add_runtime_dependency 'prawn', '~> 2.3.0'
# NOTE must use prawn-table from master branch (defined in Gemfile) for full functionality
s.add_runtime_dependency 'prawn-table', '~> 0.2.0'
s.add_runtime_dependency 'prawn-templates', '~> 0.1.0'
diff --git a/scripts/switch-to-prawn-master.rb b/scripts/switch-to-prawn-master.rb
index 36190f4c..f4e3e49e 100644
--- a/scripts/switch-to-prawn-master.rb
+++ b/scripts/switch-to-prawn-master.rb
@@ -2,6 +2,5 @@ require 'fileutils'
# NOTE it's necessary to hot patch the installed gem so that RubyGems can find it without Bundler
prawn_spec = Gem::Specification.find_by_name 'prawn'
-File.write prawn_spec.spec_file, (prawn_spec.to_ruby.gsub %r/(pdf-core.+?)~> 0\.7\.0/, '\1~> 0.8.1')
FileUtils.rm_r prawn_spec.gem_dir, secure: true if Dir.exist? prawn_spec.gem_dir
Process.wait Process.spawn %(git clone --depth=1 https://github.com/prawnpdf/prawn #{File.basename prawn_spec.gem_dir}), chdir: prawn_spec.gems_dir