Move version file content within constants.
This commit is contained in:
parent
c9d4c7138b
commit
1b18ea6e4a
1 changed files with 12 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue