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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 88d4922b81a68658c9b38c254ad21a82520630de5283813869f9b2d319c603a7
4
- data.tar.gz: bf982b0ac1fd5e1de52d25a25824a695e6575f2eff81843d3b55a15d8d6d867e
3
+ metadata.gz: 63edd9fee282fe64a5689b5e3263aa294b39b19973f4f9f1a1d011790ef1ee73
4
+ data.tar.gz: 47110a5342b5c65954a3be04c987fc3352e7029cb3c0a42c06ef47d259a2dcbc
5
5
  SHA512:
6
- metadata.gz: 712a905e7e1687454e11d60a80ed8f73f29f0f484eb8ae6c04adae3cc0f59a18be363b59a1b61a041ff96d8f1dd34b40f1002accf6aafc07b766ece4c6f707bd
7
- data.tar.gz: ddfde891aed240185f897d6cecdacca210691540075fd97c86db8c8c33db5403bf30468a836f7de7daf26bfbf606bf7244e02762a507fcd7cdbbdd293bad5b8a
6
+ metadata.gz: 063a82476257ebc1be1d0de6670ce3777ceae3cba5a30d6dae9b4a9b5059dd7b53460c9bdec2b55e67637fec095f871e5a89af1504516632de85181b7f8088ec
7
+ data.tar.gz: 72ca7d7afda8c761220353b6ab85c6efce6d4321c749065a65e2441adf0da407dac9a5f0061b3d94c612eb5c7902796cc1650991e47b7a0ae2c9016c6348e06d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 3.3.0 / 2021-02-06
2
+
3
+ * [ENHANCEMENT] Update GithubStats dep
4
+
1
5
  # 3.2.0 / 2020-10-06
2
6
 
3
7
  * [ENHANCEMENT] Update GithubStats dep
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 << 'Supported types: ' + GithubChart.supported.join(' ')
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 STDIN.tty?
26
- contents = STDIN.read
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 'rubocop', '~> 0.76.0'
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
 
@@ -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 Metrics/LineLength
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
 
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Define the version
3
3
  module GithubChart
4
- VERSION = '3.2.0'.freeze
4
+ VERSION = '3.3.0'.freeze
5
5
  end
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.2.0
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: 2020-10-06 00:00:00.000000000 Z
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.8.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.8.0
54
+ version: 0.9.3
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rake
71
57
  requirement: !ruby/object:Gem::Requirement