six-updater-web 0.16.3 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six-updater-web/app/controllers/categories_controller.rb +15 -0
  3. data/lib/six-updater-web/app/controllers/mods_controller.rb +7 -3
  4. data/lib/six-updater-web/app/helpers/mods_helper.rb +7 -0
  5. data/lib/six-updater-web/app/models/category.rb +5 -0
  6. data/lib/six-updater-web/app/models/mod.rb +8 -5
  7. data/lib/six-updater-web/app/models/network.rb +1 -1
  8. data/lib/six-updater-web/app/models/sixconfig.rb +1 -1
  9. data/lib/six-updater-web/app/models/system_setting.rb +6 -0
  10. data/lib/six-updater-web/app/views/main/_check.haml +1 -1
  11. data/lib/six-updater-web/config/six-updater-web.rb +1 -1
  12. data/lib/six-updater-web/db/migrate/20100520101651_remove_id_from_dependentmods.rb +13 -0
  13. data/lib/six-updater-web/db/migrate/20100520101652_create_categories.rb +22 -0
  14. data/lib/six-updater-web/db/schema.rb +17 -4
  15. data/lib/six-updater-web/lib/tasks/get.rake +8 -8
  16. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/{actions_sixconfigs.yml → dependentmods.yml} +0 -0
  17. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_content_pages.yml +61 -61
  18. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_controller_actions.yml +1 -1
  19. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_permissions.yml +5 -5
  20. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_roles.yml +56 -17
  21. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_roles_permissions.yml +10 -10
  22. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_site_controllers.yml +3 -3
  23. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_system_settings.yml +10 -10
  24. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_users.yml +12 -12
  25. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/networks.yml +1 -0
  26. data/lib/six-updater-web/vendor/plugins/six-db_manager/db/networks_repositories.yml +1 -0
  27. metadata +10 -6
  28. data/lib/six-updater-web/app/controllers/dependentmods_controller.rb +0 -7
  29. data/lib/six-updater-web/app/models/dependentmod.rb +0 -4
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.16.3'
10
+ s.version = '0.17.0'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -0,0 +1,15 @@
1
+ class CategoriesController < ApplicationController
2
+ record_select :per_page => 10, :search_on => "name", :order_by => "name ASC", :full_text_search => true
3
+ active_scaffold Category do |config|
4
+ config = self # Ruby 1.9 compat
5
+ config.columns = [
6
+ :name,
7
+ :mods,
8
+ :created_at
9
+ ]
10
+ config.list.sorting = { :name => :asc }
11
+ [:mods].each do |c|
12
+ config.columns[c].form_ui = :record_select
13
+ end
14
+ end
15
+ end
@@ -6,13 +6,16 @@ class ModsController < ApplicationController
6
6
  :name,
7
7
  :version,
8
8
  :version_local,
9
+ :size,
10
+ :categories,
9
11
  :path,
10
12
  :sixconfigs,
11
13
  :networks,
12
14
  :queryservers,
13
- :depmods,
15
+ :mods,
14
16
  # :created_at,
15
17
  :updated_at,
18
+ :updated_version,
16
19
  :priority,
17
20
  :skip,
18
21
  :disabled,
@@ -21,7 +24,7 @@ class ModsController < ApplicationController
21
24
  config.update.columns.exclude :remote, :queryservers, :servers
22
25
  config.action_links.add 'copy', :label => 'Clone', :type => :record, :position => false, :confirm => "Do you really want to *clone* this item?"
23
26
 
24
- config.list.columns.exclude :sixconfigs, :servers, :path
27
+ config.list.columns.exclude :sixconfigs, :servers, :path, :updated_at, :priority
25
28
 
26
29
  config.list.sorting = { :name => :asc }
27
30
 
@@ -34,10 +37,11 @@ class ModsController < ApplicationController
34
37
  config.columns[:priority].label = "Prio"
35
38
  config.columns[:version_local].label = "Local"
36
39
  config.columns[:version].label = "Ver"
40
+ config.columns[:mods].label = "Dependencies"
37
41
  # config.columns[:changelog_link].label = "Changelog"
38
42
  config.columns[:queryservers].label = "Gamespy servers"
39
43
 
40
- [:depmods, :networks, :servers, :queryservers, :sixconfigs].each do |c|
44
+ [:mods, :networks, :servers, :queryservers, :sixconfigs, :categories].each do |c|
41
45
  config.columns[c].form_ui = :record_select
42
46
  end
43
47
 
@@ -2,4 +2,11 @@ module ModsHelper
2
2
  def remote_column(record, b = nil)
3
3
  link_to "nfo", "http://updater.dev-heaven.net/#{record.rema}/#{record.id}", :target => "_blank"
4
4
  end
5
+ def size_column(record, b = nil)
6
+ if record.size
7
+ "%0.2f MB" % (record.size / 1024.0)
8
+ else
9
+ 0
10
+ end
11
+ end
5
12
  end
@@ -0,0 +1,5 @@
1
+ class Category < ActiveRecord::Base
2
+ has_and_belongs_to_many :mods
3
+
4
+ six_guid
5
+ end
@@ -3,17 +3,20 @@ class Mod < ActiveRecord::Base
3
3
  has_and_belongs_to_many :servers
