Current section
4 Versions
Jump to
Current section
4 Versions
Compare versions
4
files changed
+22
additions
-9
deletions
| @@ -1,12 +1,25 @@ | |
| 1 | - # Change log |
| 1 | + # Changelog |
| 2 2 | |
| 3 | - ## 1.0.0-TODO |
| 3 | + ## 1.0.0 |
| 4 4 | Major release milestones: |
| 5 5 | * Parallel decompression. |
| 6 6 | |
| 7 | - ## 0.2.0 (Sep 2022) |
| 7 | + ## [0.2.1] (Apr 2023) |
| 8 | + |
| 9 | + ### Fixed |
| 10 | + |
| 11 | + * Handle full output buffer (Scott Ribe) |
| 12 | + |
| 13 | + ## [0.2.0] (Sep 2022) |
| 14 | + |
| 8 15 | * First working release. |
| 9 16 | * Passing CI for elixir 1.11 and 1.14 |
| 10 17 | |
| 11 | - ## 0.1.0 (May 2022) |
| 18 | + ## [0.1.0] (May 2022) |
| 19 | + |
| 12 20 | * Broken release, missing the Bzip2.Driver module. |
| 21 | + |
| 22 | + [Unreleased]: https://gitlab.com/adamwight/bzip2-ex/-/compare/v0.2.1...HEAD |
| 23 | + [0.2.1]: https://gitlab.com/adamwight/bzip2-ex/-/compare/v0.2.0...v0.2.1 |
| 24 | + [0.2.0]: https://gitlab.com/adamwight/bzip2-ex/-/compare/v0.1.0...v0.2.0 |
| 25 | + [0.1.0]: https://gitlab.com/adamwight/bzip2-ex/-/tags/v0.1.0 |
| @@ -6,7 +6,7 @@ | |
| 6 6 | [<<"lib">>,<<"lib/bzip2">>,<<"lib/bzip2/driver.ex">>,<<"lib/bzip2.ex">>, |
| 7 7 | <<"mix.exs">>,<<"CHANGELOG.md">>,<<"README.md">>,<<"src">>, |
| 8 8 | <<"src/bzip2.c">>,<<"Makefile">>]}. |
| 9 | - {<<"licenses">>,[<<"GPLv3">>]}. |
| 9 | + {<<"licenses">>,[<<"GPL-3.0-or-later">>]}. |
| 10 10 | {<<"links">>,[{<<"GitLab">>,<<"https://gitlab.com/adamwight/bzip2-ex">>}]}. |
| 11 11 | {<<"name">>,<<"bzip2">>}. |
| 12 12 | {<<"requirements">>, |
| @@ -15,4 +15,4 @@ | |
| 15 15 | {<<"optional">>,false}, |
| 16 16 | {<<"repository">>,<<"hexpm">>}, |
| 17 17 | {<<"requirement">>,<<"~> 0.6">>}]]}. |
| 18 | - {<<"version">>,<<"0.2.0">>}. |
| 18 | + {<<"version">>,<<"0.2.1">>}. |
| @@ -4,7 +4,7 @@ defmodule Bzip2.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :bzip2, |
| 7 | - version: "0.2.0", |
| 7 | + version: "0.2.1", |
| 8 8 | elixir: "~> 1.11", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | deps: deps(), |
| @@ -37,7 +37,7 @@ defmodule Bzip2.MixProject do | |
| 37 37 | files: ~w(lib mix.exs *.md src Makefile), |
| 38 38 | name: :bzip2, |
| 39 39 | maintainers: ["adamwight"], |
| 40 | - licenses: ["GPLv3"], |
| 40 | + licenses: ["GPL-3.0-or-later"], |
| 41 41 | links: %{"GitLab" => "https://gitlab.com/adamwight/bzip2-ex"} |
| 42 42 | ] |
| 43 43 | end |
| @@ -165,7 +165,7 @@ compress_block(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[]) { | |
| 165 165 | debug_print("compressed: out_bytes=%u\n", default_output_buffer_size - stream->avail_out); |
| 166 166 | |
| 167 167 | ERL_NIF_TERM status; |
| 168 | - if (result == BZ_RUN_OK) { |
| 168 | + if (result == BZ_RUN_OK || result == BZ_FINISH_OK) { |
| 169 169 | // Ran out of input or output, continue working on this cached input |
| 170 170 | // buffer but switch to finishing mode. |
| 171 171 | status = atom_cont; |