githubchart 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/githubchart +5 -9
- data/githubchart.gemspec +1 -2
- data/lib/githubchart.rb +1 -3
- data/lib/githubchart/svg.rb +1 -1
- data/lib/githubchart/version.rb +1 -1
- metadata +4 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63edd9fee282fe64a5689b5e3263aa294b39b19973f4f9f1a1d011790ef1ee73
|
4
|
+
data.tar.gz: 47110a5342b5c65954a3be04c987fc3352e7029cb3c0a42c06ef47d259a2dcbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 063a82476257ebc1be1d0de6670ce3777ceae3cba5a30d6dae9b4a9b5059dd7b53460c9bdec2b55e67637fec095f871e5a89af1504516632de85181b7f8088ec
|
7
|
+
data.tar.gz: 72ca7d7afda8c761220353b6ab85c6efce6d4321c749065a65e2441adf0da407dac9a5f0061b3d94c612eb5c7902796cc1650991e47b7a0ae2c9016c6348e06d
|
data/CHANGELOG.md
CHANGED
data/bin/githubchart
CHANGED
@@ -10,20 +10,16 @@ render_type = 'svg'.freeze
|
|
10
10
|
OptionParser.new do |opts|
|
11
11
|
opts.banner =
|
12
12
|
"Usage: githubchart (-u username) (-t type) path/for/new/image\n"
|
13
|
-
opts.banner <<
|
13
|
+
opts.banner << "Supported types: #{GithubChart.supported.join(' ')}"
|
14
14
|
opts.on('-uUSER', '--user=USER', 'Specify GitHub user to graph') do |user|
|
15
|
-
if options.include? :input
|
16
|
-
raise 'The --user and --input flags are incompatible with each other.'
|
17
|
-
end
|
15
|
+
raise('The --user and --input flags are incompatible with each other.') if options.include? :input
|
18
16
|
options[:user] = user
|
19
17
|
end
|
20
18
|
opts.on('-iFILE', '--input=FILE', 'Specify JSON file, - for stdin') do |input|
|
21
|
-
if options.include? :user
|
22
|
-
raise 'The --user and --input flags are incompatible with each other.'
|
23
|
-
end
|
19
|
+
raise('The --user and --input flags are incompatible with each other.') if options.include? :user
|
24
20
|
if input.eql? '-'
|
25
|
-
raise 'No data provided on stdin' if
|
26
|
-
contents =
|
21
|
+
raise 'No data provided on stdin' if $stdin.tty?
|
22
|
+
contents = $stdin.read
|
27
23
|
else
|
28
24
|
raise 'File does not exist' unless File.exist? input
|
29
25
|
contents = File.read input
|
data/githubchart.gemspec
CHANGED
@@ -20,8 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.add_runtime_dependency 'githubstats', '~> 3.1.0'
|
21
21
|
s.add_runtime_dependency 'svgplot', '~> 1.0.0'
|
22
22
|
|
23
|
-
s.add_development_dependency '
|
24
|
-
s.add_development_dependency 'goodcop', '~> 0.8.0'
|
23
|
+
s.add_development_dependency 'goodcop', '~> 0.9.3'
|
25
24
|
s.add_development_dependency 'rake', '~> 13.0.0'
|
26
25
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
27
26
|
s.add_development_dependency 'rspec', '~> 3.9.0'
|
data/lib/githubchart.rb
CHANGED
@@ -64,9 +64,7 @@ module GithubChart
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def render(type)
|
67
|
-
unless GithubChart.supports? type
|
68
|
-
raise NameError, "Format #{type} is unsupported."
|
69
|
-
end
|
67
|
+
raise(NameError, "Format #{type} is unsupported.") unless GithubChart.supports? type
|
70
68
|
send("render_#{type}".to_sym)
|
71
69
|
end
|
72
70
|
|
data/lib/githubchart/svg.rb
CHANGED
@@ -43,7 +43,7 @@ module GithubChart
|
|
43
43
|
fill: '#767676',
|
44
44
|
'text-anchor': 'start',
|
45
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
|
46
|
+
'font-family': '-apple-system, BlinkMacSystemFont, \'Segoe UI\', Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\', \'Segoe UI Symbol\'', # rubocop:disable Layout/LineLength
|
47
47
|
'white-space': 'nowrap'
|
48
48
|
}.freeze
|
49
49
|
|
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.
|
4
|
+
version: 3.3.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:
|
11
|
+
date: 2021-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: githubstats
|
@@ -38,34 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rubocop
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 0.76.0
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 0.76.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: goodcop
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
47
|
+
version: 0.9.3
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
54
|
+
version: 0.9.3
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rake
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|