Sha256: 3e51d5f44b1e83ce72657c50786e24c3df7820a7129b194b83c62340d536dab0

Contents?: true

Size: 373 Bytes

Versions: 262

Compression:

Stored size: 373 Bytes

Contents

require 'rack'
require 'rack/lobster'

lobster = Rack::Lobster.new

protected_lobster = Rack::Auth::Basic.new(lobster) do |username, password|
  'secret' == password
end

protected_lobster.realm = 'Lobster 2.0'

pretty_protected_lobster = Rack::ShowStatus.new(Rack::ShowExceptions.new(protected_lobster))

Rack::Handler::WEBrick.run pretty_protected_lobster, :Port => 9292

Version data entries

262 entries across 235 versions & 45 rubygems

Version Path
middleman-0.12.2 lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
middleman-0.12.1 lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
middleman-0.12.0.pre3 lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
middleman-0.12.0.pre2 lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
middleman-0.12.0.pre lib/middleman/vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
rango-0.0.6 vendor/rack/example/protectedlobster.rb
rango-0.1.pre vendor/rack/example/protectedlobster.rb
merb-core-1.1.0.pre spec10/public/webrat/test_app/gems/gems/rack-0.4.0/example/protectedlobster.rb
middleman-0.10.17 vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
middleman-0.10.16 vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
middleman-0.10.15 vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
rackjour-0.1.8 vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
middleman-0.10.14 vendor/gems/gems/rack-1.0.1/example/protectedlobster.rb
rack-1.0.1 example/protectedlobster.rb
hiraku-rack-1.0.0.1 example/protectedlobster.rb
rack-0.2.0 example/protectedlobster.rb
rack-0.9.1 example/protectedlobster.rb
rack-0.4.0 example/protectedlobster.rb
rack-0.9.0 example/protectedlobster.rb
rack-0.3.0 example/protectedlobster.rb