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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmU0ZGY0YTFiYWMyMzk0MWUwYTFlNTM3NGZjYzYwNTFhYzM5Y2MxNA==
4
+ YmU0YTFhYjg2ZWZlYjc4NGNhMDNhODVmMDgyY2YxOTA0ZGM2Mjc0MA==
5
5
  data.tar.gz: !binary |-
6
- NDc2NGEyMjM4MjE0ZTdhNGJiZGRlNWZkYmNjNTUyOTAyZDU1NGI3MQ==
6
+ NzA0ZDc1ZTFiMjRjNzlmZTZiN2JjMTg3Mjk4MTU2OWExYTIyNTFkOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzdkMzY2ZWRmNTNjNjgyYTIxNjE2MDc4ZGM0NjdmNjJmYjQzOGE3YjY3OWIz
10
- YTllYWJiZjgwYzllNDkzOTA0ZmViY2IzMzBiOGIxYjI0ZjZlM2NjNWMzOTlk
11
- ZTY2Nzk5MmNiZTdlNjI4NzM4Y2YwMzI5OGY2ZGRhMzgzYmQ2ZTE=
9
+ ODY0ZTk4MjAwYTMyNGQ5YWJiNDYxMGZhNWNlZjNkNDAyZjcyZmViODc4MzUx
10
+ YzVkODgxMjU1MjIzNjU3ZTc5ZmMzZjkyNGZiOGU0NzE1YjU0NmRkNmMxMTcx
11
+ YTI1MDNmNDY1MjA5YzQwZDUwMmJiNTE4NzZlNDYzMzBkMGMxZTY=
12
12
  data.tar.gz: !binary |-
13
- MThjNTg4ZjcyODRhNTY5MzUzNjk0OTFiODgzZTFjYmE2ZjVlZGJiYzNmMTRh
14
- NDA0OWVjZTBmODBlYWUyM2RkNmVmMThlODg2MWVjOGVkZTQ0NjUzY2U1NTEx
15
- Yzc2OWVhMmM3YTcwNmJiMzU5M2M3OGJkNzJlMmJlMTBmYjhmOWY=
13
+ ZjVlMGFjNjkwNjhhODZlYTY4YTM4NTcwNWRiYTNmNWIyNWUyY2UzYjNiNTNj
14
+ YWIwM2E5OGNmNTM1MTkzZWRjNzc1MzgwMzgwNTk0NzAwZWJiMjZlNmVmMjRj
15
+ Zjc5MGVkMDZkZWNkM2U1NDkyZDY4MzRjNTIzNWYwZTgxMzY3MjA=
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ - 2.1.0
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  Ghit
2
2
  =============
3
+ [![Build Status](https://travis-ci.org/fteem/ghit.svg?branch=master)](https://travis-ci.org/fteem/ghit)
4
+ [![Code Climate](https://codeclimate.com/github/fteem/ghit/badges/gpa.svg)](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
@@ -1 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
+ require "bundler/gem_tasks"
3
+ require 'rspec/core/rake_task'
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ task :default => :spec
data/lib/ghit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ghit
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- path = File.expand_path(File.dirname(__FILE__))
3
- $:<< "#{path}/../lib"
4
-
5
- require 'ghit'
6
- Ghit::RepoStatistics.new.code_frequency
@@ -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