diff options
author | Bundlerbot <bot@bundler.io> | 2018-11-06 07:31:19 +0000 |
---|---|---|
committer | Bundlerbot <bot@bundler.io> | 2018-11-06 07:31:19 +0000 |
commit | 905dce42705d0e92fa5c74ce4b9133c7d77a6fb1 (patch) | |
tree | 5d07fd872835b68ee71d9b3724b4b616deb4a096 | |
parent | 8197732a3dd9df3071cf61ba4644ea826160fe05 (diff) | |
parent | 49218cc6e3c222a9295a1c1bb7cb2c23003401ad (diff) | |
download | bundler-905dce42705d0e92fa5c74ce4b9133c7d77a6fb1.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>
-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__) |