six-updater-web 0.20.8 → 0.21.0

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.8'
10
+ s.version = '0.21.0'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -18,11 +18,12 @@ spec = Gem::Specification.new do |s|
18
18
  s.require_path = "lib"
19
19
  s.bindir = "bin"
20
20
  s.executables = ['six-updater-web', 'six-updater-web-rake', 'six-get']
21
- s.add_dependency('faster_require', '>= 0.5.2')
21
+ #s.add_dependency('faster_require', '>= 0.5.2')
22
22
  s.add_dependency('uuidtools', '>= 2.0.0')
23
23
  s.add_dependency('six-updater', '>= 0.17.0')
24
24
  s.add_dependency('rails', '2.3.8')
25
25
  s.add_dependency('haml', '3.0.10')
26
+ s.add_dependency('coderay', '>= 0.9.3')
26
27
  s.add_dependency('RedCloth', '>= 4.2.2')
27
28
  end
28
29
 
@@ -35,4 +35,5 @@ class AppsettingsController < ApplicationController
35
35
  @processes = []
36
36
  end
37
37
  end
38
+
38
39
  end
@@ -0,0 +1,76 @@
1
+ class ConfigController < ApplicationController
2
+ # TODO: Display original file, perhaps with diff, unpacked from store\userconfig.tar or where-ever it is located?
3
+ # TODO: arma2.cfg, .armaprofile, bans.txt, server.cfg ?
4
+ def index
5
+ preset = nil
6
+ preset = fetch_param([:config], Sixconfig, preset)
7
+
8
+ setting = if preset && preset.appsetting
9
+ preset.appsetting
10
+ else
11
+ Appsetting.new
12
+ end
13
+ setting = fetch_param([:setting], Appsetting, setting)
14
+ path = setting.real_path.gsub("\\", "/")
15
+
16
+
17
+ @userconfigs = Dir.chdir(path) { Dir["userconfig/**/*"].reject {|e| File.directory?(e) || File.dirname(e)[/_[0-9]*$/]} }
18
+ @userconfigs += ["ban.txt"]
19
+ cfg = params["options"] && params["options"]["userconfig"] ? params["options"]["userconfig"] : @userconfigs[0]
20
+ case params["commit"]
21
+ when "Edit"
22
+ redirect_to "/config/edit/?setting=#{params["setting"]}&options[userconfig]=#{params["options"]["userconfig"]}"
23
+ return
24
+ end
25
+ @userconfig = File.exists?(File.join(path, cfg)) ? File.open(File.join(path, cfg)) {|a| Iconv.new("utf-8//IGNORE//TRANSLIT", "utf-8").iconv(a.read + ' ')[0..-2].split("\n").map{|e| e.sub("\r", "")}.join("\n") } : ""
26
+ end
27
+
28
+ def edit
29
+ path = Appsetting.find(params["setting"]).real_path.gsub("\\", "/")
30
+ @userconfig = File.exists?(File.join(path, params["options"]["userconfig"])) ? File.open(File.join(path, params["options"]["userconfig"])) {|a| Iconv.new("utf-8//IGNORE//TRANSLIT", "utf-8").iconv(a.read + ' ')[0..-2].split("\n").map{|e| e.sub("\r", "")}.join("\n") } : ""
31
+ end
32
+
33
+ def show
34
+ path = Appsetting.find(params["setting"]).real_path.gsub("\\", "/")
35
+ @userconfig = File.exists?(File.join(path, params["options"]["userconfig"])) ? File.open(File.join(path, params["options"]["userconfig"])) {|a| Iconv.new("utf-8//IGNORE//TRANSLIT", "utf-8").iconv(a.read + ' ')[0..-2].split("\n").map{|e| e.sub("\r", "")}.join("\n") } : ""
36
+ end
37
+
38
+ def update
39
+ path = Appsetting.find(params["setting"]).real_path.gsub("\\", "/")
40
+ case params["commit"]
41
+ when "Save"
42
+ if params["options"]
43
+ File.open(File.join(path, params["options"]["userconfig"]), 'w') {|a| a.write params["options"]["content"].gsub("\r", "") }
44
+ end
45
+ when "Reload"
46
+ redirect_to "/config/edit/?setting=#{params["setting"]}&options[userconfig]=#{params["options"]["userconfig"]}"
47
+ return
48
+ end
49
+ redirect_to "/config/show/?setting=#{params["setting"]}&options[userconfig]=#{params["options"]["userconfig"]}"
50
+ end
51
+
52
+ def fetch_param(ar, ty, default = nil)
53
+ a = params
54
+ ar.each do |e|
55
+ if a[e]
56
+ a = a[e]
57
+ else
58
+ a = nil
59
+ break
60
+ end
61
+ end
62
+ if a
63
+ if a.empty?
64
+ return nil
65
+ else
66
+ begin
67
+ return ty.find(a)
68
+ rescue
69
+ return default
70
+ end
71
+ end
72
+ else
73
+ return default
74
+ end
75
+ end
76
+ end
@@ -1,11 +1,4 @@
1
1
  class MainController < ApplicationController
2
- def userconfig
3
- path = File.join(Appsetting.new.real_path, "Userconfig").gsub("\\", "/")
4
- @userconfigs = Dir.chdir(path) { Dir["**/*"].reject {|e| File.directory?(e) || File.dirname(e)[/_[0-9]*$/]} }
5
- cfg = params["options"] && params["options"]["userconfig"] ? params["options"]["userconfig"] : @userconfigs[0]
6
- @userconfig = File.open(File.join(path, cfg)) {|a| a.readlines }
7
- end
8
-
9
2
  def index
