File: 0001-Track-library-version-within-lib.patch

package info (click to toggle)
ruby-mail 2.4.4-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,132 kB
  • sloc: ruby: 16,631; makefile: 7
file content (46 lines) | stat: -rw-r--r-- 1,370 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
45
46
From 4891a6470d99503f5698c67ad2092c465b1e12b6 Mon Sep 17 00:00:00 2001
From: Carl Worth <cworth@debian.org>
Date: Tue, 6 Mar 2012 18:00:54 -0800
Subject: Track library version within lib/

It's not safe to expect a relative directory up outside of lib/mail to
actually contain files we might want to expect to live there. So
instead of maintaining a lib/VERSION file, simply maintain the version
string within lib/mail/version.rb.
---
 lib/VERSION         |    4 ----
 lib/mail/version.rb |   10 +++++-----
 2 files changed, 5 insertions(+), 9 deletions(-)
 delete mode 100644 lib/VERSION

diff --git a/lib/VERSION b/lib/VERSION
deleted file mode 100644
index d849df3..0000000
--- a/lib/VERSION
+++ /dev/null
@@ -1,4 +0,0 @@
-major:2
-minor:4
-patch:4
-build:
diff --git a/lib/mail/version.rb b/lib/mail/version.rb
index 2b70bd1..4aaca0a 100644
--- a/lib/mail/version.rb
+++ b/lib/mail/version.rb
@@ -3,11 +3,11 @@ module Mail
   module VERSION
     
     version = {}
-    File.read(File.join(File.dirname(__FILE__), '../', 'VERSION')).each_line do |line|
-      type, value = line.chomp.split(":")
-      next if type =~ /^\s+$/  || value =~ /^\s+$/
-      version[type] = value
-    end
+
+    version['major'] = "2"
+    version['minor'] = "4"
+    version['patch'] = "4"
+    version['build'] = nil
     
     MAJOR = version['major']
     MINOR = version['minor']