six-updater 0.10.7 → 0.10.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six/updater.rb +9 -3
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-updater'
15
- s.version = '0.10.7'
15
+ s.version = '0.10.8'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -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.7'
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 "six-downloader.exe \"#{File.join(BASE_PATH, 'six-downloader_7z.yml').gsub('/', '\\')}\" --output \"#{TOOL_PATH.gsub('/', '\\')}\""
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 "six-downloader.exe \"#{File.join(BASE_PATH, 'six-downloader_portablegit.yml').gsub('/', '\\')}\" --output \"#{TOOL_PATH.gsub('/', '\\')}\""
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.7
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-25 01:00:00 +02:00
12
+ date: 2009-10-29 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency