Skip to content

Instantly share code, notes, and snippets.

@m5rk
Last active December 27, 2015 01:09
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 m5rk/7243018 to your computer and use it in GitHub Desktop.
Save m5rk/7243018 to your computer and use it in GitHub Desktop.
rails template
git :init
git add: "."
git commit: "-a -m 'Initial commit'"
gem_group :development, :test do
gem 'rspec-rails'
end
gem_group :test do
gem 'shoulda-matchers'
end
run('bundle install')
git add: "."
git commit: "-a -m 'Install rspec et al'"
file '.ruby-version', <<-CODE
2.0.0-p247
CODE
file '.ruby-gemset', <<-CODE
#{File.basename(Dir.pwd)}
CODE
git add: "."
git commit: "-a -m 'Add ruby project files'"
run('rails generate rspec:install')
git add: "."
git commit: "-a -m 'rails generate rspec:install'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment