graf 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -12
- data/graf.gemspec +1 -1
- data/lib/graf/source.rb +3 -1
- data/lib/graf/version.rb +1 -1
- metadata +2 -8
data/README.md
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
# Graf
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Graf is a simple git log analyzer gem.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
Add this line to your application's Gemfile:
|
|
8
|
-
|
|
9
|
-
gem 'graf'
|
|
10
|
-
|
|
11
|
-
And then execute:
|
|
12
|
-
|
|
13
|
-
$ bundle
|
|
14
|
-
|
|
15
|
-
Or install it yourself as:
|
|
16
|
-
|
|
17
7
|
$ gem install graf
|
|
18
8
|
|
|
19
9
|
## Usage
|
|
20
10
|
|
|
21
|
-
|
|
11
|
+

|
|
22
12
|
|
|
23
13
|
## Contributing
|
|
24
14
|
|
data/graf.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ["das.abhshk@gmail.com"]
|
|
11
11
|
spec.description = %q{A simple git log analyzer gem}
|
|
12
12
|
spec.summary = %q{A simple git log analyzer gem}
|
|
13
|
-
spec.homepage = ""
|
|
13
|
+
spec.homepage = "https://github.com/abhshkdz/graf"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
data/lib/graf/source.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
#encoding: utf-8
|
|
2
|
+
|
|
1
3
|
module Graf
|
|
2
4
|
|
|
3
5
|
class Source
|
|
@@ -22,7 +24,7 @@ module Graf
|
|
|
22
24
|
authors = freq.keys.sort_by do |author|
|
|
23
25
|
freq[author]
|
|
24
26
|
end.reverse.map do |author|
|
|
25
|
-
TICK * (freq[author] * 70 / max) +
|
|
27
|
+
TICK * (freq[author] * 70 / max) +
|
|
26
28
|
" #{author} (#{freq[author]} commit" +
|
|
27
29
|
(freq[author] == 1 ? ")" : "s)")
|
|
28
30
|
end
|
data/lib/graf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -63,7 +63,7 @@ files:
|
|
|
63
63
|
- lib/graf/version.rb
|
|
64
64
|
- test/lib/graf/version_test.rb
|
|
65
65
|
- test/test_helper.rb
|
|
66
|
-
homepage:
|
|
66
|
+
homepage: https://github.com/abhshkdz/graf
|
|
67
67
|
licenses:
|
|
68
68
|
- MIT
|
|
69
69
|
post_install_message:
|
|
@@ -76,18 +76,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
76
76
|
- - '>='
|
|
77
77
|
- !ruby/object:Gem::Version
|
|
78
78
|
version: '0'
|
|
79
|
-
segments:
|
|
80
|
-
- 0
|
|
81
|
-
hash: -1726036591644558613
|
|
82
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
80
|
none: false
|
|
84
81
|
requirements:
|
|
85
82
|
- - '>='
|
|
86
83
|
- !ruby/object:Gem::Version
|
|
87
84
|
version: '0'
|
|
88
|
-
segments:
|
|
89
|
-
- 0
|
|
90
|
-
hash: -1726036591644558613
|
|
91
85
|
requirements: []
|
|
92
86
|
rubyforge_project:
|
|
93
87
|
rubygems_version: 1.8.25
|