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 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.20.2'
10
+ s.version = '0.20.3'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -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
  &nbsp;
37
37
  = submit_tag "Save"
38
38
  &nbsp;
39
+ = check_box :system, :beta, {:checked => @beta}
40
+ %a{:title => "Enable beta mod and mode" }
41
+ Beta
42
+ &nbsp;
39
43
  = check_box :system, :autoskip, {:checked => @autoskip}
40
44
  %a{:title => "Only update mods whos online version doesnt match local" }
41
45
  Autoskip
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.20.2"
25
+ VERSION = "0.20.3"
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 AddBetaToSystemSettings < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :system_settings, :beta, :boolean
4
+ end
5
+
6
+ def self.down
7
+ remove_column :system_settings, :beta
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 => 20100520101656) do
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
- - 2
9
- version: 0.20.2
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