lib/site_hook.rb in site_hook-0.7.0 vs lib/site_hook.rb in site_hook-0.8.0

- old
+ new

@@ -18,9 +18,13 @@ module SiteHook autoload :Logs, 'site_hook/log' autoload :Gem, 'site_hook/gem' autoload :Paths, 'site_hook/paths' # class SassHandler (inherits from Sinatra::Base) + module_function + def self.set_options(name, value) + SiteHook.const_set("#{name.upcase}", value) + end class SassHandler < Sinatra::Base set :views, Pathname(app_file).dirname.join('site_hook', 'static', 'sass').to_s get '/css/*.css' do filename = params[:splat].first scss filename.to_sym, cache: false