4
4
  has_and_belongs_to_many :queryservers
5
5
  has_and_belongs_to_many :networks
6
+ has_and_belongs_to_many :categories
6
7
 
7
- has_many :dependentmods
8
- has_many :depmods, :through => :dependentmods
8
+ #has_many :dependentmods
9
+ #has_many :depmods, :through => :dependentmods
10
+ has_and_belongs_to_many :mods, :association_foreign_key => "depmod_id", :class_name => "Mod", :join_table => "dependentmods"
11
+ has_and_belongs_to_many :depmods, :foreign_key => "depmod_id", :class_name => "Mod", :join_table => "dependentmods"
9
12
 
10
13
  six_guid
11
14
 
12
- def all_depmods
15
+ def all_dependentmods
13
16
  mods = []
14
- self.depmods.each do |mod|
17
+ self.mods.each do |mod|
15
18
  mods << mod
16
- mods += mod.all_depmods
19
+ mods += mod.all_dependentmods
17
20
  end
18
21
  mods.uniq
19
22
  end
@@ -4,6 +4,6 @@ class Network < ActiveRecord::Base
4
4
  has_many :repositories
5
5
 
6
6
  def to_label
7
- "#{self.name}"
7
+ "#{self.name} (#{self.repositories.size})"
8
8
  end
9
9
  end
@@ -18,7 +18,7 @@ class Sixconfig < ActiveRecord::Base
18
18
  self.mods.each { |mod| m << mod unless m.include?(mod) }
19
19
  m.each {|mod| if (mod.new_record? && !mod.exists?(self.appsetting)); mod.disabled = true; end }
20
20
  ms = []
21
- m.each {|mod| ms << mod; ms += mod.all_depmods}
21
+ m.each {|mod| ms << mod; ms += mod.all_dependentmods}
22
22
  ms.uniq
23
23
  end
24
24
 
@@ -47,6 +47,12 @@ class SystemSetting < ActiveRecord::Base
47
47
  status = Timeout::timeout(TIMEOUT) do
48
48
  Six::Network::Panel.login(self.server_username, self.server_password, true)
49
49
  end
50
+ # Temporary until migration done
51
+ begin
52
+ l += Category.imp
53
+ rescue => e
54
+ logger.info "ERROR: #{e.class} #{e.message} #{e.backtrace.join("\n")}"
55
+ end
50
56
  [Mod, Network, Server, Repository, Action, Appsetting, Sixconfig].each do |t|
51
57
  l += t.imp
52
58
  end
@@ -10,7 +10,7 @@
10
10
  - mods.each do |mod|
11
11
  %tr
12
12
  %td{:width => "30%"}
13
- = link_to mod.name, "/mods/edit/#{mod.id}"
13
+ = link_to mod.name, "/mods/edit/#{mod.id}", {:title => "Size: #{mod.size}, Updated Version: #{mod.updated_version}"}
14
14
  %td{:class => if mod.version_local == mod.version; "green"; else; "red"; end}
15
15
  = if mod.version_local.empty?; "none" else; mod.version_local; end
16
16
  %td= mod.version
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.16.3"
25
+ VERSION = "0.17.0"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -0,0 +1,13 @@
1
+ class RemoveIdFromDependentmods < ActiveRecord::Migration
2
+ def self.up
3
+ remove_column :dependentmods, :id
4
+ remove_column :dependentmods, :updated_at
5
+ remove_column :dependentmods, :created_at
6
+ end
7
+
8
+ def self.down
9
+ add_column :dependentmods, :id, :integer
10
+ add_column :dependentmods, :updated_at, :datetime
11
+ add_column :dependentmods, :created_at, :datetime
12
+ end
13
+ end
@@ -0,0 +1,22 @@
1
+ class CreateCategories < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :categories, :id => false do |t|
4
+ t.string :id, :limit => 36, :null => false, :primary => true
5
+ t.string :name
6
+
7
+ t.timestamps :lock_version => false
8
+ end
9
+
10
+ create_table :categories_mods, :id => false do |t|
11
+ t.string :category_id, :limit => 36
12
+ t.string :mod_id, :limit => 36
13
+ end
14
+ # generate the join tables
15
+ end
16
+
17
+ def self.down
18
+ drop_table :categories
19
+ drop_table :categories_mods
20
+ end
21
+
22
+ 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 => 20100518094056) do
12
+ ActiveRecord::Schema.define(:version => 20100520101652) do
13
13
 
14
14
  create_table "actions", :id => false, :force => true do |t|
15
15
  t.string "id", :limit => 36, :null => false
@@ -31,13 +31,23 @@ ActiveRecord::Schema.define(:version => 20100518094056) do
31
31
  t.string "modpath"
32
32
  end
33
33
 
34
- create_table "dependentmods", :force => true do |t|
35
- t.string "mod_id", :limit => 36
36
- t.string "depmod_id", :limit => 36
34
+ create_table "categories", :id => false, :force => true do |t|
35
+ t.string "id", :limit => 36, :null => false
36
+ t.string "name"
37
37
  t.datetime "created_at"
38
38
  t.datetime "updated_at"
39
39
  end
40
40
 
