diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ded968c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,15 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## 0.1.1 (2022-01-09) + +* Enhancements + * Add AIFF audio file support + +## 0.1.0 (2021-12-26) + +Initial release diff --git a/README.md b/README.md index a38eebc..43a5223 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ by adding `infer` to your list of dependencies in `mix.exs`: ```elixir def deps do [ - {:infer, "~> 0.1.0"} + {:infer, "~> 0.1.1"} ] end ``` diff --git a/lib/matchers/doc.ex b/lib/matchers/doc.ex index 3a451a0..6aab34a 100644 --- a/lib/matchers/doc.ex +++ b/lib/matchers/doc.ex @@ -208,13 +208,11 @@ defmodule Infer.Doc do root_directory_address = sector_size + root_directory_index * sector_size position = root_directory_address + 80 - <<_offset::binary-size(position), guid::binary-size(16), _rest::binary>> = doc - - case guid do - <<16, 141, 129, 100, 155, 79, 207, 17, 134, 234, 0, 170, 0, 185, 41, 232>> -> :ppt - <<6, 9, 2, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70>> -> :doc - <<32, 8, 2, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70>> -> :xls - <<32, 8, 1, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70>> -> :xls + case doc do + <<_offset::binary-size(position), 16, 141, 129, 100, 155, 79, 207, 17, 134, 234, 0, 170, 0, 185, 41, 232, _rest::binary>> -> :ppt + <<_offset::binary-size(position), 6, 9, 2, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70, _rest::binary>> -> :doc + <<_offset::binary-size(position), 32, 8, 2, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70, _rest::binary>> -> :xls + <<_offset::binary-size(position), 32, 8, 1, 0, 0, 0, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70, _rest::binary>> -> :xls _ -> nil end end diff --git a/mix.exs b/mix.exs index e6c96eb..f7a840d 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Infer.MixProject do def project do [ app: :infer, - version: "0.1.0", + version: "0.1.1", elixir: "~> 1.10", start_permanent: Mix.env() == :prod, deps: deps(),