Skip to content

Commit

Permalink
Merge branch 'release/0.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
yurrriq committed Aug 12, 2016
2 parents e2339cc + 5fffeaa commit f5da9d2
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "doc"]
path = doc
url = [email protected]:quasiquoting/elli_xpblfe.git
path = doc
url = [email protected]:elli-lib/elli_xpblfe.git
branch = gh-pages
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:

Expand Down
2 changes: 1 addition & 1 deletion doc
Submodule doc updated 3 files
+8 −5 elli_xpblfe.html
+1 −1 index.html
+0 −0 undocumented.txt
11 changes: 6 additions & 5 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -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
]}
]}
Expand All @@ -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}"}
]}
]}
Expand Down
6 changes: 3 additions & 3 deletions src/elli_xpblfe.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -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, []},
Expand All @@ -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"}
]}
]}.
8 changes: 4 additions & 4 deletions src/elli_xpblfe.lfe
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
2 changes: 1 addition & 1 deletion test/elli_xpblfe_tests.lfe
Original file line number Diff line number Diff line change
@@ -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")

Expand Down

0 comments on commit f5da9d2

Please sign in to comment.