diff options
author | Utkarsh Gupta <utkarsh@debian.org> | 2020-06-30 13:58:14 +0530 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-15 16:05:12 +0900 |
commit | 95f90e3d2bbbe4b3efd193c3df3ff06373c6cdba (patch) | |
tree | df1c565ccf7f5ebb807f427d50665057d96c37e1 | |
parent | 281898ed6c9a6f4f1e62acf1f4df0c7dcfc741e3 (diff) | |
download | ruby-95f90e3d2bbbe4b3efd193c3df3ff06373c6cdba.tar.gz |
[rubygems/rubygems] Add blank lines to make Bundler/OrderedGems happy
If the blank lines aren't used, then rubocop tries to
sort them in alphabetical order within their section.
Thus, adding lines so rubocop considers them as
different sections and doesn't try to sort them.
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
https://github.com/rubygems/rubygems/commit/cf44b18f0f
-rw-r--r-- | lib/bundler/templates/newgem/Gemfile.tt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/templates/newgem/Gemfile.tt b/lib/bundler/templates/newgem/Gemfile.tt index b57050caf0..82504f92d4 100644 --- a/lib/bundler/templates/newgem/Gemfile.tt +++ b/lib/bundler/templates/newgem/Gemfile.tt @@ -9,9 +9,11 @@ gem "rake", "~> 13.0" <%- if config[:ext] -%> gem "rake-compiler" <%- end -%> + <%- if config[:test] -%> gem "<%= config[:test] %>", "~> <%= config[:test_framework_version] %>" <%- end -%> + <%- if config[:rubocop] -%> gem "rubocop", "~> 0.80" <%- end -%> |