Skip to content

Commit

Permalink
Well it's after midnight and here I am...porting apps to Rails 3.1 ag…
Browse files Browse the repository at this point in the history
…ain...
  • Loading branch information
August committed May 30, 2011
1 parent 822b61f commit a573ac6
Show file tree
Hide file tree
Showing 65 changed files with 69 additions and 49 deletions.
20 changes: 11 additions & 9 deletions Gemfile
@@ -1,24 +1,26 @@
# Edit this Gemfile to bundle your application's dependencies.
source 'http://gemcutter.org'
source 'http://rubygems.org'

gem "rails", "3.0.7"

## Bundle edge rails:
# gem "rails", :git => "git://github.com/rails/rails.git"
gem "rails", "3.1.0.rc1"
gem "mysql2", "0.3.2"

This comment has been minimized.

Copy link
@bamnet

bamnet May 30, 2011

Member

August - Did mysql2 sneak in here on accident or is it a new requirement for Rails 3.1? We switched to sqlite by default back at 17dbf60.

# Rails 3.1 - Asset Pipeline
gem 'json'
gem 'sass'
gem 'coffee-script'
gem 'uglifier'
# Rails 3.1 - JavaScript
gem 'jquery-rails'

# ActiveRecord requires a database adapter.
gem 'sqlite3-ruby', :require => 'sqlite3'

#RMagick is used for image resizing and processing
gem "rmagick", ">= 2.12.2"

# We use jquery
gem "jquery-rails"

# Ruby 1.9.2 doesn't include unit testing by default
gem 'test-unit'

## Bundle gems used only in certain environments:
group :test do
gem "test_benchmark", :require => 'test_benchmark'
end
end
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
@@ -1,3 +1,13 @@
// 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
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree .

// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions app/assets/stylesheets/application.css
@@ -0,0 +1,7 @@
/*
* 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.
*= require_self
*= require_tree .
*/
50 changes: 25 additions & 25 deletions public/stylesheets/base.css → app/assets/stylesheets/base.css

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
10 changes: 6 additions & 4 deletions app/views/layouts/application.html.erb
Expand Up @@ -3,11 +3,13 @@
<head>
<title><%= controller.action_name.titleize %> - <%= controller.controller_name.titleize %> - Concerto Signage Panel</title>

<%= stylesheet_link_tag 'base' %>
<%= stylesheet_link_tag 'jquery-ui-1.8.5.custom' %>
<%= stylesheet_link_tag 'datetime' %>
<%#= stylesheet_link_tag 'base' %>
<%#= stylesheet_link_tag 'jquery-ui-1.8.5.custom' %>
<%#= stylesheet_link_tag 'datetime' %>
<%= javascript_include_tag :defaults %>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tag %>
<%= render :partial => 'elements/head' %>
<%= render :partial => 'elements/javascript' %>
Expand Down
3 changes: 3 additions & 0 deletions config/application.rb
Expand Up @@ -38,5 +38,8 @@ class Application < Rails::Application

# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]

# Enable the asset pipeline
config.assets.enabled = true
end
end
13 changes: 3 additions & 10 deletions config/boot.rb
@@ -1,13 +1,6 @@
require 'rubygems'

# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
begin
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
rescue Bundler::GemNotFound => e
STDERR.puts e.message
STDERR.puts "Try running `bundle install`."
exit!
end if File.exist?(gemfile)
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
1 change: 0 additions & 1 deletion config/environments/development.rb
Expand Up @@ -11,7 +11,6 @@

# Show full error reports and disable caching
config.consider_all_requests_local = true
config.action_view.debug_rjs = true
config.action_controller.perform_caching = false

# Don't care if the mailer can't send
Expand Down
4 changes: 4 additions & 0 deletions config/environments/production.rb
Expand Up @@ -46,4 +46,8 @@

# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify

# Compress both stylesheets and JavaScripts
config.assets.js_compressor = :uglifier
config.assets.css_compressor = :scss
end

0 comments on commit a573ac6

Please sign in to comment.