Sha256: 812a9542b8c9e64083de672b61ff973a6c5f85db11ed9759b7614dd20a5b7b54

Contents?: true

Size: 830 Bytes

Versions: 6

Compression:

Stored size: 830 Bytes

Contents

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

require 'bundler/setup'
require 'pry'
require 'byebug'
require 'broken_link_finder'
require 'logger'

# Logs all HTTP requests.
Wgit.logger.level = Logger::DEBUG

# Call reload to load all recent code changes.
def reload
  original_verbose = $VERBOSE
  $VERBOSE = nil # Temporarily suppress ruby warnings.
  load 'load.rb'
  include BrokenLinkFinder
  $VERBOSE = original_verbose # Restore ruby warnings.
  true
end

# You can add fixtures and/or initialization code here...
reload

def url; @url ||= 'http://txti.es/'; end
def by_page; @by_page ||= Finder.new; end
def by_link; @by_link ||= Finder.new(sort: :link); end
def finder; @finder ||= by_page; end

# Start the console.
puts
puts "broken_link_finder v#{BrokenLinkFinder::VERSION} (#{Wgit.version_str})"
puts

Pry.start

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
broken_link_finder-0.12.3 bin/console
broken_link_finder-0.12.2 bin/console
broken_link_finder-0.12.1 bin/console
broken_link_finder-0.12.0 bin/console
broken_link_finder-0.11.1 bin/console
broken_link_finder-0.11.0 bin/console