Sha256: d72b8eb6b7288869e43e10ae41fcbafaf2bfbdc2dfde4201af3ff9c61c2a16a6
Contents?: true
Size: 789 Bytes
Versions: 4
Compression:
Stored size: 789 Bytes
Contents
require 'pathname' require 'rack' require 'rack/methodoverride' require 'rack/protection' require 'flipper' require 'flipper/middleware/memoizer' require 'flipper/ui/actor' require 'flipper/ui/middleware' module Flipper module UI def self.root @root ||= Pathname(__FILE__).dirname.expand_path.join('ui') end def self.app(flipper, options = {}) app = lambda { |env| [200, {'Content-Type' => 'text/html'}, ['']] } builder = Rack::Builder.new yield builder if block_given? builder.use Rack::Protection builder.use Rack::Protection::AuthenticityToken builder.use Rack::MethodOverride builder.use Flipper::Middleware::Memoizer, flipper builder.use Middleware, flipper builder.run app builder end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flipper-ui-0.7.1 | lib/flipper/ui.rb |
flipper-ui-0.7.0 | lib/flipper/ui.rb |
flipper-ui-0.7.0.beta6 | lib/flipper/ui.rb |
flipper-ui-0.7.0.beta5 | lib/flipper/ui.rb |