diff options
author | The Bundler Bot <bot@bundler.io> | 2018-03-04 23:51:28 +0000 |
---|---|---|
committer | Colby Swandale <me@colby.fyi> | 2018-04-20 10:27:32 +1000 |
commit | 3db6273ee1b6120c493a0ea2f7dcd0109a9769e0 (patch) | |
tree | 784677d76fbe2c17b2dc20a588d953553550ac41 | |
parent | c0dc6a5df196096657782c1d4216a2a3dcb1545e (diff) | |
download | bundler-3db6273ee1b6120c493a0ea2f7dcd0109a9769e0.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.
(cherry picked from commit 5fb9e9a08512828ad93663787ac9cffbda5d599e)
-rw-r--r-- | man/bundle-init.ronn | 11 |
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) |