six-updater-web 0.20.2 → 0.20.3
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 +7 -1
- data/lib/six-updater-web/app/views/main/index.haml +4 -0
- data/lib/six-updater-web/config/six-updater-web.rb +1 -1
- data/lib/six-updater-web/db/migrate/20100715142960_add_beta_to_system_settings.rb +9 -0
- data/lib/six-updater-web/db/schema.rb +2 -1
- metadata +3 -2
data/Rakefile
CHANGED
@@ -16,6 +16,8 @@ class MainController < ApplicationController
|
|
16
16
|
@system_setting = SystemSetting.singleton
|
17
17
|
@autoskip = @system_setting.autoskip
|
18
18
|
@autoskip = true if @autoskip.nil?
|
19
|
+
@beta = @system_setting.beta
|
20
|
+
|
19
21
|
@inweb = @system_setting.inweb
|
20
22
|
@queryserver = Queryserver.new
|
21
23
|
|
@@ -152,6 +154,7 @@ class MainController < ApplicationController
|
|
152
154
|
end
|
153
155
|
|
154
156
|
if params[:system]
|
157
|
+
@beta = (params[:system][:beta] == "1")
|
155
158
|
@autoskip = (params[:system][:autoskip] == "1")
|
156
159
|
@inweb = (params[:system][:inweb] == "1")
|
157
160
|
end
|
@@ -178,6 +181,7 @@ class MainController < ApplicationController
|
|
178
181
|
nil
|
179
182
|
end
|
180
183
|
|
184
|
+
@system_setting.beta = @beta
|
181
185
|
@system_setting.autoskip = @autoskip
|
182
186
|
@system_setting.inweb = @inweb
|
183
187
|
@system_setting.save
|
@@ -211,10 +215,12 @@ class MainController < ApplicationController
|
|
211
215
|
end
|
212
216
|
|
213
217
|
if setting
|
218
|
+
setting.beta = @beta
|
214
219
|
@msg << "Override settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
|
215
220
|
else
|
216
221
|
if preset.appsetting
|
217
222
|
setting = preset.appsetting
|
223
|
+
setting.beta = @beta
|
218
224
|
@msg << "Preset settings profile: <a href='/appsettings/edit/#{setting.id}' title='#{setting.real_exe} #{setting.real_params} (#{setting.real_path})'>#{setting.label}</a>"
|
219
225
|
end
|
220
226
|
end
|
@@ -235,7 +241,7 @@ class MainController < ApplicationController
|
|
235
241
|
setting = Appsetting.find(setting.id)
|
236
242
|
end
|
237
243
|
else
|
238
|
-
setting = Arma2Appsetting.new
|
244
|
+
setting = Arma2Appsetting.new(:beta => @beta)
|
239
245
|
end
|
240
246
|
|
241
247
|
@msg << "Resetting skip status." if reset
|
@@ -36,6 +36,10 @@
|
|
36
36
|
|
37
37
|
= submit_tag "Save"
|
38
38
|
|
39
|
+
= check_box :system, :beta, {:checked => @beta}
|
40
|
+
%a{:title => "Enable beta mod and mode" }
|
41
|
+
Beta
|
42
|
+
|
39
43
|
= check_box :system, :autoskip, {:checked => @autoskip}
|
40
44
|
%a{:title => "Only update mods whos online version doesnt match local" }
|
41
45
|
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 => 20100715142960) do
|
13
13
|
|
14
14
|
create_table "actions", :id => false, :force => true do |t|
|
15
15
|
t.string "id", :limit => 36, :null => false
|
@@ -330,6 +330,7 @@ ActiveRecord::Schema.define(:version => 20100520101656) do
|
|
330
330
|
t.string "favorite_settings_profile", :limit => 36
|
331
331
|
t.boolean "inweb"
|
332
332
|
t.datetime "gamespied_at"
|
333
|
+
t.boolean "beta"
|
333
334
|
end
|
334
335
|
|
335
336
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 20
|
8
|
-
-
|
9
|
-
version: 0.20.
|
8
|
+
- 3
|
9
|
+
version: 0.20.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Sickboy
|
@@ -255,6 +255,7 @@ files:
|
|
255
255
|
- lib/six-updater-web/db/migrate/20100520101654_add_beta_to_appsettings.rb
|
256
256
|
- lib/six-updater-web/db/migrate/20100520101655_add_defaults_to_type.rb
|
257
257
|
- lib/six-updater-web/db/migrate/20100520101656_add_server_to_appsettings.rb
|
258
|
+
- lib/six-updater-web/db/migrate/20100715142960_add_beta_to_system_settings.rb
|
258
259
|
- lib/six-updater-web/db/schema.rb
|
259
260
|
- lib/six-updater-web/doc/README_FOR_APP
|
260
261
|
- lib/six-updater-web/init.rb
|