Sha256: 21a8da0c5f32342ca15b432802d34bd7872679c7ce97f39d1a3d5441834d0361
Contents?: true
Size: 431 Bytes
Versions: 1
Compression:
Stored size: 431 Bytes
Contents
require 'rubygems' require 'sinatra/base' require 'rufus-tokyo' require 'json' module Spectate class Server < Sinatra::Base def initialize Spectate::Config.load_configuration Rufus::Tokyo::Cabinet.open(File.join(Spectate::Config.basedir, 'spectate.tcb'), :opts => 'b') do |db| nil end super end get '/' do {:summary => "Spectate v#{VERSION}"}.to_json end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spectate-0.0.0 | lib/spectate/server.rb |