Package: ruby-librarian / 0.6.3-1

0001-Add-patch-to-keep-VERSION-in-the-library-namespace.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Stig Sandbeck Mathisen <ssm@debian.org>
Date: Sat, 15 Feb 2014 21:31:46 +0100
Subject: Add patch to keep VERSION in the library namespace

When installed as system package, the gem still looks for
/usr/lib/ruby/VERSION to find its version. Have librarian look in
/usr/lib/ruby/vendor_ruby/librarian instead.

(The packaging needs to install VERSION there in another commit)
---
 lib/librarian/version.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librarian/version.rb b/lib/librarian/version.rb
index b263e70..ad9ec1b 100644
--- a/lib/librarian/version.rb
+++ b/lib/librarian/version.rb
@@ -1,3 +1,3 @@
 module Librarian
-  VERSION = File.read(File.expand_path("../../../VERSION", __FILE__)).strip
+  VERSION = File.read(File.expand_path("../VERSION", __FILE__)).strip
 end