Sha256: 2f2d187deddcbdf32decc7d92984a85f95df6fc4b39b5dae4cb24fe9cf9cf1b0
Contents?: true
Size: 544 Bytes
Versions: 71
Compression:
Stored size: 544 Bytes
Contents
require 'rack' require 'rack/utils' require 'jasmine-core' require 'rack/jasmine/runner' require 'rack/jasmine/focused_suite' require 'rack/jasmine/cache_control' require 'ostruct' module Jasmine class Application def self.app(config, builder = Rack::Builder.new) config.rack_apps.each do |app_config| builder.use(app_config[:app], *app_config[:args], &app_config[:block]) end config.rack_path_map.each do |path, handler| builder.map(path) { run handler.call } end builder end end end
Version data entries
71 entries across 56 versions & 2 rubygems