Skip to content

Commit

Permalink
v0.1.6 release (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnishiguchi committed Jan 17, 2024
1 parent 1d47de4 commit 9719172
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 19 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ on: [push, pull_request]
jobs:
deps:
name: Dependencies
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
MIX_ENV: test
strategy:
matrix:
include:
- elixir: 1.13
otp: 24
- elixir: 1.14
- elixir: 1.15
otp: 25
- elixir: 1.16
otp: 26
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
Expand Down Expand Up @@ -53,16 +53,16 @@ jobs:
static_code_analysis:
name: Static Code Analysis
needs: deps
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
MIX_ENV: test
strategy:
matrix:
include:
- elixir: 1.13
otp: 24
- elixir: 1.14
- elixir: 1.15
otp: 25
- elixir: 1.16
otp: 26
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
Expand Down Expand Up @@ -102,17 +102,17 @@ jobs:
unit_tests:
name: Unit Tests
needs: deps
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.13
otp: 24
- elixir: 1.14
- elixir: 1.15
otp: 25
- elixir: 1.16
otp: 26
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
Expand Down
22 changes: 19 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.6] - 2024-01-17

**Changed**

- Relax circuits_i2c dependency to allow v2.0

## [0.1.5] - 2023-02-18

Fix Elixir code based on warnings. Nothing will be changed at the high level.
Expand All @@ -15,20 +21,22 @@ Fix Elixir code based on warnings. Nothing will be changed at the high level.

- Use Application.compile_env/3 instead of Application.get_env/3
- Define mocks at compile time instead of at runtime
- Bump Elixir versions in CI

## [0.1.4] - 2021-11-26

**Improvement**

- Support both v0 and v1 of `circuits_i2c`
- Relax circuits_i2c dependency to allow v1.0
- Do not use `i2c_server`

## [0.1.3] - 2021-06-25

### Fixed

- Hex Github action

## [0.1.2] - 2021-06-23

### Changed

- Refactor Mox-related code in CommTest
Expand All @@ -39,29 +47,37 @@ Fix Elixir code based on warnings. Nothing will be changed at the high level.
- Hex Github action

## [0.1.1] - 2021-06-16

### Added

- Github action as CI
- CI badge and Hex badge in README.md

### Changed

- Use `Access` instead of `Keyword.get/2` following advice in [Good and Bad Elixir | keathley.io](https://keathley.io/blog/good-and-bad-elixir.html)
- Rename `*_accumulator` to `*_reducer`
- Simplify `SGP40.Transport.I2C` without using `apply`
- Refactor Mox-related test code

### Removed

- Unused `SGP40.I2C.Stub`
- Default gen server name `__MODULE__`
- Pattern matching for `args` in `SGP40.VocIndex.handle_call({:set_tuning_params, args}, _, state)`

### Fixed

- Correct typespec for `SGP40.measure/1`

## [0.1.0] - 2021-06-13

### Added

- Initial release

[Unreleased]: https://github.com/mnishiguchi/sgp40/compare/v0.1.5...HEAD
[Unreleased]: https://github.com/mnishiguchi/sgp40/compare/v0.1.6...HEAD
[0.1.6]: https://github.com/mnishiguchi/sgp40/compare/v0.1.5...v0.1.6
[0.1.5]: https://github.com/mnishiguchi/sgp40/compare/v0.1.4...v0.1.5
[0.1.4]: https://github.com/mnishiguchi/sgp40/compare/v0.1.3...v0.1.4
[0.1.3]: https://github.com/mnishiguchi/sgp40/compare/v0.1.2...v0.1.3
Expand Down
6 changes: 3 additions & 3 deletions lib/sgp40/voc_index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ defmodule SGP40.VocIndex do

defp receive_from_port(port) do
receive do
{^port, {:data, {_, 'OK: ' ++ response}}} ->
{^port, {:data, {_, ~c"OK: " ++ response}}} ->
{:ok, to_string(response)}

{^port, {:data, {_, 'OK'}}} ->
{^port, {:data, {_, ~c"OK"}}} ->
:ok

{^port, {:data, {_, 'ERR: ' ++ response}}} ->
{^port, {:data, {_, ~c"ERR: " ++ response}}} ->
{:error, to_string(response)}

{^port, {:exit_status, exit_status}} ->
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule SGP40.MixProject do
use Mix.Project

@version "0.1.5"
@version "0.1.6"
@source_url "https://github.com/mnishiguchi/sgp40"

def project do
Expand Down

0 comments on commit 9719172

Please sign in to comment.