Skip to content

Commit 768534c

Browse files
committed
Merge pull request #834 from arcresu/ruby-version
Unify approach to ruby environment normalisation
2 parents e85ec2d + 669668f commit 768534c

File tree

2 files changed

+33
-15
lines changed

2 files changed

+33
-15
lines changed

Rails.gitignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
.sass-cache
44
capybara-*.html
55
.rspec
6-
.rvmrc
7-
/.bundle
8-
/vendor/bundle
96
/log
107
/tmp
118
/db/*.sqlite3
@@ -16,3 +13,13 @@ capybara-*.html
1613
rerun.txt
1714
pickle-email-*.html
1815
config/initializers/secret_token.rb
16+
17+
## Environment normalisation:
18+
/.bundle
19+
/vendor/bundle
20+
21+
# these should all be checked in to normalise the environment:
22+
# Gemfile.lock, .ruby-version, .ruby-gemset
23+
24+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
25+
.rvmrc

Ruby.gitignore

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
11
*.gem
22
*.rbc
3-
.bundle
43
.config
54
coverage
65
InstalledFiles
7-
lib/bundler/man
8-
pkg
9-
rdoc
10-
spec/reports
11-
test/tmp
12-
test/version_tmp
13-
tmp
6+
/pkg/
7+
/spec/reports
8+
/test/tmp
9+
/test/version_tmp
10+
/tmp/
1411

15-
# YARD artifacts
16-
.yardoc
17-
_yardoc
18-
doc/
12+
## Documentation cache and generated files:
13+
/.yardoc
14+
/_yardoc
15+
/doc/
16+
/rdoc
17+
18+
## Environment normalisation:
19+
/.bundle
20+
/lib/bundler/man
21+
22+
# for a library or gem, you might want to ignore these files since the code is
23+
# intended to run in multiple environments; otherwise, check them in:
24+
# Gemfile.lock
25+
# .ruby-version
26+
# .ruby-gemset
27+
28+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
29+
.rvmrc

0 commit comments

Comments
 (0)