Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (80 sloc) 3.5 KB
# Gems
# ==================================================
# as an anaytics solution (
gem "analytics-ruby"
# For encrypted password
gem "bcrypt-ruby"
# Useful SASS mixins (
gem "bourbon"
# HAML templating language (
gem "haml-rails" if yes?("Use HAML instead of ERB?")
# Simple form builder (
gem "simple_form"
# To generate UUIDs, useful for various things
gem "uuidtools"
gem_group :development do
# Rspec for tests (
gem "rspec-rails"
# Guard for automatically launching your specs when files are modified. (
gem "guard-rspec"
gem_group :test do
# Capybara for integration testing (
gem "capybara"
gem "capybara-webkit"
# FactoryGirl instead of Rails fixtures (
gem "factory_girl_rails"
gem_group :production do
# For Rails 4 deployment on Heroku
gem "rails_12factor"
# Setting up foreman to deal with environment variables and services
# ==================================================
# Use Procfile for foreman
run "echo 'web: bundle exec rails server -p $PORT' >> Procfile"
run "echo PORT=3000 >> .env"
run "echo '.env' >> .gitignore"
# We need this with foreman to see log output immediately
run "echo 'STDOUT.sync = true' >> config/environments/development.rb"
# Initialize guard
# ==================================================
run "bundle exec guard init rspec"
# Clean up Assets
# ==================================================
# Use SASS extension for application.css
run "mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss"
# Remove the require_tree directives from the sass and JS files.
# It's better design to import or require things manually.
run "sed -i '' /require_tree/d app/assets/javascripts/application.js"
run "sed -i '' /require_tree/d app/assets/stylesheets/application.css.scss"
# Add bourbon to stylesheet file
run "echo >> app/assets/stylesheets/application.css.scss"
run "echo '@import \"bourbon\";' >> app/assets/stylesheets/application.css.scss"
# Bootstrap: install from
# Note: This is 3.0 RC1, file location may change soon
# ==================================================
if yes?("Download bootstrap?")
run "wget -O"
run "unzip -d bootstrap && rm"
run "cp bootstrap/dist/css/bootstrap.css vendor/assets/stylesheets/"
run "cp bootstrap/dist/js/bootstrap.js vendor/assets/javascripts/"
run "rm -rf bootstrap"
run "echo '@import \"bootstrap\";' >> app/assets/stylesheets/application.css.scss"
# Font-awesome: Install from
# ==================================================
if yes?("Download font-awesome?")
run "wget -O"
run "unzip && rm"
run "cp font-awesome/css/font-awesome.css vendor/assets/stylesheets/"
run "cp -r font-awesome/font public/font"
run "rm -rf font-awesome"
run "echo '@import \"font-awesome\";' >> app/assets/stylesheets/application.css.scss"
# Git: Initialize
# ==================================================
git :init
git add: "."
git commit: %Q{ -m 'Initial commit' }