From 662a898f42a57f279b869811016b2c862b68225a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 12 Aug 2016 17:17:24 -0500 Subject: [PATCH 1/5] :lipstick: --- test/elli_xpblfe_tests.lfe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") From 237bf9dcb92ddca0ac87b621e1c9a48fcd8435e3 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 12 Aug 2016 17:19:36 -0500 Subject: [PATCH 2/5] s/quasiqouting/elli-lib/g --- README.md | 4 ++-- rebar.config | 2 +- src/elli_xpblfe.app.src | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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/rebar.config b/rebar.config index 5a6824a..60e894d 100644 --- a/rebar.config +++ b/rebar.config @@ -23,7 +23,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..947602f 100644 --- a/src/elli_xpblfe.app.src +++ b/src/elli_xpblfe.app.src @@ -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"} ]} ]}. From 3b268516784b4c76e95574ed4777720cc274a0ba Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 12 Aug 2016 17:24:12 -0500 Subject: [PATCH 3/5] Upgrade deps --- rebar.config | 9 +++++---- src/elli_xpblfe.lfe | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/rebar.config b/rebar.config index 60e894d..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 ]} ]} 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)) From 8731cb95b68f44397b238b42e405032fee35a05a Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 12 Aug 2016 17:25:44 -0500 Subject: [PATCH 4/5] elli_xpblfe: 0.1.2 -> 0.2.2 --- src/elli_xpblfe.app.src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elli_xpblfe.app.src b/src/elli_xpblfe.app.src index 947602f..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, []}, From 5fffeaac9edfb48f37cf7085d2193bf72164c338 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 12 Aug 2016 17:29:52 -0500 Subject: [PATCH 5/5] Update doc --- .gitmodules | 4 ++-- doc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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/doc b/doc index 00ff1d3..2798667 160000 --- a/doc +++ b/doc @@ -1 +1 @@ -Subproject commit 00ff1d3b19f3dfa3690a873fe2895fac837c7261 +Subproject commit 2798667c40f37020f3d9bc6b2b5b573ad417e3ba