Created
June 2, 2011 18:51
-
-
Save Spaceghost/1005021 to your computer and use it in GitHub Desktop.
Rails 3.1
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
# Individual files | |
.bundle | |
.DS_Store | |
.rspec | |
config/database.yml | |
config/s3_credentials.yml | |
config/initializers/secret_token.rb | |
# Directories | |
.sass-cache/ | |
coverage/ | |
tmp/ | |
# Database | |
db/*.sqlite3 | |
db/cstore/** | |
db/sphinx/** | |
# Logs | |
log/*.log | |
# Documentation | |
doc/*.dot | |
doc/api | |
doc/app | |
doc/plugins | |
# Filetypes | |
*~ | |
*.cache | |
*.orig | |
*.pid | |
*.rbc | |
*.sass-cache | |
*.sassc | |
*.swp | |
*.tmproj | |
capybara-*.html |
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
#!/usr/bin/env bash | |
# This is an RVM Project .rvmrc file, used to automatically load the ruby | |
# development environment upon cd'ing into the directory | |
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional. | |
environment_id="ruby-1.9.2@BoTan" | |
# | |
# First we attempt to load the desired environment directly from the environment | |
# file. This is very fast and efficient compared to running through the entire | |
# CLI and selector. If you want feedback on which environment was used then | |
# insert the word 'use' after --create as this triggers verbose mode. | |
# | |
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | |
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] | |
then | |
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" | |
if [[ -s ".rvm/hooks/after_use" ]] | |
then | |
. ".rvm/hooks/after_use" | |
fi | |
else | |
# If the environment file has not yet been created, use the RVM CLI to select. | |
if ! rvm --create "$environment_id" | |
then | |
echo "Failed to create RVM environment 'ruby-1.9.2@BoTan'." | |
fi | |
fi | |
# | |
# If you use an RVM gemset file to install a list of gems (*.gems), you can have | |
# it be automatically loaded. Uncomment the following and adjust the filename if | |
# necessary. | |
# | |
# filename=".gems" | |
# if [[ -s "$filename" ]] ; then | |
# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d' | |
# fi | |
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
# ~/.rvm/hooks/after_cd | |
# you will need to "export rvm_verbose_flag=" after using "rvm use" to shutup verbose Hook message | |
# Totally jacked from http://blockgiven.tumblr.com/post/6111172456/bundler-binstubs | |
# run `bundle install --binstubs` in your project directory | |
path_prepend () { path_remove $1; export PATH="$1:$PATH"; } | |
path_remove () { export PATH=`echo -n $PATH | awk -v RS=: -v ORS=: '$0 != "'$1'"' | sed 's/:$//'`; } | |
if [[ -f "Gemfile" && -d "bin" ]]; then | |
[ ! -z "$gemfiled_project_path" ] && path_remove ${gemfiled_project_path}/bin | |
export gemfiled_project_path=`pwd` | |
path_prepend ${gemfiled_project_path}/bin | |
echo "Bundler binstubs is in $gemfiled_project_path/bin" 1>&2 | |
else | |
[ ! -z "$gemfiled_project_path" ] && path_remove ${gemfiled_project_path}/bin | |
export gemfiled_project_path= | |
fi |
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
/* | |
* 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 . | |
*/ | |
@import "layout.css.scss"; |
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
source 'http://rubygems.org' | |
gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'sqlite3' | |
# Asset template engines | |
gem 'sass-rails' | |
gem 'coffee-script' | |
gem 'uglifier' | |
gem 'therubyracer' | |
gem 'jquery-rails' | |
# Use unicorn as the web server | |
# gem 'unicorn' | |
# Deploy with Capistrano | |
# gem 'capistrano' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment