ruby-changes:62243
From: Utkarsh <ko1@a...>
Date: Wed, 15 Jul 2020 16:06:01 +0900 (JST)
Subject: [ruby-changes:62243] 95f90e3d2b (master): [rubygems/rubygems] Add blank lines to make Bundler/OrderedGems happy
https://git.ruby-lang.org/ruby.git/commit/?id=95f90e3d2b From 95f90e3d2bbbe4b3efd193c3df3ff06373c6cdba Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta <utkarsh@d...> Date: Tue, 30 Jun 2020 13:58:14 +0530 Subject: [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@d...> https://github.com/rubygems/rubygems/commit/cf44b18f0f diff --git a/lib/bundler/templates/newgem/Gemfile.tt b/lib/bundler/templates/newgem/Gemfile.tt index b57050c..82504f9 100644 --- a/lib/bundler/templates/newgem/Gemfile.tt +++ b/lib/bundler/templates/newgem/Gemfile.tt @@ -9,9 +9,11 @@ gem "rake", "~> 13.0" https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/Gemfile.tt#L9 <%- 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 -%> -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/