six-updater-web 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six-updater-web/app/controllers/main_controller.rb +6 -1
- data/lib/six-updater-web/app/views/main/_left.haml +4 -0
- data/lib/six-updater-web/config/six-updater-web.rb +1 -1
- data/lib/six-updater-web/db/migrate/20100715142962_add_server_bool_to_system_settings.rb +9 -0
- data/lib/six-updater-web/db/schema.rb +2 -1
- metadata +3 -2
data/Rakefile
CHANGED
@@ -10,6 +10,7 @@ class MainController < ApplicationController
|
|
10
10
|
@autoskip = @system_setting.autoskip
|
11
11
|
@autoskip = true if @autoskip.nil?
|
12
12
|
@beta = @system_setting.beta
|
13
|
+
@server_bool = @system_setting.server_bool
|
13
14
|
|
14
15
|
@server_check = false
|
15
16
|
|
@@ -150,6 +151,7 @@ class MainController < ApplicationController
|
|
150
151
|
|
151
152
|
if params[:system]
|
152
153
|
@beta = (params[:system][:beta] == "1")
|
154
|
+
@server_bool = (params[:system][:server_bool] == "1")
|
153
155
|
@autoskip = (params[:system][:autoskip] == "1")
|
154
156
|
@inweb = (params[:system][:inweb] == "1")
|
155
157
|
end
|
@@ -177,6 +179,7 @@ class MainController < ApplicationController
|
|
177
179
|
end
|
178
180
|
|
179
181
|
@system_setting.beta = @beta
|
182
|
+
@system_setting.server_bool = @server_bool
|
180
183
|
@system_setting.autoskip = @autoskip
|
181
184
|
@system_setting.inweb = @inweb
|
182
185
|
@system_setting.save
|
@@ -211,11 +214,13 @@ class MainController < ApplicationController
|
|
211
214
|
|
212
215
|
if setting
|
213
216
|
setting.beta = @beta
|
217
|
+
setting.server = @server_bool
|
214
218
|
@msg << "Override settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
|
215
219
|
else
|
216
220
|
if preset.appsetting
|
217
221
|
setting = preset.appsetting
|
218
222
|
setting.beta = @beta
|
223
|
+
setting.server = @server_bool
|
219
224
|
@msg << "Preset settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
|
220
225
|
end
|
221
226
|
end
|
@@ -236,7 +241,7 @@ class MainController < ApplicationController
|
|
236
241
|
setting = Appsetting.find(setting.id)
|
237
242
|
end
|
238
243
|
else
|
239
|
-
setting = Arma2Appsetting.new(:beta => @beta)
|
244
|
+
setting = Arma2Appsetting.new(:beta => @beta, :server => @server_bool)
|
240
245
|
end
|
241
246
|
|
242
247
|
@msg << "Resetting skip status." if reset
|
@@ -35,6 +35,10 @@
|
|
35
35
|
%a{:title => "Enable beta mod and mode" }
|
36
36
|
Beta
|
37
37
|
|
38
|
+
= check_box :system, :server_bool, {:checked => @server_bool}
|
39
|
+
%a{:title => "Enable (dedicated) server mode" }
|
40
|
+
Server
|
41
|
+
|
38
42
|
= check_box :system, :autoskip, {:checked => @autoskip}
|
39
43
|
%a{:title => "Only update mods whos online version doesnt match local" }
|
40
44
|
Autoskip
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
# It's strongly recommended to check this file into your version control system.
|
11
11
|
|
12
|
-
ActiveRecord::Schema.define(:version =>
|
12
|
+
ActiveRecord::Schema.define(:version => 20100715142962) do
|
13
13
|
|
14
14
|
create_table "actions", :id => false, :force => true do |t|
|
15
15
|
t.string "id", :limit => 36, :null => false
|
@@ -332,6 +332,7 @@ ActiveRecord::Schema.define(:version => 20100715142961) do
|
|
332
332
|
t.boolean "inweb"
|
333
333
|
t.datetime "gamespied_at"
|
334
334
|
t.boolean "beta"
|
335
|
+
t.boolean "server_bool"
|
335
336
|
end
|
336
337
|
|
337
338
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 21
|
8
|
-
-
|
9
|
-
version: 0.21.
|
8
|
+
- 1
|
9
|
+
version: 0.21.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sickboy
|
@@ -265,6 +265,7 @@ files:
|
|
265
265
|
- lib/six-updater-web/db/migrate/20100520101656_add_server_to_appsettings.rb
|
266
266
|
- lib/six-updater-web/db/migrate/20100715142960_add_beta_to_system_settings.rb
|
267
267
|
- lib/six-updater-web/db/migrate/20100715142961_add_queryserver_to_sixconfigs.rb
|
268
|
+
- lib/six-updater-web/db/migrate/20100715142962_add_server_bool_to_system_settings.rb
|
268
269
|
- lib/six-updater-web/db/schema.rb
|
269
270
|
- lib/six-updater-web/doc/README_FOR_APP
|
270
271
|
- lib/six-updater-web/init.rb
|