Sha256: 8ba87cc9fbc057a4a70a1a97620ddb20349c4739c26df9058b40e5fd44c393e4

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

#!/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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gistory-0.4.0 bin/console