From 31c572f4fade8d061b151bd70dfca0b79da664e3 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 16 Mar 2023 13:32:03 +0900 Subject: [PATCH] util/rubocop -A --only Style/SymbolArray --- lib/rubygems/gemcutter_utilities.rb | 2 +- lib/rubygems/specification.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb index 3e26ceb66c..d64bfed240 100644 --- a/lib/rubygems/gemcutter_utilities.rb +++ b/lib/rubygems/gemcutter_utilities.rb @@ -7,7 +7,7 @@ require_relative "text" module Gem::GemcutterUtilities ERROR_CODE = 1 - API_SCOPES = %i[index_rubygems push_rubygem yank_rubygem add_owner remove_owner access_webhooks show_dashboard].freeze + API_SCOPES = [:index_rubygems, :push_rubygem, :yank_rubygem, :add_owner, :remove_owner, :access_webhooks, :show_dashboard].freeze include Gem::Text diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 35e599ed00..a2ee042fe7 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -2252,7 +2252,7 @@ class Gem::Specification < Gem::BasicSpecification attributes.each do |attr_name| current_value = send attr_name - current_value = current_value.sort if %i[files test_files].include? attr_name + current_value = current_value.sort if [:files, :test_files].include? attr_name if current_value != default_value(attr_name) || self.class.required_attribute?(attr_name)