[DRE-commits] [SCM] ruby-mail.git branch, master, updated. debian/2.4.1-2-5-gb0eb802
Carl Worth
cworth at debian.org
Wed Mar 7 17:33:31 UTC 2012
The following commit has been merged in the master branch:
commit 4891a6470d99503f5698c67ad2092c465b1e12b6
Author: Carl Worth <cworth at debian.org>
Date: Tue Mar 6 18:00:54 2012 -0800
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.
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']
--
ruby-mail.git
More information about the Pkg-ruby-extras-commits
mailing list