File: 0600_replace_require_relative_manual.patch

package info (click to toggle)
ruby-prawn 2.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,320 kB
  • sloc: ruby: 15,654; sh: 43; makefile: 20
file content (15 lines) | stat: -rw-r--r-- 481 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: replace require_relative with a require statement with an absolute path
 The installed library is not located the same way as in the source package,
 relatively to the manual files.
Author: Cédric Boutillier
Forwarded: no
Last-Update: 2019-01-07

--- a/manual/example_helper.rb
+++ b/manual/example_helper.rb
@@ -1,4 +1,4 @@
-require_relative '../lib/prawn'
+require 'prawn'
 require 'prawn/manual_builder'
 
 Prawn::ManualBuilder.manual_dir = File.dirname(__FILE__)