41
+ create_table "categories_mods", :id => false, :force => true do |t|
42
+ t.string "category_id", :limit => 36
43
+ t.string "mod_id", :limit => 36
44
+ end
45
+
46
+ create_table "dependentmods", :id => false, :force => true do |t|
47
+ t.string "mod_id", :limit => 36
48
+ t.string "depmod_id", :limit => 36
49
+ end
50
+
41
51
  create_table "goldberg_content_pages", :force => true do |t|
42
52
  t.string "title"
43
53
  t.string "name", :null => false
@@ -258,6 +268,9 @@ ActiveRecord::Schema.define(:version => 20100518094056) do
258
268
  t.string "saved_password"
259
269
  end
260
270
 
271
+ add_index "queryservers", ["ip", "port"], :name => "index_queryservers_on_ip_and_port"
272
+ add_index "queryservers", ["name"], :name => "index_queryservers_on_name"
273
+
261
274
  create_table "repositories", :id => false, :force => true do |t|
262
275
  t.string "id", :limit => 36, :null => false
263
276
  t.string "url"
@@ -24,8 +24,8 @@ namespace :get do
24
24
  preset = get_preset
25
25
  puts "#{preset.name} (#{preset.mods.size} mods)"
26
26
  preset.mods.each do |mod|
27
- depmods = mod.all_depmods
28
- puts "#{mod.name} (v#{mod.version_local}/#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{depmods.size} dependencies: #{depmods.map{|e| e.name}.join(", ")}"
27
+ dependentmods = mod.all_dependentmods
28
+ puts "#{mod.name} (v#{mod.version_local}/#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{dependentmods.size} dependencies: #{dependentmods.map{|e| e.name}.join(", ")}"
29
29
  end
30
30
  end
31
31
 
@@ -40,8 +40,8 @@ namespace :get do
40
40
  mods = Mod.find(:all)
41
41
  end
42
42
  mods.each do |mod|
43
- depmods = mod.all_depmods
44
- puts "#{mod.name} (v#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{depmods.size} dependencies: #{depmods.map{|e| e.name}.join(", ")}"
43
+ dependentmods = mod.all_dependentmods
44
+ puts "#{mod.name} (v#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{dependentmods.size} dependencies: #{dependentmods.map{|e| e.name}.join(", ")}"
45
45
  end
46
46
  end
47
47
 
@@ -58,8 +58,8 @@ namespace :get do
58
58
  servers.each do |server|
59
59
  puts "#{server.name}: #{server.country} / #{server.ping}ms"
60
60
  server.mods.each do |mod|
61
- depmods = mod.all_depmods
62
- puts "#{mod.name} (v#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{depmods.size} dependencies: #{depmods.map{|e| e.name}.join(", ")}"
61
+ dependentmods = mod.all_dependentmods
62
+ puts "#{mod.name} (v#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{dependentmods.size} dependencies: #{dependentmods.map{|e| e.name}.join(", ")}"
63
63
  end
64
64
  end
65
65
  end
@@ -69,8 +69,8 @@ namespace :get do
69
69
  preset = get_preset
70
70
  preset.imp
71
71
  preset.mods.each do |mod|
72
- depmods = mod.all_depmods
73
- puts "#{mod.name} (v#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{depmods.size} dependencies: #{depmods.map{|e| e.name}.join(", ")}"
72
+ dependentmods = mod.all_dependentmods
73
+ puts "#{mod.name} (v#{mod.version}, #{mod.size}B, Last updated: #{mod.updated_version}), #{dependentmods.size} dependencies: #{dependentmods.map{|e| e.name}.join(", ")}"
74
74
  end
75
75
  preset.save unless ENV['DYNAMIC']
76
76
  end
@@ -1,12 +1,9 @@
1
1
  ---
2
2
  goldberg_content_pages_001:
3
+ id: "1"
4
+ title: Home Page
3
5
  name: home
4
6
  markup_style_id: "1"
5
- created_at: 2006-06-12 00:31:56
6
- title: Home Page
7
- permission_id: "3"
8
- updated_at: 2009-12-19 16:36:01
9
- id: "1"
10
7
  content: |-
11
8
  h1. Welcome to the Six Updater Suite
12
9
 
@@ -21,21 +18,21 @@ goldberg_content_pages_001:
21
18
  The Main Page contains all actions.
22
19
 
23
20
  The Configuration page and menu contains all configuration.
24
- markup_style: Textile
21
+ permission_id: "3"
22
+ created_at: 2006-06-12 00:31:56
23
+ updated_at: 2009-12-19 16:36:01
25
24
  content_cache: |-
26
25
  <h1>Welcome to the Six Updater Suite</h1>
27
26
  <p>Please use the Top Navigation menu.<br />
28
27
  It is advised to first synchronize with the latest information of the server site.</p>
29
28
  <p>The Main Page contains all actions.<br />
30
29
  The Configuration page and menu contains all configuration.</p>
30
+ markup_style: Textile
31
31
  goldberg_content_pages_002:
32
+ id: "2"
33
+ title: Session Expired
32
34
  name: expired
33
35
  markup_style_id: "1"
34
- created_at: 2006-06-12 00:33:14
35
- title: Session Expired
36
- permission_id: "3"
37
- updated_at: 2007-04-01 09:40:33
38
- id: "2"
39
36
  content: |
