six-updater 0.13.6 → 0.13.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six/updater.rb +10 -8
- metadata +1 -1
data/Rakefile
CHANGED
data/lib/six/updater.rb
CHANGED
@@ -44,7 +44,7 @@ end
|
|
44
44
|
module Six
|
45
45
|
# TODO: Evaluate if this module should be a class instead?
|
46
46
|
module Updater
|
47
|
-
VERSION = '0.13.
|
47
|
+
VERSION = '0.13.7'
|
48
48
|
COMPONENT = 'six-updater'
|
49
49
|
|
50
50
|
# Configuration
|
@@ -81,18 +81,20 @@ module Six
|
|
81
81
|
end
|
82
82
|
|
83
83
|
|
84
|
-
DATA_PATH = if
|
85
|
-
|
86
|
-
|
87
|
-
|
84
|
+
DATA_PATH = if File.exists?(File.join(BASE_PATH, "legacy.txt"))
|
85
|
+
BASE_PATH
|
86
|
+
elsif ENV['APPDATA']
|
87
|
+
if ENV['APPDATA'].size > 0
|
88
|
+
if File.directory?(ENV['APPDATA'])
|
89
|
+
File.join(ENV['APPDATA'], 'Six-Updater')
|
90
|
+
else
|
91
|
+
BASE_PATH
|
92
|
+
end
|
88
93
|
else
|
89
94
|
BASE_PATH
|
90
95
|
end
|
91
96
|
else
|
92
97
|
BASE_PATH
|
93
|
-
end
|
94
|
-
else
|
95
|
-
BASE_PATH
|
96
98
|
end
|
97
99
|
|
98
100
|
|