diff --git a/.gitmodules b/.gitmodules index 6649a16..a01afb7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,4 +1,4 @@ [submodule "doc"] - path = doc - url = git@github.com:quasiquoting/elli_xpblfe.git + path = doc + url = git@github.com:elli-lib/elli_xpblfe.git branch = gh-pages diff --git a/README.md b/README.md index f9e6e42..34b53f0 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # elli_xpblfe -[![Build Status](https://travis-ci.org/quasiquoting/elli_xpblfe.svg?branch=master)](https://travis-ci.org/quasiquoting/elli_xpblfe) +[![Build Status](https://travis-ci.org/elli-lib/elli_xpblfe.svg?branch=master)](https://travis-ci.org/elli-lib/elli_xpblfe) [![img](https://img.shields.io/hexpm/v/elli_xpblfe.svg)](https://hex.pm/packages/elli_xpblfe) -[![img](https://img.shields.io/badge/docs-100%25-green.svg)](http://quasiquoting.org/elli_xpblfe) +[![img](https://img.shields.io/badge/docs-100%25-green.svg)](https://elli-lib.github.io/elli_xpblfe) An [elli][] middleware to add the following header to all responses: diff --git a/doc b/doc index 00ff1d3..2798667 160000 --- a/doc +++ b/doc @@ -1 +1 @@ -Subproject commit 00ff1d3b19f3dfa3690a873fe2895fac837c7261 +Subproject commit 2798667c40f37020f3d9bc6b2b5b573ad417e3ba diff --git a/rebar.config b/rebar.config index 5a6824a..d76d45f 100644 --- a/rebar.config +++ b/rebar.config @@ -1,19 +1,20 @@ {plugins, [ - {'lfe-compile', {git, "git://github.com/lfe-rebar3/compile.git", - {tag, "0.4.0"}}} + {'lfe-compile', + {git, "git://github.com/lfe-rebar3/compile.git", + {tag, "0.5.0"}}} ]}. {provider_hooks, [{post, [{compile, {lfe, compile}}]}]}. {project_plugins, [ - {lodox, {git, "git://github.com/lfe-rebar3/lodox.git", {tag, "0.13.1"}}} + {lodox, {git, "git://github.com/lfe-rebar3/lodox.git", {tag, "0.15.1"}}} ]}. {profiles, [ {test, [ {eunit_compile_opts, [{src_dirs, ["src", "test"]}]}, {deps, [ - {ltest, {git, "git://github.com/lfex/ltest.git", {tag, "0.8.2"}}}, + {ltest, {git, "git://github.com/lfex/ltest.git", {tag, "0.9.0"}}}, elli ]} ]} @@ -23,7 +24,7 @@ {apps, [ {elli_xpblfe, [ {'source-uri', - "https://github.com/quasiquoting/elli_xpblfe" + "https://github.com/elli-lib/elli_xpblfe" "/blob/master/{filepath}#L{line}"} ]} ]} diff --git a/src/elli_xpblfe.app.src b/src/elli_xpblfe.app.src index 952b3fd..ae3577b 100644 --- a/src/elli_xpblfe.app.src +++ b/src/elli_xpblfe.app.src @@ -2,7 +2,7 @@ {application, elli_xpblfe, [ {description, "Elli middleware to add X-Powered-By: LFE header."}, - {vsn, "0.1.2"}, + {vsn, "0.2.2"}, {registered, []}, {applications, [kernel, stdlib]}, {env, []}, @@ -11,7 +11,7 @@ {maintainers, ["Eric Bailey"]}, {licenses, ["WTFPL"]}, {links, [ - {"GitHub", "https://github.com/quasiquoting/elli_xpblfe"}, - {"Documentation", "http://quasiquoting.org/elli_xpblfe"} + {"GitHub", "https://github.com/elli-lib/elli_xpblfe"}, + {"Documentation", "https://elli-lib.github.io/elli_xpblfe"} ]} ]}. diff --git a/src/elli_xpblfe.lfe b/src/elli_xpblfe.lfe index 9e2d2ac..6e7a13a 100644 --- a/src/elli_xpblfe.lfe +++ b/src/elli_xpblfe.lfe @@ -1,12 +1,12 @@ (defmodule elli_xpblfe - (doc "Add `X-Powered-By: LFE` header to all responses.") + "Add `X-Powered-By: LFE` header to all responses." (export (postprocess 3))) (defun postprocess "```http -HTTP/1.1 451 Unavailable For Legal Reasons -X-Powered-By: LFE -```" + HTTP/1.1 451 Unavailable For Legal Reasons + X-Powered-By: LFE + ```" ([req `#(,code ,body) config] (when (orelse (is_integer code) (=:= 'ok code))) (postprocess req `#(,code [] ,body) config)) diff --git a/test/elli_xpblfe_tests.lfe b/test/elli_xpblfe_tests.lfe index a46df17..5685457 100644 --- a/test/elli_xpblfe_tests.lfe +++ b/test/elli_xpblfe_tests.lfe @@ -1,6 +1,6 @@ (defmodule elli_xpblfe_tests (behaviour ltest-unit) - (export (elli_xpblfe_test_ 0))) + (export (elli_xpblfe_test_ 0))) (include-lib "ltest/include/ltest-macros.lfe")