util/rubocop -A --only Style/SymbolArray
This commit is contained in:
parent
1ca67f13cd
commit
31c572f4fa
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user