Skip to content

Commit 3b7ac85

Browse files
committed
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/`.
1 parent a1e656a commit 3b7ac85

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

Ruby.gitignore

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
*.gem
2-
*.rbc
3-
.config
4-
coverage
5-
InstalledFiles
1+
/*.gem
2+
/*.rbc
3+
/.config
4+
/coverage/
5+
/InstalledFiles
66
/pkg/
7-
/spec/reports
8-
/test/tmp
9-
/test/version_tmp
7+
/spec/reports/
8+
/test/tmp/
9+
/test/version_tmp/
1010
/tmp/
1111

1212
## Documentation cache and generated files:
13-
/.yardoc
14-
/_yardoc
13+
/.yardoc/
14+
/_yardoc/
1515
/doc/
16-
/rdoc
16+
/rdoc/
1717

1818
## Environment normalisation:
19-
/.bundle
20-
/lib/bundler/man
19+
/.bundle/
20+
/lib/bundler/man/
2121

2222
# for a library or gem, you might want to ignore these files since the code is
2323
# intended to run in multiple environments; otherwise, check them in:
@@ -26,4 +26,4 @@ InstalledFiles
2626
# .ruby-gemset
2727

2828
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
29-
.rvmrc
29+
/.rvmrc

0 commit comments

Comments
 (0)