ghit 0.2.0 → 0.2.1
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.
- checksums.yaml +8 -8
- data/.travis.yml +5 -0
- data/README.md +3 -0
- data/Rakefile +6 -0
- data/lib/ghit/version.rb +1 -1
- metadata +2 -4
- data/bin/git-stats +0 -6
- data/lib/ghit/repo_statistics.rb +0 -18
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmU0YTFhYjg2ZWZlYjc4NGNhMDNhODVmMDgyY2YxOTA0ZGM2Mjc0MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzA0ZDc1ZTFiMjRjNzlmZTZiN2JjMTg3Mjk4MTU2OWExYTIyNTFkOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODY0ZTk4MjAwYTMyNGQ5YWJiNDYxMGZhNWNlZjNkNDAyZjcyZmViODc4MzUx
|
10
|
+
YzVkODgxMjU1MjIzNjU3ZTc5ZmMzZjkyNGZiOGU0NzE1YjU0NmRkNmMxMTcx
|
11
|
+
YTI1MDNmNDY1MjA5YzQwZDUwMmJiNTE4NzZlNDYzMzBkMGMxZTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjVlMGFjNjkwNjhhODZlYTY4YTM4NTcwNWRiYTNmNWIyNWUyY2UzYjNiNTNj
|
14
|
+
YWIwM2E5OGNmNTM1MTkzZWRjNzc1MzgwMzgwNTk0NzAwZWJiMjZlNmVmMjRj
|
15
|
+
Zjc5MGVkMDZkZWNkM2U1NDkyZDY4MzRjNTIzNWYwZTgxMzY3MjA=
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
Ghit
|
2
2
|
=============
|
3
|
+
[](https://travis-ci.org/fteem/ghit)
|
4
|
+
[](https://codeclimate.com/github/fteem/ghit)
|
3
5
|
|
4
6
|
## What is this?
|
5
7
|
|
@@ -28,6 +30,7 @@ The following commands allow you to easily navigate to repo's Github (sub)page.
|
|
28
30
|
|
29
31
|
## Worth sayin'
|
30
32
|
* Still has some rough edges. Needs tests, refactoring and various improvements.
|
33
|
+
* Since repo statistics data is cached, there's a possibilty that sometimes the commands might not return a result. If that happens, re-run the command in 10 seconds. That's plenty of time for Github to compute and cache the new statistics. Future releases will handle this more gracefully.
|
31
34
|
|
32
35
|
## Git semantic commits
|
33
36
|
If you'd like to improve your commit messages composition, take a look at [git-semantic-commits](https://github.com/fteem/git-semantic-commits). This can work nicely with the functionality that this gem provides.
|
data/Rakefile
CHANGED
data/lib/ghit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ghit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ile Eftimov
|
@@ -91,7 +91,6 @@ executables:
|
|
91
91
|
- git-open
|
92
92
|
- git-pulls
|
93
93
|
- git-punch-card
|
94
|
-
- git-stats
|
95
94
|
- git-wiki
|
96
95
|
extensions: []
|
97
96
|
extra_rdoc_files: []
|
@@ -99,6 +98,7 @@ files:
|
|
99
98
|
- .gitignore
|
100
99
|
- .rspec
|
101
100
|
- .ruby-version
|
101
|
+
- .travis.yml
|
102
102
|
- Gemfile
|
103
103
|
- LICENSE.txt
|
104
104
|
- README.md
|
@@ -109,7 +109,6 @@ files:
|
|
109
109
|
- bin/git-open
|
110
110
|
- bin/git-pulls
|
111
111
|
- bin/git-punch-card
|
112
|
-
- bin/git-stats
|
113
112
|
- bin/git-wiki
|
114
113
|
- ghit.gemspec
|
115
114
|
- lib/ghit.rb
|
@@ -118,7 +117,6 @@ files:
|
|
118
117
|
- lib/ghit/https_globals.rb
|
119
118
|
- lib/ghit/remote_extracter.rb
|
120
119
|
- lib/ghit/repo_locator.rb
|
121
|
-
- lib/ghit/repo_statistics.rb
|
122
120
|
- lib/ghit/ssh_globals.rb
|
123
121
|
- lib/ghit/stats.rb
|
124
122
|
- lib/ghit/stats/code_frequency.rb
|
data/bin/git-stats
DELETED
data/lib/ghit/repo_statistics.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
module Ghit
|
2
|
-
class RepoStatistics
|
3
|
-
def initialize
|
4
|
-
@globals = Ghit::Globals.new
|
5
|
-
end
|
6
|
-
|
7
|
-
def code_frequency
|
8
|
-
code_frequency = Github::Client::Repos::Statistics.new.code_frequency(user: @globals.author, repo: @globals.repository).body
|
9
|
-
puts "From:\t\tAdditions\tDeletions"
|
10
|
-
puts "-" * 41
|
11
|
-
code_frequency.each do |date, additions, deletions|
|
12
|
-
date = DateTime.strptime(date.to_s, "%s")
|
13
|
-
puts "#{date.to_date.to_s}\t#{Rainbow(additions).green}\t\t#{Rainbow(deletions).red}"
|
14
|
-
end
|
15
|
-
puts "-" * 41
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|