40
37
  h1. Session Expired
41
38
 
@@ -43,73 +40,73 @@ goldberg_content_pages_002:
43
40
 
44
41
  To continue please login again.
45
42
 
46
- markup_style: Textile
43
+ permission_id: "3"
44
+ created_at: 2006-06-12 00:33:14
45
+ updated_at: 2007-04-01 09:40:33
47
46
  content_cache: |-
48
47
  <h1>Session Expired</h1>
49
48
  <p>Your session has expired due to inactivity.</p>
50
49
  <p>To continue please login again.</p>
50
+ markup_style: Textile
51
51
  goldberg_content_pages_003:
52
+ id: "3"
53
+ title: Not Found!
52
54
  name: notfound
53
55
  markup_style_id: "1"
54
- created_at: 2006-06-12 00:33:49
55
- title: Not Found!
56
- permission_id: "3"
57
- updated_at: 2007-04-01 09:40:33
58
- id: "3"
59
56
  content: |-
60
57
  h1. Not Found
61
58
 
62
59
  The page you requested was not found!
63
60
 
64
61
  Please contact your system administrator.
65
- markup_style: Textile
62
+ permission_id: "3"
63
+ created_at: 2006-06-12 00:33:49
64
+ updated_at: 2007-04-01 09:40:33
66
65
  content_cache: |-
67
66
  <h1>Not Found</h1>
68
67
  <p>The page you requested was not found!</p>
69
68
  <p>Please contact your system administrator.</p>
69
+ markup_style: Textile
70
70
  goldberg_content_pages_004:
71
+ id: "4"
72
+ title: Permission Denied!
71
73
  name: denied
72
74
  markup_style_id: "1"
73
- created_at: 2006-06-12 00:34:30
74
- title: Permission Denied!
75
- permission_id: "3"
76
- updated_at: 2007-04-01 09:40:33
77
- id: "4"
78
75
  content: |-
79
76
  h1. Permission Denied
80
77
 
81
78
  Sorry, but you don't have permission to view that page.
82
79
 
83
80
  Please contact your system administrator.
84
- markup_style: Textile
81
+ permission_id: "3"
82
+ created_at: 2006-06-12 00:34:30
83
+ updated_at: 2007-04-01 09:40:33
85
84
  content_cache: |-
86
85
  <h1>Permission Denied</h1>
87
86
  <p>Sorry, but you don&#8217;t have permission to view that page.</p>
88
87
  <p>Please contact your system administrator.</p>
88
+ markup_style: Textile
89
89
  goldberg_content_pages_005:
90
+ id: "6"
91
+ title: Contact Us
90
92
  name: contact_us
91
93
  markup_style_id: "1"
92
- created_at: 2006-06-12 10:13:47
93
- title: Contact Us
94
- permission_id: "3"
95
- updated_at: 2009-09-04 07:58:14
96
- id: "6"
97
94
  content: |-
98
95
  h1. Contact Us
99
96
 
100
97
  Visit the six-updater Project Homepage at "DevHeaven":http://dev-heaven.net/wiki/six-arma-updater for further information, bug reports, etc.
101
- markup_style: Textile
98
+ permission_id: "3"
99
+ created_at: 2006-06-12 10:13:47
100
+ updated_at: 2009-09-04 07:58:14
102
101
  content_cache: |-
103
102
  <h1>Contact Us</h1>
104
103
  <p>Visit the six-updater Project Homepage at <a href="http://dev-heaven.net/wiki/six-arma-updater">DevHeaven</a> for further information, bug reports, etc.</p>
104
+ markup_style: Textile
105
105
  goldberg_content_pages_006:
106
+ id: "8"
107
+ title: Site Administration
106
108
  name: site_admin
107
109
  markup_style_id: "1"
108
- created_at: 2006-06-21 21:32:35
109
- title: Site Administration
110
- permission_id: "1"
111
- updated_at: 2007-04-01 09:40:33
112
- id: "8"
113
110
  content: |
114
111
  h1. Goldberg Setup
115
112
 
@@ -162,7 +159,9 @@ goldberg_content_pages_006:
162
159
 
163
160
  Go here to view and edit the settings that determine how Goldberg operates.
164
161
 
165
- markup_style: Textile
162
+ permission_id: "1"
163
+ created_at: 2006-06-21 21:32:35
164
+ updated_at: 2007-04-01 09:40:33
166
165
  content_cache: |-
167
166
  <h1>Goldberg Setup</h1>
168
167
  <p>This is where you will find all the Goldberg-specific administration and configuration features. In here you can:</p>
@@ -197,14 +196,12 @@ goldberg_content_pages_006:
197
196
  <p>In the Menu Editor you can add and remove Menu Items and move them around. The security of a Menu Item (whether the user can see it or not) depends on the Permission of the Action or Page attached to that Menu Item.</p>
198
197
  <h2>System Settings</h2>
199
198
  <p>Go here to view and edit the settings that determine how Goldberg operates.</p>
199
+ markup_style: Textile
200
200
  goldberg_content_pages_007:
201
+ id: "9"
202
+ title: Administration
201
203
  name: admin
202
204
  markup_style_id: "1"
