Sha256: e83b0f9c81bd12ad81d2ef291929df924cec5f995e1a0eef68045aada86bd4d4

Contents?: true

Size: 373 Bytes

Versions: 129

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::Server.start :app => pretty_protected_lobster, :Port => 9292

Version data entries

129 entries across 113 versions & 31 rubygems

Version Path
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/rack-1.6.0/example/protectedlobster.rb
rack-1.5.3 example/protectedlobster.rb
rack-1.6.1 example/protectedlobster.rb
rack-1.6.0 example/protectedlobster.rb
rack-1.6.0.beta2 example/protectedlobster.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/example/protectedlobster.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/rack-1.5.2/example/protectedlobster.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/example/protectedlobster.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/example/protectedlobster.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/rack-1.5.2/example/protectedlobster.rb
rack-1.6.0.beta example/protectedlobster.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/example/protectedlobster.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rack-1.5.2/example/protectedlobster.rb
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rack-1.5.2/example/protectedlobster.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/rack-1.5.2/example/protectedlobster.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/rack-1.5.2/example/protectedlobster.rb
challah-1.0.0 vendor/bundle/gems/rack-1.5.2/example/protectedlobster.rb
torquebox-console-0.2.5 vendor/bundle/ruby/1.8/gems/rack-1.5.2/example/protectedlobster.rb
torquebox-console-0.2.5 vendor/bundle/jruby/1.9/gems/rack-1.5.2/example/protectedlobster.rb
vagrant-actionio-0.0.9 vendor/bundle/gems/rack-1.5.2/example/protectedlobster.rb