Skip to content

Instantly share code, notes, and snippets.

@aakashd
Last active August 29, 2015 14:03
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 aakashd/ba205e7ee41ca93bb9a5 to your computer and use it in GitHub Desktop.
Save aakashd/ba205e7ee41ca93bb9a5 to your computer and use it in GitHub Desktop.
# Gemfile
gem 'rails', '4.1.4'
gem 'pg'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '~> 2.4.0'
gem 'coffee-rails', '~> 4.0.1'
gem 'jquery-rails', '~> 3.0.4'
gem 'compass-rails', '~> 1.1.3'
gem 'bootstrap-sass', '~> 3.0.3.0'
gem 'jbuilder', '~> 2.0'
gem 'activerecord-session_store', '~> 0.1.0'
gem 'figaro'
gem 'devise', '~> 3.2.2'
gem 'pundit'
gem 'sendgrid'
gem 'roadie', '~> 3.0.0'
gem 'roadie-rails', '~> 1.0.2'
gem 'non-stupid-digest-assets'
gem 'unicorn'
gem_group :production do
gem 'rails_12factor'
gem 'heroku-deflater'
end
gem_group :development do
gem 'quiet_assets'
end
gem_group :development, :test do
gem 'rspec-rails', '~> 3.0.0'
gem 'factory_girl_rails'
gem 'shoulda-matchers'
gem 'powder'
gem 'byebug'
gem 'whiny_validation'
gem 'spring'
end
run 'bundle install'
# .gitignore
run 'rm .gitignore'
file '.gitignore', <<-CODE
*.rbc
capybara-*.html
.rspec
/log
/tmp
/db/*.sqlite3
/public/system
/coverage/
/spec/tmp
**.orig
rerun.txt
pickle-email-*.html
# TODO Comment out these rules if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/secrets.yml
config/database.yml
## Environment normalisation:
/.bundle
/vendor/bundle
# these should all be checked in to normalise the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
CODE
# spec_helper.rb
run 'rm spec/spec_helper.rb'
file 'spec/spec_helper.rb', <<-CODE
RSpec.configure do |config|
config.run_all_when_everything_filtered = true
if config.files_to_run.one?
config.default_formatter = 'doc'
end
config.profile_examples = 10
config.order = :random
Kernel.srand config.seed
config.expect_with :rspec do |expectations|
expectations.syntax = :expect
end
config.mock_with :rspec do |mocks|
mocks.syntax = :expect
mocks.verify_partial_doubles = true
end
end
CODE
generate(:controller, "home", "index")
route "root to: 'home#index'"
generate('devise:install')
run 'rake db:create && rake db:create RAILS_ENV=test'
run 'rm app/assets/stylesheets/application.css'
file 'app/assets/stylesheets/application.css.scss', <<-CODE
@import "compass";
@import "bootstrap";
CODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment