Skip to content

Commit

Permalink
Release version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sondr3 committed Nov 9, 2018
1 parent 21fd6a5 commit 804f2b6
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 22 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
## 0.5.0
> 2018-11-09
This release focuses on performance, even though it might be fairly minor. We
switched the standard library version of HashMap and HashSet to the ones
implemented in [hashbrown](https://github.com/Amanieu/hashbrown), switched to
using `lazy_static` since it doesn't require `unsafe` code anymore and switched
to using `LTO=thin` for releases, all giving us some minor speed boosts. You can
see more in the git commits for the respective changes. We also added
documentation and also display total counts of naughty words across all authors
in the repository.

* [[`21fd6a5d33`](https://github.com/sondr3/git-anger-management/commit/21fd6a5d33)] - Document all the things, ensure it will forever be documented
* [[`4e2d1fa786`](https://github.com/sondr3/git-anger-management/commit/4e2d1fa786)] - Make sure the version number is always up to date
* [[`1b663923ad`](https://github.com/sondr3/git-anger-management/commit/1b663923ad)] - Initial pass at writing documentation
* [[`22c851a22c`](https://github.com/sondr3/git-anger-management/commit/22c851a22c)] - Use LTO=thin when running a release version, even more minor speedups
* [[`cde15774c3`](https://github.com/sondr3/git-anger-management/commit/cde15774c3)] - Refactor whole thing into several files, library and binary
* [[`99488db4f6`](https://github.com/sondr3/git-anger-management/commit/99488db4f6)] - Use lazy\_static to lazily create curses, minor speedups again
* [[`6ce95329fc`](https://github.com/sondr3/git-anger-management/commit/6ce95329fc)] - Include Cargo.lock since this is a binary application
* [[`92646d638c`](https://github.com/sondr3/git-anger-management/commit/92646d638c)] - Use hashbrown instead of std::{HashMap, HashSet} for minor speedups
* [[`b0284df3cf`](https://github.com/sondr3/git-anger-management/commit/b0284df3cf)] - Fix Clippy lint
* [[`d2b66c882e`](https://github.com/sondr3/git-anger-management/commit/d2b66c882e)] - Show curses per repo and not just per author
* [[`b2c074db76`](https://github.com/sondr3/git-anger-management/commit/b2c074db76)] - Change update\_occurrence so that it doesn't copy strings
* [[`4ae3a8235f`](https://github.com/sondr3/git-anger-management/commit/4ae3a8235f)] - Use if let on both author and commit message
* [[`cb090b909d`](https://github.com/sondr3/git-anger-management/commit/cb090b909d)] - Refactor adding commits to a vec to be in their own little scope
* [[`0a77ad1a2f`](https://github.com/sondr3/git-anger-management/commit/0a77ad1a2f)] - Remove badge because crates.io doesn't work with travis.com

## 0.4.0
> 2018-10-18
Expand Down
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "git-anger-management"
version = "0.4.0"
version = "0.5.0"
authors = ["Sondre Nilsen <nilsen.sondre@gmail.com>"]
homepage = "https://github.com/sondr3/git-anger-management"
description = "Count your naughty words in git commit messages"
Expand Down
38 changes: 27 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,45 @@ Output should look something like this:

```sh
$ git anger-management
repo: (32/512) naughty commits/commits
Sondre Nilsen: (32/438) naughty commits/commits
repo: (46/569) naughty commits/commits
{
"goddamn": 1,
"fuck": 12,
"fucking": 13,
"shit": 5,
"goddamn": 2,
"shit": 7,
"fuck": 18,
"bloody": 2,
"fucking": 15,
"fucked": 1,
"tits": 1
}
Sondre Nilsen: (46/495) naughty commits/commits
{
"goddamn": 2,
"shit": 7,
"tits": 1,
"bloody": 2,
"fucking": 15,
"fucked": 1,
"fuck": 18
}
```

You can also point it to other directories if you want to look somwhere else
but you're too lazy to actually `cd` into that directory:
You can also point it to other directories if you want to look somwhere else but
you're too lazy to actually `cd` into that directory:

```sh
$ git anger-management ../../other-repo/
other-repo: (3/56) naughty commits/commits
{
"goddamn": 1,
"fuck": 1,
"fucking": 1
}
Sondre Nilsen: (3/56) naughty commits/commits
{
"goddamn": 1,
"fucking": 1,
"fuck": 1
"fuck": 1,
"fucking": 1
}
```

Or look at the help by running `git anger-management -h`.
Or look at the help by running `git anger-management -h`.
34 changes: 25 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![forbid(unsafe_code)]
#![doc(html_root_url = "https://docs.rs/git-anger-management/0.4.0")]
#![doc(html_root_url = "https://docs.rs/git-anger-management/0.5.0")]
//! # git-anger-management
//!
//! ## What
Expand All @@ -29,15 +29,26 @@
//!
//! ```sh
//! $ git anger-management
//! repo: (32/512) naughty commits/commits
//! Sondre Nilsen: (32/438) naughty commits/commits
//! repo: (46/569) naughty commits/commits
//! {
//! "goddamn": 1,
//! "fuck": 12,
//! "fucking": 13,
//! "shit": 5,
//! "goddamn": 2,
//! "shit": 7,
//! "fuck": 18,
//! "bloody": 2,
//! "fucking": 15,
//! "fucked": 1,
//! "tits": 1
//! }
//! Sondre Nilsen: (46/495) naughty commits/commits
//! {
//! "goddamn": 2,
//! "shit": 7,
//! "tits": 1,
//! "bloody": 2,
//! "fucking": 15,
//! "fucked": 1,
//! "fuck": 18
//! }
//! ```
//!
//! You can also point it to other directories if you want to look somwhere else
Expand All @@ -46,11 +57,16 @@
//! ```sh
//! $ git anger-management ../../other-repo/
//! other-repo: (3/56) naughty commits/commits
//! {
//! "goddamn": 1,
//! "fuck": 1,
//! "fucking": 1
//! }
//! Sondre Nilsen: (3/56) naughty commits/commits
//! {
//! "goddamn": 1,
//! "fucking": 1,
//! "fuck": 1
//! "fuck": 1,
//! "fucking": 1
//! }
//! ```
//!
Expand Down

0 comments on commit 804f2b6

Please sign in to comment.