lib/uploadcare/param/authentication_header.rb in uploadcare-ruby-4.4.1 vs lib/uploadcare/param/authentication_header.rb in uploadcare-ruby-4.4.2
- old
+ new
@@ -21,11 +21,11 @@
raise ArgumentError, "Unknown auth_scheme: '#{Uploadcare.config.auth_type}'"
end
end
def self.validate_auth_config
- raise AuthError, 'Public Key is blank.' if is_blank?(Uploadcare.config.public_key)
- raise AuthError, 'Secret Key is blank.' if is_blank?(Uploadcare.config.secret_key)
+ raise Uploadcare::Exception::AuthError, 'Public Key is blank.' if is_blank?(Uploadcare.config.public_key)
+ raise Uploadcare::Exception::AuthError, 'Secret Key is blank.' if is_blank?(Uploadcare.config.secret_key)
end
# rubocop:disable Naming/PredicateName
def self.is_blank?(value)
value.nil? || value.empty?