lib/openid_connect/discovery/provider/config/response.rb in openid_connect-1.1.7 vs lib/openid_connect/discovery/provider/config/response.rb in openid_connect-1.1.8

- old
+ new

@@ -23,16 +23,16 @@ :check_session_iframe, :op_policy_uri, :op_tos_uri ] } - attr_required *(uri_attributes[:required] + [ + attr_required(*(uri_attributes[:required] + [ :response_types_supported, :subject_types_supported, :id_token_signing_alg_values_supported - ]) - attr_optional *(uri_attributes[:optional] + [ + ])) + attr_optional(*(uri_attributes[:optional] + [ :scopes_supported, :response_modes_supported, :grant_types_supported, :acr_values_supported, :id_token_encryption_alg_values_supported, @@ -52,13 +52,13 @@ :ui_locales_supported, :claims_parameter_supported, :request_parameter_supported, :request_uri_parameter_supported, :require_request_uri_registration - ]) + ])) - validates *required_attributes, presence: true - validates *uri_attributes.values.flatten, url: true, allow_nil: true + validates(*required_attributes, presence: true) + validates(*uri_attributes.values.flatten, url: true, allow_nil: true) validates :issuer, with: :validate_issuer_matching def initialize(hash) (required_attributes + optional_attributes).each do |key| self.send "#{key}=", hash[key]