summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-03-04 23:51:28 +0000
committerThe Bundler Bot <bot@bundler.io>2018-03-04 23:51:28 +0000
commit5fb9e9a08512828ad93663787ac9cffbda5d599e (patch)
tree7226b092bfc9d227a6750eed300d930d4c75b8aa
parentd1ae89eda805606f7181984338da0879db6580ba (diff)
parentaca5ce901639d7898b147f3e6616321256388b12 (diff)
downloadbundler-5fb9e9a08512828ad93663787ac9cffbda5d599e.tar.gz
Auto merge of #6302 - 315tky:master, r=indirect
Document `# frozen_string_literal` in `bundle init` Gemfile Thanks so much for the contribution! To make reviewing this PR a bit easier, please fill out answers to the following questions. ### What was the end-user problem that led to this PR? An enhancement request to bundle-init docu as per - issue 6140 ### What was your diagnosis of the problem? n/a ### What is your fix for the problem, implemented in this PR? Updated the man/bundle-init.ronn file to include brief description of frozen string literal, and added a SEE ALSO section with link to Gemfile(5) webpage ### Why did you choose this fix out of the possible options? File edited to try and reflect the previous discussion regarding what was required.
-rw-r--r--man/bundle-init.ronn11
1 files changed, 11 insertions, 0 deletions
diff --git a/man/bundle-init.ronn b/man/bundle-init.ronn
index 781a25b1a2..7504af7bab 100644
--- a/man/bundle-init.ronn
+++ b/man/bundle-init.ronn
@@ -16,3 +16,14 @@ created [`Gemfile(5)`][Gemfile(5)].
* `--gemspec`:
Use the specified .gemspec to create the [`Gemfile(5)`][Gemfile(5)]
+
+## FILES
+
+Included in the default [`Gemfile(5)`][Gemfile(5)]
+generated is the line `# frozen_string_literal: true`. This is a magic comment
+supported for the first time in Ruby 2.3. The presence of this line
+results in all string literals in the file being implicitly frozen.
+
+## SEE ALSO
+
+[Gemfile(5)](http://bundler.io/man/gemfile.5.html)