203
- created_at: 2006-06-26 16:47:09
204
- title: Administration
205
- permission_id: "1"
206
- updated_at: 2007-04-01 09:40:33
207
- id: "9"
208
205
  content: |
209
206
  h1. Site Administration
210
207
 
@@ -214,20 +211,20 @@ goldberg_content_pages_007:
214
211
 
215
212
  You can add more menu items here to administer your application if you want, by going to "Setup, Menu Editor":/menu/setup/menus.
216
213
 
217
- markup_style: Textile
214
+ permission_id: "1"
215
+ created_at: 2006-06-26 16:47:09
216
+ updated_at: 2007-04-01 09:40:33
218
217
  content_cache: |-
219
218
  <h1>Site Administration</h1>
220
219
  <p>This is where the administrator can set up the site.</p>
221
220
  <p>There is one menu item here by default &#8212; <a href="/menu/setup">Setup</a>. That contains all the Goldberg configuration options.</p>
222
221
  <p>You can add more menu items here to administer your application if you want, by going to <a href="/menu/setup/menus">Setup, Menu Editor</a>.</p>
222
+ markup_style: Textile
223
223
  goldberg_content_pages_008:
224
+ id: "10"
225
+ title: Credits and Licence
224
226
  name: credits
225
227
  markup_style_id: "1"
226
- created_at: 2006-10-02 10:35:35
227
- title: Credits and Licence
228
- permission_id: "3"
229
- updated_at: 2009-09-04 08:00:04
230
- id: "10"
231
228
  content: |
232
229
  h1. General
233
230
 
@@ -291,7 +288,9 @@ goldberg_content_pages_008:
291
288
  Goldberg's implementation of tabbed panels was adapted from
292
289
  "InternetConnection":http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml.
293
290
 
294
- markup_style: Textile
291
+ permission_id: "3"
292
+ created_at: 2006-10-02 10:35:35
293
+ updated_at: 2009-09-04 08:00:04
295
294
  content_cache: |-
296
295
  <h1>General</h1>
297
296
  <p>This application was created by using:<br />
@@ -322,14 +321,12 @@ goldberg_content_pages_008:
322
321
  <h3>Tabbed Panels</h3>
323
322
  <p>Goldberg&#8217;s implementation of tabbed panels was adapted from <br />
324
323
  <a href="http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml">InternetConnection</a>.</p>
324
+ markup_style: Textile
325
325
  goldberg_content_pages_009:
326
+ id: "11"
327
+ title: Not Permitted
326
328
  name: unconfirmed
327
329
  markup_style_id:
328
- created_at: 2007-04-01 10:37:42
329
- title: Not Permitted
330
- permission_id: "3"
331
- updated_at: 2007-04-01 10:37:42
332
- id: "11"
333
330
  content: |
334
331
  h1. Not Permitted
335
332
 
@@ -337,24 +334,27 @@ goldberg_content_pages_009:
337
334
 
338
335
  If there is an issue please contact the system administrator.
339
336
 
340
- markup_style: Textile
337
+ permission_id: "3"
338
+ created_at: 2007-04-01 10:37:42
339
+ updated_at: 2007-04-01 10:37:42
341
340
  content_cache: |-
342
341
  <h1>Not Permitted</h1>
343
342
  <p>Sorry, but you are not allowed to log into the site until your registration has been confirmed.</p>
344
343
  <p>If there is an issue please contact the system administrator.</p>
344
+ markup_style: Textile
345
345
  goldberg_content_pages_010:
346
+ id: "12"
347
+ title: Help
346
348
  name: help
347
349
  markup_style_id:
348
- created_at: 2010-01-01 20:13:21
349
- title: Help
350
- permission_id: "3"
351
- updated_at: 2010-01-02 19:55:48
352
- id: "12"
353
350
  content: |-
354
351
  Work in progress.
355
-
352
+
356
353
  Please look at "Six Updater Suite Homepage":http://six.dev-heaven.net/wagn/Six_Updater_Suite
357
- markup_style: Textile
354
+ permission_id: "3"
355
+ created_at: 2010-01-01 20:13:21
356
+ updated_at: 2010-01-02 19:55:48
358
357
  content_cache: |-
359
358
  <p>Work in progress.<br />
360
359
  Please look at <a href="http://six.dev-heaven.net/wagn/Six_Updater_Suite">Six Updater Suite Homepage</a></p>
360
+ markup_style: Textile
@@ -223,7 +223,7 @@ goldberg_controller_actions_037:
223
223
  url_to_use: ""
224
224
  goldberg_controller_actions_038:
225
225
  id: "41"
226
- site_controller_id: "27"
226
+ site_controller_id: "28"
227
227
  name: index
228
228
  permission_id:
229
229
  url_to_use: ""
@@ -1,16 +1,16 @@
1
1
  ---
2
2
  goldberg_permissions_001:
3
- name: Administer site
4
3
  id: "1"
4
+ name: Administer site
5
5
  goldberg_permissions_002:
6
- name: Public pages - edit
7
6
  id: "2"
7
+ name: Public pages - edit
8
8
  goldberg_permissions_003:
9
- name: Public pages - view
10
9
  id: "3"
10
+ name: Public pages - view
11
11
  goldberg_permissions_004:
