six-updater-web 0.15.1 → 0.15.2

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.15.1'
10
+ s.version = '0.15.2'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -225,17 +225,23 @@ class MainController < ApplicationController
225
225
 
226
226
  setting = Appsetting.new unless setting
227
227
 
228
- procs = setting.processes
229
- unless procs.empty?
230
- @msg << "<br /><b>WARNING:</b> There seem to be open arma processes: #{setting.real_exe}<br />Pids: #{procs}"
228
+ if setting.real_path
229
+ unless File.directory?(setting.real_path)
230
+ @msg << "<br /><b>WARNING:</b> ArmA folder not set or non existent: #{setting.real_path}"
231
+ end
232
+ else
233
+ @msg << "<br /><b>WARNING:</b> ArmA folder not set or non existent: #{setting.real_path}"
231
234
  end
232
235
 
233
- unless File.directory?(setting.real_path)
234
- @msg << "<br /><b>WARNING:</b> ArmA folder not set or non existent: #{setting.real_path}"
236
+ if setting.modpath
237
+ unless File.directory?(setting.real_modpath)
238
+ @msg << "<br /><b>WARNING:</b> Mod installation folder not set or non existent: #{setting.real_modpath}"
239
+ end
235
240
  end
236
241
 
237
- if setting.modpath && !File.directory?(setting.real_modpath)
238
- @msg << "<br /><b>WARNING:</b> Mod installation folder not set or non existent: #{setting.real_modpath}"
242
+ procs = setting.processes
243
+ unless procs.empty?
244
+ @msg << "<br /><b>WARNING:</b> There seem to be open arma processes: #{setting.real_exe}<br />Pids: #{procs}"
239
245
  end
240
246
 
241
247
  preset.all_mods(server).each do |mod|
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.15.1"
25
+ VERSION = "0.15.2"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 15
8
- - 1
9
- version: 0.15.1
8
+ - 2
9
+ version: 0.15.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy