Sha256: b4f9dc04b98e2c1c10c677ba155d29660800b1bde2973dd7b5ffbb5b0bacad08
Contents?: true
Size: 359 Bytes
Versions: 3
Compression:
Stored size: 359 Bytes
Contents
module CodeBuddy class ShowApp def initialize(app) @app = app CodeBuddy::App.path_prefix = '/code_buddy' end def call(env) if env['PATH_INFO'] =~ /^\/code_buddy(.*)/ env['PATH_INFO'] = $1 #strip the code_buddy/ prefix CodeBuddy::App.new.call(env) else @app.call(env) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
code_buddy-0.1.2 | lib/code_buddy/middleware.rb |
code_buddy-0.1.1 | lib/code_buddy/middleware.rb |
code_buddy-0.1.0 | lib/code_buddy/middleware.rb |