#!/usr/bin/env ruby # frozen_string_literal: true require "bundler/setup" require "fido_metadata" # Configure in-memory cache require "fido_metadata/test_cache_store" FidoMetadata.configure do |config| config.metadata_token = ENV["MDS_TOKEN"] config.cache_backend = FidoMetadata::TestCacheStore.new end unless FidoMetadata.configuration.metadata_token puts <<~TOKEN_HINT No MDS token configured via the MDS_TOKEN environment variable. Set one for this session: FidoMetadata.configuration.metadata_token = 'your token' TOKEN_HINT end puts "Reset the cache via: FidoMetadata.configuration.cache_backend.clear" # Start REPL require "pry-byebug" Pry.start