six-updater-web 0.24.8 → 0.24.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six-updater-web/README +243 -243
  3. data/lib/six-updater-web/app/controllers/main_controller.rb +5 -1
  4. data/lib/six-updater-web/app/models/mod.rb +4 -2
  5. data/lib/six-updater-web/app/views/main/_left.haml +4 -1
  6. data/lib/six-updater-web/config/database.yml +2 -0
  7. data/lib/six-updater-web/config/environment.rb +8 -2
  8. data/lib/six-updater-web/config/environments/test.rb +27 -27
  9. data/lib/six-updater-web/config/initializers/backtrace_silencers.rb +6 -6
  10. data/lib/six-updater-web/config/initializers/inflections.rb +10 -10
  11. data/lib/six-updater-web/config/initializers/mime_types.rb +5 -5
  12. data/lib/six-updater-web/config/initializers/new_rails_defaults.rb +18 -18
  13. data/lib/six-updater-web/config/initializers/session_store.rb +15 -15
  14. data/lib/six-updater-web/config/locales/en.yml +4 -4
  15. data/lib/six-updater-web/config/six-updater-web.rb +2 -2
  16. data/lib/six-updater-web/doc/README_FOR_APP +2 -2
  17. data/lib/six-updater-web/public/404.html +29 -29
  18. data/lib/six-updater-web/public/422.html +29 -29
  19. data/lib/six-updater-web/public/500.html +30 -30
  20. data/lib/six-updater-web/public/javascripts/application.js +2 -2
  21. data/lib/six-updater-web/public/javascripts/controls.js +962 -962
  22. data/lib/six-updater-web/public/javascripts/dragdrop.js +972 -972
  23. data/lib/six-updater-web/public/javascripts/effects.js +1127 -1127
  24. data/lib/six-updater-web/public/javascripts/prototype.js +4319 -4319
  25. data/lib/six-updater-web/script/destroy +3 -3
  26. data/lib/six-updater-web/script/plugin +3 -3
  27. data/lib/six-updater-web/test/functional/configs_controller_test.rb +8 -8
  28. data/lib/six-updater-web/test/functional/mods_controller_test.rb +8 -8
  29. data/lib/six-updater-web/test/functional/repositories_controller_test.rb +8 -8
  30. data/lib/six-updater-web/test/functional/servers_controller_test.rb +8 -8
  31. data/lib/six-updater-web/test/functional/settings_controller_test.rb +8 -8
  32. data/lib/six-updater-web/test/performance/browsing_test.rb +9 -9
  33. data/lib/six-updater-web/test/test_helper.rb +38 -38
  34. data/lib/six-updater-web/test/unit/config_test.rb +8 -8
  35. data/lib/six-updater-web/test/unit/helpers/configs_helper_test.rb +4 -4
  36. data/lib/six-updater-web/test/unit/helpers/mods_helper_test.rb +4 -4
  37. data/lib/six-updater-web/test/unit/helpers/repositories_helper_test.rb +4 -4
  38. data/lib/six-updater-web/test/unit/helpers/servers_helper_test.rb +4 -4
  39. data/lib/six-updater-web/test/unit/helpers/settings_helper_test.rb +4 -4
  40. data/lib/six-updater-web/test/unit/mod_test.rb +8 -8
  41. data/lib/six-updater-web/test/unit/repository_test.rb +8 -8
  42. data/lib/six-updater-web/test/unit/server_test.rb +8 -8
  43. data/lib/six-updater-web/test/unit/setting_test.rb +8 -8
  44. data/lib/six-updater-web/vendor/plugins/render_component/README +36 -36
  45. data/lib/six-updater-web/vendor/plugins/render_component/Rakefile +21 -21
  46. data/lib/six-updater-web/vendor/plugins/render_component/init.rb +2 -2
  47. data/lib/six-updater-web/vendor/plugins/render_component/lib/components.rb +141 -141
  48. data/lib/six-updater-web/vendor/plugins/render_component/test/abstract_unit.rb +8 -8
  49. data/lib/six-updater-web/vendor/plugins/render_component/test/components_test.rb +140 -140
  50. data/lib/six-updater-web/vendor/plugins/six-app_manager/lib/six/appmanager.rb +1 -1
  51. metadata +3 -3
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/destroy'
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/destroy'
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env ruby
2
- require File.dirname(__FILE__) + '/../config/boot'
3
- require 'commands/plugin'
1
+ #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../config/boot'
3
+ require 'commands/plugin'
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class ConfigsControllerTest < ActionController::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class ConfigsControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class ModsControllerTest < ActionController::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class ModsControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class RepositoriesControllerTest < ActionController::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class RepositoriesControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class ServersControllerTest < ActionController::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class ServersControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class SettingsControllerTest < ActionController::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class SettingsControllerTest < ActionController::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,9 +1,9 @@
1
- require 'test_helper'
2
- require 'performance_test_help'
3
-
4
- # Profiling results for each test method are written to tmp/performance.
5
- class BrowsingTest < ActionController::PerformanceTest
6
- def test_homepage
7
- get '/'
8
- end
9
- end
1
+ require 'test_helper'
2
+ require 'performance_test_help'
3
+
4
+ # Profiling results for each test method are written to tmp/performance.
5
+ class BrowsingTest < ActionController::PerformanceTest
6
+ def test_homepage
7
+ get '/'
8
+ end
9
+ end
@@ -1,38 +1,38 @@
1
- ENV["RAILS_ENV"] = "test"
2
- require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
- require 'test_help'
4
-
5
- class ActiveSupport::TestCase
6
- # Transactional fixtures accelerate your tests by wrapping each test method
7
- # in a transaction that's rolled back on completion. This ensures that the
8
- # test database remains unchanged so your fixtures don't have to be reloaded
9
- # between every test method. Fewer database queries means faster tests.
10
- #
11
- # Read Mike Clark's excellent walkthrough at
12
- # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
- #
14
- # Every Active Record database supports transactions except MyISAM tables
15
- # in MySQL. Turn off transactional fixtures in this case; however, if you
16
- # don't care one way or the other, switching from MyISAM to InnoDB tables
17
- # is recommended.
18
- #
19
- # The only drawback to using transactional fixtures is when you actually
20
- # need to test transactions. Since your test is bracketed by a transaction,
21
- # any transactions started in your code will be automatically rolled back.
22
- self.use_transactional_fixtures = true
23
-
24
- # Instantiated fixtures are slow, but give you @david where otherwise you
25
- # would need people(:david). If you don't want to migrate your existing
26
- # test cases which use the @david style and don't mind the speed hit (each
27
- # instantiated fixtures translates to a database query per test method),
28
- # then set this back to true.
29
- self.use_instantiated_fixtures = false
30
-
31
- # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
- #
33
- # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
- # -- they do not yet inherit this setting
35
- fixtures :all
36
-
37
- # Add more helper methods to be used by all tests here...
38
- end
1
+ ENV["RAILS_ENV"] = "test"
2
+ require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
3
+ require 'test_help'
4
+
5
+ class ActiveSupport::TestCase
6
+ # Transactional fixtures accelerate your tests by wrapping each test method
7
+ # in a transaction that's rolled back on completion. This ensures that the
8
+ # test database remains unchanged so your fixtures don't have to be reloaded
9
+ # between every test method. Fewer database queries means faster tests.
10
+ #
11
+ # Read Mike Clark's excellent walkthrough at
12
+ # http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
13
+ #
14
+ # Every Active Record database supports transactions except MyISAM tables
15
+ # in MySQL. Turn off transactional fixtures in this case; however, if you
16
+ # don't care one way or the other, switching from MyISAM to InnoDB tables
17
+ # is recommended.
18
+ #
19
+ # The only drawback to using transactional fixtures is when you actually
20
+ # need to test transactions. Since your test is bracketed by a transaction,
21
+ # any transactions started in your code will be automatically rolled back.
22
+ self.use_transactional_fixtures = true
23
+
24
+ # Instantiated fixtures are slow, but give you @david where otherwise you
25
+ # would need people(:david). If you don't want to migrate your existing
26
+ # test cases which use the @david style and don't mind the speed hit (each
27
+ # instantiated fixtures translates to a database query per test method),
28
+ # then set this back to true.
29
+ self.use_instantiated_fixtures = false
30
+
31
+ # Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
32
+ #
33
+ # Note: You'll currently still have to declare fixtures explicitly in integration tests
34
+ # -- they do not yet inherit this setting
35
+ fixtures :all
36
+
37
+ # Add more helper methods to be used by all tests here...
38
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class ConfigTest < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class ConfigTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,4 +1,4 @@
1
- require 'test_helper'
2
-
3
- class ConfigsHelperTest < ActionView::TestCase
4
- end
1
+ require 'test_helper'
2
+
3
+ class ConfigsHelperTest < ActionView::TestCase
4
+ end
@@ -1,4 +1,4 @@
1
- require 'test_helper'
2
-
3
- class ModsHelperTest < ActionView::TestCase
4
- end
1
+ require 'test_helper'
2
+
3
+ class ModsHelperTest < ActionView::TestCase
4
+ end
@@ -1,4 +1,4 @@
1
- require 'test_helper'
2
-
3
- class RepositoriesHelperTest < ActionView::TestCase
4
- end
1
+ require 'test_helper'
2
+
3
+ class RepositoriesHelperTest < ActionView::TestCase
4
+ end
@@ -1,4 +1,4 @@
1
- require 'test_helper'
2
-
3
- class ServersHelperTest < ActionView::TestCase
4
- end
1
+ require 'test_helper'
2
+
3
+ class ServersHelperTest < ActionView::TestCase
4
+ end
@@ -1,4 +1,4 @@
1
- require 'test_helper'
2
-
3
- class SettingsHelperTest < ActionView::TestCase
4
- end
1
+ require 'test_helper'
2
+
3
+ class SettingsHelperTest < ActionView::TestCase
4
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class ModTest < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class ModTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class RepositoryTest < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class RepositoryTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class ServerTest < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class ServerTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,8 +1,8 @@
1
- require 'test_helper'
2
-
3
- class SettingTest < ActiveSupport::TestCase
4
- # Replace this with your real tests.
5
- test "the truth" do
6
- assert true
7
- end
8
- end
1
+ require 'test_helper'
2
+
3
+ class SettingTest < ActiveSupport::TestCase
4
+ # Replace this with your real tests.
5
+ test "the truth" do
6
+ assert true
7
+ end
8
+ end
@@ -1,37 +1,37 @@
1
- Components allow you to call other actions for their rendered response while executing another action. You can either delegate
2
- the entire response rendering or you can mix a partial response in with your other content.
3
-
4
- class WeblogController < ActionController::Base
5
- # Performs a method and then lets hello_world output its render
6
- def delegate_action
7
- do_other_stuff_before_hello_world
8
- render_component :controller => "greeter", :action => "hello_world", :params => { :person => "david" }
9
- end
10
- end
11
-
12
- class GreeterController < ActionController::Base
13
- def hello_world
14
- render :text => "#{params[:person]} says, Hello World!"
15
- end
16
- end
17
-
18
- The same can be done in a view to do a partial rendering:
19
-
20
- Let's see a greeting:
21
- <%= render_component :controller => "greeter", :action => "hello_world" %>
22
-
23
- It is also possible to specify the controller as a class constant, bypassing the inflector
24
- code to compute the controller class at runtime:
25
-
26
- <%= render_component :controller => GreeterController, :action => "hello_world" %>
27
-
28
- == When to use components
29
-
30
- Components should be used with care. They're significantly slower than simply splitting reusable parts into partials and
31
- conceptually more complicated. Don't use components as a way of separating concerns inside a single application. Instead,
32
- reserve components to those rare cases where you truly have reusable view and controller elements that can be employed
33
- across many applications at once.
34
-
35
- So to repeat: Components are a special-purpose approach that can often be replaced with better use of partials and filters.
36
-
1
+ Components allow you to call other actions for their rendered response while executing another action. You can either delegate
2
+ the entire response rendering or you can mix a partial response in with your other content.
3
+
4
+ class WeblogController < ActionController::Base
5
+ # Performs a method and then lets hello_world output its render
6
+ def delegate_action
7
+ do_other_stuff_before_hello_world
8
+ render_component :controller => "greeter", :action => "hello_world", :params => { :person => "david" }
9
+ end
10
+ end
11
+
12
+ class GreeterController < ActionController::Base
13
+ def hello_world
14
+ render :text => "#{params[:person]} says, Hello World!"
15
+ end
16
+ end
17
+
18
+ The same can be done in a view to do a partial rendering:
19
+
20
+ Let's see a greeting:
21
+ <%= render_component :controller => "greeter", :action => "hello_world" %>
22
+
23
+ It is also possible to specify the controller as a class constant, bypassing the inflector
24
+ code to compute the controller class at runtime:
25
+
26
+ <%= render_component :controller => GreeterController, :action => "hello_world" %>
27
+
28
+ == When to use components
29
+
30
+ Components should be used with care. They're significantly slower than simply splitting reusable parts into partials and
31
+ conceptually more complicated. Don't use components as a way of separating concerns inside a single application. Instead,
32
+ reserve components to those rare cases where you truly have reusable view and controller elements that can be employed
33
+ across many applications at once.
34
+
35
+ So to repeat: Components are a special-purpose approach that can often be replaced with better use of partials and filters.
36
+
37
37
  Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license
