Rails 3.1.4 to 3.1.6 defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Gemfile b/Gemfile | |
index ee62ec2..0ace91f 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -1,9 +1,9 @@ | |
-source 'http://rubygems.org' | |
+source 'https://rubygems.org' | |
-gem 'rails', '3.1.4' | |
+gem 'rails', '3.2.6' | |
# Bundle edge Rails instead: | |
-# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
+# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
@@ -11,11 +11,11 @@ gem 'sqlite3' | |
# Gems used only for assets and not required | |
# in production environments by default. | |
group :assets do | |
- gem 'sass-rails', '~> 3.1.5' | |
- gem 'coffee-rails', '~> 3.1.1' | |
+ gem 'sass-rails', '~> 3.2.3' | |
+ gem 'coffee-rails', '~> 3.2.1' | |
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | |
- # gem 'therubyracer' | |
+ # gem 'therubyracer', :platforms => :ruby | |
gem 'uglifier', '>= 1.0.3' | |
end | |
@@ -25,16 +25,14 @@ gem 'jquery-rails' | |
# To use ActiveModel has_secure_password | |
# gem 'bcrypt-ruby', '~> 3.0.0' | |
-# Use unicorn as the web server | |
+# To use Jbuilder templates for JSON | |
+# gem 'jbuilder' | |
+ | |
+# Use unicorn as the app server | |
# gem 'unicorn' | |
# Deploy with Capistrano | |
# gem 'capistrano' | |
# To use debugger | |
-# gem 'ruby-debug19', :require => 'ruby-debug' | |
- | |
-group :test do | |
- # Pretty printed test output | |
- gem 'turn', '~> 0.8.3', :require => false | |
-end | |
+# gem 'debugger' | |
######### | |
diff --git a/Gemfile.lock b/Gemfile.lock | |
index d4fc4aa..51df3c8 100644 | |
--- a/Gemfile.lock | |
+++ b/Gemfile.lock | |
@@ -1,40 +1,38 @@ | |
GEM | |
- remote: http://rubygems.org/ | |
+ remote: https://rubygems.org/ | |
specs: | |
- actionmailer (3.1.4) | |
- actionpack (= 3.1.4) | |
- mail (~> 2.3.0) | |
- actionpack (3.1.4) | |
- activemodel (= 3.1.4) | |
- activesupport (= 3.1.4) | |
+ actionmailer (3.2.6) | |
+ actionpack (= 3.2.6) | |
+ mail (~> 2.4.4) | |
+ actionpack (3.2.6) | |
+ activemodel (= 3.2.6) | |
+ activesupport (= 3.2.6) | |
builder (~> 3.0.0) | |
erubis (~> 2.7.0) | |
- i18n (~> 0.6) | |
- rack (~> 1.3.6) | |
- rack-cache (~> 1.1) | |
- rack-mount (~> 0.8.2) | |
+ journey (~> 1.0.1) | |
+ rack (~> 1.4.0) | |
+ rack-cache (~> 1.2) | |
rack-test (~> 0.6.1) | |
- sprockets (~> 2.0.3) | |
- activemodel (3.1.4) | |
- activesupport (= 3.1.4) | |
+ sprockets (~> 2.1.3) | |
+ activemodel (3.2.6) | |
+ activesupport (= 3.2.6) | |
builder (~> 3.0.0) | |
- i18n (~> 0.6) | |
- activerecord (3.1.4) | |
- activemodel (= 3.1.4) | |
- activesupport (= 3.1.4) | |
- arel (~> 2.2.3) | |
+ activerecord (3.2.6) | |
+ activemodel (= 3.2.6) | |
+ activesupport (= 3.2.6) | |
+ arel (~> 3.0.2) | |
tzinfo (~> 0.3.29) | |
- activeresource (3.1.4) | |
- activemodel (= 3.1.4) | |
- activesupport (= 3.1.4) | |
- activesupport (3.1.4) | |
+ activeresource (3.2.6) | |
+ activemodel (= 3.2.6) | |
+ activesupport (= 3.2.6) | |
+ activesupport (3.2.6) | |
+ i18n (~> 0.6) | |
multi_json (~> 1.0) | |
- ansi (1.4.3) | |
- arel (2.2.3) | |
+ arel (3.0.2) | |
builder (3.0.0) | |
- coffee-rails (3.1.1) | |
+ coffee-rails (3.2.2) | |
coffee-script (>= 2.2.0) | |
- railties (~> 3.1.0) | |
+ railties (~> 3.2.0) | |
coffee-script (2.2.0) | |
coffee-script-source | |
execjs | |
@@ -44,62 +42,58 @@ GEM | |
multi_json (~> 1.0) | |
hike (1.2.1) | |
i18n (0.6.0) | |
- jquery-rails (1.0.19) | |
- railties (~> 3.0) | |
+ journey (1.0.4) | |
+ jquery-rails (2.0.2) | |
+ railties (>= 3.2.0, < 5.0) | |
thor (~> 0.14) | |
json (1.7.3) | |
- mail (2.3.3) | |
+ mail (2.4.4) | |
i18n (>= 0.4.0) | |
mime-types (~> 1.16) | |
treetop (~> 1.4.8) | |
mime-types (1.19) | |
multi_json (1.3.6) | |
polyglot (0.3.3) | |
- rack (1.3.6) | |
+ rack (1.4.1) | |
rack-cache (1.2) | |
rack (>= 0.4) | |
- rack-mount (0.8.3) | |
- rack (>= 1.0.0) | |
rack-ssl (1.3.2) | |
rack | |
rack-test (0.6.1) | |
rack (>= 1.0) | |
- rails (3.1.4) | |
- actionmailer (= 3.1.4) | |
- actionpack (= 3.1.4) | |
- activerecord (= 3.1.4) | |
- activeresource (= 3.1.4) | |
- activesupport (= 3.1.4) | |
+ rails (3.2.6) | |
+ actionmailer (= 3.2.6) | |
+ actionpack (= 3.2.6) | |
+ activerecord (= 3.2.6) | |
+ activeresource (= 3.2.6) | |
+ activesupport (= 3.2.6) | |
bundler (~> 1.0) | |
- railties (= 3.1.4) | |
- railties (3.1.4) | |
- actionpack (= 3.1.4) | |
- activesupport (= 3.1.4) | |
+ railties (= 3.2.6) | |
+ railties (3.2.6) | |
+ actionpack (= 3.2.6) | |
+ activesupport (= 3.2.6) | |
rack-ssl (~> 1.3.2) | |
rake (>= 0.8.7) | |
rdoc (~> 3.4) | |
- thor (~> 0.14.6) | |
+ thor (>= 0.14.6, < 2.0) | |
rake (0.9.2.2) | |
rdoc (3.12) | |
json (~> 1.4) | |
sass (3.1.20) | |
- sass-rails (3.1.6) | |
- actionpack (~> 3.1.0) | |
- railties (~> 3.1.0) | |
+ sass-rails (3.2.5) | |
+ railties (~> 3.2.0) | |
sass (>= 3.1.10) | |
- tilt (~> 1.3.2) | |
- sprockets (2.0.4) | |
+ tilt (~> 1.3) | |
+ sprockets (2.1.3) | |
hike (~> 1.2) | |
rack (~> 1.0) | |
tilt (~> 1.1, != 1.3.0) | |
sqlite3 (1.3.6) | |
- thor (0.14.6) | |
+ thor (0.15.4) | |
tilt (1.3.3) | |
treetop (1.4.10) | |
polyglot | |
polyglot (>= 0.3.1) | |
- turn (0.8.3) | |
- ansi | |
tzinfo (0.3.33) | |
uglifier (1.2.6) | |
execjs (>= 0.3.0) | |
@@ -109,10 +103,9 @@ PLATFORMS | |
ruby | |
DEPENDENCIES | |
- coffee-rails (~> 3.1.1) | |
+ coffee-rails (~> 3.2.1) | |
jquery-rails | |
- rails (= 3.1.4) | |
- sass-rails (~> 3.1.5) | |
+ rails (= 3.2.6) | |
+ sass-rails (~> 3.2.3) | |
sqlite3 | |
- turn (~> 0.8.3) | |
uglifier (>= 1.0.3) | |
######### | |
diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js | |
index 37c7bfc..9097d83 100644 | |
--- a/app/assets/javascripts/application.js | |
+++ b/app/assets/javascripts/application.js | |
@@ -1,9 +1,15 @@ | |
-// This is a manifest file that'll be compiled into including all the files listed below. | |
-// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically | |
-// be included in the compiled file accessible from http://example.com/assets/application.js | |
+// This is a manifest file that'll be compiled into application.js, which will include all the files | |
+// listed below. | |
+// | |
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | |
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. | |
+// | |
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
// the compiled file. | |
// | |
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD | |
+// GO AFTER THE REQUIRES BELOW. | |
+// | |
//= require jquery | |
//= require jquery_ujs | |
//= require_tree . | |
######### | |
diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css | |
index fc25b57..3192ec8 100644 | |
--- a/app/assets/stylesheets/application.css | |
+++ b/app/assets/stylesheets/application.css | |
@@ -1,7 +1,13 @@ | |
/* | |
- * This is a manifest file that'll automatically include all the stylesheets available in this directory | |
- * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at | |
- * the top of the compiled file, but it's generally better to create a new file per style scope. | |
+ * This is a manifest file that'll be compiled into application.css, which will include all the files | |
+ * listed below. | |
+ * | |
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. | |
+ * | |
+ * You're free to add application-wide styles to this file and they'll appear at the top of the | |
+ * compiled file, but it's generally better to create a new file per style scope. | |
+ * | |
*= require_self | |
- *= require_tree . | |
-*/ | |
\ No newline at end of file | |
+ *= require_tree . | |
+ */ | |
######### | |
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb | |
index 9e594e7..cbeb58a 100644 | |
--- a/app/views/layouts/application.html.erb | |
+++ b/app/views/layouts/application.html.erb | |
@@ -2,7 +2,7 @@ | |
<html> | |
<head> | |
<title>SkeletonCheck</title> | |
- <%= stylesheet_link_tag "application" %> | |
+ <%= stylesheet_link_tag "application", :media => "all" %> | |
<%= javascript_include_tag "application" %> | |
<%= csrf_meta_tags %> | |
</head> | |
######### | |
diff --git a/config/application.rb b/config/application.rb | |
index 6a45b3e..23283e6 100644 | |
--- a/config/application.rb | |
+++ b/config/application.rb | |
@@ -39,6 +39,20 @@ module SkeletonCheck | |
# Configure sensitive parameters which will be filtered from the log file. | |
config.filter_parameters += [:password] | |
+ # Enable escaping HTML in JSON. | |
+ config.active_support.escape_html_entities_in_json = true | |
+ | |
+ # Use SQL instead of Active Record's schema dumper when creating the database. | |
+ # This is necessary if your schema can't be completely dumped by the schema dumper, | |
+ # like if you have constraints or database-specific column types | |
+ # config.active_record.schema_format = :sql | |
+ | |
+ # Enforce whitelist mode for mass assignment. | |
+ # This will create an empty whitelist of attributes available for mass-assignment for all models | |
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible | |
+ # parameters by using an attr_accessible or attr_protected declaration. | |
+ config.active_record.whitelist_attributes = true | |
+ | |
# Enable the asset pipeline | |
config.assets.enabled = true | |
######### | |
diff --git a/config/environments/development.rb b/config/environments/development.rb | |
index 4852456..4394e47 100644 | |
--- a/config/environments/development.rb | |
+++ b/config/environments/development.rb | |
@@ -2,7 +2,7 @@ SkeletonCheck::Application.configure do | |
# Settings specified here will take precedence over those in config/application.rb | |
# In the development environment your application's code is reloaded on | |
- # every request. This slows down response time but is perfect for development | |
+ # every request. This slows down response time but is perfect for development | |
# since you don't have to restart the web server when you make code changes. | |
config.cache_classes = false | |
@@ -22,6 +22,13 @@ SkeletonCheck::Application.configure do | |
# Only use best-standards-support built into browsers | |
config.action_dispatch.best_standards_support = :builtin | |
+ # Raise exception on mass assignment protection for Active Record models | |
+ config.active_record.mass_assignment_sanitizer = :strict | |
+ | |
+ # Log the query plan for queries taking more than this (works | |
+ # with SQLite, MySQL, and PostgreSQL) | |
+ config.active_record.auto_explain_threshold_in_seconds = 0.5 | |
+ | |
# Do not compress assets | |
config.assets.compress = false | |
######### | |
diff --git a/config/environments/production.rb b/config/environments/production.rb | |
index 437f30d..c28c037 100644 | |
--- a/config/environments/production.rb | |
+++ b/config/environments/production.rb | |
@@ -20,7 +20,7 @@ SkeletonCheck::Application.configure do | |
# Generate digests for assets URLs | |
config.assets.digest = true | |
- # Defaults to Rails.root.join("public/assets") | |
+ # Defaults to nil and saved in location specified by config.assets.prefix | |
# config.assets.manifest = YOUR_PATH | |
# Specifies the header that your server uses for sending files | |
@@ -33,8 +33,11 @@ SkeletonCheck::Application.configure do | |
# See everything in the log (default is :info) | |
# config.log_level = :debug | |
+ # Prepend all log lines with the following tags | |
+ # config.log_tags = [ :subdomain, :uuid ] | |
+ | |
# Use a different logger for distributed setups | |
- # config.logger = SyslogLogger.new | |
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) | |
# Use a different cache store in production | |
# config.cache_store = :mem_cache_store | |
@@ -57,4 +60,8 @@ SkeletonCheck::Application.configure do | |
# Send deprecation notices to registered listeners | |
config.active_support.deprecation = :notify | |
+ | |
+ # Log the query plan for queries taking more than this (works | |
+ # with SQLite, MySQL, and PostgreSQL) | |
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5 | |
end | |
######### | |
diff --git a/config/environments/test.rb b/config/environments/test.rb | |
index 07d25d9..2191d70 100644 | |
--- a/config/environments/test.rb | |
+++ b/config/environments/test.rb | |
@@ -2,9 +2,9 @@ SkeletonCheck::Application.configure do | |
# Settings specified here will take precedence over those in config/application.rb | |
# The test environment is used exclusively to run your application's | |
- # test suite. You never need to work with it otherwise. Remember that | |
+ # test suite. You never need to work with it otherwise. Remember that | |
# your test database is "scratch space" for the test suite and is wiped | |
- # and recreated between test runs. Don't rely on the data there! | |
+ # and recreated between test runs. Don't rely on the data there! | |
config.cache_classes = true | |
# Configure static asset server for tests with Cache-Control for performance | |
@@ -29,10 +29,8 @@ SkeletonCheck::Application.configure do | |
# ActionMailer::Base.deliveries array. | |
config.action_mailer.delivery_method = :test | |
- # 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, | |
- # like if you have constraints or database-specific column types | |
- # config.active_record.schema_format = :sql | |
+ # Raise exception on mass assignment protection for Active Record models | |
+ config.active_record.mass_assignment_sanitizer = :strict | |
# Print deprecation notices to the stderr | |
config.active_support.deprecation = :stderr | |
######### | |
diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb | |
index 9e8b013..5d8d9be 100644 | |
--- a/config/initializers/inflections.rb | |
+++ b/config/initializers/inflections.rb | |
@@ -8,3 +8,8 @@ | |
# inflect.irregular 'person', 'people' | |
# inflect.uncountable %w( fish sheep ) | |
# end | |
+# | |
+# These inflection rules are supported but not enabled by default: | |
+# ActiveSupport::Inflector.inflections do |inflect| | |
+# inflect.acronym 'RESTful' | |
+# end | |
######### | |
diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb | |
index 803e34f..bfa4807 100644 | |
--- a/config/initializers/secret_token.rb | |
+++ b/config/initializers/secret_token.rb | |
@@ -4,4 +4,4 @@ | |
# If you change this key, all old signed cookies will become invalid! | |
# Make sure the secret is at least 30 characters and all random, | |
# no regular words or you'll be exposed to dictionary attacks. | |
-SkeletonCheck::Application.config.secret_token = '59c6d7b3ab08f77271e987d02d1fd632dc33800f3400ab28298828f190d9d2fa78cc6b547f0956be9f7525722039bf0ca01ac3a2518aa9c1362a852069e0000e' | |
+SkeletonCheck::Application.config.secret_token = 'fc6717f6844b56c47655193eb09c90829f5d4c45087839211ac47d32c17e2df455c8ecfbaa8c26de8ff67e65470b7d32103df0f27074537345e7d0f0cfe3d729' | |
######### | |
diff --git a/config/routes.rb b/config/routes.rb | |
index 2b22098..cb0c811 100644 | |
--- a/config/routes.rb | |
+++ b/config/routes.rb | |
@@ -54,5 +54,5 @@ SkeletonCheck::Application.routes.draw do | |
# This is a legacy wild controller route that's not recommended for RESTful applications. | |
# Note: This route will make all actions in every controller accessible via GET requests. | |
- # match ':controller(/:action(/:id(.:format)))' | |
+ # match ':controller(/:action(/:id))(.:format)' | |
end | |
######### | |
diff --git a/public/500.html b/public/500.html | |
index b80307f..f3648a0 100644 | |
--- a/public/500.html | |
+++ b/public/500.html | |
@@ -20,7 +20,6 @@ | |
<!-- This file lives in public/500.html --> | |
<div class="dialog"> | |
<h1>We're sorry, but something went wrong.</h1> | |
- <p>We've been notified about this issue and we'll take a look at it shortly.</p> | |
</div> | |
</body> | |
</html> | |
######### | |
diff --git a/public/index.html b/public/index.html | |
index 9d9811a..a1d5099 100644 | |
--- a/public/index.html | |
+++ b/public/index.html | |
@@ -59,7 +59,7 @@ | |
#header { | |
- background-image: url("/assets/rails.png"); | |
+ background-image: url("assets/rails.png"); | |
background-repeat: no-repeat; | |
background-position: top left; | |
height: 64px; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment