Add doc links and body_reader_plug_test.exs

This commit is contained in:
Adam Millerchip 2019-09-02 21:30:38 +09:00
parent 7915b6d4ed
commit d5674157ef
2 changed files with 7 additions and 4 deletions

View file

@ -8,8 +8,8 @@ defmodule LineBot.BodyReaderPlug do
def init(_opts), do: nil
@impl true
def call(conn, _opts) do
case Plug.Conn.read_body(conn) do
def call(conn, opts) do
case Plug.Conn.read_body(conn, opts) do
{:ok, body, conn} ->
put_private(conn, :line_bot_raw_body, body)

View file

@ -1,13 +1,16 @@
defmodule LineBot.MixProject do
use Mix.Project
@version "0.1.0"
def project do
[
app: :line_bot,
version: "0.1.0",
version: @version,
elixir: "~> 1.9",
start_permanent: Mix.env() == :prod,
deps: deps(),
source_url: "https://github.com/adamu/line_bot",
docs: docs()
]
end
@ -24,7 +27,7 @@ defmodule LineBot.MixProject do
[
main: "readme",
extras: ["README.md"],
# source_ref: "v#{@version}",
source_ref: "v#{@version}",
groups_for_modules: [
LineBot: [
LineBot,