six-updater-web 0.14.12 → 0.15.1

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 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.14.12'
10
+ s.version = '0.15.1'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -224,6 +224,20 @@ class MainController < ApplicationController
224
224
  @msg << "Resetting skip status." if reset
225
225
 
226
226
  setting = Appsetting.new unless setting
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}"
231
+ end
232
+
233
+ unless File.directory?(setting.real_path)
234
+ @msg << "<br /><b>WARNING:</b> ArmA folder not set or non existent: #{setting.real_path}"
235
+ end
236
+
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}"
239
+ end
240
+
227
241
  preset.all_mods(server).each do |mod|
228
242
  mod.update_version(setting.real_path) # TODO: this already runs in updater_yml, but there doesn't run if autoskip is disabled
229
243
  if reset && !@autoskip
@@ -271,11 +285,6 @@ class MainController < ApplicationController
271
285
 
272
286
  @msg << "<br />Saved six-updater.yml!<br /><b>A window should open displaying the update process progress</b>"
273
287
 
274
- procs = setting.processes
275
- unless procs.empty?
276
- @msg << "<br /><b>WARNING:</b> There seem to be open arma processes: #{procs}"
277
- end
278
-
279
288
  when "stop game"
280
289
  setting.processes.each { |entry| @msg << "Process to be killed: #{entry}" }
281
290
  setting.kill!
@@ -105,6 +105,7 @@ class Queryserver < ActiveRecord::Base
105
105
  self.attributes = self.convert(n)
106
106
  self.mods = self.mods_fetch2 if self.mod
107
107
  end
108
+ n
108
109
  end
109
110
 
110
111
  def get_latest
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.14.12"
25
+ VERSION = "0.15.1"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 14
8
- - 12
9
- version: 0.14.12
7
+ - 15
8
+ - 1
9
+ version: 0.15.1
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-05-09 00:00:00 +02:00
17
+ date: 2010-05-10 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency