six-updater-web 0.24.2 → 0.24.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.24.2'
10
+ s.version = '0.24.3'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -189,28 +189,6 @@ class MainController < ApplicationController
189
189
  @system_setting.save
190
190
  end
191
191
 
192
- case params["commit"].downcase
193
- when "edit preset"
194
- redirect_to "/sixconfigs/edit/#{preset.id}"
195
- return
196
-
197
- when "edit server"
198
- redirect_to "/queryservers/edit/#{queryserver.id}"
199
- return
200
-
201
- when "edit action"
202
- redirect_to "/actions/edit/#{action.id}"
203
- return
204
-
205
- when "edit setting"
206
- redirect_to "/appsettings/edit/#{setting.id}"
207
- return
208
-
209
- when "edit userconfig"
210
- redirect_to "/config/?setting=#{setting.id}"
211
- return
212
- end
213
-
214
192
  if preset
215
193
  @status << "Preset: <a href='/sixconfigs/edit/#{preset.id}' title='#{preset.mods.map{|e| e.name}.join(", ")}'>#{preset.name}</a>"
216
194
  else
@@ -274,6 +252,28 @@ class MainController < ApplicationController
274
252
  end
275
253
  end
276
254
 
255
+ case params["commit"].downcase
256
+ when "edit preset"
257
+ redirect_to "/sixconfigs/edit/#{preset.id}"
258
+ return
259
+
260
+ when "edit server"
261
+ redirect_to "/queryservers/edit/#{queryserver.id}"
262
+ return
263
+
264
+ when "edit action"
265
+ redirect_to "/actions/edit/#{action.id}"
266
+ return
267
+
268
+ when "edit setting"
269
+ redirect_to "/appsettings/edit/#{setting.id}"
270
+ return
271
+
272
+ when "edit userconfig"
273
+ redirect_to "/config/?setting=#{setting.id}"
274
+ return
275
+ end
276
+
277
277
  @msg << "Skip status reset!" if reset
278
278
 
279
279
  # Check for open processes
@@ -28,7 +28,7 @@ class Sixconfig < ActiveRecord::Base
28
28
  end
29
29
  end
30
30
  end
31
- m.each {|mod| if (mod.new_record? && !mod.exists?(self.appsetting)); mod.disabled = true; end }
31
+ m.each {|mod| if (mod.new_record? && !mod.exists?(setting)); mod.disabled = true; end }
32
32
  ms = []
33
33
  m.each {|mod| ms += mod.all_dependentmods; ms << mod }
34
34
  ms.uniq.reject{|e| e.class == Mod} # Shitty workaround for crap input (Wrong type mods...)
@@ -23,7 +23,7 @@ end
23
23
  require 'open3'
24
24
 
25
25
  module SixUpdaterWeb
26
- VERSION = "0.24.2"
26
+ VERSION = "0.24.3"
27
27
  COMPONENT = "six-updater-web"
28
28
 
29
29
  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
  - 24
8
- - 2
9
- version: 0.24.2
8
+ - 3
9
+ version: 0.24.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-31 00:00:00 +02:00
17
+ date: 2010-08-16 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency