Skip to content

Instantly share code, notes, and snippets.

@yfeldblum
Created March 27, 2012 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yfeldblum/e302bb4bc1f373a9b934 to your computer and use it in GitHub Desktop.
Save yfeldblum/e302bb4bc1f373a9b934 to your computer and use it in GitHub Desktop.
LongSass
Given a new rails application with rails-3.2.2, created with:
$ rails new long-sass
This Gist lists the contents of all of the files subsequently changed, namely:
M Gemfile
M Gemfile.lock
M config/application.rb
M config/environments/production.rb
D app/assets/stylesheets/application.css
A app/assets/stylesheets/application.css.sass
D app/assets/javascripts/application.js
Note the released versions of the gems used, from the Gemfile.lock.
Then the following command is run:
$ time RAILS_ENV=production RAILS_GROUPS=assets bundle exec rake assets:precompile:primary
real 1m40.953s
user 1m39.218s
sys 0m1.000s
@import bootstrap
@import bootstrap-responsive
require File.expand_path('../boot', __FILE__)
require 'action_controller/railtie'
require 'sprockets/railtie'
Bundler.require(*Rails.groups(:assets => %w(development test)))
module LongSass
class Application < Rails::Application
config.encoding = "utf-8"
config.assets.enabled = true
config.assets.version = '1.0'
end
end
LongSass::Application.configure do
config.cache_classes = true
config.assets.compress = true
config.assets.compile = false
config.assets.digest = true
end
source 'https://rubygems.org'
gem 'rails'
group :assets do
gem 'jquery-rails'
gem 'sass-rails'
gem 'bootstrap-sass'
end
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.2)
actionpack (= 3.2.2)
mail (~> 2.4.0)
actionpack (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.1)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
activemodel (3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
activerecord (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
activesupport (3.2.2)
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
bootstrap-sass (2.0.1)
builder (3.0.0)
erubis (2.7.0)
hike (1.2.1)
i18n (0.6.0)
journey (1.0.3)
jquery-rails (2.0.1)
railties (>= 3.2.0, < 5.0)
thor (~> 0.14)
json (1.6.6)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.18)
multi_json (1.2.0)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.2.2)
actionmailer (= 3.2.2)
actionpack (= 3.2.2)
activerecord (= 3.2.2)
activeresource (= 3.2.2)
activesupport (= 3.2.2)
bundler (~> 1.0)
railties (= 3.2.2)
railties (3.2.2)
actionpack (= 3.2.2)
activesupport (= 3.2.2)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
sass (3.1.15)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.32)
PLATFORMS
ruby
DEPENDENCIES
bootstrap-sass
jquery-rails
rails
sass-rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment