Move version file content within constants.

This commit is contained in:
Glenn Y. Rolland 2015-08-10 17:01:51 +02:00
parent c9d4c7138b
commit 1b18ea6e4a

View file

@ -1,4 +1,11 @@
module Qasim module Qasim
APP_NAME = "Qasim"
APP_VERSION = "0.1.11"
APP_DATE = "2014-05-09"
APP_DATA_DIR = Pathname.new(File.dirname(__FILE__)).parent.parent.parent + "data" APP_DATA_DIR = Pathname.new(File.dirname(__FILE__)).parent.parent.parent + "data"
APP_ICON_PATH = File.join APP_DATA_DIR, "icons" APP_ICON_PATH = File.join APP_DATA_DIR, "icons"
@ -6,8 +13,9 @@ module Qasim
APP_SYSCONFIG_DIR = "/etc/qasim/maps.d" APP_SYSCONFIG_DIR = "/etc/qasim/maps.d"
APP_CONFIG_DIR = if ENV['XDG_CONFIG_HOME'] then APP_CONFIG_DIR = if ENV['XDG_CONFIG_HOME'] then
File.join ENV['XDG_CONFIG_HOME'], 'qasim' File.join ENV['XDG_CONFIG_HOME'], 'qasim'
else else
File.join ENV['HOME'], '.config', 'qasim' File.join ENV['HOME'], '.config', 'qasim'
end end
end end