Sha256: 4db920d226891945934952ade2e0729968f2f36a9e321143ba9f8dd5fc5102ce

Contents?: true

Size: 386 Bytes

Versions: 23

Compression:

Stored size: 386 Bytes

Contents

require 'rack/show_exceptions'

# Support rack/showexceptions during development
module Middleman::CoreExtensions
  class ShowExceptions < ::Middleman::Extension
    define_setting :show_exceptions, ENV['TEST'] ? false : true, 'Whether to catch and display exceptions'

    def ready
      app.use ::Rack::ShowExceptions if !app.build? && app.config[:show_exceptions]
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
middleman-core-4.5.1 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.5.0 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.4.3 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.4.2 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.4.0 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.11 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.10 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.8 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.7 lib/middleman-core/core_extensions/show_exceptions.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-core-4.3.3/lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.6 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.5 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-5.0.0.rc.1 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.4 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.3 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.2 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.1 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.0 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.0.rc.4 lib/middleman-core/core_extensions/show_exceptions.rb
middleman-core-4.3.0.rc.3 lib/middleman-core/core_extensions/show_exceptions.rb