summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-08-08 23:55:18 -0600
committerDan Allen <dan.j.allen@gmail.com>2020-08-09 03:17:32 -0600
commite41e10bb0e8dd094062dda0eae86dcc9a30c43f1 (patch)
tree9d0c6a3856741410abf9de95ae30809ea78f596a /scripts
parent0aaf347c3659e562f0bff759dd4cf367c8dd1c40 (diff)
upgrade to Prawn 2.3.0
Diffstat (limited to 'scripts')
-rw-r--r--scripts/switch-to-prawn-master.rb1
1 files changed, 0 insertions, 1 deletions
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