10
3
  @msg = []
11
4
  @skip, @install, @check, @disabled = [], [], [], []
@@ -18,6 +11,8 @@ class MainController < ApplicationController
18
11
  @autoskip = true if @autoskip.nil?
19
12
  @beta = @system_setting.beta
20
13
 
14
+ @server_check = false
15
+
21
16
  @inweb = @system_setting.inweb
22
17
  @queryserver = Queryserver.new
23
18
 
@@ -289,14 +284,31 @@ class MainController < ApplicationController
289
284
  end
290
285
 
291
286
  case params["commit"].downcase
292
- when "edit"
293
- redirect_to "/sixconfigs/edit/#{params[:config]}"
287
+ when "edit preset"
288
+ redirect_to "/sixconfigs/edit/#{preset.id}"
289
+ return
290
+
291
+ when "edit server"
292
+ redirect_to "/queryservers/edit/#{queryserver.id}"
294
293
  return
295
294
 
296
- when "show"
297
- redirect_to "/queryservers/edit/#{params[:gamespy]}"
295
+ when "edit action"
296
+ redirect_to "/actions/edit/#{action.id}"
298
297
  return
299
298
 
299
+ when "edit setting"
300
+ redirect_to "/appsettings/edit/#{setting.id}"
301
+ return
302
+
303
+ when "edit userconfig"
304
+ redirect_to "/config/?setting=#{setting.id}"
305
+ return
306
+
307
+ when "server mod check"
308
+ @server_check = true
309
+ @signatures = queryserver.signatures
310
+ @allowed, @disallowed, @garbage = *setting.allowance(@signatures)
311
+
300
312
  when "save"
301
313
  preset.output_yml(setting, server)
302
314
  @msg << "<br />Saved six-updater.yml!"
@@ -37,4 +37,10 @@ class SixconfigsController < ApplicationController
37
37
  @original_record = t[0]
38
38
  @record = t[1]
39
39
  end
40
+
41
+ def test1
42
+ @sixconfig = Sixconfig.find("a5de5f84-94bd-11df-8867-00248c385045")
43
+ @signatures = @sixconfig.queryserver.signatures
44
+ @allowed, @disallowed, @garbage = *@sixconfig.appsetting.allowance(@signatures)
45
+ end
40
46
  end
@@ -145,6 +145,38 @@ class Appsetting < ActiveRecord::Base
145
145
  end
146
146
  end
147
147
 
148
+ def allowance(signatures)
149
+ signatures = signatures.map{|e| e.downcase}
150
+ allowed, disallowed, garbage = [], [], []
151
+ path = self.real_path.gsub("\\", "/")
152
+ pbos = Dir[File.join(path, "**", "*.pbo")]
153
+ pbos.each do |p|
154
+ inter = p.sub("#{path}/", "")
155
+ unless inter =~ /\/(addons|dta)\//i || inter =~ /^common\//i || inter =~ /^(addons|dta)\//i
156
+ garbage << inter
157
+ next
158
+ end
159
+ if signatures.empty?
160
+ allowed << inter
161
+ next
162
+ end
163
+ sigs = Dir["#{p}*.bisign"]
164
+ found = false
165
+ sigs.each do |s|
166
+ sig = s.sub("#{p}.", "").sub(".bisign", "").downcase
167
+ if signatures.include?(sig)
168
+ found = true
169
+ allowed << inter
170
+ break
171
+ end
172
+ end
173
+ unless found
174
+ disallowed << inter
175
+ end
176
+ end
177
+ [allowed, disallowed, garbage]
178
+ end
179
+
148
180
  def processes
149
181
  Six::Appmanager.find_process(process_name, self.real_path)
150
182
  end
@@ -27,7 +27,7 @@ class Mod < ActiveRecord::Base
27
27
  # arma2 mod: works for all subclasses
28
28
  # armaoa mod; works for arma2-oa-st, arma2-oa-
29
29
  def self.label
30
- self.to_s.sub("Mod", "")
30
+ Kernel.const_get(self.short+"Appsetting").label
31
31
  end
32
32
 
33
33
  def self.short
@@ -0,0 +1,2 @@
1
+ %div{:class => "CodeRay"}
2
+ %pre= CodeRay.scan(@userconfig, :cpp).html
@@ -0,0 +1,11 @@
1
+ = link_to "Back to index", "/config"
2
+ %br
3
+ - form_tag("/config/update", {:method => :get}) do
4
+ %input{:type => "hidden", :name => "options[userconfig]", :value => params["options"]["userconfig"]}
5
+ %input{:type => "hidden", :name => "setting", :value => params["setting"]}
6
+ = submit_tag "Reload"
7
+ = submit_tag "Save"
8
+ = params["options"]["userconfig"]
9
+ %br
10
+ %pre
11
+ %textarea{:name => "options[content]", :cols => "120", :rows => "50", :wrap => "off"}= @userconfig
@@ -0,0 +1,6 @@
1
+ - form_tag({}, {:method => :get}) do
2
+ %input{:type => "hidden", :name => "setting", :value => params["setting"]}
3
+ = select( "options", "userconfig", @userconfigs, {:selected => "#{params["options"]["userconfig"] if params["options"]}"})
4
+ = submit_tag "Change"
5
+ = submit_tag "Edit"
6
+ = render :partial => "config/show"
@@ -0,0 +1,5 @@
1
+ = link_to "Back to index", "/config"
2
+ %br
3
+ = link_to "Edit", "/config/edit/?setting=#{params["setting"]}&options[userconfig]=#{params["options"]["userconfig"]}"
4
+ %br
5
+ = render :partial => "config/show"
@@ -7,6 +7,7 @@
7
7
  %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "content-type" }
