githubstats 0.2.18 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90f7d010415dccad49d98facb981e7697dcc1a04
4
- data.tar.gz: 7c203688bc2aa5c265d7632d770cac39b674a1f0
3
+ metadata.gz: a8fcc1bfccab9560ddc96b3697b0e85be337cf05
4
+ data.tar.gz: b7450562a5f1ed71da62c9350eb2b2c1e0ce0ff1
5
5
  SHA512:
6
- metadata.gz: 7ee98e8eb18799989fcc81f0f31e712e4e367f7ca05a8699ecef955a2cdc42354370062bc7bc514530d5e9e75ae8ed91c1b74de17503a8863637e33c69df7aab
7
- data.tar.gz: 42438b044de78fed7a43389d89f5a96c537d57bc764a404f6f1b49bdb3fadb9a5ce8e4b47b2f3c6c2c9fc4ed913119801dc20af33fb6810013d3ad93c6445a7b
6
+ metadata.gz: b6a800c7df5de40509861207ed9bc3c427b2ffb28546b7e96ca492b1e4a47d98c8375fcd0de9e6cb702af02a87db0ca225b344a6603a4369a62401f598a3536f
7
+ data.tar.gz: 0af4dc52be5b355c68df764f4f6c4bfbd63a6af3aa5ae95d90b6dbc17b547f31eb7ebbc20384551b0b82a8f3b9a9e61fdf284cf2434452ee7f988338d9eca946
data/.travis.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  language: ruby
2
2
  cache: bundler
3
+ sudo: false
3
4
  rvm:
4
- - 2.1.2
5
- - 2.1.1
6
- - 2.1.0
7
- - 2.0.0
8
- - 1.9.3
5
+ - 2.2.0
6
+ - 2.1.5
7
+ - 2.0.0-p598
8
+ - 1.9.3-p551
9
9
  env:
10
10
  - WITH_RUGGED=no
11
11
  - WITH_RUGGED=yes
@@ -15,6 +15,6 @@ notifications:
15
15
  email: false
16
16
  irc:
17
17
  channels:
18
- - secure: YQqAJcDMy2Dn54HUly9J9dZhrogEL/wkNVsay0lt06a+Iosw25ba1VKWA8gjmozd3x2LzhEtWyN0zxzGrVXznbtB00lW1l8V8WeM3KRxzC/ymCS4PhqGgGPDnStiAtUFvXkeMihUGcEjSbD0U3s8tpmVttcdQQVhUjSHquomYw8=
18
+ - irc.oftc.net#akerl
19
19
  template:
20
20
  - "%{repository}/%{branch}/%{build_number}: %{message} -- %{build_url}"
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # 1.0.0 / 2015-02-09
2
+
3
+ * [ENHANCEMENT] Stabilized API
4
+
data/README.md CHANGED
@@ -12,6 +12,8 @@ Grabs Github contribution statistics and presents it in an easily consumable for
12
12
 
13
13
  ## Usage
14
14
 