12
- name: Public actions - execute
13
12
  id: "4"
13
+ name: Public actions - execute
14
14
  goldberg_permissions_005:
15
- name: Members only page -- view
16
15
  id: "5"
16
+ name: Members only page -- view
@@ -56,12 +56,18 @@ goldberg_roles_001:
56
56
  index: false
57
57
  repositories:
58
58
  index: false
59
- servers:
59
+ queryservers:
60
60
  index: false
61
61
  logs:
62
62
  index: false
63
63
  logsessions:
64
64
  index: false
65
+ system_settings:
66
+ index: false
67
+ networks:
68
+ index: false
69
+ categories:
70
+ index: true
65
71
  controllers:
66
72
  goldberg/content_pages: false
67
73
  goldberg/controller_actions: false
@@ -84,6 +90,9 @@ goldberg_roles_001:
84
90
  logs: false
85
91
  logviews: false
86
92
  queryservers: false
93
+ networks: false
94
+ system_settings: false
95
+ categories: true
87
96
  pages:
88
97
  home: true
89
98
  expired: true
@@ -101,7 +110,7 @@ goldberg_roles_001:
101
110
  role_id: 1
102
111
  role_ids:
103
112
  - 1
104
- updated_at: 2010-04-02 10:29:14 Z
113
+ updated_at: 2010-06-01 18:14:40 +02:00
105
114
  :menu: !ruby/object:Goldberg::Menu
106
115
  by_id:
107
116
  30: &id001 !ruby/object:Goldberg::Menu::Node
@@ -129,7 +138,7 @@ goldberg_roles_001:
129
138
  - *id001
130
139
 
131
140
  created_at: 2006-06-23 21:03:49
132
- updated_at: 2010-04-02 10:29:14
141
+ updated_at: 2010-06-01 18:14:40
133
142
  start_path:
134
143
  goldberg_roles_002:
135
144
  id: "2"
@@ -188,12 +197,18 @@ goldberg_roles_002:
188
197
  index: false
189
198
  repositories:
190
199
  index: false
191
- servers:
200
+ queryservers:
192
201
  index: false
193
202
  logs:
194
203
  index: false
195
204
  logsessions:
196
205
  index: false
206
+ system_settings:
207
+ index: false
208
+ networks:
209
+ index: false
210
+ categories:
211
+ index: true
197
212
  controllers:
198
213
  goldberg/content_pages: false
199
214
  goldberg/controller_actions: false
@@ -216,6 +231,9 @@ goldberg_roles_002:
216
231
  logs: false
217
232
  logviews: false
218
233
  queryservers: false
234
+ networks: false
235
+ system_settings: false
236
+ categories: true
219
237
  pages:
220
238
  home: true
221
239
  expired: true
@@ -235,7 +253,7 @@ goldberg_roles_002:
235
253
  role_ids:
236
254
  - 2
237
255
  - 1
238
- updated_at: 2010-04-02 10:29:15 Z
256
+ updated_at: 2010-06-01 18:14:40 +02:00
239
257
  :menu: !ruby/object:Goldberg::Menu
240
258
  by_id:
241
259
  1: &id001 !ruby/object:Goldberg::Menu::Node
@@ -298,7 +316,7 @@ goldberg_roles_002:
298
316
  - *id001
299
317
 
300
318
  created_at: 2006-06-23 21:03:50
301
- updated_at: 2010-04-02 10:29:15
319
+ updated_at: 2010-06-01 18:14:40
302
320
  start_path: /main
303
321
  goldberg_roles_003:
304
322
  id: "3"
@@ -357,12 +375,18 @@ goldberg_roles_003:
357
375
  index: true
358
376
  repositories:
359
377
  index: true
360
- servers:
378
+ queryservers:
361
379
  index: true
362
380
  logs:
363
381
  index: true
364
382
  logsessions:
365
383
  index: true
384
+ system_settings:
385
+ index: true
386
+ networks:
387
+ index: true
388
+ categories:
389
+ index: true
366
390
  controllers:
367
391
  goldberg/content_pages: true
368
392
  goldberg/controller_actions: true
@@ -385,6 +409,9 @@ goldberg_roles_003:
385
409
  logs: true
386
410
  logviews: true
387
411
  queryservers: true
412
+ networks: true
413
+ system_settings: true
414
+ categories: true
388
415
  pages:
389
416
  home: true
390
417
  expired: true
@@ -407,7 +434,7 @@ goldberg_roles_003:
407
434
  - 3
408
435
  - 2
409
436
  - 1
410
- updated_at: 2010-04-02 10:29:15 Z
437
+ updated_at: 2010-06-01 18:14:40 +02:00
411
438
  :menu: !ruby/object:Goldberg::Menu
412
439
  by_id:
413
440
  1: &id001 !ruby/object:Goldberg::Menu::Node
@@ -428,6 +455,7 @@ goldberg_roles_003:
428
455
  - 22
429
456
  - 21
430
457
  - 20
458
+ - 31
431
459
  content_page_id:
432
460
  controller_action_id: 38
433
461
  id: 15
@@ -598,8 +626,8 @@ goldberg_roles_003:
598
626
  name: Servers
599
627
  parent:
600
628
  parent_id: 15
