Skip to content

Commit

Permalink
New release: 0.2.3 - two small fixes for Erlang/OTP 24 and Elixir 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryape committed Jun 2, 2021
1 parent a9b5e8d commit b2c66ac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ 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.2.3] - 2021-06-02
Minor fixes for compatibility with Erlang/OTP 24 and Elixir 1.12

## Changed
- `YubikeyOTP.CRC.crc16` now does not use deprecated `^^^` operator
- `YubikeyOTP.Response` fixed old bug spotted by new Struct checks in Elixir 1.12

## [0.2.2] - 2021-04-21
Fixes to documentation and minor code tweaks

Expand Down Expand Up @@ -35,6 +42,7 @@ OTP validation and documentation improvements
## [0.1.0] - 2020-04-11
Initial release

[0.2.3]: https://github.com/Digital-Identity-Labs/yubikey_otp/compare/0.2.2...0.2.3
[0.2.2]: https://github.com/Digital-Identity-Labs/yubikey_otp/compare/0.2.1...0.2.2
[0.2.1]: https://github.com/Digital-Identity-Labs/yubikey_otp/compare/0.2.0...0.2.1
[0.2.0]: https://github.com/Digital-Identity-Labs/yubikey_otp/compare/0.1.0...0.2.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies in `mix.exs`:
```elixir
def deps do
[
{:yubikey_otp, "~> 0.2.0"}
{:yubikey_otp, "~> 0.2.3"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion lib/yubikey_otp/crc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ defmodule YubikeyOTP.CRC do
|> :binary.bin_to_list
|> Enum.reduce(crc,
fn c, acc ->
((acc >>> 8) ^^^ Enum.at(@lookup_table, (acc ^^^ c) &&& 0xff)) &&& 0xffff
(bxor((acc >>> 8), Enum.at(@lookup_table, bxor(acc, c) &&& 0xff))) &&& 0xffff
end)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/yubikey_otp/response.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule YubikeyOTP.Response do

alias __MODULE__

@enforce_keys [:otp, :status, :type]
@enforce_keys [:otp, :status]

defstruct [
:url,
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule YubikeyOTP.MixProject do
def project do
[
app: :yubikey_otp,
version: "0.2.2",
version: "0.2.3",
elixir: "~> 1.7",
description: "Elixir client library for validating Yubikey one-time-passwords (OTPs)",
package: package(),
Expand Down

0 comments on commit b2c66ac

Please sign in to comment.