1/10/2024 - I have linked a slightly newer version, still out of date, but I need to test newer versions to make sure there is no configuration changes.
readBufferSize, runOnPublish, runOnPublishRestart, runOnRead, runOnReadRestart
defmodule Plug.StaticRoot do | |
def init(opts), do: opts | |
def call(conn, opts) do | |
rootify(conn, opts, opts[:to] || "index.html") | |
end | |
def rootify(%Plug.Conn{path_info: []} = conn, opts, to) do | |
%Plug.Conn{conn | path_info: [to]} |
(defproject scraper "1.0.0-SNAPSHOT" | |
:dependencies [ | |
[org.clojure/clojure "1.2.1"] | |
[aleph "0.2.0"] | |
[enlive "1.0.0-SNAPSHOT"] | |
]) |
# app/models/ability.rb | |
# All front end users are authorized using this class | |
class Ability | |
include CanCan::Ability | |
def initialize(user) | |
user ||= User.new | |
can :read, :all |
gem 'pg' | |
group :development do | |
gem 'ruby-debug' | |
end | |
gem 'rake', '~> 0.8.7' | |
gem 'devise' | |
gem 'oa-oauth', :require => 'omniauth/oauth' | |
gem 'omniauth' | |
gem 'haml' | |
gem 'dynamic_form' |