Sha256: f58c23cfd0aa3e0f01eb5d5da25278b3dead8af5f829c1e71317b4a621c38511

Contents?: true

Size: 737 Bytes

Versions: 2

Compression:

Stored size: 737 Bytes

Contents

# frozen_string_literal: true

require 'site_hook/version'
require 'site_hook/sender'
require 'site_hook/gem'
require 'site_hook/log'
require 'site_hook/logger'
require 'site_hook/spinner'
require 'recursive-open-struct'
require 'site_hook/cli'
require 'sinatra'
require 'haml'
require 'json'
require 'sinatra/json'
require 'yaml'

module SiteHook
  autoload :Logs, 'site_hook/log'
  autoload :Gem, 'site_hook/gem'
  autoload :Paths, 'site_hook/paths'
  # class CoffeeHandler (inherits from Sinatra::Base)
  class CoffeeHandler < Sinatra::Base
    set :views, Pathname(app_file).dirname.join('site_hook', 'static', 'coffee').to_s
    get '/js/*.js' do
      filename = params[:splat].first
      coffee filename.to_sym
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
site_hook-0.8.2 lib/site_hook.rb
site_hook-0.8.1 lib/site_hook.rb