rich_support 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. data/.gitignore +9 -0
  2. data/.suit +4 -0
  3. data/CHANGELOG.rdoc +5 -0
  4. data/Gemfile +3 -0
  5. data/MIT-LICENSE +20 -0
  6. data/README.textile +141 -0
  7. data/Rakefile +29 -0
  8. data/VERSION +1 -0
  9. data/lib/rich/support/actionpack/action_controller/test_case.rb +28 -0
  10. data/lib/rich/support/actionpack.rb +3 -0
  11. data/lib/rich/support/activesupport/active_support/dependencies.rb +12 -0
  12. data/lib/rich/support/activesupport.rb +3 -0
  13. data/lib/rich/support/core/string/colorize.rb +41 -0
  14. data/lib/rich/support/core/string/html_safe.rb +17 -0
  15. data/lib/rich/support/core/string/inflections.rb +39 -0
  16. data/lib/rich/support/core/string.rb +7 -0
  17. data/lib/rich/support/core.rb +2 -0
  18. data/lib/rich/support/rails/engine.rb +4 -0
  19. data/lib/rich/support/rails.rb +3 -0
  20. data/lib/rich/support/test/unit/test_case.rb +92 -0
  21. data/lib/rich/support/test.rb +3 -0
  22. data/lib/rich/support/version.rb +11 -0
  23. data/lib/rich/support.rb +51 -0
  24. data/lib/rich_support.rb +7 -0
  25. data/rich_support.gemspec +21 -0
  26. data/suit/rails-2/dummy/Gemfile +14 -0
  27. data/suit/rails-2/dummy/README +243 -0
  28. data/suit/rails-2/dummy/Rakefile +10 -0
  29. data/suit/rails-2/dummy/app/controllers/application_controller.rb +10 -0
  30. data/suit/rails-2/dummy/app/helpers/application_helper.rb +3 -0
  31. data/suit/rails-2/dummy/config/boot.rb +128 -0
  32. data/suit/rails-2/dummy/config/database.yml +22 -0
  33. data/suit/rails-2/dummy/config/environment.rb +41 -0
  34. data/suit/rails-2/dummy/config/environments/development.rb +17 -0
  35. data/suit/rails-2/dummy/config/environments/production.rb +28 -0
  36. data/suit/rails-2/dummy/config/environments/test.rb +28 -0
  37. data/suit/rails-2/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/suit/rails-2/dummy/config/initializers/cookie_verification_secret.rb +7 -0
  39. data/suit/rails-2/dummy/config/initializers/inflections.rb +10 -0
  40. data/suit/rails-2/dummy/config/initializers/mime_types.rb +5 -0
  41. data/suit/rails-2/dummy/config/initializers/new_rails_defaults.rb +21 -0
  42. data/suit/rails-2/dummy/config/initializers/session_store.rb +15 -0
  43. data/suit/rails-2/dummy/config/locales/en.yml +5 -0
  44. data/suit/rails-2/dummy/config/preinitializer.rb +20 -0
  45. data/suit/rails-2/dummy/config/routes.rb +43 -0
  46. data/suit/rails-2/dummy/db/schema.rb +2 -0
  47. data/suit/rails-2/dummy/db/seeds.rb +7 -0
  48. data/suit/rails-2/dummy/doc/README_FOR_APP +2 -0
  49. data/suit/rails-2/dummy/script/about +4 -0
  50. data/suit/rails-2/dummy/script/console +3 -0
  51. data/suit/rails-2/dummy/script/dbconsole +3 -0
  52. data/suit/rails-2/dummy/script/destroy +3 -0
  53. data/suit/rails-2/dummy/script/generate +3 -0
  54. data/suit/rails-2/dummy/script/performance/benchmarker +3 -0
  55. data/suit/rails-2/dummy/script/performance/profiler +3 -0
  56. data/suit/rails-2/dummy/script/plugin +3 -0
  57. data/suit/rails-2/dummy/script/runner +3 -0
  58. data/suit/rails-2/dummy/script/server +3 -0
  59. data/suit/rails-3/dummy/.gitignore +4 -0
  60. data/suit/rails-3/dummy/Gemfile +14 -0
  61. data/suit/rails-3/dummy/README +256 -0
  62. data/suit/rails-3/dummy/Rakefile +7 -0
  63. data/suit/rails-3/dummy/app/controllers/application_controller.rb +3 -0
  64. data/suit/rails-3/dummy/app/helpers/application_helper.rb +2 -0
  65. data/suit/rails-3/dummy/config/application.rb +42 -0
  66. data/suit/rails-3/dummy/config/boot.rb +6 -0
  67. data/suit/rails-3/dummy/config/database.yml +22 -0
  68. data/suit/rails-3/dummy/config/environment.rb +5 -0
  69. data/suit/rails-3/dummy/config/environments/development.rb +26 -0
  70. data/suit/rails-3/dummy/config/environments/production.rb +49 -0
  71. data/suit/rails-3/dummy/config/environments/test.rb +35 -0
  72. data/suit/rails-3/dummy/config/initializers/backtrace_silencers.rb +7 -0
  73. data/suit/rails-3/dummy/config/initializers/inflections.rb +10 -0
  74. data/suit/rails-3/dummy/config/initializers/mime_types.rb +5 -0
  75. data/suit/rails-3/dummy/config/initializers/secret_token.rb +7 -0
  76. data/suit/rails-3/dummy/config/initializers/session_store.rb +8 -0
  77. data/suit/rails-3/dummy/config/locales/en.yml +5 -0
  78. data/suit/rails-3/dummy/config/routes.rb +58 -0
  79. data/suit/rails-3/dummy/config.ru +4 -0
  80. data/suit/rails-3/dummy/db/schema.rb +2 -0
  81. data/suit/rails-3/dummy/db/seeds.rb +7 -0
  82. data/suit/rails-3/dummy/doc/README_FOR_APP +2 -0
  83. data/suit/rails-3/dummy/lib/tasks/.gitkeep +0 -0
  84. data/suit/rails-3/dummy/script/rails +6 -0
  85. data/suit/rails-3/dummy/vendor/plugins/.gitkeep +0 -0
  86. data/suit/shared/app/models/.gitkeep +0 -0
  87. data/suit/shared/app/views/application/index.html.erb +16 -0
  88. data/suit/shared/app/views/layouts/application.html.erb +11 -0
  89. data/suit/shared/db/schema.rb +2 -0
  90. data/suit/shared/db/seeds.rb +7 -0
  91. data/suit/shared/public/404.html +26 -0
  92. data/suit/shared/public/422.html +26 -0
  93. data/suit/shared/public/500.html +26 -0
  94. data/suit/shared/public/favicon.ico +0 -0
  95. data/suit/shared/public/images/rails.png +0 -0
  96. data/suit/shared/public/javascripts/application.js +2 -0
  97. data/suit/shared/public/javascripts/controls.js +965 -0
  98. data/suit/shared/public/javascripts/dragdrop.js +974 -0
  99. data/suit/shared/public/javascripts/effects.js +1123 -0
  100. data/suit/shared/public/javascripts/prototype.js +6001 -0
  101. data/suit/shared/public/javascripts/rails.js +191 -0
  102. data/suit/shared/public/robots.txt +5 -0
  103. data/suit/shared/public/stylesheets/.gitkeep +0 -0
  104. data/suit/shared/public/stylesheets/app.css +99 -0
  105. data/suit/shared/test/fixtures/.gitkeep +0 -0
  106. data/suit/shared/test/integration/suit/example.rb +40 -0
  107. data/suit/shared/test/suit_application/capybara_extensions.rb +32 -0
  108. data/suit/shared/test/suit_application.rb +27 -0
  109. data/suit/shared/test/test_helper.rb +37 -0
  110. data/suit/shared/test/unit/.gitkeep +0 -0
  111. data/suit/shared/test/unit/actionpack/action_controller/routing_test.rb +14 -0
  112. data/suit/shared/test/unit/actionpack/action_controller/test_case_test.rb +17 -0
  113. data/suit/shared/test/unit/activesupport/active_support/dependencies_test.rb +15 -0
  114. data/suit/shared/test/unit/core/string/colorize_test.rb +43 -0
  115. data/suit/shared/test/unit/core/string/html_safe_test.rb +15 -0
  116. data/suit/shared/test/unit/core/string/inflections_test.rb +51 -0
  117. data/suit/shared/test/unit/rails/engine_test.rb +13 -0
  118. data/suit/shared/test/unit/test/unit/test_case_test.rb +19 -0
  119. data/suit/templates/shared/Gemfile +14 -0
  120. data/suit/templates/shared/config/database.yml +10 -0
  121. data/suit/templates/shared/config/initializers/.gitkeep +0 -0
  122. data/suit/templates/shared/db/schema.rb +2 -0
  123. metadata +189 -0
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ root :to => "application#index"
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id(.:format)))'
58
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,2 @@
1
+ ActiveRecord::Schema.define(:version => 19820801133704) do
2
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
7
+ # Major.create(:name => 'Daley', :city => cities.first)
@@ -0,0 +1,2 @@
1
+ Use this README file to introduce your application and point to useful places in the API for learning more.
2
+ Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
File without changes
File without changes
@@ -0,0 +1,16 @@
1
+ <div class="content">
2
+ <h1>Rich-Support <%= Rails.env %> app</h1>
3
+ <div class="left">
4
+ <p>
5
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
6
+ </p>
7
+ </div>
8
+ <ul>
9
+ <li>
10
+ <%= link_to "Home", "/" %>
11
+ </li>
12
+ <li>
13
+ <%= link_to "GemSuit", "https://github.com/archan937/gem_suit" %>
14
+ </li>
15
+ </ul>
16
+ </div>
@@ -0,0 +1,11 @@
1
+ <html>
2
+ <head>
3
+ <title>Test Application - Rails <%= Rails::VERSION::STRING %></title>
4
+ <%= stylesheet_link_tag "app" %>
5
+ </head>
6
+ <body>
7
+ <div id="page">
8
+ <%= yield %>
9
+ </div>
10
+ </body>
11
+ </html>
@@ -0,0 +1,2 @@
1
+ ActiveRecord::Schema.define(:version => 19820801133704) do
2
+ end
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
7
+ # Major.create(:name => 'Daley', :city => cities.first)
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
Binary file
@@ -0,0 +1,2 @@
1
+ // Place your application-specific JavaScript functions and classes here
2
+ // This file is automatically included by javascript_include_tag :defaults