Sha256: 3d7f823851f221535872df7c7c78e606e0f7edbb822645c1275eb26e98186d31

Contents?: true

Size: 604 Bytes

Versions: 5

Compression:

Stored size: 604 Bytes

Contents

module RubyApp

  module Rack
    require 'ruby_app'

    class Application

      def initialize(application, options = {})
        @application = application
        RubyApp::Configuration.load!(options[:configuration_paths])
        RubyApp::Log.open!
        RubyApp::Application.create!
        RubyApp::Session.start_thread!
      end

      def call(environment)
        begin
          return @application.call(environment)
        rescue Exception => exception
          RubyApp::Log.exception(RubyApp::Log::ERROR, exception)
          raise exception
        end
      end

    end

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
RubyApp-0.5.11 lib/ruby_app/rack/application.rb
RubyApp-0.5.10 lib/ruby_app/rack/application.rb
RubyApp-0.5.9 lib/ruby_app/rack/application.rb
RubyApp-0.5.0 lib/ruby_app/rack/application.rb
RubyApp-0.2.8 lib/ruby_app/rack/application.rb