Sha256: c9ba2c43358b8aad529ff82d9cbaff61a6e2f9a10796b9b960b874834ba3e875

Contents?: true

Size: 668 Bytes

Versions: 8

Compression:

Stored size: 668 Bytes

Contents

require 'rack'
require 'rack/handler/puma'
require 'hamlit'
require 'naturalsorter'
require 'active_support/all'
require 'lru_redux'

require 'thread'
require 'pathname'

module Servel
  def self.build_app(path_map)
    url_map = path_map.map { |root, url_root| [url_root, Servel::App.new(root)] }.to_h
    url_map["/"] = Servel::HomeApp.new(path_map.values) unless url_map.keys.include?("/")

    Rack::URLMap.new(url_map)
  end
end

require "servel/version"
require "servel/instrumentation"
require "servel/entry"
require "servel/entry_factory"
require "servel/haml_context"
require "servel/index"
require "servel/app"
require "servel/home_app"
require "servel/cli"

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
servel-0.19.0 lib/servel.rb
servel-0.18.0 lib/servel.rb
servel-0.17.0 lib/servel.rb
servel-0.16.0 lib/servel.rb
servel-0.15.0 lib/servel.rb
servel-0.14.0 lib/servel.rb
servel-0.13.0 lib/servel.rb
servel-0.12.0 lib/servel.rb