diff options
author | Bundlerbot <bot@bundler.io> | 2018-11-06 07:31:19 +0000 |
---|---|---|
committer | Colby Swandale <me@colby.fyi> | 2019-03-24 02:11:19 +1100 |
commit | 8f2548bbb50e1efa2f622727665e2038a1856cb3 (patch) | |
tree | 78d4a00de0f9d370932db48f619b1e479b91f102 | |
parent | c1f9761ee7de5be24f7a2cdf3f8a56845acd5d16 (diff) | |
download | bundler-8f2548bbb50e1efa2f622727665e2038a1856cb3.tar.gz |
Merge #6773
6773: Fix indentation of bundler executable r=segiddins a=meganemura
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?
`bundle binstubs bundler` generates the file like followings.
```ruby
require "rubygems"
m = Module.new do
module_function
def invoked_as_script?
File.expand_path($0) == File.expand_path(__FILE__)
end
(snip)
end
```
### What was your diagnosis of the problem?
My diagnosis was...
the template's `module_function` line is not match to other lines.
### What is your fix for the problem, implemented in this PR?
I fix the template.
### Why did you choose this fix out of the possible options?
no other options.
Co-authored-by: meganemura <meganemura@users.noreply.github.com>
(cherry picked from commit 905dce42705d0e92fa5c74ce4b9133c7d77a6fb1)
-rw-r--r-- | lib/bundler/templates/Executable.bundler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/templates/Executable.bundler b/lib/bundler/templates/Executable.bundler index eeda90b584..3adac41e74 100644 --- a/lib/bundler/templates/Executable.bundler +++ b/lib/bundler/templates/Executable.bundler @@ -11,7 +11,7 @@ require "rubygems" m = Module.new do - module_function + module_function def invoked_as_script? File.expand_path($0) == File.expand_path(__FILE__) |