mootools-rails 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -2
- data/Gemfile.lock +49 -56
- data/README.md +27 -6
- data/Rakefile +0 -8
- data/lib/generators/mootools/install/install_generator.rb +26 -21
- data/lib/mootools-rails.rb +8 -11
- data/lib/mootools-rails/{assert_select_mootools.rb → assert_select_jquery.rb} +23 -4
- data/lib/mootools-rails/engine.rb +12 -0
- data/lib/mootools-rails/railtie.rb +25 -0
- data/lib/mootools-rails/version.rb +2 -2
- data/mootools-rails.gemspec +5 -5
- data/vendor/assets/javascripts/mootools-compat.js +5952 -0
- data/vendor/assets/javascripts/mootools-compat.min.js +3 -0
- data/vendor/assets/javascripts/mootools-more-compat.js +13546 -0
- data/vendor/assets/javascripts/mootools-more-compat.min.js +7 -0
- data/vendor/assets/javascripts/mootools-more.js +13455 -0
- data/vendor/assets/javascripts/mootools-more.min.js +7 -0
- data/vendor/assets/javascripts/mootools.js +5515 -0
- data/vendor/assets/javascripts/mootools.min.js +3 -0
- data/vendor/assets/javascripts/mootools_ujs.js +160 -0
- data/vendor/assets/javascripts/mootools_ujs.min.js +1 -0
- metadata +27 -65
- data/spec/lib/generators/mootools/install_generator_spec.rb +0 -45
- data/spec/lib/mootools-rails_spec.rb +0 -25
- data/spec/spec_helper.rb +0 -27
- data/spec/support/custom_app/.gitignore +0 -4
- data/spec/support/custom_app/Gemfile +0 -31
- data/spec/support/custom_app/config.ru +0 -4
- data/spec/support/custom_app/config/application.rb +0 -42
- data/spec/support/custom_app/config/boot.rb +0 -13
- data/spec/support/custom_app/config/database.yml +0 -22
- data/spec/support/custom_app/config/environment.rb +0 -5
- data/spec/support/custom_app/config/environments/development.rb +0 -26
- data/spec/support/custom_app/config/environments/production.rb +0 -49
- data/spec/support/custom_app/config/environments/test.rb +0 -35
- data/spec/support/custom_app/config/routes.rb +0 -58
- data/spec/support/custom_app/script/rails +0 -6
- data/spec/support/default_app/.gitignore +0 -4
- data/spec/support/default_app/Gemfile +0 -31
- data/spec/support/default_app/config.ru +0 -4
- data/spec/support/default_app/config/application.rb +0 -42
- data/spec/support/default_app/config/boot.rb +0 -13
- data/spec/support/default_app/config/database.yml +0 -22
- data/spec/support/default_app/config/environment.rb +0 -5
- data/spec/support/default_app/config/environments/development.rb +0 -26
- data/spec/support/default_app/config/environments/production.rb +0 -49
- data/spec/support/default_app/config/environments/test.rb +0 -35
- data/spec/support/default_app/config/routes.rb +0 -58
- data/spec/support/default_app/script/rails +0 -6
@@ -1,35 +0,0 @@
|
|
1
|
-
CustomApp::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/environment.rb
|
3
|
-
|
4
|
-
# The test environment is used exclusively to run your application's
|
5
|
-
# test suite. You never need to work with it otherwise. Remember that
|
6
|
-
# your test database is "scratch space" for the test suite and is wiped
|
7
|
-
# and recreated between test runs. Don't rely on the data there!
|
8
|
-
config.cache_classes = true
|
9
|
-
|
10
|
-
# Log error messages when you accidentally call methods on nil.
|
11
|
-
config.whiny_nils = true
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Raise exceptions instead of rendering exception templates
|
18
|
-
config.action_dispatch.show_exceptions = false
|
19
|
-
|
20
|
-
# Disable request forgery protection in test environment
|
21
|
-
config.action_controller.allow_forgery_protection = false
|
22
|
-
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
25
|
-
# ActionMailer::Base.deliveries array.
|
26
|
-
config.action_mailer.delivery_method = :test
|
27
|
-
|
28
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
-
# like if you have constraints or database-specific column types
|
31
|
-
# config.active_record.schema_format = :sql
|
32
|
-
|
33
|
-
# Print deprecation notices to the stderr
|
34
|
-
config.active_support.deprecation = :stderr
|
35
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
CustomApp::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 => "welcome#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
|
@@ -1,6 +0,0 @@
|
|
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'
|