util/rubocop -A --only Style/SymbolArray

This commit is contained in:
Hiroshi SHIBATA 2023-03-16 13:32:03 +09:00
parent 1ca67f13cd
commit 31c572f4fa
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)