Skip to content

Commit

Permalink
prepare v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
soywod committed Aug 23, 2023
1 parent 8110a2f commit 091bc81
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 108 deletions.
91 changes: 5 additions & 86 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,94 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.9] - 2023-06-24
## [0.1.0] - 2023-08-23

### Added

- Added preset option `preset` to get preconfigured timer. Available options: `pomodoro`, `52/17`.
- Added preset option `cycles-count` to control how the timer loops. `0` means infinite, whereas any integer makes the timer stop automatically after n loops.
- Added preset option `timer-precision` to customize the timer format. Available options: `second`, `minute` (default), `hour`.
- Added `compile` and `interpret` feature from [mml-lib].

## [0.0.8] - 2023-05-18
[mml-lib]: https://crates.io/crates/mml-lib

### Changed

- Changed the aim of the project. The timer is not Pomodoro-specific anymore, it became generic (which allows you to turn it into a Pomodoro timer, or whatever).
- Changed hooks name from `timer-started-hook` to `on-timer-start` and so on.

## [0.0.7] - 2023-04-24

### Added

- Add `zip` archive to releases.

## [0.0.6] - 2023-04-21

### Changed

- Improved cross compilation.

## [0.0.5] - 2023-04-20

### Changed

- Replaced `pimalaya` by `pimalaya-pomodoro`.

### Removed

- Removed durations and hooks from `TcpConfig`, since they conflicted with the ones from the main config.

## [0.0.4] - 2023-04-14

### Fixed

- Fixed hooks not triggered properly.

## [0.0.3] - 2023-04-14

### Added

- Added hooks support (check https://docs.rs/comodoro/0.0.3/comodoro/config/struct.HooksConfig.html for the list of available hooks).

### Changed

- Improve the way the timer is displayed via the `get` command.

## [0.0.2] - 2023-04-10

### Changed

- Rewrote the project in Rust, using the [Pimalaya](https://git.sr.ht/~soywod/pimalaya) library.

## [0.0.1] - 2020-12-15

### Added

- Added installation script.
- Added `.mli` files [#2].

### Changed

- Improved README [#8].
- Made timers customizable [#4].

### Fixed

- Fixed OS specific `tmp` and `xdg` dirs [#3].
- Fixed missing CI artifacts from releases [#6].

[Unreleased]: https://github.com/soywod/comodoro/compare/v0.0.8...master
[0.0.8]: https://github.com/soywod/comodoro/compare/v0.0.7...v0.0.8
[0.0.7]: https://github.com/soywod/comodoro/compare/v0.0.6...v0.0.7
[0.0.6]: https://github.com/soywod/comodoro/compare/v0.0.5...v0.0.6
[0.0.5]: https://github.com/soywod/comodoro/compare/v0.0.4...v0.0.5
[0.0.4]: https://github.com/soywod/comodoro/compare/v0.0.3...v0.0.4
[0.0.3]: https://github.com/soywod/comodoro/compare/v0.0.2...v0.0.3
[0.0.2]: https://github.com/soywod/comodoro/compare/v0.0.1...v0.0.2
[0.0.1]: https://github.com/soywod/comodoro/releases/tag/v0.0.1

[#2]: https://github.com/soywod/comodoro/issues/2
[#3]: https://github.com/soywod/comodoro/issues/3
[#4]: https://github.com/soywod/comodoro/issues/4
[#6]: https://github.com/soywod/comodoro/issues/6
[#8]: https://github.com/soywod/comodoro/issues/8
[Unreleased]: https://github.com/soywod/mml/compare/v0.1.0...master
[0.1.0]: https://github.com/soywod/mml/releases/tag/v0.1.0
41 changes: 23 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ clap_complete = "4.3"
clap_mangen = "0.2"

# mml
mml-lib.git = "https://git.sr.ht/~soywod/pimalaya"
mml-lib.version = "=0.1.0"
mml-lib.default-features = false
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
in
{
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkg-config
];
buildInputs = with pkgs; [
# Nix
rnix-lsp
Expand Down
6 changes: 3 additions & 3 deletions src/mml/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
)]

use anyhow::{Context, Result};
#[cfg(feature = "interpreter")]
use mml::MimeInterpreter;
#[cfg(feature = "compiler")]
use mml::MmlCompiler;
#[cfg(feature = "interpreter")]
use mml::MmlInterpreter;

#[cfg(feature = "compiler")]
pub async fn compile(mml: String) -> Result<()> {
Expand All @@ -22,7 +22,7 @@ pub async fn compile(mml: String) -> Result<()> {

#[cfg(feature = "interpreter")]
pub async fn interpret(mime: String) -> Result<()> {
let mml = MmlInterpreter::new()
let mml = MimeInterpreter::new()
.interpret_bytes(mime.as_bytes())
.await
.context("cannot interpreter mime message")?;
Expand Down

0 comments on commit 091bc81

Please sign in to comment.