Clean up and consolidate .gitignores

* Global ignores at toplevel .gitignore
* Component-specific ignores in each toplevel directory
* Remove `actionview/test/tmp/.keep` for JRuby

```
rm actionview/test/tmp/ -fr
cd actionview/
bundle exec jruby -Itest test/template/digestor_test.rb
```

Related to #11743, #30392.

Closes #29978.
This commit is contained in:
bogdanvlviv 2017-07-28 06:18:43 +00:00 committed by Jeremy Daer
parent 5645149d3a
commit 0f98954a83
No known key found for this signature in database
GPG Key ID: AB8F6399D5C60664
14 changed files with 32 additions and 36 deletions

29
.gitignore vendored
View File

@ -1,25 +1,16 @@
# Don't put *.swp, *.bak, etc here; those belong in a global ~/.gitignore.
# Don't put *.swp, *.bak, etc here; those belong in a global .gitignore.
# Check out https://help.github.com/articles/ignoring-files for how to set that up.
.Gemfile
.ruby-version
.byebug_history
debug.log
pkg
.ruby-version
/*/doc/
/*/test/tmp/
/.bundle
/dist
/doc/rdoc
/*/doc
/*/test/tmp
/activerecord/sqlnet.log
/activemodel/test/fixtures/fixture_database.sqlite3
/activesupport/test/fixtures/isolation_test
/activestorage/test/service/configurations.yml
/railties/test/500.html
/railties/test/fixtures/tmp
/railties/test/initializer/root/log
/railties/doc
/railties/tmp
/guides/output
/dist/
/doc/
/guides/output/
debug.log
node_modules/
/actionview/log
package-lock.json
pkg/

View File

@ -1,2 +1,2 @@
/lib/assets/compiled
/tmp
/lib/assets/compiled/
/tmp/

View File

View File

@ -1,2 +1,5 @@
/lib/assets/compiled
/tmp
/lib/assets/compiled/
/log/
/test/fixtures/public/absolute/
/test/ujs/log/
/tmp/

View File

@ -1 +0,0 @@
absolute/*

View File

@ -1 +0,0 @@
/log

3
activerecord/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
/sqlnet.log
/test/config.yml
/test/fixtures/*.sqlite*

View File

@ -1 +0,0 @@
performance.sql

View File

@ -1 +0,0 @@
/config.yml

View File

@ -1 +0,0 @@
*.sqlite*

View File

@ -1,7 +1,6 @@
.byebug_history
node_modules
src
test/dummy/db/*.sqlite3
test/dummy/db/*.sqlite3-journal
test/dummy/log/*.log
test/dummy/tmp/
/src/
/test/dummy/db/*.sqlite3
/test/dummy/db/*.sqlite3-journal
/test/dummy/log/*.log
/test/dummy/tmp/
/test/service/configurations.yml

1
activesupport/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/test/fixtures/isolation_test/

6
railties/.gitignore vendored
View File

@ -1 +1,5 @@
log/
/log/
/test/500.html
/test/fixtures/tmp/
/test/initializer/root/log/
/tmp/