601
- site_controller_id: 19
602
- url: /servers/index
629
+ site_controller_id: 23
630
+ url: /queryservers/index
603
631
  21: &id018 !ruby/object:Goldberg::Menu::Node
604
632
  content_page_id:
605
633
  controller_action_id: 28
@@ -620,7 +648,17 @@ goldberg_roles_003:
620
648
  parent_id: 15
621
649
  site_controller_id: 17
622
650
  url: /repositories/index
623
- 25: &id020 !ruby/object:Goldberg::Menu::Node
651
+ 31: &id020 !ruby/object:Goldberg::Menu::Node
652
+ content_page_id:
653
+ controller_action_id: 40
654
+ id: 31
655
+ label: Networks
656
+ name: Networks
657
+ parent:
658
+ parent_id: 15
659
+ site_controller_id: 24
660
+ url: /networks/index
661
+ 25: &id021 !ruby/object:Goldberg::Menu::Node
624
662
  content_page_id:
625
663
  controller_action_id: 36
626
664
  id: 25
@@ -630,7 +668,7 @@ goldberg_roles_003:
630
668
  parent_id: 28
631
669
  site_controller_id: 20
632
670
  url: /logsessions/index
633
- 27: &id021 !ruby/object:Goldberg::Menu::Node
671
+ 27: &id022 !ruby/object:Goldberg::Menu::Node
634
672
  content_page_id:
635
673
  controller_action_id: 37
636
674
  id: 27
@@ -660,11 +698,12 @@ goldberg_roles_003:
660
698
  Servers: *id017
661
699
  Actions: *id018
662
700
  Mirrors: *id019
663
- Logs: *id020
664
- Output: *id021
701
+ Networks: *id020
702
+ Logs: *id021
703
+ Output: *id022
665
704
  crumbs:
666
705
  - 1
667
- root: &id022 !ruby/object:Goldberg::Menu::Node
706
+ root: &id023 !ruby/object:Goldberg::Menu::Node
668
707
  children:
669
708
  - 1
670
709
  - 15
@@ -675,9 +714,9 @@ goldberg_roles_003:
675
714
  selected:
676
715
  1: *id001
677
716
  vector:
678
- - *id022
717
+ - *id023
679
718
  - *id001
680
719
 
681
720
  created_at: 2006-06-23 21:03:48
682
- updated_at: 2010-04-02 10:29:15
721
+ updated_at: 2010-06-01 18:14:40
683
722
  start_path: /main
@@ -1,21 +1,21 @@
1
1
  ---
2
2
  goldberg_roles_permissions_001:
3
- permission_id: "1"
4
- role_id: "3"
5
3
  id: "4"
4
+ role_id: "3"
5
+ permission_id: "1"
6
6
  goldberg_roles_permissions_002:
7
- permission_id: "3"
8
- role_id: "1"
9
7
  id: "6"
8
+ role_id: "1"
9
+ permission_id: "3"
10
10
  goldberg_roles_permissions_003:
11
- permission_id: "2"
12
- role_id: "3"
13
11
  id: "7"
12
+ role_id: "3"
13
+ permission_id: "2"
14
14
  goldberg_roles_permissions_004:
15
- permission_id: "4"
16
- role_id: "1"
17
15
  id: "9"
16
+ role_id: "1"
17
+ permission_id: "4"
18
18
  goldberg_roles_permissions_005:
19
- permission_id: "5"
20
- role_id: "2"
21
19
  id: "10"
20
+ role_id: "2"
21
+ permission_id: "5"
@@ -115,7 +115,7 @@ goldberg_site_controllers_023:
115
115
  permission_id: "1"
116
116
  builtin: "0"
117
117
  goldberg_site_controllers_024:
118
- id: "27"
119
- name: dependentmods
120
- permission_id: "1"
118
+ id: "28"
119
+ name: categories
120
+ permission_id: "3"
121
121
  builtin: "0"
@@ -1,20 +1,20 @@
1
1
  ---
2
2
  goldberg_system_settings_001:
3
+ id: "1"
4
+ site_name: Six Updater Suite
5
+ site_subtitle: An application and mod manager
6
+ footer_message: By Sickboy
7
+ public_role_id: "1"
3
8
  session_timeout: "86400"
4
- self_reg_send_confirmation_email: f
5
9
  site_default_page_id: "1"
10
+ not_found_page_id: "3"
6
11
  permission_denied_page_id: "4"
12
+ session_expired_page_id: "2"
7
13
  menu_depth: "3"
8
- self_reg_enabled: t
9
14
  start_path: /main
10
15
  site_url_prefix: http://localhost:3000/
11
- self_reg_confirmation_required: f
12
- id: "1"
13
- not_found_page_id: "3"
14
- site_name: Six Updater Suite
15
- public_role_id: "1"
16
+ self_reg_enabled: t
16
17
  self_reg_role_id: "1"
17
- site_subtitle: An application and mod manager
18
- footer_message: By Sickboy
19
- session_expired_page_id: "2"
18
+ self_reg_confirmation_required: f
20
19
  self_reg_confirmation_error_page_id: "11"
20
+ self_reg_send_confirmation_email: f
@@ -1,27 +1,27 @@
1
1
  ---
2
2
  goldberg_users_001:
