githubchart 0.0.2 → 0.0.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1804c1a1b3b18c94f410703a8f541b8e60c95e93
4
- data.tar.gz: 2dfc34c2e0da6cf3538cb6f5b120f20deacde2ac
3
+ metadata.gz: b47690925166fce2d487092fac9c9e74d4031cde
4
+ data.tar.gz: 17ef0e49926fd81b1a93757792d3edcf019f6cd2
5
5
  SHA512:
6
- metadata.gz: 66029000faa0e132939387b9f7472a7897b195c6ddeba64dbf5e21a9dfec4b96b84f66b3be7f026d18138df8829eaed0c3ba5f64081ddc2e9385f2f4182d3cc9
7
- data.tar.gz: b9f9cac1c594679fcc0eaced8c51c3ce7dc0fcb8088bcff05e110349683b5fddebbac1a931c0f6397802960cc208da3ecb411d30e345374af52aaa37e802e50c
6
+ metadata.gz: a102d9ea7dbf0bb567970cd0feed23c383953c0e45c00ef4a1f1ed99872bbe56b84d9ff615756d863511f3e0bb70370bc50bed423d28d04ef777b9926a3f14bb
7
+ data.tar.gz: 0f0cd5d961b3e0b092e6427522fcffd2ade08f5ba6f96d3b788faa2c9a3813c56bdea7e1d582135e458c40a60883fc44a94f9cae4b0e7f5eab065f0226d1eaf9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- githubchart (0.0.2)
4
+ githubchart (0.0.3)
5
5
  githubstats
6
6
  rasem
7
7
 
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('-uNAME', '--user=NAME') { |user| options[:user] = user }
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.2'
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['username'])
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.2
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-02 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: githubstats