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
rack-1.6.9 example/protectedlobster.rb
tdiary-5.0.7 vendor/bundle/gems/rack-1.6.8/example/protectedlobster.rb
logstash-output-icinga-1.1.0 vendor/jruby/1.9/gems/rack-1.6.6/example/protectedlobster.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/rack-1.6.6/example/protectedlobster.rb
tdiary-5.0.6 vendor/bundle/gems/rack-1.6.8/example/protectedlobster.rb
logstash-filter-cache-redis-0.3.1 vendor/bundle/jruby/1.9/gems/rack-1.6.6/example/protectedlobster.rb
logstash-filter-cache-redis-0.3.0 vendor/bundle/jruby/1.9/gems/rack-1.6.6/example/protectedlobster.rb
logstash-filter-cache-redis-0.2.0 vendor/bundle/jruby/1.9/gems/rack-1.6.6/example/protectedlobster.rb
logstash-filter-cache-redis-0.1.0 vendor/bundle/jruby/1.9/gems/rack-1.6.8/example/protectedlobster.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rack-1.6.5/example/protectedlobster.rb
tdiary-5.0.5 vendor/bundle/gems/rack-1.6.8/example/protectedlobster.rb
tdiary-5.0.5 vendor/bundle/gems/rack-1.6.5/example/protectedlobster.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/rack-1.6.5/example/protectedlobster.rb
logstash-filter-htmlentities-0.1.0 vendor/bundle/jruby/1.9/gems/rack-1.6.8/example/protectedlobster.rb
rack-1.6.8 example/protectedlobster.rb
rack-1.6.7 example/protectedlobster.rb
logstash-output-icinga-1.0.0 vendor/jruby/1.9/gems/rack-1.6.6/example/protectedlobster.rb
rack-1.6.6 example/protectedlobster.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rack-1.6.5/example/protectedlobster.rb
tdiary-5.0.4 vendor/bundle/gems/rack-1.6.5/example/protectedlobster.rb