Sha256: 9312b5919bc6c65f5dd662e16362ddbaf8801630a0ad76d0bd668dd6422b64bd

Contents?: true

Size: 446 Bytes

Versions: 38

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true
require "lolcat"

module BarsoomUtils
  module Spec
    module DebugHelpers
      def show_page
        path = Rails.root.join("public/show_page.html")
        File.write(path, page.source)
        Lol.println "show_page: http://#{hostname}/show_page.html", os: 10, freq: 0.1, spread: 1
      end

      def hostname
        raise "Implement me. Ex: def hostname; \"auctionet.dev\"; end"
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
barsoom_utils-0.1.1.24 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.23 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.22 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.21 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.20 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.19 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.18 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.17 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.16 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.15 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.14 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.13 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.12 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.11 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.10 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.9 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.8 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1 lib/barsoom_utils/spec/debug_helpers.rb