#!/usr/bin/env ruby # frozen_string_literal: true require "bundler/setup" require "gistory" require "pry" root_path = "#{File.dirname(__FILE__)}/.." # require all files in lib for quick access to them in the console Dir["#{root_path}/lib/**/*.rb"].sort.each { |file| require file } def reload! verbosity = $VERBOSE begin $VERBOSE = nil files = $LOADED_FEATURES.select { |feat| feat.include?("gistory") } files.each { |file| load(file) } ensure $VERBOSE = verbosity end true end Pry.start