@@ -1,22 +1,22 @@
1
- require 'rake'
2
- require 'rake/testtask'
3
- require 'rake/rdoctask'
4
-
5
- desc 'Default: run unit tests.'
6
- task :default => :test
7
-
8
- desc 'Test the components plugin.'
9
- Rake::TestTask.new(:test) do |t|
10
- t.libs << 'lib'
11
- t.pattern = 'test/**/*_test.rb'
12
- t.verbose = true
13
- end
14
-
15
- desc 'Generate documentation for the components plugin.'
16
- Rake::RDocTask.new(:rdoc) do |rdoc|
17
- rdoc.rdoc_dir = 'rdoc'
18
- rdoc.title = 'Components'
19
- rdoc.options << '--line-numbers' << '--inline-source'
20
- rdoc.rdoc_files.include('README')
21
- rdoc.rdoc_files.include('lib/**/*.rb')
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/rdoctask'
4
+
5
+ desc 'Default: run unit tests.'
6
+ task :default => :test
7
+
8
+ desc 'Test the components plugin.'
9
+ Rake::TestTask.new(:test) do |t|
10
+ t.libs << 'lib'
11
+ t.pattern = 'test/**/*_test.rb'
12
+ t.verbose = true
13
+ end
14
+
15
+ desc 'Generate documentation for the components plugin.'
16
+ Rake::RDocTask.new(:rdoc) do |rdoc|
17
+ rdoc.rdoc_dir = 'rdoc'
18
+ rdoc.title = 'Components'
19
+ rdoc.options << '--line-numbers' << '--inline-source'
20
+ rdoc.rdoc_files.include('README')
21
+ rdoc.rdoc_files.include('lib/**/*.rb')
22
22
  end
@@ -1,2 +1,2 @@
1
- require 'components'
2
- ActionController::Base.send :include, Components
1
+ require 'components'
2
+ ActionController::Base.send :include, Components