3
+ id: "2"
3
4
  name: admin
4
- password_expired:
5
+ password: 1cb8e3dd1d92de3d27a1e6dcfe458f5f15cd2ae1
5
6
  role_id: "3"
7
+ password_salt: "577507000.10874027090329"
6
8
  fullname: ""
9
+ email: ""
7
10
  start_path: ""
8
11
  self_reg_confirmation_required: f
9
- password_changed_at:
10
- id: "2"
11
- password_salt: "577507000.10874027090329"
12
- password: 1cb8e3dd1d92de3d27a1e6dcfe458f5f15cd2ae1
13
- email: ""
14
12
  confirmation_key:
13
+ password_changed_at:
14
+ password_expired:
15
15
  goldberg_users_002:
16
+ id: "3"
16
17
  name: user
17
- password_expired:
18
+ password: 30f188cbab0fa1f484516e7960b93a186eac0b30
18
19
  role_id: "2"
20
+ password_salt: "575202500.204264655072264"
19
21
  fullname: user
22
+ email: ""
20
23
  start_path: ""
21
24
  self_reg_confirmation_required: f
22
- password_changed_at:
23
- id: "3"
24
- password_salt: "575202500.204264655072264"
25
- password: 30f188cbab0fa1f484516e7960b93a186eac0b30
26
- email: ""
27
25
  confirmation_key:
26
+ password_changed_at:
27
+ password_expired:
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 16
8
- - 3
9
- version: 0.16.3
7
+ - 17
8
+ - 0
9
+ version: 0.17.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -112,7 +112,7 @@ files:
112
112
  - lib/six-updater-web/app/controllers/actions_controller.rb
113
113
  - lib/six-updater-web/app/controllers/application_controller.rb
114
114
  - lib/six-updater-web/app/controllers/appsettings_controller.rb
115
- - lib/six-updater-web/app/controllers/dependentmods_controller.rb
115
+ - lib/six-updater-web/app/controllers/categories_controller.rb
116
116
  - lib/six-updater-web/app/controllers/logsessions_controller.rb
117
117
  - lib/six-updater-web/app/controllers/logs_controller.rb
118
118
  - lib/six-updater-web/app/controllers/logviews_controller.rb
@@ -141,7 +141,7 @@ files:
141
141
  - lib/six-updater-web/app/helpers/system_settings_helper.rb
142
142
  - lib/six-updater-web/app/models/action.rb
143
143
  - lib/six-updater-web/app/models/appsetting.rb
144
- - lib/six-updater-web/app/models/dependentmod.rb
144
+ - lib/six-updater-web/app/models/category.rb
145
145
  - lib/six-updater-web/app/models/log.rb
146
146
  - lib/six-updater-web/app/models/logsession.rb
147
147
  - lib/six-updater-web/app/models/log_observer.rb
@@ -221,6 +221,8 @@ files:
221
221
  - lib/six-updater-web/db/migrate/20100517174105_create_dependentmods.rb
222
222
  - lib/six-updater-web/db/migrate/20100518094056_change3_columns_mods.rb
223
223
  - lib/six-updater-web/db/migrate/20100520101650_add_more_indexes.rb
224
+ - lib/six-updater-web/db/migrate/20100520101651_remove_id_from_dependentmods.rb
225
+ - lib/six-updater-web/db/migrate/20100520101652_create_categories.rb
224
226
  - lib/six-updater-web/db/schema.rb
225
227
  - lib/six-updater-web/doc/README_FOR_APP
226
228
  - lib/six-updater-web/init.rb
@@ -825,9 +827,9 @@ files:
825
827
  - lib/six-updater-web/vendor/plugins/six-app_manager/lib/six/appmanager.rb
826
828
  - lib/six-updater-web/vendor/plugins/six-app_manager/Rakefile
827
829
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/actions.yml
828
- - lib/six-updater-web/vendor/plugins/six-db_manager/db/actions_sixconfigs.yml
829
830
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/appsettings.yml
830
831
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/appsettings_sixconfigs.yml
832
+ - lib/six-updater-web/vendor/plugins/six-db_manager/db/dependentmods.yml
831
833
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_content_pages.yml
832
834
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_controller_actions.yml
833
835
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/goldberg_menu_items.yml
@@ -840,6 +842,8 @@ files:
840
842
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/mods.yml
841
843
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/mods_servers.yml
842
844
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/mods_sixconfigs.yml
845
+ - lib/six-updater-web/vendor/plugins/six-db_manager/db/networks.yml
846
+ - lib/six-updater-web/vendor/plugins/six-db_manager/db/networks_repositories.yml
843
847
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/queryservers.yml
844
848
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/repositories.yml
845
849
  - lib/six-updater-web/vendor/plugins/six-db_manager/db/servers.yml
@@ -1,7 +0,0 @@
1
- class DependentmodsController < ApplicationController
2
- active_scaffold :dependentmods do |config|
3
- [:mod, :depmod].each do |c|
4
- config.columns[c].form_ui = :record_select
5
- end
6
- end
7
- end
@@ -1,4 +0,0 @@
1
- class Dependentmod < ActiveRecord::Base
2
- belongs_to :mod
3
- belongs_to :depmod, :class_name => "Mod"
4
- end