File: 0001-fix-paths.patch

package info (click to toggle)
ruby-shindo 0.3.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 224 kB
  • sloc: ruby: 456; makefile: 14
file content (44 lines) | stat: -rw-r--r-- 1,594 bytes parent folder | download
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: Praveen Arimbrathodiyil <praveen@debian.org>
Date: Sat, 18 May 2013 00:07:24 +0530
Subject: Executables and tests should take libraries from standard path

---
 bin/shindo            | 8 ++------
 bin/shindont          | 8 ++------
 tests/tests_helper.rb | 2 +-
 3 files changed, 5 insertions(+), 13 deletions(-)

--- a/bin/shindo
+++ b/bin/shindo
@@ -1,8 +1,4 @@
 #!/usr/bin/env ruby
 @thread_locals = { :interactive => true }
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'verbose'))
-if Kernel.respond_to?(:require_relative)
-  require_relative File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-else
-  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-end
+require 'shindo/verbose'
+require 'shindo/bin'
--- a/bin/shindont
+++ b/bin/shindont
@@ -1,8 +1,4 @@
 #!/usr/bin/env ruby
 @thread_locals = { :interactive => false }
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'taciturn'))
-if Kernel.respond_to?(:require_relative)
-  require_relative File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-else
-  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo', 'bin'))
-end
+require 'shindo/taciturn'
+require 'shindo/bin'
--- a/tests/tests_helper.rb
+++ b/tests/tests_helper.rb
@@ -1,4 +1,4 @@
-require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'shindo'))
+require 'shindo'
 require 'open3'
 
 BIN = File.join(File.dirname(__FILE__), '..', 'bin', 'shindo')