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.2.0.47 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.2.0.46 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.2.0.44 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.2.0.43 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.2.0.42 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.2.0.41 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.40 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.39 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.38 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.36 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.34 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.33 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.32 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.31 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.30 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.29 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.28 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.27 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.26 lib/barsoom_utils/spec/debug_helpers.rb
barsoom_utils-0.1.1.25 lib/barsoom_utils/spec/debug_helpers.rb