ruby-mail (2.4.1-3) 0001-Track-library-version-within-lib.patch

Summary

 lib/VERSION         |    4 ----
 lib/mail/version.rb |   10 +++++-----
 2 files changed, 5 insertions(+), 9 deletions(-)

    
download this patch

Patch contents

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:1
-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'] = "1"
+    version['build'] = nil
     
     MAJOR = version['major']
     MINOR = version['minor']