six-updater-web 0.19.7 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
7
7
 
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'six-updater-web'
10
- s.version = '0.19.7'
10
+ s.version = '0.20.0'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -211,11 +211,11 @@ class MainController < ApplicationController
211
211
  end
212
212
 
213
213
  if setting
214
- @msg << "Override settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params}'>#{setting.label}</a>"
214
+ @msg << "Override settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
215
215
  else
216
216
  if preset.appsetting
217
217
  setting = preset.appsetting
218
- @msg << "Preset settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params}'>#{setting.label}</a>"
218
+ @msg << "Preset settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
219
219
  end
220
220
  end
221
221
 
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.19.7"
25
+ VERSION = "0.20.0"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -240,7 +240,15 @@ module SixUpdaterWeb
240
240
  Thread.new() do
241
241
  file_to_use = "#{LOCAL_URL}/main"
242
242
  sleep 3
243
- system "start #{file_to_use}"
243
+ iron = File.join(BASE_PATH, "tools", "IronPortable", "IronPortable.exe")
244
+ chrome = File.join(BASE_PATH, "tools", "GoogleChromePortable", "GoogleChromePortable.exe")
245
+ if File.exists?(iron)
246
+ system "cmd /c \"#{iron}\" --app=#{file_to_use}"
247
+ elsif File.exists?(chrome)
248
+ system "cmd /c \"#{chrome}\" --app=#{file_to_use}"
249
+ else
250
+ system "start #{file_to_use}"
251
+ end
244
252
  end
245
253
  =begin
246
254
  arguments = nil
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 19
8
- - 7
9
- version: 0.19.7
7
+ - 20
8
+ - 0
9
+ version: 0.20.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-11 00:00:00 +02:00
17
+ date: 2010-07-15 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency