Skip to content

Instantly share code, notes, and snippets.

@ryannealmes
Last active July 19, 2016 04:23
Show Gist options
  • Save ryannealmes/9d96792c0deab8239772ffaa977fa464 to your computer and use it in GitHub Desktop.
Save ryannealmes/9d96792c0deab8239772ffaa977fa464 to your computer and use it in GitHub Desktop.
Basic setup for ruby project with rspec + guard
  1. Ensure latest version of ruby is installed
  2. Run bundle gem my_lib
  3. Update [project].gemspec file to include develpment dependencies and update any todos
  4. Run bundle install
  5. Run guard init rspec
  6. Check your project runs ok with guard running - this can be done by saving one of your tests
# add these development dependencies
spec.add_development_dependency "bundler", "~> 1.12" # this should be included by default
spec.add_development_dependency "rake", "~> 10.0" # this should be included by default
spec.add_development_dependency "rspec", "~> 3.0" # this should be included by default
spec.add_development_dependency 'terminal-notifier-guard', '~> 1.6.1'
spec.add_development_dependency 'guard-rspec'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment