1
0
mirror of https://github.com/github/gitignore synced 2024-11-22 11:44:21 +01:00

Slashify Ruby files and directories.

Perhaps this is a little pedantic, but without the initial / all
such matches within the repository get ignored, and without the
trailing slash files as well as directories of that name get ignored.
e.g. Specifying `tmp` and `test/tmp` without slashes is redundant, as
`tmp` already ignores `test/tmp`, as well as every other `tmp` and
`tmp/`.
This commit is contained in:
tiredpixel 2013-11-11 19:48:31 +00:00
parent a1e656a093
commit 3b7ac85ad8

View File

@ -1,23 +1,23 @@
*.gem /*.gem
*.rbc /*.rbc
.config /.config
coverage /coverage/
InstalledFiles /InstalledFiles
/pkg/ /pkg/
/spec/reports /spec/reports/
/test/tmp /test/tmp/
/test/version_tmp /test/version_tmp/
/tmp/ /tmp/
## Documentation cache and generated files: ## Documentation cache and generated files:
/.yardoc /.yardoc/
/_yardoc /_yardoc/
/doc/ /doc/
/rdoc /rdoc/
## Environment normalisation: ## Environment normalisation:
/.bundle /.bundle/
/lib/bundler/man /lib/bundler/man/
# for a library or gem, you might want to ignore these files since the code is # 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: # intended to run in multiple environments; otherwise, check them in:
@ -26,4 +26,4 @@ InstalledFiles
# .ruby-gemset # .ruby-gemset
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc /.rvmrc