[DRE-commits] [SCM] ruby-mail.git branch, master, updated. debian/2.4.1-3-6-ga88d521

Ondřej Surý ondrej at sury.org
Wed Apr 25 12:10:16 UTC 2012


The following commit has been merged in the master branch:
commit 538b8c72b27217e9c953f309d20ad5e2c432fc28
Author: Ondřej Surý <ondrej at sury.org>
Date:   Wed Apr 25 14:06:15 2012 +0200

    Remove upstream changes from outside of debian/patches/

diff --git a/lib/VERSION b/lib/VERSION
new file mode 100644
index 0000000..d849df3
--- /dev/null
+++ b/lib/VERSION
@@ -0,0 +1,4 @@
+major:2
+minor:4
+patch:1
+build:
diff --git a/lib/mail/version.rb b/lib/mail/version.rb
index 4aaca0a..2b70bd1 100644
--- a/lib/mail/version.rb
+++ b/lib/mail/version.rb
@@ -3,11 +3,11 @@ module Mail
   module VERSION
     
     version = {}
-
-    version['major'] = "2"
-    version['minor'] = "4"
-    version['patch'] = "1"
-    version['build'] = nil
+    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
     
     MAJOR = version['major']
     MINOR = version['minor']

-- 
ruby-mail.git



More information about the Pkg-ruby-extras-commits mailing list