15
+ Details of the methods provided for accessing data can be found [on RubyDoc.info](http://www.rubydoc.info/github/akerl/githubstats/)
16
+
15
17
  A script is provided that uses the module to provide an overview of your contributions:
16
18
 
17
19
  ```
@@ -35,18 +37,22 @@ stats = GithubStats.new('akerl')
35
37
  puts stats.data.today # Prints today's current score
36
38
  ```
37
39
 
40
+ ### Username detection
41
+
38
42
  The username is taken from the argument passed to .new(). If no username is provided, it will try to use Rugged (https://github.com/libgit2/rugged) to load the Github username from your git configuration. If Rugged isn't installed or no Github username is set, it falls back to the current session's user, pulled via ENV.
39
43
 
40
44
  ```
41
45
  # whoami
42
46
  akerl
43
47
 
44
- # head -2 .gitconfig
45
- [github]
46
- user = fly
47
-
48
- # gem list | grep rugged
49
- rugged (0.19.0)
48
+ # githubstats
49
+ Contribution data for akerl:
50
+ Today's score: 9
51
+ Current streak: 32
52
+ Longest streak: 32
53
+ High score: 50 on 2013-07-14
54
+ Quartile boundaries: [0, 3, 8, 12, 50]
55
+ ▁▁▁▆▁▂▁▁▅▄▁▃▂▁▁▃▁▁▁▁▄▁▂▃█▇▃▁▃▃▂▁▃▂▁▁▁▁▁▁▂▁▁▁▁▂▂▁▃▁▂▁▆▃▂▂▁▁▁▅
50
56
 
51
57
  # githubstats mikegrb
52
58
  Contribution data for mikegrb:
@@ -57,6 +63,15 @@ Contribution data for mikegrb:
57
63
  Quartile boundaries: [0, 2, 5, 8, 23]
58
64
  ▁▁▂▂▂▁▁▁▁▃▁▁▄▁▁▁▄▂▁▂▄▁▁▂▄▃▂▁▁▁▁▁▄▃▁▁▁▁█▄▃▂▄▁▁▁▁▃▁▂▁▁▁▁▁▅▂▁▁▁
59
65
 
66
+ # head -2 .gitconfig
67
+ [github]
68
+ user = fly
69
+
70
+ # gem install rugged
71
+ Building native extensions. This could take a while...
72
+ Successfully installed rugged-0.21.4
73
+ 1 gem installed
74
+
60
75
  # githubstats
61
76
  Contribution data for fly:
62
77
  Today's score: 0
@@ -66,19 +81,6 @@ Contribution data for fly:
66
81
  Quartile boundaries: [0, 3, 8, 12, 28]
67
82
  ▁▁▁▁▂▁▁▁▁▁▁▁▁▁▁▁▄▁▁▃▂▁▆▄▁▁▂▄▃▃▁▁▁▁▁▁▆▂▆▄▄▄▁▁▂█▁▄▆▂▁▄▄▄█▄▁▄▂▁
68
83
 
69
- # gem uninstall rugged
70
- Successfully uninstalled rugged-0.19.0
71
-
72
- # githubstats
73
- Contribution data for akerl:
74
- Today's score: 9
75
- Current streak: 32
76
- Longest streak: 32
77
- High score: 50 on 2013-07-14
78
- Quartile boundaries: [0, 3, 8, 12, 50]
79
- ▁▁▁▆▁▂▁▁▅▄▁▃▂▁▁▃▁▁▁▁▄▁▂▃█▇▃▁▃▃▂▁▃▂▁▁▁▁▁▁▂▁▁▁▁▂▂▁▃▁▂▁▆▃▂▂▁▁▁▅
80
-
81
- #
82
84
  ```
83
85
 
84
86
  ## Installation
data/githubstats.gemspec CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency 'nokogiri', '~> 1.6.5'
23
23
 
24
24
  s.add_development_dependency 'timecop', '~> 0.7.1'
25
- s.add_development_dependency 'rubocop', '~> 0.28.0'
25
+ s.add_development_dependency 'rubocop', '~> 0.29.0'
26
26
  s.add_development_dependency 'rake', '~> 10.4.0'
27
27
  s.add_development_dependency 'coveralls', '~> 0.7.1'
28
- s.add_development_dependency 'rspec', '~> 3.1.0'
28
+ s.add_development_dependency 'rspec', '~> 3.2.0'
29
29
  s.add_development_dependency 'fuubar', '~> 2.0.0'
30
30
  end
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Define the version
3
3
  module GithubStats
4
- VERSION = '0.2.18'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: githubstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.18
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-22 00:00:00.000000000 Z
11
+ date: 2015-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.28.0
75
+ version: 0.29.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.28.0
82
+ version: 0.29.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 3.1.0
117
+ version: 3.2.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 3.1.0
124
+ version: 3.2.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: fuubar
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -148,6 +148,7 @@ files:
148
148
  - ".rspec"
149
149
  - ".rubocop.yml"
150
150
  - ".travis.yml"
151
+ - CHANGELOG.md
151
152
  - Gemfile
152
153
  - LICENSE
153
154
  - README.md
@@ -188,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  version: '0'
189
190
  requirements: []
190
191
  rubyforge_project:
191
- rubygems_version: 2.2.2
192
+ rubygems_version: 2.4.5
192
193
  signing_key:
193
194
  specification_version: 4
194
195
  summary: Present Github contributions stats in a consumable format