use gem version number when creating translation catalogs
authorLunar <lunar@anargeek.net>
Wed, 13 Mar 2013 17:11:18 +0000 (18:11 +0100)
committerLunar <lunar@anargeek.net>
Thu, 14 Mar 2013 10:44:12 +0000 (11:44 +0100)
Rakefile

index 790c7e7..5b8053a 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -25,7 +25,8 @@ require 'haml/magic_translations/tasks'
 Haml::MagicTranslations::Tasks::UpdatePoFiles.new(:updatepo) do |t|
   t.text_domain = 'coquelicot'
   t.files = Dir.glob('views/**/*.{rb,haml}') + Dir.glob('lib/coquelicot/**/*.rb')
-  t.app_version = 'coquelicot 1.0.0'
+  spec = Gem::Specification.load('coquelicot.gemspec')
+  t.app_version = "coquelicot #{spec.version}"
 end
 
 task :create_archive do