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
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/example/protectedlobster.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/example/protectedlobster.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/example/protectedlobster.rb
graphael-on-rails-0.5.1 vendor/bundle/gems/rack-1.4.5/example/protectedlobster.rb
graphael-on-rails-0.0.1 vendor/bundle/gems/rack-1.4.5/example/protectedlobster.rb
challah-0.9.1.beta.3 vendor/bundle/gems/rack-1.4.3/example/protectedlobster.rb
rack-1.4.5 example/protectedlobster.rb
rack-1.3.10 example/protectedlobster.rb
rack-1.2.8 example/protectedlobster.rb
rack-1.1.6 example/protectedlobster.rb
devise_sociable-0.1.0 vendor/bundle/gems/rack-1.4.4/example/protectedlobster.rb
backbone-queryparams-rails-0.0.1 vendor/bundle/gems/rack-1.4.4/example/protectedlobster.rb
railscast-assets-0.0.2 vendor/bundle/gems/rack-1.4.4/example/protectedlobster.rb
railscast-assets-0.0.2 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/rack-1.4.4/example/protectedlobster.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/rack-1.4.4/example/protectedlobster.rb
backbone-forms-on-rails-0.10.0 vendor/bundle/gems/backbone-forms-on-rails-0.10.0/vendor/bundle/gems/rack-1.4.4/example/protectedlobster.rb
rack-1.4.4 example/protectedlobster.rb
rack-1.3.9 example/protectedlobster.rb
rack-1.2.7 example/protectedlobster.rb
rack-1.1.5 example/protectedlobster.rb