six-updater 0.10.7 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/six/updater.rb +9 -3
- 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.10.
|
47
|
+
VERSION = '0.10.8'
|
48
48
|
COMPONENT = 'six-updater'
|
49
49
|
|
50
50
|
# Configuration
|
@@ -74,6 +74,12 @@ module Six
|
|
74
74
|
p
|
75
75
|
end
|
76
76
|
TOOL_PATH = File.join(BASE_PATH, 'tools')
|
77
|
+
DOWNLOADER = if File.exists?(File.join(TOOL_PATH, 'six-downloader.rb'))
|
78
|
+
"\"#{File.join(TOOL_PATH, 'ruby', 'bin', 'ruby.exe')}\" \"#{File.join(TOOL_PATH, 'six-downloader.rb')}\""
|
79
|
+
else
|
80
|
+
"\"#{File.join(TOOL_PATH, 'six-downloader.exe')}\""
|
81
|
+
end
|
82
|
+
|
77
83
|
LOG_LIMIT = 9999
|
78
84
|
# TODO: Allow downloader yml instead?
|
79
85
|
# TODO: Auto update always etc? :D
|
@@ -154,7 +160,7 @@ module Six
|
|
154
160
|
rescue
|
155
161
|
log.warn "7-zip not found, attempting download!"
|
156
162
|
log.debug "#{$!}"
|
157
|
-
system "
|
163
|
+
system "#{DOWNLOADER} \"#{File.join(BASE_PATH, 'six-downloader_7z.yml').gsub('/', '\\')}\" --output \"#{TOOL_PATH.gsub('/', '\\')}\""
|
158
164
|
file = File.join(TOOL_PATH, "7z.exe")
|
159
165
|
unless FileTest.exist?(file)
|
160
166
|
log.error "ERROR: #{file} not found, please download from http://7-zip.org/download.html '7-Zip Command Line Version'"
|
@@ -267,7 +273,7 @@ module Six
|
|
267
273
|
Dir.chdir TOOL_PATH
|
268
274
|
file = "portablegit.7z"
|
269
275
|
FileUtils.rm_f file if FileTest.exist?(file)
|
270
|
-
system "
|
276
|
+
system "#{DOWNLOADER} \"#{File.join(BASE_PATH, 'six-downloader_portablegit.yml').gsub('/', '\\')}\" --output \"#{TOOL_PATH.gsub('/', '\\')}\""
|
271
277
|
dir = File.join(TOOL_PATH, 'Git')
|
272
278
|
FileUtils.rm_rf dir if FileTest.exist?(dir)
|
273
279
|
FileUtils.mkdir_p dir
|
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.10.
|
4
|
+
version: 0.10.8
|
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-10-
|
12
|
+
date: 2009-10-29 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|