summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@softwarelivre.org>2013-08-27 23:20:24 -0300
committerAntonio Terceiro <terceiro@softwarelivre.org>2013-08-27 23:20:24 -0300
commit247cbbc6961508d4c8fee78a98a5ac0a841a67fd (patch)
tree4f3b45e30feecf1067a2d0746c2961fb6aac76d4
parenta1b2e9080f53a3db984f4297d8f19892d6582d37 (diff)
downloadfeed2imap-247cbbc6961508d4c8fee78a98a5ac0a841a67fd.tar.gz
feed2imap-247cbbc6961508d4c8fee78a98a5ac0a841a67fd.tar.bz2
feed2imap-247cbbc6961508d4c8fee78a98a5ac0a841a67fd.zip
Fix version number management
Made the Rakefile read the version number from lib/feed2imap/feed2imap.rb instead of having it duplicated in both places.
Diffstat (limited to '')
-rw-r--r--Rakefile2
-rw-r--r--lib/feed2imap/feed2imap.rb2
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'