six-updater-web 0.24.2 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile
CHANGED
@@ -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?(
|
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...)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 24
|
8
|
-
-
|
9
|
-
version: 0.24.
|
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-
|
17
|
+
date: 2010-08-16 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|