Sha256: b8f22be0b70c3ce9b3d2c8614ee64274f000af37e375d7093fd4354a84fbb56f

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

task :console do
  require "pry"
  require "./lib/finnegans"
  require "httplog"

  HttpLog.configure do |config|
    # config.log_headers = true
  end

  def reload!
    files = $LOADED_FEATURES.select { |feat| feat =~ %r{lib/finnegans} }
    # Deactivate warning messages.
    original_verbose, $VERBOSE = $VERBOSE, nil
    files.each { |file| load file }
    # Activate warning messages again.
    $VERBOSE = original_verbose
    initial_setup
    "Console reloaded!"
  end

  def initial_setup
    Finnegans.setup do |config|
      config.resources_namespace = ""
    end
  end
  initial_setup

  ARGV.clear
  Pry.start
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
finnegans-0.1.4 Rakefile
finnegans-0.1.3 Rakefile
finnegans-0.1.2 Rakefile
finnegans-0.1.1 Rakefile