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 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.0'
10
+ s.version = '0.21.1'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -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
  &nbsp;
38
+ = check_box :system, :server_bool, {:checked => @server_bool}
39
+ %a{:title => "Enable (dedicated) server mode" }
40
+ Server
41
+ &nbsp;
38
42
  = check_box :system, :autoskip, {:checked => @autoskip}
39
43
  %a{:title => "Only update mods whos online version doesnt match local" }
40
44
  Autoskip
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.21.0"
25
+ VERSION = "0.21.1"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -0,0 +1,9 @@
1
+ class AddServerBoolToSystemSettings < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :system_settings, :server_bool, :boolean
4
+ end
5
+
6
+ def self.down
7
+ remove_column :system_settings, :server_bool
8
+ end
9
+ end
@@ -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 => 20100715142961) do
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
- - 0
9
- version: 0.21.0
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