File: no_loadpath_trick_in_bin.patch

package info (click to toggle)
ruby-github-markdown 0.6.9-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 276 kB
  • ctags: 325
  • sloc: ansic: 3,575; ruby: 96; makefile: 5
file content (19 lines) | stat: -rw-r--r-- 405 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: don't play with the LOAD_PATH variable
 let the interpreter find the github/markdown library by itself
 using system paths.
Author: Cédric Boutillier
Last-Update: 2015-04-27
Forwarded: not-needed

--- a/bin/gfm
+++ b/bin/gfm
@@ -13,9 +13,6 @@
   exit 0
 end
 
-root = File.expand_path('../../', __FILE__)
-$:.unshift File.expand_path('lib', root)
-
 require 'github/markdown'
 
 mode = :gfm