Sha256: 0bee14940d63b03b60209527a3522c1ff3d3a5f9c089485e8f6ae86e6663f38a
Contents?: true
Size: 675 Bytes
Versions: 7
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true require "pakyow/support/extension" require "pakyow/support/message_verifier" module Pakyow module Behavior module Verifier extend Support::Extension class_methods do attr_reader :verifier end apply_extension do before :boot do config.secrets.reject! { |secret| secret.nil? || secret.empty? } if config.secrets.any? @verifier = Support::MessageVerifier.new(config.secrets[0]) else raise "Pakyow will not boot without a secret configured in `Pakyow.config.secrets`" end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems