Add doc links and body_reader_plug_test.exs
This commit is contained in:
parent
7915b6d4ed
commit
d5674157ef
2 changed files with 7 additions and 4 deletions
|
@ -8,8 +8,8 @@ defmodule LineBot.BodyReaderPlug do
|
||||||
def init(_opts), do: nil
|
def init(_opts), do: nil
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def call(conn, _opts) do
|
def call(conn, opts) do
|
||||||
case Plug.Conn.read_body(conn) do
|
case Plug.Conn.read_body(conn, opts) do
|
||||||
{:ok, body, conn} ->
|
{:ok, body, conn} ->
|
||||||
put_private(conn, :line_bot_raw_body, body)
|
put_private(conn, :line_bot_raw_body, body)
|
||||||
|
|
||||||
|
|
7
mix.exs
7
mix.exs
|
@ -1,13 +1,16 @@
|
||||||
defmodule LineBot.MixProject do
|
defmodule LineBot.MixProject do
|
||||||
use Mix.Project
|
use Mix.Project
|
||||||
|
|
||||||
|
@version "0.1.0"
|
||||||
|
|
||||||
def project do
|
def project do
|
||||||
[
|
[
|
||||||
app: :line_bot,
|
app: :line_bot,
|
||||||
version: "0.1.0",
|
version: @version,
|
||||||
elixir: "~> 1.9",
|
elixir: "~> 1.9",
|
||||||
start_permanent: Mix.env() == :prod,
|
start_permanent: Mix.env() == :prod,
|
||||||
deps: deps(),
|
deps: deps(),
|
||||||
|
source_url: "https://github.com/adamu/line_bot",
|
||||||
docs: docs()
|
docs: docs()
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
@ -24,7 +27,7 @@ defmodule LineBot.MixProject do
|
||||||
[
|
[
|
||||||
main: "readme",
|
main: "readme",
|
||||||
extras: ["README.md"],
|
extras: ["README.md"],
|
||||||
# source_ref: "v#{@version}",
|
source_ref: "v#{@version}",
|
||||||
groups_for_modules: [
|
groups_for_modules: [
|
||||||
LineBot: [
|
LineBot: [
|
||||||
LineBot,
|
LineBot,
|
||||||
|
|
Loading…
Reference in a new issue