Sha256: fddee9704a1581863d0d71a8e535ac6edfc21185cb183eebcf032896cb51ac5a
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 Bytes
Contents
require 'appengine-rack' AppEngine::Rack.configure_app( :application => 'tools-test', :version => 'foo', :ssl_enabled => true) AppEngine::Rack.app.inbound_services << :xmpp_message AppEngine::Rack.app.static_files.include('/public/images/**', '365d') AppEngine::Rack.app.static_files.include('/public/**') ruby_app = lambda {|env| [200, {}, "Hello Rack!"]} map '/admin' do use JavaServletFilter, 'com.example.AdminFilter', :wildcard => true run JavaServlet.new('com.example.AdminServlet', :wildcard => true) end map '/store' do use JavaServletFilter, 'com.example.StoreFilter', :name => 'StoreFilter' run JavaServlet.new('com.example.StoreServlet', :name => 'store') end map '/admin2' do use AppEngine::Rack::AdminRequired run ruby_app end map '/private' do use AppEngine::Rack::LoginRequired run ruby_app end map '/secure' do use AppEngine::Rack::SSLRequired run ruby_app end run ruby_app
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
appengine-tools-0.0.5 | spec/config.ru |
appengine-tools-0.0.4 | spec/config.ru |
appengine-tools-0.0.3 | spec/config.ru |