githubchart 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/githubchart +1 -5
- data/githubchart.gemspec +1 -1
- data/lib/githubchart.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b47690925166fce2d487092fac9c9e74d4031cde
|
4
|
+
data.tar.gz: 17ef0e49926fd81b1a93757792d3edcf019f6cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a102d9ea7dbf0bb567970cd0feed23c383953c0e45c00ef4a1f1ed99872bbe56b84d9ff615756d863511f3e0bb70370bc50bed423d28d04ef777b9926a3f14bb
|
7
|
+
data.tar.gz: 0f0cd5d961b3e0b092e6427522fcffd2ade08f5ba6f96d3b788faa2c9a3813c56bdea7e1d582135e458c40a60883fc44a94f9cae4b0e7f5eab065f0226d1eaf9
|
data/Gemfile.lock
CHANGED
data/bin/githubchart
CHANGED
@@ -8,11 +8,7 @@ OptionParser.new do |opts|
|
|
8
8
|
opts.banner =
|
9
9
|
"Usage: githubchart (-u username) (-t type) path/for/new/image\n"
|
10
10
|
opts.banner << 'Supported types: ' + GithubChart.supported.join(' ')
|
11
|
-
opts.on('-
|
12
|
-
opts.on('-tTYPE', '--type=TYPE') do |type|
|
13
|
-
abort 'That type is not supported' unless GithubChart.supports? type
|
14
|
-
options[:type] = type.to_sym
|
15
|
-
end
|
11
|
+
opts.on('-uUSER', '--user=USER') { |user| options[:user] = user }
|
16
12
|
end.parse!
|
17
13
|
|
18
14
|
SVG_Path = ARGV.shift
|
data/githubchart.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'githubchart'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.3'
|
4
4
|
s.date = Time.now.strftime("%Y-%m-%d")
|
5
5
|
s.summary = 'Generate an SVG of Github contributions data'
|
6
6
|
s.description = "Uses GithubStats to grab Github contributions scores and converts that into an SVG"
|
data/lib/githubchart.rb
CHANGED
@@ -57,7 +57,7 @@ module GithubChart
|
|
57
57
|
|
58
58
|
def initialize(params = {})
|
59
59
|
params = { username: params } unless params.is_a? Hash
|
60
|
-
@stats = GithubStats.new(params[
|
60
|
+
@stats = GithubStats.new(params[:username])
|
61
61
|
@colors = params['colors'] || GithubChart::COLORS
|
62
62
|
end
|
63
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: githubchart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: githubstats
|