8
8
  %link{ :href => "/goldberg/stylesheets/goldberg.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
9
9
  %link{ :href => "/goldberg/stylesheets/layout.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
10
+ %link{ :href => "/stylesheets/coderay.css", :rel => "stylesheet", :type => "text/css", :media => "screen" }
10
11
  %script{ :src => "/goldberg/javascripts/suckerfish.js", :type => "text/javascript" }
11
12
  = javascript_include_tag :defaults
12
13
  = record_select_includes
@@ -4,19 +4,17 @@
4
4
  %th Mod
5
5
  %th Current
6
6
  %th Latest
7
- %th Remote
8
- %th Changelog
9
- %th Type
10
- %th Fits edition?
7
+ %th Info
8
+ %th Changes
9
+ %th Compatible?
11
10
  %tbody
12
11
  - mods.each do |mod|
13
12
  %tr
14
13
  %td{:width => "30%"}
15
- = link_to mod.name, "/mods/edit/#{mod.id}", {:title => "Size: #{mod.size}, Updated Version: #{mod.updated_version}"}
14
+ = link_to mod.name, "/mods/edit/#{mod.id}", {:title => "Size: #{mod.size}, Updated Version: #{mod.updated_version}. #{mod.categories.map{|e| e.name}.join(", ")}"}
16
15
  %td{:class => if mod.version_local == mod.version; "green"; else; "red"; end}
17
16
  = if mod.version_local.empty?; "none" else; mod.version_local; end
18
17
  %td= mod.version
19
18
  %td= link_to "Info", "http://updater.dev-heaven.net/mods/show/#{mod.id}", :target => "_blank"
20
- %td= link_to "Changelog", "http://updater.dev-heaven.net/mods/changelog/#{mod.id}", :target => "_blank"
21
- %td= mod.class.label
22
- %td= mod.version_match?(@current_setting)
19
+ %td= link_to "Changes", "http://updater.dev-heaven.net/mods/changelog/#{mod.id}", :target => "_blank"
20
+ %td{:class => mod.version_match?(@current_setting) ? "green" : "red"}= "#{mod.version_match?(@current_setting) ? "Yes" : "No"} #{link_to mod.class.short, "", {:title => mod.class.label}}"
@@ -0,0 +1,66 @@
1
+ %table{ :border => 1, :width => "100%"}
2
+ %tr
3
+ %td
4
+ = link_to "Follow with Google Wave", "/main/wave"
5
+ - form_tag :action => :index do
6
+ %p
7
+ %label{ :for => "sixconfigs" }
8
+ = link_to "Preset", "/sixconfigs", :title => "Click to access Presets overview"
9
+ &nbsp;
10
+ = record_select_field 'config', @preset
11
+ = submit_tag "Edit preset"
12
+ = submit_tag "Sync", :name => "portalsync"
13
+ %strong Optional Preset Overrides
14
+ %p
15
+ %label{ :for => "actions" }
16
+ = link_to "Action", "/actions", :title => "Click to access Actions overview"
17
+ &nbsp;
18
+ = record_select_field 'act', @action
19
+ = submit_tag "Edit action"
20
+ %p
21
+ %label{ :for => "servers" }
22
+ = link_to "Server", "/queryservers", :title => "Click to access Gamespy browser overview"
23
+ &nbsp;
24
+ = record_select_field 'gamespy', @queryserver
25
+ = submit_tag "Edit server"
26
+ = submit_tag "Sync", :name => "serversync"
27
+ %p
28
+ %label{ :for => "settings" }
29
+ = link_to "Setting", "/appsettings", :title => "Click to access Settings Profiles overview"
30
+ &nbsp;
31
+ = record_select_field 'setting', @setting, :controller => "Appsettings"
32
+ = submit_tag "Edit setting"
33
+ %p
34
+ = check_box :system, :beta, {:checked => @beta}
35
+ %a{:title => "Enable beta mod and mode" }
36
+ Beta
37
+ &nbsp;
38
+ = check_box :system, :autoskip, {:checked => @autoskip}
39
+ %a{:title => "Only update mods whos online version doesnt match local" }
40
+ Autoskip
41
+ &nbsp;
42
+ = check_box :system, :inweb, {:checked => @inweb}
43
+ %a{:title => "Display updater output into ajax-refreshed web-page (Handy for remote-management)" }
44
+ Integrated
45
+ %p
46
+ = submit_tag "Execute"
47
+ &nbsp;
48
+ = submit_tag "Save"
49
+ &nbsp;
50
+ = submit_tag "Edit Userconfig"
51
+ &nbsp;
52
+ = submit_tag "Server Mod check"
53
+ %p
54
+ = submit_tag "Stop Game"
55
+ &nbsp;
56
+ = submit_tag "Reset Skip Status"
57
+ &nbsp;
58
+ = submit_tag "Show status"
59
+ %strong Logs
60
+ - form_tag :action => :fetch do
61
+ %p
62
+ = submit_tag "Rpt"
63
+ &nbsp;
64
+ = submit_tag "Updater"
65
+ &nbsp;
66
+ = submit_tag "Updater-Web"
@@ -0,0 +1,34 @@
1
+ %table{ :border => 1, :cellpadding => "5", :width => "100%"}
2
+ %tr
3
+ %td
4
+ Edition: #{link_to @current_setting.nice_found_type, nil, :title => "Supports mods for: #{@current_setting.found_types.map{|e| e.label}.join(", ")}" }
5
+ %br
6
+ Last sync #{@system_setting.synchronized_at ? time_ago_in_words(@system_setting.synchronized_at) + " ago" : "never"}
7
+ Gamespy #{@system_setting.gamespied_at ? time_ago_in_words(@system_setting.gamespied_at) + " ago" : "never"}
8
+ %br
9
+ %br
10
+ = @msg.join("<br />")
11
+ %br
12
+ Autoskip: #{@autoskip ? "Enabled" : "Disaabled"}.
13
+ %br
14
+ - if (@check.size + @skip.size + @install.size + @disabled.size) > 0
15
+ - if @check.size > 0
16
+ %br
17
+ To be checked:
18
+ %br
19
+ = render :partial => "check", :locals => {:mods => @check}
20
+ - if @skip.size > 0
21
+ %br
22
+ To be skipped:
23
+ %br
24
+ = render :partial => "check", :locals => {:mods => @skip}
25
+ - if @install.size > 0
26
+ %br
27
+ Not installed:
28
+ %br
29
+ = render :partial => "check", :locals => {:mods => @install}
30
+ - if @disabled.size > 0
31
+ %br
32
+ Disabled:
33
+ %br
34
+ = render :partial => "check", :locals => {:mods => @disabled}
@@ -0,0 +1,18 @@
1
+ Server: #{@queryserver.to_label}
2
+ %br
3
+ Signatures: #{@signatures}
4
+ %br
5
+ %br
6
+ Allowed:
7
+ %br
8
+ = @allowed
9
+ %br
10
+ %br
11
+ Disallowed:
12
+ %br
13
+ = @disallowed
14
+ %br
15
+ %br
16
+ Garbage:
17
+ %br
18
+ = @garbage
@@ -1,97 +1,6 @@
1
1
  %table{:width => "100%"}
2
2
  %tr
3
3
  %td{:valign => "top", :width => "40%"}
4
- %table{ :border => 1, :width => "100%"}
5
- %tr
6
- %td
7
- = link_to "Follow with Google Wave", "/main/wave"
8
- - form_tag :action => :index do
9
- %p
10
- %label{ :for => "sixconfigs" }
11
- = link_to "Preset", "/sixconfigs", :title => "Click to access Presets overview"
12
- &nbsp;
13
- = record_select_field 'config', @preset
14
- = submit_tag "Edit"
15
- = submit_tag "Sync", :name => "portalsync"
16
- %strong Optional Preset Overrides
17
- %p
18
- %label{ :for => "actions" }
19
- = link_to "Action", "/actions", :title => "Click to access Actions overview"
20
- &nbsp;
21
- = record_select_field 'act', @action
22
- %p
23
- %label{ :for => "servers" }
24
- = link_to "Server", "/queryservers", :title => "Click to access Gamespy browser overview"
25
- &nbsp;
26
- = record_select_field 'gamespy', @queryserver
27
- = submit_tag "Show"
28
- = submit_tag "Sync", :name => "serversync"
29
- %p
30
- %label{ :for => "settings" }
31
- = link_to "Setting", "/appsettings", :title => "Click to access Settings Profiles overview"
32
- &nbsp;
33
- = record_select_field 'setting', @setting, :controller => "Appsettings"
34
- %p
35
- = submit_tag "Execute"
36
- &nbsp;
37
- = submit_tag "Save"
38
- &nbsp;
39
- = check_box :system, :beta, {:checked => @beta}
40
- %a{:title => "Enable beta mod and mode" }
41
- Beta
42
- &nbsp;
43
- = check_box :system, :autoskip, {:checked => @autoskip}
44
- %a{:title => "Only update mods whos online version doesnt match local" }
45
- Autoskip
46
- &nbsp;
47
- = check_box :system, :inweb, {:checked => @inweb}
48
- %a{:title => "Display updater output into ajax-refreshed web-page (Handy for remote-management)" }
49
- Integrated
50
- %p
51
- = submit_tag "Stop Game"
52
- &nbsp;
53
- = submit_tag "Reset Skip Status"
54
- &nbsp;
55
- = submit_tag "Show status"
56
- %strong Logs
57
- - form_tag :action => :fetch do
58
- %p
59
- = submit_tag "Rpt"
60
- &nbsp;
61
- = submit_tag "Updater"
62
- &nbsp;
63
- = submit_tag "Updater-Web"
4
+ = render :partial => "main/left"
64
5
  %td{:valign => "top", :width => "60%"}
65
- %table{ :border => 1, :cellpadding => "5", :width => "100%"}
66
- %tr
67
- %td
68
- Edition: #{link_to @current_setting.nice_found_type, nil, :title => "Supports mods for: #{@current_setting.found_types.map{|e| e.label}.join(", ")}" },
69
- Last sync #{@system_setting.synchronized_at ? time_ago_in_words(@system_setting.synchronized_at) + " ago" : "never"}
70
- Gamespy #{@system_setting.gamespied_at ? time_ago_in_words(@system_setting.gamespied_at) + " ago" : "never"}
71
- %br
72
- %br
73
- = @msg.join("<br />")
74
- %br
75
- Autoskip: #{@autoskip ? "Enabled" : "Disaabled"}.
76
- %br
77
- - if (@check.size + @skip.size + @install.size + @disabled.size) > 0
78
- - if @check.size > 0
79
- %br
80
- To be checked:
81
- %br
82
- = render :partial => "check", :locals => {:mods => @check}
83
- - if @skip.size > 0
84
- %br
85
- To be skipped:
86
- %br
87
- = render :partial => "check", :locals => {:mods => @skip}
88
- - if @install.size > 0
89
- %br
90
- Not installed:
91
- %br
92
- = render :partial => "check", :locals => {:mods => @install}
93
- - if @disabled.size > 0
94
- %br
95
- Disabled:
96
- %br
97
- = render :partial => "check", :locals => {:mods => @disabled}
6
+ = render :partial => @server_check ? "main/servercheck" : "main/right"
@@ -0,0 +1,16 @@
1
+ Signatures: #{@signatures}
2
+ %br
3
+ Allowed:
4
+ %br
5
+ = @allowed
6
+ %br
7
+ %br
8
+ Disallowed:
9
+ %br
10
+ = @disallowed
11
+ %br
12
+ %br
13
+ Garbage:
14
+ %br
15
+ = @garbage
16
+
@@ -49,6 +49,7 @@ Rails::Initializer.run do |config|
49
49
  # config.gem "hpricot", :version => '0.6', :source => "http://code.whytheluckystiff.net"
50
50
  config.gem "sqlite3-ruby", :lib => "sqlite3"
51
51
  config.gem "haml", :version => "3.0.10"
52
+ config.gem "coderay"
52
53
 
53
54
  # config.gem "aws-s3", :lib => "aws/s3"
54
55
 
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.20.8"
25
+ VERSION = "0.21.0"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -0,0 +1,130 @@
1
+ .CodeRay {
2
+ background-color: #f8f8f8;
3
+ border: 1px solid silver;
4
+ font-family: 'Courier New', 'Terminal', monospace;
5
+ color: #000;
6
+ }
7
+ .CodeRay pre { margin: 0px }
8
+
9
+ div.CodeRay { }
10
+
11
+ span.CodeRay { white-space: pre; border: 0px; padding: 2px }
12
+
13
+ table.CodeRay { border-collapse: collapse; width: 100%; padding: 2px }
14
+ table.CodeRay td { padding: 2px 4px; vertical-align: top }
15
+
16
+ .CodeRay .line_numbers, .CodeRay .no {
17
+ background-color: #def;
18
+ color: gray;
19
+ text-align: right;
20
+ }
21
+ .CodeRay .line_numbers tt { font-weight: bold }
22
+ .CodeRay .line_numbers .highlighted { color: red }
23
+ .CodeRay .no { padding: 0px 4px }
24
+ .CodeRay .code { width: 100% }
25
+
26
+ ol.CodeRay { font-size: 10pt }
27
+ ol.CodeRay li { white-space: pre }
28
+
29
+ .CodeRay .code pre { overflow: auto }
30
+
31
+ .CodeRay .debug { color:white ! important; background:blue ! important; }
32
+
33
+ .CodeRay .af { color:#00C }
34
+ .CodeRay .an { color:#007 }
35
+ .CodeRay .at { color:#f08 }
36
+ .CodeRay .av { color:#700 }
37
+ .CodeRay .aw { color:#C00 }
38
+ .CodeRay .bi { color:#509; font-weight:bold }
39
+ .CodeRay .c { color:#888; }
40
+
41
+ .CodeRay .ch { color:#04D }
42
+ .CodeRay .ch .k { color:#04D }
43
+ .CodeRay .ch .dl { color:#039 }
44
+
45
+ .CodeRay .cl { color:#B06; font-weight:bold }
46
+ .CodeRay .cm { color:#A08; font-weight:bold }
47
+ .CodeRay .co { color:#036; font-weight:bold }
48
+ .CodeRay .cr { color:#0A0 }
49
+ .CodeRay .cv { color:#369 }
50
+ .CodeRay .de { color:#B0B; }
51
+ .CodeRay .df { color:#099; font-weight:bold }
52
+ .CodeRay .di { color:#088; font-weight:bold }
53
+ .CodeRay .dl { color:black }
54
+ .CodeRay .do { color:#970 }
55
+ .CodeRay .dt { color:#34b }
56
+ .CodeRay .ds { color:#D42; font-weight:bold }
57
+ .CodeRay .e { color:#666; font-weight:bold }
58
+ .CodeRay .en { color:#800; font-weight:bold }
59
+ .CodeRay .er { color:#F00; background-color:#FAA }
60
+ .CodeRay .ex { color:#C00; font-weight:bold }
61
+ .CodeRay .fl { color:#60E; font-weight:bold }
62
+ .CodeRay .fu { color:#06B; font-weight:bold }
63
+ .CodeRay .gv { color:#d70; font-weight:bold }
64
+ .CodeRay .hx { color:#058; font-weight:bold }
65
+ .CodeRay .i { color:#00D; font-weight:bold }
66
+ .CodeRay .ic { color:#B44; font-weight:bold }
67
+
68
+ .CodeRay .il { background: #ddd; color: black }
69
+ .CodeRay .il .il { background: #ccc }
70
+ .CodeRay .il .il .il { background: #bbb }
71
+ .CodeRay .il .idl { background: #ddd; font-weight: bold; color: #666 }
72
+ .CodeRay .idl { background-color: #bbb; font-weight: bold; color: #666; }
73
+
74
+ .CodeRay .im { color:#f00; }
75
+ .CodeRay .in { color:#B2B; font-weight:bold }
76
+ .CodeRay .iv { color:#33B }
77
+ .CodeRay .la { color:#970; font-weight:bold }
78
+ .CodeRay .lv { color:#963 }
79
+ .CodeRay .oc { color:#40E; font-weight:bold }
80
+ .CodeRay .of { color:#000; font-weight:bold }
81
+ .CodeRay .op { }
82
+ .CodeRay .pc { color:#038; font-weight:bold }
83
+ .CodeRay .pd { color:#369; font-weight:bold }
84
+ .CodeRay .pp { color:#579; }
85
+ .CodeRay .ps { color:#00C; font-weight:bold }
86
+ .CodeRay .pt { color:#074; font-weight:bold }
87
+ .CodeRay .r, .kw { color:#080; font-weight:bold }
88
+
89
+ .CodeRay .ke { color: #808; }
90
+ .CodeRay .ke .dl { color: #606; }
91
+ .CodeRay .ke .ch { color: #80f; }
92
+ .CodeRay .vl { color: #088; }
93
+
94
+ .CodeRay .rx { background-color:#fff0ff }
95
+ .CodeRay .rx .k { color:#808 }
96
+ .CodeRay .rx .dl { color:#404 }
97
+ .CodeRay .rx .mod { color:#C2C }
98
+ .CodeRay .rx .fu { color:#404; font-weight: bold }
99
+
100
+ .CodeRay .s { background-color:#fff0f0; color: #D20; }
101
+ .CodeRay .s .s { background-color:#ffe0e0 }
102
+ .CodeRay .s .s .s { background-color:#ffd0d0 }
103
+ .CodeRay .s .k { }
104
+ .CodeRay .s .ch { color: #b0b; }
105
+ .CodeRay .s .dl { color: #710; }
106
+
107
+ .CodeRay .sh { background-color:#f0fff0; color:#2B2 }
108
+ .CodeRay .sh .k { }
109
+ .CodeRay .sh .dl { color:#161 }
110
+
111
+ .CodeRay .sy { color:#A60 }
112
+ .CodeRay .sy .k { color:#A60 }
113
+ .CodeRay .sy .dl { color:#630 }
114
+
115
+ .CodeRay .ta { color:#070 }
116
+ .CodeRay .tf { color:#070; font-weight:bold }
117
+ .CodeRay .ts { color:#D70; font-weight:bold }
118
+ .CodeRay .ty { color:#339; font-weight:bold }
119
+ .CodeRay .v { color:#036 }
120
+ .CodeRay .xt { color:#444 }
121
+
122
+ .CodeRay .ins { background: #afa; }
123
+ .CodeRay .del { background: #faa; }
124
+ .CodeRay .chg { color: #aaf; background: #007; }
125
+ .CodeRay .head { color: #f8f; background: #505 }
126
+
127
+ .CodeRay .ins .ins { color: #080; font-weight:bold }
128
+ .CodeRay .del .del { color: #800; font-weight:bold }
129
+ .CodeRay .chg .chg { color: #66f; }
130
+ .CodeRay .head .head { color: #f4f; }
@@ -1,121 +1,126 @@
1
1
  ---
2
2
  goldberg_site_controllers_001:
3
- id: "1"
3
+ id: 1
4
4
  name: goldberg/content_pages
5
- permission_id: "1"
6
- builtin: "1"
5
+ permission_id: 1
6
+ builtin: 1
7
7
  goldberg_site_controllers_002:
8
- id: "2"
8
+ id: 2
9
9
  name: goldberg/controller_actions
10
- permission_id: "1"
11
- builtin: "1"
10
+ permission_id: 1
11
+ builtin: 1
12
12
  goldberg_site_controllers_003:
13
- id: "3"
13
+ id: 3
14
14
  name: goldberg/auth
15
- permission_id: "1"
16
- builtin: "1"
15
+ permission_id: 1
16
+ builtin: 1
17
17
  goldberg_site_controllers_004:
18
- id: "5"
18
+ id: 5
19
19
  name: goldberg/menu_items
20
- permission_id: "1"
21
- builtin: "1"
20
+ permission_id: 1
21
+ builtin: 1
22
22
  goldberg_site_controllers_005:
23
- id: "6"
23
+ id: 6
24
24
  name: goldberg/permissions
25
- permission_id: "1"
26
- builtin: "1"
25
+ permission_id: 1
26
+ builtin: 1
27
27
  goldberg_site_controllers_006:
28
- id: "7"
28
+ id: 7
29
29
  name: goldberg/roles
30
- permission_id: "1"
31
- builtin: "1"
30
+ permission_id: 1
31
+ builtin: 1
32
32
  goldberg_site_controllers_007:
33
- id: "8"
33
+ id: 8
34
34
  name: goldberg/site_controllers
35
- permission_id: "1"
36
- builtin: "1"
35
+ permission_id: 1
36
+ builtin: 1
37
37
  goldberg_site_controllers_008:
38
- id: "9"
38
+ id: 9
39
39
  name: goldberg/system_settings
40
- permission_id: "1"
41
- builtin: "1"
40
+ permission_id: 1
41
+ builtin: 1
42
42
  goldberg_site_controllers_009:
43
- id: "10"
43
+ id: 10
44
44
  name: goldberg/users
45
- permission_id: "1"
46
- builtin: "1"
45
+ permission_id: 1
46
+ builtin: 1
47
47
  goldberg_site_controllers_010:
48
- id: "11"
48
+ id: 11
49
49
  name: goldberg/roles_permissions
50
- permission_id: "1"
51
- builtin: "1"
50
+ permission_id: 1
51
+ builtin: 1
52
52
  goldberg_site_controllers_011:
53
- id: "12"
53
+ id: 12
54
54
  name: main
55
- permission_id: "5"
56
- builtin: "0"
55
+ permission_id: 5
56
+ builtin: 0
57
57
  goldberg_site_controllers_012:
58
- id: "14"
58
+ id: 14
59
59
  name: appsettings
60
- permission_id: "1"
61
- builtin: "0"
60
+ permission_id: 1
61
+ builtin: 0
62
62
  goldberg_site_controllers_013:
63
- id: "15"
63
+ id: 15
64
64
  name: mods
65
- permission_id: "1"
66
- builtin: "0"
65
+ permission_id: 1
66
+ builtin: 0
67
67
  goldberg_site_controllers_014:
68
- id: "16"
68
+ id: 16
69
69
  name: sixconfigs
70
- permission_id: "1"
71
- builtin: "0"
70
+ permission_id: 1
71
+ builtin: 0
72
72
  goldberg_site_controllers_015:
73
- id: "17"
73
+ id: 17
74
74
  name: repositories
75
- permission_id: "1"
76
- builtin: "0"
75
+ permission_id: 1
76
+ builtin: 0
77
77
  goldberg_site_controllers_016:
78
- id: "18"
78
+ id: 18
79
79
  name: actions
80
- permission_id: "1"
81
- builtin: "0"
80
+ permission_id: 1
81
+ builtin: 0
82
82
  goldberg_site_controllers_017:
83
- id: "19"
83
+ id: 19
84
84
  name: servers
85
- permission_id: "1"
86
- builtin: "0"
85
+ permission_id: 1
86
+ builtin: 0
87
87
  goldberg_site_controllers_018:
88
- id: "20"
88
+ id: 20
89
89
  name: logsessions
90
- permission_id: "1"
91
- builtin: "0"
90
+ permission_id: 1
91
+ builtin: 0
92
92
  goldberg_site_controllers_019:
93
- id: "21"
93
+ id: 21
94
94
  name: logs
95
- permission_id: "1"
96
- builtin: "0"
95
+ permission_id: 1
96
+ builtin: 0
97
97
  goldberg_site_controllers_020:
98
- id: "22"
98
+ id: 22
99
99
  name: logviews
100
- permission_id: "1"
101
- builtin: "0"
100
+ permission_id: 1
101
+ builtin: 0
102
102
  goldberg_site_controllers_021:
103
- id: "23"
103
+ id: 23
104
104
  name: queryservers
105
- permission_id: "1"
106
- builtin: "0"
105
+ permission_id: 1
106
+ builtin: 0
107
107
  goldberg_site_controllers_022:
108
- id: "24"
108
+ id: 24
109
109
  name: networks
110
- permission_id: "1"
111
- builtin: "0"
110
+ permission_id: 1
111
+ builtin: 0
112
112
  goldberg_site_controllers_023:
113
- id: "25"
113
+ id: 25
114
114
  name: system_settings
115
- permission_id: "1"
116
- builtin: "0"
115
+ permission_id: 1
116
+ builtin: 0
117
117
  goldberg_site_controllers_024:
118
- id: "28"
118
+ id: 28
119
119
  name: categories
120
- permission_id: "3"
121
- builtin: "0"
120
+ permission_id: 1
121
+ builtin: 0
122
+ goldberg_site_controllers_025:
123
+ id: 29
124
+ name: config
125
+ permission_id: 1
126
+ builtin: 0
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 20
8
- - 8
9
- version: 0.20.8
7
+ - 21
8
+ - 0
9
+ version: 0.21.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -14,28 +14,13 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-07-20 00:00:00 +02:00
17
+ date: 2010-07-23 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: faster_require
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 5
31
- - 2
32
- version: 0.5.2
33
- type: :runtime
34
- version_requirements: *id001
35
20
  - !ruby/object:Gem::Dependency
36
21
  name: uuidtools
37
22
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
23
+ requirement: &id001 !ruby/object:Gem::Requirement
39
24
  none: false
40
25
  requirements:
41
26
  - - ">="
@@ -46,11 +31,11 @@ dependencies:
46
31
  - 0
47
32
  version: 2.0.0
48
33
  type: :runtime
49
- version_requirements: *id002
34
+ version_requirements: *id001
50
35
  - !ruby/object:Gem::Dependency
51
36
  name: six-updater
52
37
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
38
+ requirement: &id002 !ruby/object:Gem::Requirement
54
39
  none: false
55
40
  requirements:
56
41
  - - ">="
@@ -61,11 +46,11 @@ dependencies:
61
46
  - 0
62
47
  version: 0.17.0
63
48
  type: :runtime
64
- version_requirements: *id003
49
+ version_requirements: *id002
65
50
  - !ruby/object:Gem::Dependency
66
51
  name: rails
67
52
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
53
+ requirement: &id003 !ruby/object:Gem::Requirement
69
54
  none: false
70
55
  requirements:
71
56
  - - "="
@@ -76,11 +61,11 @@ dependencies:
76
61
  - 8
77
62
  version: 2.3.8
78
63
  type: :runtime
79
- version_requirements: *id004
64
+ version_requirements: *id003
80
65
  - !ruby/object:Gem::Dependency
81
66
  name: haml
82
67
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
68
+ requirement: &id004 !ruby/object:Gem::Requirement
84
69
  none: false
85
70
  requirements:
86
71
  - - "="
@@ -91,6 +76,21 @@ dependencies:
91
76
  - 10
92
77
  version: 3.0.10
93
78
  type: :runtime
79
+ version_requirements: *id004
80
+ - !ruby/object:Gem::Dependency
81
+ name: coderay
82
+ prerelease: false
83
+ requirement: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ segments:
89
+ - 0
90
+ - 9
91
+ - 3
92
+ version: 0.9.3
93
+ type: :runtime
94
94
  version_requirements: *id005
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: RedCloth
@@ -128,6 +128,7 @@ files:
128
128
  - lib/six-updater-web/app/controllers/application_controller.rb
129
129
  - lib/six-updater-web/app/controllers/appsettings_controller.rb
130
130
  - lib/six-updater-web/app/controllers/categories_controller.rb
131
+ - lib/six-updater-web/app/controllers/config_controller.rb
131
132
  - lib/six-updater-web/app/controllers/logsessions_controller.rb
132
133
  - lib/six-updater-web/app/controllers/logs_controller.rb
133
134
  - lib/six-updater-web/app/controllers/logviews_controller.rb
@@ -178,6 +179,10 @@ files:
178
179
  - lib/six-updater-web/app/models/sixconfig.rb
179
180
  - lib/six-updater-web/app/models/system_setting.rb
180
181
  - lib/six-updater-web/app/views/appsettings/manage.erb
182
+ - lib/six-updater-web/app/views/config/edit.haml
183
+ - lib/six-updater-web/app/views/config/index.haml
184
+ - lib/six-updater-web/app/views/config/show.haml
185
+ - lib/six-updater-web/app/views/config/_show.haml
181
186
  - lib/six-updater-web/app/views/layouts/application.haml
182
187
  - lib/six-updater-web/app/views/layouts/empty.haml
183
188
  - lib/six-updater-web/app/views/logviews/upd.rjs
@@ -190,14 +195,17 @@ files:
190
195
  - lib/six-updater-web/app/views/main/reset.erb
191
196
  - lib/six-updater-web/app/views/main/reset_act.haml
192
197
  - lib/six-updater-web/app/views/main/test.rjs
193
- - lib/six-updater-web/app/views/main/userconfig.haml
194
198
  - lib/six-updater-web/app/views/main/wave.haml
195
199
  - lib/six-updater-web/app/views/main/_check.haml
200
+ - lib/six-updater-web/app/views/main/_left.haml
201
+ - lib/six-updater-web/app/views/main/_right.haml
202
+ - lib/six-updater-web/app/views/main/_servercheck.haml
196
203
  - lib/six-updater-web/app/views/main/_test.haml
197
204
  - lib/six-updater-web/app/views/main/_wave.haml
198
205
  - lib/six-updater-web/app/views/mods/imp.haml
199
206
  - lib/six-updater-web/app/views/Repositories/imp.erb
200
207
  - lib/six-updater-web/app/views/servers/imp.erb
208
+ - lib/six-updater-web/app/views/sixconfigs/test1.haml
201
209
  - lib/six-updater-web/common.rb
202
210
  - lib/six-updater-web/config/boot.rb
203
211
  - lib/six-updater-web/config/database.yml
@@ -329,6 +337,7 @@ files:
329
337
  - lib/six-updater-web/public/stylesheets/active_scaffold/default/tools-left-handed-stylesheet-ie.css
330
338
  - lib/six-updater-web/public/stylesheets/active_scaffold/default/tools-left-handed-stylesheet.css
331
339
  - lib/six-updater-web/public/stylesheets/active_scaffold/DO_NOT_EDIT
340
+ - lib/six-updater-web/public/stylesheets/coderay.css
332
341
  - lib/six-updater-web/public/stylesheets/record_select/record_select.css
333
342
  - lib/six-updater-web/Rakefile
334
343
  - lib/six-updater-web/README
@@ -1,11 +0,0 @@
1
- - form_tag do
2
- = select( "options", "userconfig", @userconfigs, {:selected => "#{params["options"]["userconfig"] if params["options"]}"})
3
- = submit_tag "Change"
4
-
5
- - form_tag do
6
- %textarea{:name => "options[content]", :cols => "120", :rows => "50"}
7
- = @userconfig.map{|a| Iconv.new("utf-8//IGNORE//TRANSLIT", "utf-8").iconv(a + ' ')[0..-2]}.join("")
8
- = submit_tag "Save"
9
-
10
-
11
-