From e2837a77be2164fa17be046eabb93cbb63f77311 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Wed, 24 Jun 2020 22:20:19 +0530 Subject: [PATCH] [rubygems/rubygems] Constrain (shipped) RuboCop's version Right now, we're not specifying the version constraints on RuboCop that is shipped when a new gem is created. This can break specs which runs rubocop on a new skeleton gem as the newer versions of RuboCop are released. This commit ensures that the specs don't break by constraining the RuboCop version. Signed-off-by: Utkarsh Gupta https://github.com/rubygems/rubygems/commit/0b47243edd --- lib/bundler/templates/newgem/Gemfile.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bundler/templates/newgem/Gemfile.tt b/lib/bundler/templates/newgem/Gemfile.tt index c6af5e8bfa..b57050caf0 100644 --- a/lib/bundler/templates/newgem/Gemfile.tt +++ b/lib/bundler/templates/newgem/Gemfile.tt @@ -13,5 +13,5 @@ gem "rake-compiler" gem "<%= config[:test] %>", "~> <%= config[:test_framework_version] %>" <%- end -%> <%- if config[:rubocop] -%> -gem "rubocop" +gem "rubocop", "~> 0.80" <%- end -%>