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

Version Path
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
jasmine-3.99.0 lib/jasmine/application.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
jasmine-3.10.0 lib/jasmine/application.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
jasmine-3.9.2 lib/jasmine/application.rb
jasmine-3.9.1 lib/jasmine/application.rb
jasmine-3.9.0 lib/jasmine/application.rb
jasmine-3.8.1 lib/jasmine/application.rb
jasmine-3.8.0 lib/jasmine/application.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/application.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/application.rb