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 +4 -4
- data/githubchart.gemspec +2 -2
- data/lib/githubchart/svg.rb +4 -4
- data/lib/githubchart/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb114426e241409fb568642781d0062c89ccd71e
|
4
|
+
data.tar.gz: 5c35d615ffc1db8630e52c54aa5d0e70877a3c0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
25
|
+
s.add_development_dependency 'rspec', '~> 3.1.0'
|
26
26
|
s.add_development_dependency 'fuubar', '~> 2.0.0'
|
27
27
|
end
|
28
28
|
|
data/lib/githubchart/svg.rb
CHANGED
@@ -69,9 +69,9 @@ module GithubChart
|
|
69
69
|
end
|
70
70
|
|
71
71
|
def svg_get_month_offsets
|
72
|
-
list = @stats.raw.
|
73
|
-
list
|
74
|
-
list.
|
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
|
84
|
+
next if offset > 51
|
85
85
|
chart.text(13 * offset + 14, 9, month, SVG_MONTH_STYLE)
|
86
86
|
end
|
87
87
|
end
|
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: 0.0.
|
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-
|
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.
|
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.
|
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.
|
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.
|
96
|
+
version: 3.1.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: fuubar
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|