githubchart 0.0.9 → 0.0.10

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
  SHA1:
3
- metadata.gz: 2ce1b300e2b8d0ee88babf12580e7ae263a6007b
4
- data.tar.gz: 83ebd68b4ff9988003c4cbac5ba7702e9e4ddbcc
3
+ metadata.gz: bb114426e241409fb568642781d0062c89ccd71e
4
+ data.tar.gz: 5c35d615ffc1db8630e52c54aa5d0e70877a3c0a
5
5
  SHA512:
6
- metadata.gz: 9e6e1e7ea6a511bf4ca6bf1956c713c91033852d2d48055fe3ca573fb8014c94511417f047d2bda4b2b18bc9e41d618d80cb64d7ead634daef70abe9a44832f8
7
- data.tar.gz: a2aeddf4771ee7aa7692a69d057433695bf7a6e719e29e6d74a261a7fdef17fdddbce57eedf5f038e099f4a2665735e5e0840ce425eece123b2db47e47f31d7d
6
+ metadata.gz: b7ce918bd5b7dd1f745e42f37a7d67d2965ee34db18ff477381c379991b0c7b430de1651fd1b9905392c459e93eabd7042b5a6d0605d4523eaef1c5cee59e169
7
+ data.tar.gz: 6fbf595c362bd9773d394a7dfd2d27757d7c10d2f476b213acbb71621c755485f1385dfceb65a17fa882c955b1ada2209212c890e3b74b62fd01e6c9bc1f4586
data/githubchart.gemspec CHANGED
@@ -19,10 +19,10 @@ Gem::Specification.new do |s|
19
19
  s.add_runtime_dependency 'githubstats', '~> 0.2.14'
20
20
  s.add_runtime_dependency 'rasem', '~> 0.6.1'
21
21
 
22
- s.add_development_dependency 'rubocop', '~> 0.25.0'
22
+ s.add_development_dependency 'rubocop', '~> 0.26.0'
23
23
  s.add_development_dependency 'rake', '~> 10.3.2'
24
24
  s.add_development_dependency 'coveralls', '~> 0.7.1'
25
- s.add_development_dependency 'rspec', '~> 3.0.0'
25
+ s.add_development_dependency 'rspec', '~> 3.1.0'
26
26
  s.add_development_dependency 'fuubar', '~> 2.0.0'
27
27
  end
28
28
 
@@ -69,9 +69,9 @@ module GithubChart
69
69
  end
70
70
 
71
71
  def svg_get_month_offsets
72
- list = @stats.raw.group_by { |x| x.date.strftime('%Y%U').split('-') }
73
- list = list.map { |_, v| v.first.date.strftime('%b') }
74
- list.shift if list[0] == list[1]
72
+ list = @stats.raw.select { |x| x.date.sunday? }
73
+ list.unshift(@stats.raw.first) unless @stats.raw.first.date.sunday?
74
+ list.map! { |x| x.date.strftime('%b') }
75
75
  acc = 0
76
76
  list.chunk { |x| x }.map do |month, offset|
77
77
  acc += offset.size
@@ -81,7 +81,7 @@ module GithubChart
81
81
 
82
82
  def svg_add_months(chart)
83
83
  svg_get_month_offsets.each do |month, offset|
84
- next if offset > 51 || offset < 1
84
+ next if offset > 51
85
85
  chart.text(13 * offset + 14, 9, month, SVG_MONTH_STYLE)
86
86
  end
87
87
  end
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Define the version
3
3
  module GithubChart
4
- VERSION = '0.0.9'
4
+ VERSION = '0.0.10'
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: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-02 00:00:00.000000000 Z
11
+ date: 2014-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: githubstats
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.25.0
47
+ version: 0.26.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.25.0
54
+ version: 0.26.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.0.0
89
+ version: 3.1.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 3.0.0
96
+ version: 3.1.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: fuubar
99
99
  requirement: !ruby/object:Gem::Requirement