Reconfigure assets for Rails 3.1.0.rc5
This commit is contained in:
parent
86e4de4a2e
commit
a0bec294bf
6
Gemfile
6
Gemfile
|
@ -1,18 +1,20 @@
|
||||||
source 'http://rubygems.org'
|
source 'http://rubygems.org'
|
||||||
|
|
||||||
gem 'rails', '3.1.0.rc5'
|
gem 'rails', '3.1.0.rc5'
|
||||||
gem 'coffee-script'
|
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
gem 'geokit'
|
gem 'geokit'
|
||||||
gem 'haml', '~> 3.2.0.alpha'
|
gem 'haml', '~> 3.2.0.alpha'
|
||||||
gem 'therubyracer', :platforms => :ruby
|
gem 'therubyracer', :platforms => :ruby
|
||||||
gem 'uglifier'
|
|
||||||
|
|
||||||
platforms :jruby do
|
platforms :jruby do
|
||||||
gem 'jruby-openssl'
|
gem 'jruby-openssl'
|
||||||
gem 'therubyrhino'
|
gem 'therubyrhino'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :assets do
|
||||||
|
gem 'uglifier'
|
||||||
|
end
|
||||||
|
|
||||||
group :development, :production do
|
group :development, :production do
|
||||||
gem 'pg'
|
gem 'pg'
|
||||||
end
|
end
|
||||||
|
|
|
@ -38,10 +38,6 @@ GEM
|
||||||
bcrypt-ruby (2.1.4-java)
|
bcrypt-ruby (2.1.4-java)
|
||||||
bouncy-castle-java (1.5.0146.1)
|
bouncy-castle-java (1.5.0146.1)
|
||||||
builder (3.0.0)
|
builder (3.0.0)
|
||||||
coffee-script (2.2.0)
|
|
||||||
coffee-script-source
|
|
||||||
execjs
|
|
||||||
coffee-script-source (1.1.1)
|
|
||||||
crack (0.1.8)
|
crack (0.1.8)
|
||||||
devise (1.4.2)
|
devise (1.4.2)
|
||||||
bcrypt-ruby (~> 2.1.2)
|
bcrypt-ruby (~> 2.1.2)
|
||||||
|
@ -126,7 +122,6 @@ PLATFORMS
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
ZenTest
|
ZenTest
|
||||||
coffee-script
|
|
||||||
devise
|
devise
|
||||||
geokit
|
geokit
|
||||||
haml (~> 3.2.0.alpha)
|
haml (~> 3.2.0.alpha)
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
require File.expand_path('../boot', __FILE__)
|
require File.expand_path('../boot', __FILE__)
|
||||||
|
|
||||||
require "active_record/railtie"
|
require 'rails/all'
|
||||||
require "action_controller/railtie"
|
|
||||||
require "action_mailer/railtie"
|
|
||||||
require "rails/test_unit/railtie"
|
|
||||||
|
|
||||||
# If you have a Gemfile, require the gems listed there, including any gems
|
# If you have a Gemfile, require the default gems, the ones in the
|
||||||
# you've limited to :test, :development, or :production.
|
# current environment and also include :assets gems if in development
|
||||||
Bundler.require(:default, Rails.env) if defined?(Bundler)
|
# or test environments.
|
||||||
|
Bundler.require *Rails.groups(:assets) if defined?(Bundler)
|
||||||
|
|
||||||
module AdoptAHydrant
|
module AdoptAHydrant
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
|
@ -33,23 +31,12 @@ module AdoptAHydrant
|
||||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||||
# config.i18n.default_locale = :de
|
# config.i18n.default_locale = :de
|
||||||
|
|
||||||
# Please note that JavaScript expansions are *ignored altogether* if the asset
|
|
||||||
# pipeline is enabled (see config.assets.enabled below). Put your defaults in
|
|
||||||
# app/assets/javascripts/application.js in that case.
|
|
||||||
#
|
|
||||||
# JavaScript files you want as :defaults (application.js is always included).
|
|
||||||
# config.action_view.javascript_expansions[:defaults] = %w(prototype prototype_ujs)
|
|
||||||
|
|
||||||
|
|
||||||
# Configure the default encoding used in templates for Ruby 1.9.
|
# Configure the default encoding used in templates for Ruby 1.9.
|
||||||
config.encoding = "utf-8"
|
config.encoding = "utf-8"
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
# Configure sensitive parameters which will be filtered from the log file.
|
||||||
config.filter_parameters += [:password]
|
config.filter_parameters += [:password]
|
||||||
|
|
||||||
# Enable IdentityMap for Active Record, to disable set to false or remove the line below.
|
|
||||||
config.active_record.identity_map = true
|
|
||||||
|
|
||||||
# Enable the asset pipeline
|
# Enable the asset pipeline
|
||||||
config.assets.enabled = true
|
config.assets.enabled = true
|
||||||
end
|
end
|
||||||
|
|
|
@ -15,11 +15,13 @@ AdoptAHydrant::Application.configure do
|
||||||
|
|
||||||
# Don't care if the mailer can't send
|
# Don't care if the mailer can't send
|
||||||
config.action_mailer.raise_delivery_errors = false
|
config.action_mailer.raise_delivery_errors = false
|
||||||
config.action_mailer.default_url_options = {:host => 'localhost:3000'}
|
|
||||||
|
|
||||||
# Print deprecation notices to the Rails logger
|
# Print deprecation notices to the Rails logger
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
||||||
# Only use best-standards-support built into browsers
|
# Only use best-standards-support built into browsers
|
||||||
config.action_dispatch.best_standards_support = :builtin
|
config.action_dispatch.best_standards_support = :builtin
|
||||||
|
|
||||||
|
# Do not compress assets
|
||||||
|
config.assets.compress = false
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,11 +9,10 @@ AdoptAHydrant::Application.configure do
|
||||||
config.action_controller.perform_caching = true
|
config.action_controller.perform_caching = true
|
||||||
|
|
||||||
# Disable Rails's static asset server (Apache or nginx will already do this)
|
# Disable Rails's static asset server (Apache or nginx will already do this)
|
||||||
config.serve_static_assets = true
|
config.serve_static_assets = false
|
||||||
|
|
||||||
# Compress both stylesheets and JavaScripts
|
# Compress JavaScripts and CSS
|
||||||
config.assets.js_compressor = :uglifier
|
config.assets.compress = true
|
||||||
# config.assets.css_compressor = :scss
|
|
||||||
|
|
||||||
# Specifies the header that your server uses for sending files
|
# Specifies the header that your server uses for sending files
|
||||||
# (comment out if your front-end server doesn't support this)
|
# (comment out if your front-end server doesn't support this)
|
||||||
|
@ -31,15 +30,14 @@ AdoptAHydrant::Application.configure do
|
||||||
# Use a different cache store in production
|
# Use a different cache store in production
|
||||||
# config.cache_store = :mem_cache_store
|
# config.cache_store = :mem_cache_store
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and javascripts from an asset server
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server
|
||||||
# config.action_controller.asset_host = "http://assets.example.com"
|
# config.action_controller.asset_host = "http://assets.example.com"
|
||||||
|
|
||||||
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
|
||||||
# config.assets.precompile += %w( search.js )
|
# config.assets.precompile += %w( search.js )
|
||||||
|
|
||||||
config.action_mailer.raise_delivery_errors = true
|
# Disable delivery errors, bad email addresses will be ignored
|
||||||
config.action_mailer.delivery_method = :smtp
|
# config.action_mailer.raise_delivery_errors = false
|
||||||
config.action_mailer.default_url_options = {:host => 'adoptahydrant.org'}
|
|
||||||
|
|
||||||
# Enable threaded mode
|
# Enable threaded mode
|
||||||
# config.threadsafe!
|
# config.threadsafe!
|
||||||
|
|
|
@ -28,7 +28,6 @@ AdoptAHydrant::Application.configure do
|
||||||
# The :test delivery method accumulates sent emails in the
|
# The :test delivery method accumulates sent emails in the
|
||||||
# ActionMailer::Base.deliveries array.
|
# ActionMailer::Base.deliveries array.
|
||||||
config.action_mailer.delivery_method = :test
|
config.action_mailer.delivery_method = :test
|
||||||
config.action_mailer.default_url_options = {:host => 'localhost:3000'}
|
|
||||||
|
|
||||||
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
||||||
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
#
|
#
|
||||||
# This file contains the settings for ActionController::ParametersWrapper
|
# This file contains settings for ActionController::ParamsWrapper which
|
||||||
# which will be enabled by default in the upcoming version of Ruby on Rails.
|
# is enabled by default.
|
||||||
|
|
||||||
# Enable parameter wrapping for JSON. You can disable this by setting :format to empty array.
|
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
||||||
ActionController::Base.wrap_parameters :format => [:json]
|
ActionController::Base.wrap_parameters :format => [:json]
|
||||||
|
|
||||||
# Disable root element in JSON by default.
|
# Disable root element in JSON by default.
|
||||||
|
|
|
@ -5,7 +5,7 @@ class BrowsingTest < ActionDispatch::PerformanceTest
|
||||||
# Refer to the documentation for all available options
|
# Refer to the documentation for all available options
|
||||||
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
||||||
# :output => 'tmp/performance', :formats => [:flat] }
|
# :output => 'tmp/performance', :formats => [:flat] }
|
||||||
|
|
||||||
def test_homepage
|
def test_homepage
|
||||||
get '/'
|
get '/'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue