Skip to content

Commit 804f2b6

Browse files
committed
Release version 0.5.0
1 parent 21fd6a5 commit 804f2b6

File tree

5 files changed

+81
-22
lines changed

5 files changed

+81
-22
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
## 0.5.0
2+
> 2018-11-09
3+
4+
This release focuses on performance, even though it might be fairly minor. We
5+
switched the standard library version of HashMap and HashSet to the ones
6+
implemented in [hashbrown](https://github.com/Amanieu/hashbrown), switched to
7+
using `lazy_static` since it doesn't require `unsafe` code anymore and switched
8+
to using `LTO=thin` for releases, all giving us some minor speed boosts. You can
9+
see more in the git commits for the respective changes. We also added
10+
documentation and also display total counts of naughty words across all authors
11+
in the repository.
12+
13+
* [[`21fd6a5d33`](https://github.com/sondr3/git-anger-management/commit/21fd6a5d33)] - Document all the things, ensure it will forever be documented
14+
* [[`4e2d1fa786`](https://github.com/sondr3/git-anger-management/commit/4e2d1fa786)] - Make sure the version number is always up to date
15+
* [[`1b663923ad`](https://github.com/sondr3/git-anger-management/commit/1b663923ad)] - Initial pass at writing documentation
16+
* [[`22c851a22c`](https://github.com/sondr3/git-anger-management/commit/22c851a22c)] - Use LTO=thin when running a release version, even more minor speedups
17+
* [[`cde15774c3`](https://github.com/sondr3/git-anger-management/commit/cde15774c3)] - Refactor whole thing into several files, library and binary
18+
* [[`99488db4f6`](https://github.com/sondr3/git-anger-management/commit/99488db4f6)] - Use lazy\_static to lazily create curses, minor speedups again
19+
* [[`6ce95329fc`](https://github.com/sondr3/git-anger-management/commit/6ce95329fc)] - Include Cargo.lock since this is a binary application
20+
* [[`92646d638c`](https://github.com/sondr3/git-anger-management/commit/92646d638c)] - Use hashbrown instead of std::{HashMap, HashSet} for minor speedups
21+
* [[`b0284df3cf`](https://github.com/sondr3/git-anger-management/commit/b0284df3cf)] - Fix Clippy lint
22+
* [[`d2b66c882e`](https://github.com/sondr3/git-anger-management/commit/d2b66c882e)] - Show curses per repo and not just per author
23+
* [[`b2c074db76`](https://github.com/sondr3/git-anger-management/commit/b2c074db76)] - Change update\_occurrence so that it doesn't copy strings
24+
* [[`4ae3a8235f`](https://github.com/sondr3/git-anger-management/commit/4ae3a8235f)] - Use if let on both author and commit message
25+
* [[`cb090b909d`](https://github.com/sondr3/git-anger-management/commit/cb090b909d)] - Refactor adding commits to a vec to be in their own little scope
26+
* [[`0a77ad1a2f`](https://github.com/sondr3/git-anger-management/commit/0a77ad1a2f)] - Remove badge because crates.io doesn't work with travis.com
27+
128
## 0.4.0
229
> 2018-10-18
330

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git-anger-management"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
authors = ["Sondre Nilsen <nilsen.sondre@gmail.com>"]
55
homepage = "https://github.com/sondr3/git-anger-management"
66
description = "Count your naughty words in git commit messages"

README.md

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,45 @@ Output should look something like this:
2424

2525
```sh
2626
$ git anger-management
27-
repo: (32/512) naughty commits/commits
28-
Sondre Nilsen: (32/438) naughty commits/commits
27+
repo: (46/569) naughty commits/commits
2928
{
30-
"goddamn": 1,
31-
"fuck": 12,
32-
"fucking": 13,
33-
"shit": 5,
29+
"goddamn": 2,
30+
"shit": 7,
31+
"fuck": 18,
32+
"bloody": 2,
33+
"fucking": 15,
34+
"fucked": 1,
3435
"tits": 1
3536
}
37+
Sondre Nilsen: (46/495) naughty commits/commits
38+
{
39+
"goddamn": 2,
40+
"shit": 7,
41+
"tits": 1,
42+
"bloody": 2,
43+
"fucking": 15,
44+
"fucked": 1,
45+
"fuck": 18
46+
}
3647
```
3748

38-
You can also point it to other directories if you want to look somwhere else
39-
but you're too lazy to actually `cd` into that directory:
49+
You can also point it to other directories if you want to look somwhere else but
50+
you're too lazy to actually `cd` into that directory:
4051

4152
```sh
4253
$ git anger-management ../../other-repo/
4354
other-repo: (3/56) naughty commits/commits
55+
{
56+
"goddamn": 1,
57+
"fuck": 1,
58+
"fucking": 1
59+
}
4460
Sondre Nilsen: (3/56) naughty commits/commits
4561
{
4662
"goddamn": 1,
47-
"fucking": 1,
48-
"fuck": 1
63+
"fuck": 1,
64+
"fucking": 1
4965
}
5066
```
5167

52-
Or look at the help by running `git anger-management -h`.
68+
Or look at the help by running `git anger-management -h`.

src/lib.rs

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#![deny(missing_docs)]
33
#![deny(missing_debug_implementations)]
44
#![forbid(unsafe_code)]
5-
#![doc(html_root_url = "https://docs.rs/git-anger-management/0.4.0")]
5+
#![doc(html_root_url = "https://docs.rs/git-anger-management/0.5.0")]
66
//! # git-anger-management
77
//!
88
//! ## What
@@ -29,15 +29,26 @@
2929
//!
3030
//! ```sh
3131
//! $ git anger-management
32-
//! repo: (32/512) naughty commits/commits
33-
//! Sondre Nilsen: (32/438) naughty commits/commits
32+
//! repo: (46/569) naughty commits/commits
3433
//! {
35-
//! "goddamn": 1,
36-
//! "fuck": 12,
37-
//! "fucking": 13,
38-
//! "shit": 5,
34+
//! "goddamn": 2,
35+
//! "shit": 7,
36+
//! "fuck": 18,
37+
//! "bloody": 2,
38+
//! "fucking": 15,
39+
//! "fucked": 1,
3940
//! "tits": 1
4041
//! }
42+
//! Sondre Nilsen: (46/495) naughty commits/commits
43+
//! {
44+
//! "goddamn": 2,
45+
//! "shit": 7,
46+
//! "tits": 1,
47+
//! "bloody": 2,
48+
//! "fucking": 15,
49+
//! "fucked": 1,
50+
//! "fuck": 18
51+
//! }
4152
//! ```
4253
//!
4354
//! You can also point it to other directories if you want to look somwhere else
@@ -46,11 +57,16 @@
4657
//! ```sh
4758
//! $ git anger-management ../../other-repo/
4859
//! other-repo: (3/56) naughty commits/commits
60+
//! {
61+
//! "goddamn": 1,
62+
//! "fuck": 1,
63+
//! "fucking": 1
64+
//! }
4965
//! Sondre Nilsen: (3/56) naughty commits/commits
5066
//! {
5167
//! "goddamn": 1,
52-
//! "fucking": 1,
53-
//! "fuck": 1
68+
//! "fuck": 1,
69+
//! "fucking": 1
5470
//! }
5571
//! ```
5672
//!

0 commit comments

Comments
 (0)