From 0ac2f7cb820bf31e15e174d4061a8792686e629e Mon Sep 17 00:00:00 2001 From: Carl Suster Date: Sun, 10 Nov 2013 21:12:01 +1100 Subject: [PATCH] Optionally ignore ruby env normalisation files, with comments --- Rails.gitignore | 15 ++++++++++++--- Ruby.gitignore | 15 +++++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/Rails.gitignore b/Rails.gitignore index 2c74f70f..2debe997 100644 --- a/Rails.gitignore +++ b/Rails.gitignore @@ -3,9 +3,6 @@ .sass-cache capybara-*.html .rspec -.rvmrc -/.bundle -/vendor/bundle /log /tmp /db/*.sqlite3 @@ -16,3 +13,15 @@ capybara-*.html rerun.txt pickle-email-*.html config/initializers/secret_token.rb + +## Environment normalisation: +/.bundle +/vendor/bundle + +# these should 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 diff --git a/Ruby.gitignore b/Ruby.gitignore index 560d1a6a..a0914d36 100644 --- a/Ruby.gitignore +++ b/Ruby.gitignore @@ -1,10 +1,8 @@ *.gem *.rbc -.bundle .config coverage InstalledFiles -lib/bundler/man pkg rdoc spec/reports @@ -16,3 +14,16 @@ tmp .yardoc _yardoc doc/ + +## Environment normalisation: +.bundle +lib/bundler/man + +# for a library or gem, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# Gemfile.lock +# .ruby-version +# .ruby-gemset + +# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: +.rvmrc -- 2.39.5