From df1a0eaece2eb53d387eb2dcb1a62695accd2304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 30 Dec 2022 12:11:55 +0100 Subject: [PATCH] DEV: add .ruby-version to .gitignore (#19661) We provide a `.ruby-version.sample` file that we use for warning developers about the minimum recommended Ruby version to run Discourse. https://github.com/discourse/discourse/blob/d24dfe8f96c4151cbd6dbcc2313b42a0bf291c7d/config/application.rb#L15-L20 But if people copy the sample to a `.ruby-version` file it would be added next time they commit. This adds the `.ruby-version` file to `.gitignore` so it doesn't get commited by mistake and developers can test Discourse on other versions of Ruby if they want to. --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 25f9373afc7..ad4ff4d9294 100644 --- a/.gitignore +++ b/.gitignore @@ -50,6 +50,9 @@ /vendor/data/GeoLite2-City.mmdb /vendor/data/GeoLite2-ASN.mmdb +# We provide a .sample but people can use newer versions if they want to +.ruby-version + # Front-end dist node_modules