rich_support 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +9 -0
- data/.suit +4 -0
- data/CHANGELOG.rdoc +5 -0
- data/Gemfile +3 -0
- data/MIT-LICENSE +20 -0
- data/README.textile +141 -0
- data/Rakefile +29 -0
- data/VERSION +1 -0
- data/lib/rich/support/actionpack/action_controller/test_case.rb +28 -0
- data/lib/rich/support/actionpack.rb +3 -0
- data/lib/rich/support/activesupport/active_support/dependencies.rb +12 -0
- data/lib/rich/support/activesupport.rb +3 -0
- data/lib/rich/support/core/string/colorize.rb +41 -0
- data/lib/rich/support/core/string/html_safe.rb +17 -0
- data/lib/rich/support/core/string/inflections.rb +39 -0
- data/lib/rich/support/core/string.rb +7 -0
- data/lib/rich/support/core.rb +2 -0
- data/lib/rich/support/rails/engine.rb +4 -0
- data/lib/rich/support/rails.rb +3 -0
- data/lib/rich/support/test/unit/test_case.rb +92 -0
- data/lib/rich/support/test.rb +3 -0
- data/lib/rich/support/version.rb +11 -0
- data/lib/rich/support.rb +51 -0
- data/lib/rich_support.rb +7 -0
- data/rich_support.gemspec +21 -0
- data/suit/rails-2/dummy/Gemfile +14 -0
- data/suit/rails-2/dummy/README +243 -0
- data/suit/rails-2/dummy/Rakefile +10 -0
- data/suit/rails-2/dummy/app/controllers/application_controller.rb +10 -0
- data/suit/rails-2/dummy/app/helpers/application_helper.rb +3 -0
- data/suit/rails-2/dummy/config/boot.rb +128 -0
- data/suit/rails-2/dummy/config/database.yml +22 -0
- data/suit/rails-2/dummy/config/environment.rb +41 -0
- data/suit/rails-2/dummy/config/environments/development.rb +17 -0
- data/suit/rails-2/dummy/config/environments/production.rb +28 -0
- data/suit/rails-2/dummy/config/environments/test.rb +28 -0
- data/suit/rails-2/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/suit/rails-2/dummy/config/initializers/cookie_verification_secret.rb +7 -0
- data/suit/rails-2/dummy/config/initializers/inflections.rb +10 -0
- data/suit/rails-2/dummy/config/initializers/mime_types.rb +5 -0
- data/suit/rails-2/dummy/config/initializers/new_rails_defaults.rb +21 -0
- data/suit/rails-2/dummy/config/initializers/session_store.rb +15 -0
- data/suit/rails-2/dummy/config/locales/en.yml +5 -0
- data/suit/rails-2/dummy/config/preinitializer.rb +20 -0
- data/suit/rails-2/dummy/config/routes.rb +43 -0
- data/suit/rails-2/dummy/db/schema.rb +2 -0
- data/suit/rails-2/dummy/db/seeds.rb +7 -0
- data/suit/rails-2/dummy/doc/README_FOR_APP +2 -0
- data/suit/rails-2/dummy/script/about +4 -0
- data/suit/rails-2/dummy/script/console +3 -0
- data/suit/rails-2/dummy/script/dbconsole +3 -0
- data/suit/rails-2/dummy/script/destroy +3 -0
- data/suit/rails-2/dummy/script/generate +3 -0
- data/suit/rails-2/dummy/script/performance/benchmarker +3 -0
- data/suit/rails-2/dummy/script/performance/profiler +3 -0
- data/suit/rails-2/dummy/script/plugin +3 -0
- data/suit/rails-2/dummy/script/runner +3 -0
- data/suit/rails-2/dummy/script/server +3 -0
- data/suit/rails-3/dummy/.gitignore +4 -0
- data/suit/rails-3/dummy/Gemfile +14 -0
- data/suit/rails-3/dummy/README +256 -0
- data/suit/rails-3/dummy/Rakefile +7 -0
- data/suit/rails-3/dummy/app/controllers/application_controller.rb +3 -0
- data/suit/rails-3/dummy/app/helpers/application_helper.rb +2 -0
- data/suit/rails-3/dummy/config/application.rb +42 -0
- data/suit/rails-3/dummy/config/boot.rb +6 -0
- data/suit/rails-3/dummy/config/database.yml +22 -0
- data/suit/rails-3/dummy/config/environment.rb +5 -0
- data/suit/rails-3/dummy/config/environments/development.rb +26 -0
- data/suit/rails-3/dummy/config/environments/production.rb +49 -0
- data/suit/rails-3/dummy/config/environments/test.rb +35 -0
- data/suit/rails-3/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/suit/rails-3/dummy/config/initializers/inflections.rb +10 -0
- data/suit/rails-3/dummy/config/initializers/mime_types.rb +5 -0
- data/suit/rails-3/dummy/config/initializers/secret_token.rb +7 -0
- data/suit/rails-3/dummy/config/initializers/session_store.rb +8 -0
- data/suit/rails-3/dummy/config/locales/en.yml +5 -0
- data/suit/rails-3/dummy/config/routes.rb +58 -0
- data/suit/rails-3/dummy/config.ru +4 -0
- data/suit/rails-3/dummy/db/schema.rb +2 -0
- data/suit/rails-3/dummy/db/seeds.rb +7 -0
- data/suit/rails-3/dummy/doc/README_FOR_APP +2 -0
- data/suit/rails-3/dummy/lib/tasks/.gitkeep +0 -0
- data/suit/rails-3/dummy/script/rails +6 -0
- data/suit/rails-3/dummy/vendor/plugins/.gitkeep +0 -0
- data/suit/shared/app/models/.gitkeep +0 -0
- data/suit/shared/app/views/application/index.html.erb +16 -0
- data/suit/shared/app/views/layouts/application.html.erb +11 -0
- data/suit/shared/db/schema.rb +2 -0
- data/suit/shared/db/seeds.rb +7 -0
- data/suit/shared/public/404.html +26 -0
- data/suit/shared/public/422.html +26 -0
- data/suit/shared/public/500.html +26 -0
- data/suit/shared/public/favicon.ico +0 -0
- data/suit/shared/public/images/rails.png +0 -0
- data/suit/shared/public/javascripts/application.js +2 -0
- data/suit/shared/public/javascripts/controls.js +965 -0
- data/suit/shared/public/javascripts/dragdrop.js +974 -0
- data/suit/shared/public/javascripts/effects.js +1123 -0
- data/suit/shared/public/javascripts/prototype.js +6001 -0
- data/suit/shared/public/javascripts/rails.js +191 -0
- data/suit/shared/public/robots.txt +5 -0
- data/suit/shared/public/stylesheets/.gitkeep +0 -0
- data/suit/shared/public/stylesheets/app.css +99 -0
- data/suit/shared/test/fixtures/.gitkeep +0 -0
- data/suit/shared/test/integration/suit/example.rb +40 -0
- data/suit/shared/test/suit_application/capybara_extensions.rb +32 -0
- data/suit/shared/test/suit_application.rb +27 -0
- data/suit/shared/test/test_helper.rb +37 -0
- data/suit/shared/test/unit/.gitkeep +0 -0
- data/suit/shared/test/unit/actionpack/action_controller/routing_test.rb +14 -0
- data/suit/shared/test/unit/actionpack/action_controller/test_case_test.rb +17 -0
- data/suit/shared/test/unit/activesupport/active_support/dependencies_test.rb +15 -0
- data/suit/shared/test/unit/core/string/colorize_test.rb +43 -0
- data/suit/shared/test/unit/core/string/html_safe_test.rb +15 -0
- data/suit/shared/test/unit/core/string/inflections_test.rb +51 -0
- data/suit/shared/test/unit/rails/engine_test.rb +13 -0
- data/suit/shared/test/unit/test/unit/test_case_test.rb +19 -0
- data/suit/templates/shared/Gemfile +14 -0
- data/suit/templates/shared/config/database.yml +10 -0
- data/suit/templates/shared/config/initializers/.gitkeep +0 -0
- data/suit/templates/shared/db/schema.rb +2 -0
- 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,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)
|
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,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
|