From d5674157ef0c62e40e76dbf5e2129b1a3a580178 Mon Sep 17 00:00:00 2001 From: Adam Millerchip Date: Mon, 2 Sep 2019 21:30:38 +0900 Subject: [PATCH] Add doc links and body_reader_plug_test.exs --- lib/line_bot/body_reader_plug.ex | 4 ++-- mix.exs | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/line_bot/body_reader_plug.ex b/lib/line_bot/body_reader_plug.ex index 40d16ce..ccae163 100644 --- a/lib/line_bot/body_reader_plug.ex +++ b/lib/line_bot/body_reader_plug.ex @@ -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) diff --git a/mix.exs b/mix.exs index bb4a7ce..ad29d34 100644 --- a/mix.exs +++ b/mix.exs @@ -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,