#!/usr/bin/env ruby # frozen_string_literal: true require "bundler/setup" require "itch_rewards" # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. # (If you use this, don't forget to add pry to your Gemfile!) # require "pry" # Pry.start require "irb" def reload! root_dir = File.expand_path("..", __dir__) reload_dirs = %w[lib] reload_dirs.each do |dir| Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) } end puts "Reloaded" end IRB.start(__FILE__)