File: 0001_Fix_PATH_rougify.patch

package info (click to toggle)
ruby-rouge 4.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,836 kB
  • sloc: ruby: 38,168; sed: 2,071; perl: 152; makefile: 8
file content (25 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil@debian.org>
Date: Mon, 20 Jul 2015 07:13:23 +0200
Subject: Fix PATH: rougify

Forwarded: not-needed
---
 bin/rougify | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/bin/rougify b/bin/rougify
index 13f2b10..eaf68eb 100755
--- a/bin/rougify
+++ b/bin/rougify
@@ -2,9 +2,8 @@
 # frozen_string_literal: true
 
 require 'pathname'
-ROOT_DIR = Pathname.new(__FILE__).dirname.parent
-Kernel::load ROOT_DIR.join('lib/rouge.rb')
-Kernel::load ROOT_DIR.join('lib/rouge/cli.rb')
+require 'rouge'
+require 'rouge/cli'
 Signal.trap('PIPE', 'SYSTEM_DEFAULT') if Signal.list.include? 'PIPE'
 
 begin