[前][次][番号順一覧][スレッド一覧]

ruby-changes:62242

From: Utkarsh <ko1@a...>
Date: Wed, 15 Jul 2020 16:05:59 +0900 (JST)
Subject: [ruby-changes:62242] e2837a77be (master): [rubygems/rubygems] Constrain (shipped) RuboCop's version

https://git.ruby-lang.org/ruby.git/commit/?id=e2837a77be

From e2837a77be2164fa17be046eabb93cbb63f77311 Mon Sep 17 00:00:00 2001
From: Utkarsh Gupta <utkarsh@d...>
Date: Wed, 24 Jun 2020 22:20:19 +0530
Subject: [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 <utkarsh@d...>

https://github.com/rubygems/rubygems/commit/0b47243edd

diff --git a/lib/bundler/templates/newgem/Gemfile.tt b/lib/bundler/templates/newgem/Gemfile.tt
index c6af5e8..b57050c 100644
--- a/lib/bundler/templates/newgem/Gemfile.tt
+++ b/lib/bundler/templates/newgem/Gemfile.tt
@@ -13,5 +13,5 @@ gem "rake-compiler" https://github.com/ruby/ruby/blob/trunk/lib/bundler/templates/newgem/Gemfile.tt#L13
 gem "<%= config[:test] %>", "~> <%= config[:test_framework_version] %>"
 <%- end -%>
 <%- if config[:rubocop] -%>
-gem "rubocop"
+gem "rubocop", "~> 0.80"
 <%- end -%>
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]