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
classiccms-0.7.5 vendor/bundle/gems/rack-1.4.1/example/protectedlobster.rb
classiccms-0.7.4 vendor/bundle/gems/rack-1.4.1/example/protectedlobster.rb
classiccms-0.7.3 vendor/bundle/gems/rack-1.4.1/example/protectedlobster.rb
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/example/protectedlobster.rb
rack-1.4.7 example/protectedlobster.rb
rack-1.4.6 example/protectedlobster.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rack-1.4.5/example/protectedlobster.rb
3mix-castronaut-0.5.0.2 vendor/rack/example/protectedlobster.rb
kastner-rack-0.3.171 example/protectedlobster.rb
kastner-rack-0.3.186 example/protectedlobster.rb
masover-castronaut-0.4.4.4 vendor/rack/example/protectedlobster.rb
masover-castronaut-0.4.4.5 vendor/rack/example/protectedlobster.rb
masover-castronaut-0.5.0.1 vendor/rack/example/protectedlobster.rb
p8-castronaut-0.6.1.1 vendor/rack/example/protectedlobster.rb
qoobaa-rack-1.0.0.1 example/protectedlobster.rb
qoobaa-rack-1.0.2 example/protectedlobster.rb
relevance-castronaut-0.2.0 vendor/rack/example/protectedlobster.rb
relevance-castronaut-0.2.5 vendor/rack/example/protectedlobster.rb
relevance-castronaut-0.3.0 vendor/rack/example/protectedlobster.rb
relevance-castronaut-0.3.5 vendor/rack/example/protectedlobster.rb