six-updater 0.13.11 → 0.14.1
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 +14 -11
- metadata +2 -2
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.
|
47
|
+
VERSION = '0.14.1'
|
48
48
|
COMPONENT = 'six-updater'
|
49
49
|
|
50
50
|
# Configuration
|
@@ -77,16 +77,19 @@ module Six
|
|
77
77
|
|
78
78
|
dpath = BASE_PATH
|
79
79
|
unless File.exists?(File.join(BASE_PATH, "legacy.txt"))
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
80
|
+
reg_path = nil
|
81
|
+
case RUBY_VERSION
|
82
|
+
when /1\.8\.[0-9]/
|
83
|
+
begin
|
84
|
+
reg_path = Win32::Registry::HKEY_CURRENT_USER.open("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders")['AppData']
|
85
|
+
rescue
|
86
|
+
end
|
87
|
+
end
|
88
|
+
if reg_path
|
89
|
+
if reg_path.size > 0
|
90
|
+
dpath = File.join(reg_path, 'Six-Updater') if File.directory?(reg_path)
|
91
|
+
end
|
92
|
+
elsif ENV['APPDATA']
|
90
93
|
if ENV['APPDATA'].size > 0
|
91
94
|
dpath = File.join(ENV['APPDATA'], 'Six-Updater') if File.directory?(ENV['APPDATA'])
|
92
95
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: six-updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sickboy
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-28 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|