Sha256: 960614d69853b28c8065d8c7d9e88c5fb8bcc2b9985f1854d680430b95cb84a0
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
# gems require 'sinatra' require 'logger' require 'yaml' # app files require 'koala' require File.join(File.dirname(__FILE__), 'lib', 'load_facebook.rb') require File.join(File.dirname(__FILE__), 'lib', 'oauth_playground.rb') # LOGGING # set up the logfile Dir.mkdir('log') unless File.exists?('log') log_filename = File.join(File.dirname(__FILE__), "log", "sinatra.log") log = File.new(log_filename, "a+") # log requests use Rack::CommonLogger, log # log application-generated code LOGGER = Logger.new(log_filename) # log output to stdout and stderr as well $stdout.reopen(log) $stderr.reopen(log) # activate the app disable :run run OAuthPlayground
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
koala-0.9.0 | examples/oauth_playground/config.ru |
koala-0.7.3 | examples/oauth_playground/config.ru |
koala-0.7.2 | examples/oauth_playground/config.ru |