lib/argon2/errors.rb in argon2-1.1.4 vs lib/argon2/errors.rb in argon2-1.1.5

- old
+ new

@@ -1,11 +1,13 @@ # frozen_string_literal: true + # Defines an array of errors that matches the enum list of errors from # argon2.h. This allows return values to propagate errors through the FFI. + module Argon2 class ArgonHashFail < StandardError; end - ERRORS = %w( + ERRORS = %w[ ARGON2_OK ARGON2_OUTPUT_PTR_NULL ARGON2_OUTPUT_TOO_SHORT ARGON2_OUTPUT_TOO_LONG ARGON2_PWD_TOO_SHORT @@ -36,7 +38,7 @@ ARGON2_THREADS_TOO_MANY ARGON2_MISSING_ARGS ARGON2_ENCODING_FAIL ARGON2_DECODING_FAIL ARGON2_THREAD_FAIL - ).freeze + ].freeze end