Sha256: 0ecb0d8d6704c75c8215c84b6dff83c1ffc94850707454ea8b4715c9c25c97fc

Contents?: true

Size: 1.12 KB

Versions: 25

Compression:

Stored size: 1.12 KB

Contents

module RubyApp

  module Rack
    require 'ruby_app'

    class Request

      def initialize(application)
        @application = application
      end

      def call(environment)
        RubyApp::Request.create!(environment)
        begin
          # RubyApp::Request.environment.each do |name, value|
          #   RubyApp::Log.debug("REQUEST   RubyApp::Request.environment[#{name.inspect}]=#{value.inspect}")
          # end
          # RubyApp::Log.debug("REQUEST   RubyApp::Request.path=#{RubyApp::Request.path.inspect}")
          # RubyApp::Log.debug("REQUEST   RubyApp::Request.language=#{RubyApp::Request.language.inspect}")
          # RubyApp::Log.debug("REQUEST   RubyApp::Request.url=#{RubyApp::Request.url.inspect}")
          # RubyApp::Log.debug("REQUEST   RubyApp::Request.query=#{RubyApp::Request.query.inspect}")
          # RubyApp::Request.query.each do |name, value|
          #   RubyApp::Log.debug("REQUEST   RubyApp::Request.query[#{name.inspect}]=#{value.inspect}")
          # end
          return @application.call(environment)
        ensure
          RubyApp::Request.destroy!
        end
      end

    end

  end

end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/rack/request.rb
RubyApp-0.7.15 lib/ruby_app/rack/request.rb
RubyApp-0.7.14 lib/ruby_app/rack/request.rb
RubyApp-0.7.13 lib/ruby_app/rack/request.rb
RubyApp-0.7.12 lib/ruby_app/rack/request.rb
RubyApp-0.7.11 lib/ruby_app/rack/request.rb
RubyApp-0.7.10 lib/ruby_app/rack/request.rb
RubyApp-0.7.9 lib/ruby_app/rack/request.rb
RubyApp-0.7.5 lib/ruby_app/rack/request.rb
RubyApp-0.7.4 lib/ruby_app/rack/request.rb
RubyApp-0.7.3 lib/ruby_app/rack/request.rb
RubyApp-0.7.2 lib/ruby_app/rack/request.rb
RubyApp-0.7.1 lib/ruby_app/rack/request.rb
RubyApp-0.7.0 lib/ruby_app/rack/request.rb
RubyApp-0.6.71 lib/ruby_app/rack/request.rb
RubyApp-0.6.70 lib/ruby_app/rack/request.rb
RubyApp-0.6.69 lib/ruby_app/rack/request.rb
RubyApp-0.6.68 lib/ruby_app/rack/request.rb
RubyApp-0.6.67 lib/ruby_app/rack/request.rb
RubyApp-0.6.66 lib/ruby_app/rack/request.rb