git_pissed 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +1 -1
- data/README.md +9 -9
- data/lib/git_pissed/cli.rb +1 -1
- data/lib/git_pissed/options.rb +1 -1
- data/lib/git_pissed/version.rb +1 -1
- data/lib/git_pissed/word_finder.rb +3 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f5d3bfd9c89f23b00c4d35e47a04a429421333
|
4
|
+
data.tar.gz: 0c2656ca68da3dcb89f85c157ab4ecbd7462a352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94a0aed3158ff08132b996f2c163ec9160582171a81fde6205aad0946b8112c538ee530ae834b121d7be95db56e95d7613099b997220f86b8e0f5edb02d58987
|
7
|
+
data.tar.gz: 5cbf0a9365b9c9804d53339b1ce96bd5de08fbc150c9f7215eeb9bbe8586c6fb18242823608105e9ed85cd8167633f66097a7605ba70d88f96d1644d2083818b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
Are the developers on your team frustrated? Do you wish you had better tests?
|
6
6
|
Do rainy days get you down? Do you have enough stackoverflow links in your
|
7
|
-
code? Answer these questions *today* with `git
|
7
|
+
code? Answer these questions *today* with `git-pissed`
|
8
8
|
|
9
|
-
`git
|
9
|
+
`git-pissed` tracks any number of words across your entire git history. The
|
10
10
|
defaults are **wildly offensive** and inspired by [Vidar Holen's Linux Kernel
|
11
11
|
Swear Counts](http://www.vidarholen.net/contents/wordcount).
|
12
12
|
|
@@ -19,14 +19,14 @@ Install the gem, open a git repo, and git pissed.
|
|
19
19
|
```bash
|
20
20
|
$ gem install git_pissed
|
21
21
|
$ cd my/git/repo
|
22
|
-
$ git
|
22
|
+
$ git-pissed && open git-pissed.html
|
23
23
|
```
|
24
24
|
|
25
|
-
Sometimes we want to track happiness instead of **ANGER!!** `git
|
25
|
+
Sometimes we want to track happiness instead of **ANGER!!** `git-pissed` allows
|
26
26
|
the tracking of any set of words.
|
27
27
|
|
28
28
|
```bash
|
29
|
-
$ git
|
29
|
+
$ git-pissed --words=love,hate,rainbow
|
30
30
|
```
|
31
31
|
|
32
32
|
![](https://raw.github.com/chrishunt/git-pissed/master/img/graph-love-hate-rainbow.png)
|
@@ -34,7 +34,7 @@ $ git pissed --words=love,hate,rainbow
|
|
34
34
|
If you are a graphing wizard and just want the data, generate a CSV instead.
|
35
35
|
|
36
36
|
```bash
|
37
|
-
$ git
|
37
|
+
$ git-pissed --format=csv
|
38
38
|
$ cat git-pissed.csv
|
39
39
|
date,love,hate,rainbow
|
40
40
|
2010-12-27,37,3,2
|
@@ -49,13 +49,13 @@ amount specified in `max-revisions` (defaults to 30) will be scanned evenly
|
|
49
49
|
throughout the entire git history.
|
50
50
|
|
51
51
|
```bash
|
52
|
-
$ git
|
52
|
+
$ git-pissed --max-revisions=100
|
53
53
|
```
|
54
54
|
|
55
55
|
![](https://raw.github.com/chrishunt/git-pissed/master/img/graph-100res.png)
|
56
56
|
|
57
57
|
```bash
|
58
|
-
$ git
|
58
|
+
$ git-pissed --max-revisions=15
|
59
59
|
```
|
60
60
|
|
61
61
|
![](https://raw.github.com/chrishunt/git-pissed/master/img/graph-15res.png)
|
@@ -74,7 +74,7 @@ options:
|
|
74
74
|
```
|
75
75
|
|
76
76
|
## Requirements
|
77
|
-
`git-pissed` requires Ruby `1.
|
77
|
+
`git-pissed` requires Ruby `1.8.7` or later. Welcome to the future!
|
78
78
|
|
79
79
|
## Installation
|
80
80
|
|
data/lib/git_pissed/cli.rb
CHANGED
data/lib/git_pissed/options.rb
CHANGED
data/lib/git_pissed/version.rb
CHANGED
@@ -24,10 +24,9 @@ module GitPissed
|
|
24
24
|
|
25
25
|
def progress_bar
|
26
26
|
@progress_bar ||= begin
|
27
|
-
ProgressBar.create
|
28
|
-
total
|
29
|
-
format
|
30
|
-
)
|
27
|
+
ProgressBar.create \
|
28
|
+
:total => (revisions.count * options.words.count),
|
29
|
+
:format => '%e <%B> %p%% %t'
|
31
30
|
end
|
32
31
|
end
|
33
32
|
|