From 1b18ea6e4a65250e519c17edeff78f0630ada8d5 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Mon, 10 Aug 2015 17:01:51 +0200 Subject: [PATCH] Move version file content within constants. --- lib/qasim/constants.rb | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/qasim/constants.rb b/lib/qasim/constants.rb index a4e02a5..24322b7 100644 --- a/lib/qasim/constants.rb +++ b/lib/qasim/constants.rb @@ -1,4 +1,11 @@ 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_ICON_PATH = File.join APP_DATA_DIR, "icons" @@ -6,8 +13,9 @@ module Qasim APP_SYSCONFIG_DIR = "/etc/qasim/maps.d" APP_CONFIG_DIR = if ENV['XDG_CONFIG_HOME'] then - File.join ENV['XDG_CONFIG_HOME'], 'qasim' - else - File.join ENV['HOME'], '.config', 'qasim' - end + File.join ENV['XDG_CONFIG_HOME'], 'qasim' + else + File.join ENV['HOME'], '.config', 'qasim' + end + end