Sha256: 7478dd3c1c2ee7322c50ceb9d287a9423ac9a9bd2683fda4ddbfb8fbfaf516dd

Contents?: true

Size: 765 Bytes

Versions: 18

Compression:

Stored size: 765 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'
require 'fusuma'

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

def reload!(print = true)
  puts 'Reloading ...' if print
  # Main project directory.
  root_dir = File.expand_path('..', __dir__)
  # Directories within the project that should be reloaded.
  reload_dirs = %w[lib]
  # Loop through and reload every file in all relevant project directories.
  reload_dirs.each do |dir|
    Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) }
  end
  # Return true when complete.
  true
end

require 'pry'
Pry.start

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fusuma-2.5.0 bin/console
fusuma-2.4.1 bin/console
fusuma-2.4.0 bin/console
fusuma-2.3.0 bin/console
fusuma-2.2.0 bin/console
fusuma-2.1.0 bin/console
fusuma-2.0.5 bin/console
fusuma-2.0.4 bin/console
fusuma-2.0.3 bin/console
fusuma-2.0.2 bin/console
fusuma-2.0.1 bin/console
fusuma-2.0.0 bin/console
fusuma-2.0.0.pre2 bin/console
fusuma-2.0.0.pre bin/console
fusuma-1.11.1 bin/console
fusuma-1.10.2 bin/console
fusuma-1.10.1 bin/console
fusuma-1.10.0 bin/console