summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2017-10-27 09:59:20 +0000
committerThe Bundler Bot <bot@bundler.io>2017-10-27 09:59:20 +0000
commit0bd79af0cbe20b2180e904df56a389a9563597ff (patch)
treee8e22fb9efe77b215f733de807dabf496c0c2d83
parentebeb787c63e08e15fa8802f8e9752f5b400a404f (diff)
parent965fb1f502f562a61e95ebf36abd70b1536bd7c0 (diff)
downloadbundler-0bd79af0cbe20b2180e904df56a389a9563597ff.tar.gz
Auto merge of #6123 - meganemura:remove-blank-line, r=colby-swandale
Remove a blank line in generated gemspec for RUBY_VERSION >= "2.0.0" ### What was the end-user problem that led to this PR? Need to remove a leading blank line of generated gemspec. ### What was your diagnosis of the problem? ```erb <%- if RUBY_VERSION < "2.0.0" -%> # coding: utf-8 <%- end -%> lib = File.expand_path("../lib", __FILE__) ... ``` When executing `bundle gem xxx` with ruby (< 2.0), the leading blank line is appeared. ### What is your fix for the problem, implemented in this PR? Move a blank line into the `if` block. ### Why did you choose this fix out of the possible options? 😃
-rw-r--r--lib/bundler/templates/newgem/newgem.gemspec.tt2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/templates/newgem/newgem.gemspec.tt b/lib/bundler/templates/newgem/newgem.gemspec.tt
index 9a87a1374a..1236bb1bd7 100644
--- a/lib/bundler/templates/newgem/newgem.gemspec.tt
+++ b/lib/bundler/templates/newgem/newgem.gemspec.tt
@@ -1,7 +1,7 @@
<%- if RUBY_VERSION < "2.0.0" -%>
# coding: utf-8
-<%- end -%>
+<%- end -%>
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "<%= config[:namespaced_path] %>/version"