From 247cbbc6961508d4c8fee78a98a5ac0a841a67fd Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 27 Aug 2013 23:20:24 -0300 Subject: Fix version number management Made the Rakefile read the version number from lib/feed2imap/feed2imap.rb instead of having it duplicated in both places. --- Rakefile | 2 +- lib/feed2imap/feed2imap.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index ead0b27..2a1737a 100644 --- a/Rakefile +++ b/Rakefile @@ -7,7 +7,7 @@ require 'find' task :default => [:test] PKG_NAME = 'feed2imap' -PKG_VERSION = '1.2' +PKG_VERSION = `ruby -Ilib -rfeed2imap/feed2imap -e 'print F2I_VERSION'` PKG_FILES = [ 'ChangeLog', 'README', 'COPYING', 'setup.rb', 'Rakefile'] Find.find('bin/', 'lib/', 'test/', 'data/') do |f| if FileTest.directory?(f) and f =~ /\.svn/ diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index 7ec355c..7080f9c 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -18,7 +18,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA =end # Feed2Imap version -F2I_VERSION = '1.0' +F2I_VERSION = '1.2.1' F2I_WARNFETCHTIME = 10 require 'feed2imap/config' -- cgit v1.2.3