six-updater-web 0.21.3 → 0.21.4

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.21.3'
10
+ s.version = '0.21.4'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -150,8 +150,22 @@ class MainController < ApplicationController
150
150
  end
151
151
 
152
152
  if params[:system]
153
- @beta = (params[:system][:beta] == "1")
154
- @server_bool = (params[:system][:server_bool] == "1")
153
+ @beta = case params[:system][:beta]
154
+ when "default"
155
+ nil
156
+ when "true"
157
+ true
158
+ else
159
+ false
160
+ end
161
+ @server_bool = case params[:system][:server_bool]
162
+ when "default"
163
+ nil
164
+ when "true"
165
+ true
166
+ else
167
+ false
168
+ end
155
169
  @autoskip = (params[:system][:autoskip] == "1")
156
170
  @inweb = (params[:system][:inweb] == "1")
157
171
  end
@@ -213,14 +227,14 @@ class MainController < ApplicationController
213
227
  end
214
228
 
215
229
  if setting
216
- setting.beta = @beta
217
- setting.server = @server_bool
230
+ setting.beta = @beta unless @beta.nil?
231
+ setting.server = @server_bool unless @server_bool.nil?
218
232
  @msg << "Override settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
219
233
  else
220
234
  if preset.appsetting
221
235
  setting = preset.appsetting
222
- setting.beta = @beta
223
- setting.server = @server_bool
236
+ setting.beta = @beta unless @beta.nil?
237
+ setting.server = @server_bool unless @server_bool.nil?
224
238
  @msg << "Preset settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
225
239
  end
226
240
  end
@@ -31,35 +31,34 @@
31
31
  = record_select_field 'setting', @setting, :controller => "Appsettings"
32
32
  = submit_tag "Edit setting"
33
33
  %p
34
- = check_box :system, :beta, {:checked => @beta}
35
34
  %a{:title => "Enable beta mod and mode" }
36
35
  Beta
36
+ = select( "system", "beta", ["default", "true", "false"], {:selected => @beta.to_s})
37
37
  &nbsp;
38
- = check_box :system, :server_bool, {:checked => @server_bool}
39
38
  %a{:title => "Enable (dedicated) server mode" }
40
39
  Server
41
- &nbsp;
42
- = check_box :system, :autoskip, {:checked => @autoskip}
40
+ = select( "system", "server_bool", ["default", "true", "false"], {:selected => @server_bool.to_s})
43
41
  %a{:title => "Only update mods whos online version doesnt match local" }
44
42
  Autoskip
43
+ = check_box :system, :autoskip, {:checked => @autoskip}
45
44
  &nbsp;
46
- = check_box :system, :inweb, {:checked => @inweb}
47
45
  %a{:title => "Display updater output into ajax-refreshed web-page (Handy for remote-management)" }
48
- Integrated
46
+ Remote
47
+ = check_box :system, :inweb, {:checked => @inweb}
49
48
  %p
50
49
  = submit_tag "Execute"
51
50
  &nbsp;
52
51
  = submit_tag "Save"
53
52
  &nbsp;
54
- = submit_tag "Edit Userconfig"
55
- &nbsp;
56
- = submit_tag "Server Mod check"
57
- %p
58
53
  = submit_tag "Stop Game"
59
54
  &nbsp;
60
55
  = submit_tag "Reset Skip Status"
61
- &nbsp;
56
+ %p
62
57
  = submit_tag "Show status"
58
+ &nbsp;
59
+ = submit_tag "Server Mod check"
60
+ &nbsp;
61
+ = submit_tag "Edit Userconfig"
63
62
  %strong Logs
64
63
  - form_tag :action => :fetch do
65
64
  %p
@@ -1,8 +1,11 @@
1
- Server: #{@queryserver.to_label}
1
+ Server: #{link_to @queryserver.to_label, "/queryservers/edit/#{@queryserver.id}"}
2
2
  %br
3
3
  Signatures: #{@signatures}
4
4
  %br
5
5
  %br
6
+ Mods: #{@queryserver.mod}
7
+ %br
8
+ %br
6
9
  Allowed:
7
10
  %br
8
11
  = @allowed
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.21.3"
25
+ VERSION = "0.21.4"
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
  - 21
8
- - 3
9
- version: 0.21.3
8
+ - 4
9
+ version: 0.21.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy