githubchart 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circle-ruby +4 -3
- data/.prospectus +5 -19
- data/.travis.yml +8 -15
- data/CHANGELOG.md +4 -0
- data/README.md +1 -2
- data/bin/githubchart +1 -3
- data/githubchart.gemspec +8 -7
- data/lib/githubchart/svg.rb +8 -10
- data/lib/githubchart/version.rb +1 -1
- metadata +18 -20
- data/circle.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e48f3f535441ab20fe77836268a92837324868897746d1e1fad41058bf4e6267
|
4
|
+
data.tar.gz: 0b56932b2b156217e3da81a0f99ece4d2dbf0b5802bd456b066562d4fe9ca8ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc030737c81d2f3a47f48ce48f470ccf067a7c99bf88f0e427b05ab2544883dba87592d4ba8ca84e61a5e7fa04d94044243d1f33e92d2911faa3aa3e9c35fc75
|
7
|
+
data.tar.gz: 80bc87ebcb7330a88a508b958899ddf981b638ed714f18be9d434a6e6a0aef70c488c8dda403ee1093f12c06779f040de12cffbf2bc909243cae747ff12c9a89
|
data/.circle-ruby
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
2.
|
2
|
-
2.3
|
3
|
-
2.
|
1
|
+
2.6.1
|
2
|
+
2.5.3
|
3
|
+
2.4.5
|
4
|
+
2.3.8
|
data/.prospectus
CHANGED
@@ -1,25 +1,11 @@
|
|
1
|
-
Prospectus.extra_dep('file', 'prospectus_circleci')
|
2
|
-
|
3
1
|
my_slug = 'akerl/githubchart'
|
4
2
|
|
3
|
+
Prospectus.extra_dep('file', 'prospectus_travis')
|
4
|
+
Prospectus.extra_dep('file', 'prospectus_gems')
|
5
|
+
|
5
6
|
item do
|
6
7
|
noop
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
name 'gems'
|
11
|
-
|
12
|
-
expected do
|
13
|
-
static
|
14
|
-
set 'green'
|
15
|
-
end
|
16
|
-
|
17
|
-
actual do
|
18
|
-
gemnasium
|
19
|
-
slug my_slug
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
extend ProspectusCircleci::Build.new(my_slug)
|
9
|
+
extend ProspectusGems::Gemspec.new
|
10
|
+
extend ProspectusTravis::Build.new(my_slug)
|
25
11
|
end
|
data/.travis.yml
CHANGED
@@ -1,17 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
rvm
|
5
|
-
|
6
|
-
-
|
7
|
-
- 2.2.0
|
8
|
-
- 2.1.6
|
9
|
-
- 2.0.0-p598
|
10
|
-
- 1.9.3-p551
|
1
|
+
dist: xenial
|
2
|
+
install:
|
3
|
+
- for i in $(cat .circle-ruby) ; do rvm install $i || exit 1 ; done
|
4
|
+
- for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done
|
5
|
+
script:
|
6
|
+
- for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done
|
11
7
|
notifications:
|
12
8
|
email: false
|
13
|
-
|
14
|
-
|
15
|
-
- "%{repository}/%{branch}/%{build_number}: %{message} -- %{build_url}"
|
16
|
-
channels:
|
17
|
-
- irc.oftc.net#akerl
|
9
|
+
slack:
|
10
|
+
secure: XOIlpE54Yq450PGd3VI7atmVplX+WRmz+karIxlC+PEWgEbE3G9lCuIKez8OvJ+bS357KEsyF9k2ZhmaxJvQXKtMgQn6I7zBmjBRPm9xAb/ynFujquGsjW+OMAiP/3elq8DS6yvVYUDWBDgRv6SxHF/rLKliuSh4S8NrnuTyfokoWx4i/dIBQyujU6kmRW+2DIfkSY1wTyyb7Qo9HFH3ekOeJrYg+bK2Sm5HSLK+ATKpJ8nWvLirK8KIsQbCSj+Hkt61yBC+3pst51EUI5CwlHF1qxLy9T/eezY+bnUD/0WwcJX10co6K62+qykvN/4pKqYubfSsnYVmU3sZgk0FfRfBNOaYwai6mbZxxcFn4kIUOYoGTML/NTe7bu9dbtbHAM751x/V/tFM1V4m6xap451WQoommuMIcOuGS/OgzeOkc12VQ0X5nXM0DA20MOZKlMUJR+XlYu6derwIvOEOPlazZq8Ta4LQNrMaqax5IzJVyNsSqXMsEkpXDVSpvkwdXeBMy6X02ozNQOrcefoGGLhAtrnewyJnchDxhIy/aG2TUYx6qMGi/zxGr+yKyev2Op3Qwg8FAhJ2Nk3Noa+Tm9ZErcfKhVykowGFYdBurD0M+9eouz4LRQP+JOfvUjmdduEZ9H+uzTou3OCr3pCj+6PLltQRT7C7hNz1YCzocUc=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,8 +2,7 @@ GithubChart
|
|
2
2
|
============
|
3
3
|
|
4
4
|
[![Gem Version](https://img.shields.io/gem/v/githubchart.svg)](https://rubygems.org/gems/githubchart)
|
5
|
-
[![
|
6
|
-
[![Build Status](https://img.shields.io/circleci/project/akerl/githubchart/master.svg)](https://circleci.com/gh/akerl/githubchart)
|
5
|
+
[![Build Status](https://img.shields.io/travis/com/akerl/githubchart.svg)](https://travis-ci.com/akerl/githubchart)
|
7
6
|
[![Coverage Status](https://img.shields.io/codecov/c/github/akerl/githubchart.svg)](https://codecov.io/github/akerl/githubchart)
|
8
7
|
[![Code Quality](https://img.shields.io/codacy/e8ee7e2aba4c4a01b93d5c0493bef68b.svg)](https://www.codacy.com/app/akerl/githubchart)
|
9
8
|
[![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
|
data/bin/githubchart
CHANGED
@@ -21,7 +21,6 @@ OptionParser.new do |opts|
|
|
21
21
|
if options.include? :user
|
22
22
|
raise 'The --user and --input flags are incompatible with each other.'
|
23
23
|
end
|
24
|
-
|
25
24
|
if input.eql? '-'
|
26
25
|
raise 'No data provided on stdin' if STDIN.tty?
|
27
26
|
contents = STDIN.read
|
@@ -29,13 +28,11 @@ OptionParser.new do |opts|
|
|
29
28
|
raise 'File does not exist' unless File.exist? input
|
30
29
|
contents = File.read input
|
31
30
|
end
|
32
|
-
|
33
31
|
begin
|
34
32
|
parsed = JSON.parse(contents)
|
35
33
|
rescue StandardError => e
|
36
34
|
raise "Unable to parse JSON data provided: #{e}"
|
37
35
|
end
|
38
|
-
|
39
36
|
options[:data] = GithubStats::Data.new(parsed)
|
40
37
|
end
|
41
38
|
opts.on('-cSCHEME', '--colors SCHEME', 'Pick a color scheme') do |scheme|
|
@@ -61,6 +58,7 @@ OptionParser.new do |opts|
|
|
61
58
|
exit
|
62
59
|
end
|
63
60
|
end.parse!
|
61
|
+
# rubocop:enable Metrics/BlockLength
|
64
62
|
|
65
63
|
SVG_Path = ARGV.shift
|
66
64
|
|
data/githubchart.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
require 'English'
|
2
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
2
3
|
require 'githubchart/version'
|
3
4
|
|
4
5
|
Gem::Specification.new do |s|
|
@@ -16,14 +17,14 @@ Gem::Specification.new do |s|
|
|
16
17
|
s.test_files = `git ls-files spec/*`.split
|
17
18
|
s.executables = ['githubchart']
|
18
19
|
|
19
|
-
s.add_runtime_dependency 'githubstats', '~>
|
20
|
+
s.add_runtime_dependency 'githubstats', '~> 3.0.2'
|
20
21
|
s.add_runtime_dependency 'svgplot', '~> 1.0.0'
|
21
22
|
|
22
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
23
|
-
s.add_development_dependency 'goodcop', '~> 0.
|
24
|
-
s.add_development_dependency 'rake', '~>
|
23
|
+
s.add_development_dependency 'rubocop', '~> 0.76.0'
|
24
|
+
s.add_development_dependency 'goodcop', '~> 0.8.0'
|
25
|
+
s.add_development_dependency 'rake', '~> 13.0.0'
|
25
26
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
26
|
-
s.add_development_dependency 'rspec', '~> 3.
|
27
|
-
s.add_development_dependency 'fuubar', '~> 2.
|
27
|
+
s.add_development_dependency 'rspec', '~> 3.9.0'
|
28
|
+
s.add_development_dependency 'fuubar', '~> 2.5.0'
|
28
29
|
end
|
29
30
|
|
data/lib/githubchart/svg.rb
CHANGED
@@ -36,33 +36,31 @@ module GithubChart
|
|
36
36
|
chart.to_s
|
37
37
|
end
|
38
38
|
|
39
|
-
# rubocop:disable Style/HashSyntax, Lint/UnneededDisable
|
40
|
-
|
41
39
|
##
|
42
40
|
# Define shared label style
|
43
41
|
|
44
42
|
SVG_SHARED_STYLE = {
|
45
|
-
:
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
43
|
+
fill: '#767676',
|
44
|
+
'text-anchor': 'start',
|
45
|
+
'text-align': 'center',
|
46
|
+
'font-family': '-apple-system, BlinkMacSystemFont, \'Segoe UI\', Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\'', # rubocop:disable Metrics/LineLength
|
47
|
+
'white-space': 'nowrap'
|
50
48
|
}.freeze
|
51
49
|
|
52
50
|
##
|
53
51
|
# Define style for weekday labels
|
54
52
|
|
55
|
-
SVG_WEEKDAY_STYLE = SVG_SHARED_STYLE.dup.merge(
|
53
|
+
SVG_WEEKDAY_STYLE = SVG_SHARED_STYLE.dup.merge('font-size': '9px').freeze
|
56
54
|
|
57
55
|
##
|
58
56
|
# Define Style for month labels
|
59
57
|
|
60
|
-
SVG_MONTH_STYLE = SVG_SHARED_STYLE.dup.merge(
|
58
|
+
SVG_MONTH_STYLE = SVG_SHARED_STYLE.dup.merge('font-size': '10px').freeze
|
61
59
|
|
62
60
|
def svg_point_style(point)
|
63
61
|
{
|
64
62
|
fill: @colors[@stats.quartile(point.score)],
|
65
|
-
|
63
|
+
'shape-rendering': 'crispedges'
|
66
64
|
}
|
67
65
|
end
|
68
66
|
|
data/lib/githubchart/version.rb
CHANGED
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: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: githubstats
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 3.0.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: svgplot
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,42 +44,42 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.76.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.76.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: goodcop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.8.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.8.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 13.0.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:
|
82
|
+
version: 13.0.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: codecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 3.
|
103
|
+
version: 3.9.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 3.
|
110
|
+
version: 3.9.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: fuubar
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.
|
117
|
+
version: 2.5.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: 2.
|
124
|
+
version: 2.5.0
|
125
125
|
description: Uses GithubStats to grab Github contributions scores and converts that
|
126
126
|
into an SVG
|
127
127
|
email: me@lesaker.org
|
@@ -142,7 +142,6 @@ files:
|
|
142
142
|
- README.md
|
143
143
|
- Rakefile
|
144
144
|
- bin/githubchart
|
145
|
-
- circle.yml
|
146
145
|
- examples/chart.svg
|
147
146
|
- examples/other_user.svg
|
148
147
|
- githubchart.gemspec
|
@@ -157,7 +156,7 @@ homepage: https://github.com/akerl/githubchart
|
|
157
156
|
licenses:
|
158
157
|
- MIT
|
159
158
|
metadata: {}
|
160
|
-
post_install_message:
|
159
|
+
post_install_message:
|
161
160
|
rdoc_options: []
|
162
161
|
require_paths:
|
163
162
|
- lib
|
@@ -172,9 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
171
|
- !ruby/object:Gem::Version
|
173
172
|
version: '0'
|
174
173
|
requirements: []
|
175
|
-
|
176
|
-
|
177
|
-
signing_key:
|
174
|
+
rubygems_version: 3.1.2
|
175
|
+
signing_key:
|
178
176
|
specification_version: 4
|
179
177
|
summary: Generate an SVG of Github contributions data
|
180
178
|
test_files:
|
data/circle.yml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
dependencies:
|
2
|
-
override:
|
3
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i gem update --system --no-doc || exit 1 ; done'
|
4
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
|
5
|
-
test:
|
6
|
-
override:
|
7
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done'
|