This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A very simple Rakefile for generating static sites. It's essentially Hobix, | |
# but probably simpler. Every page of the site is a YAML file. The YAML file | |
# gets compiled into a HTML file with the same basename. The content can be | |
# wrapped in a layout. | |
require 'rake/clean' | |
require 'open-uri' | |
require 'yaml' | |
require 'erb' | |
YML = FileList['**/*.yml'].exclude(/^[_.]/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
class DummyController < ApplicationController | |
def index | |
render :nothing => true | |
end | |
end | |
MyApp::Application.routes.disable_clear_and_finalize = true | |
MyApp::Application.routes.clear! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Authlogic | |
module Session | |
# Lets you log in using a HTTP token, using the single_access_token. | |
# Behaves similarly to Params, but with HTTP, so it's nice for APIs. | |
module HttpToken | |
def self.included(klass) | |
klass.class_eval do | |
extend Config | |
include InstanceMethods | |
persist :persist_by_http_token |