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

package info (click to toggle)
ruby-mail 2.6.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,092 kB
  • ctags: 1,281
  • sloc: ruby: 43,919; makefile: 2
file content (41 lines) | stat: -rw-r--r-- 1,186 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
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 VERSION file, simply maintain the version
string within lib/mail/version.rb.
---
 VERSION	     |    4 ----
 lib/mail/version.rb |   10 +++++-----
 2 files changed, 5 insertions(+), 9 deletions(-)
 delete mode 100644 VERSION

--- a/VERSION
+++ /dev/null
@@ -1,4 +0,0 @@
-major:2
-minor:6
-patch:1
-build:
--- 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'] = "6"
+    version['patch'] = "1"
+    version['build'] = nil
     
     MAJOR = version['major']
     MINOR = version['minor']