Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.5.1

- Bump `pdf_redlines` dependency to `~> 0.6.3`

## 0.5.0

- `pdf_redlines` is now a required dependency (precompiled NIF, no toolchain needed).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Add `:redlines` to your dependencies:
```elixir
def deps do
[
{:redlines, "~> 0.5.0"}
{:redlines, "~> 0.5.1"}
]
end
```
Expand Down
4 changes: 1 addition & 3 deletions lib/redlines/pdf.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ defmodule Redlines.PDF do
@spec extract_redlines(Path.t(), keyword()) :: {:ok, list()} | {:error, term()}
def extract_redlines(pdf_path, opts \\ []) when is_binary(pdf_path) do
case PDFRedlines.extract_redlines(pdf_path, opts) do
{:ok, %{redlines: redlines}} when is_list(redlines) -> {:ok, redlines}
{:ok, %_{redlines: redlines}} when is_list(redlines) -> {:ok, redlines}
{:ok, other} -> {:error, {:unexpected_pdf_redlines_result, other}}
{:ok, %PDFRedlines.Result{redlines: redlines}} -> {:ok, redlines}
{:error, _} = error -> error
end
end
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Redlines.MixProject do
use Mix.Project

@version "0.5.0"
@version "0.5.1"
@source_url "https://github.com/EnaiaInc/redlines"

def project do
Expand Down Expand Up @@ -33,7 +33,7 @@ defmodule Redlines.MixProject do
defp deps do
[
{:sweet_xml, "~> 0.7"},
{:pdf_redlines, "~> 0.6"},
{:pdf_redlines, "~> 0.6.3"},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.39.3", only: :dev, runtime: false},
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"makeup_elixir": {:hex, :makeup_elixir, "1.0.1", "e928a4f984e795e41e3abd27bfc09f51db16ab8ba1aebdba2b3a575437efafc2", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "7284900d412a3e5cfd97fdaed4f5ed389b8f2b4cb49efc0eb3bd10e2febf9507"},
"makeup_erlang": {:hex, :makeup_erlang, "1.0.3", "4252d5d4098da7415c390e847c814bad3764c94a814a0b4245176215615e1035", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "953297c02582a33411ac6208f2c6e55f0e870df7f80da724ed613f10e6706afd"},
"nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"},
"pdf_redlines": {:hex, :pdf_redlines, "0.6.2", "59b3d836be79880d988c4db4cbfe503ed4ecd572daa8dd4188da2f1417b07126", [:mix], [{:rustler, "~> 0.37.1", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.8.4", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "b2eac630c8abc851c2d9a1726c1e812c6e1eeb1571d5dac1b1a6f949002e16c5"},
"pdf_redlines": {:hex, :pdf_redlines, "0.6.3", "e9b5c66196f6d59ebe5a825ee153c5436225022cba32a4d4ba77bd3319d8120a", [:mix], [{:rustler, "~> 0.37.1", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.8.4", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "015e413845d1f5c0eab1a931dc0eec4e6f7b1af47581a1bb2cc099f4d9068bf7"},
"quokka": {:hex, :quokka, "2.11.2", "2856118154425f18547720d997199be54febed771a740ba3c988a17762328287", [:mix], [{:credo, "~> 1.7", [hex: :credo, repo: "hexpm", optional: false]}], "hexpm", "8208f5d814007cb35a2eb278462464d083fca8c463f62517ab94eef982f181cc"},
"rustler_precompiled": {:hex, :rustler_precompiled, "0.8.4", "700a878312acfac79fb6c572bb8b57f5aae05fe1cf70d34b5974850bbf2c05bf", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:rustler, "~> 0.23", [hex: :rustler, repo: "hexpm", optional: true]}], "hexpm", "3b33d99b540b15f142ba47944f7a163a25069f6d608783c321029bc1ffb09514"},
"sweet_xml": {:hex, :sweet_xml, "0.7.5", "803a563113981aaac202a1dbd39771562d0ad31004ddbfc9b5090bdcd5605277", [:mix], [], "hexpm", "193b28a9b12891cae351d81a0cead165ffe67df1b73fe5866d10629f4faefb12"},
Expand Down