googlecharts 1.6.10 → 1.6.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/googlecharts.gemspec +2 -1
- data/lib/gchart.rb +2 -1
- data/lib/gchart/version.rb +1 -1
- data/spec/gchart_spec.rb +6 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa6cc0f0e71b51d4dcc1583a1b0a14b4015a41e3
|
4
|
+
data.tar.gz: 083b34ae2a25223b6c56d8a0b9ceefb665e95597
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f68d4956480164bcee5e66c5d3de359023e355e21a9079b5318f740b321706969040ecfd1236c778e365330da55dc65292fa1bf6774262dab66fff111d29f2c5
|
7
|
+
data.tar.gz: e972de17e3f51432b417394d83ab2dd4a715c958bf7bd9c50d2eb3cd43f18bcfd8d6cbd634a23c91377b5c4253923211b5edf5b39e1395e338fbcb12d519968b
|
data/History.txt
CHANGED
data/googlecharts.gemspec
CHANGED
@@ -7,11 +7,12 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = GchartInfo::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Matt Aimonetti", "Andrey Deryabin", "Pedro Pimentel"]
|
10
|
-
s.date = %q{
|
10
|
+
s.date = %q{2015-08-12}
|
11
11
|
s.summary = %q{Generate charts using Google API & Ruby}
|
12
12
|
s.description = %q{Generate charts using Google API & Ruby}
|
13
13
|
s.email = %q{mattaimonetti@gmail.com deriabin@gmail.com zukunft@gmail.com}
|
14
14
|
s.homepage = %q{http://googlecharts.rubyforge.org/}
|
15
|
+
s.license = 'MIT'
|
15
16
|
|
16
17
|
s.files = `git ls-files`.split("\n")
|
17
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/gchart.rb
CHANGED
@@ -19,7 +19,7 @@ class Gchart
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def self.types
|
22
|
-
@types ||= ['line', 'line_xy', 'scatter', 'bar', 'venn', 'pie', 'pie_3d', 'jstize', 'sparkline', 'meter', 'map', 'radar']
|
22
|
+
@types ||= ['line', 'line_xy', 'scatter', 'bar', 'venn', 'pie', 'pie_3d', 'pie_c', 'jstize', 'sparkline', 'meter', 'map', 'radar']
|
23
23
|
end
|
24
24
|
|
25
25
|
def self.simple_chars
|
@@ -528,6 +528,7 @@ class Gchart
|
|
528
528
|
when 'line' then "lc"
|
529
529
|
when 'line_xy' then "lxy"
|
530
530
|
when 'pie_3d' then "p3"
|
531
|
+
when 'pie_c' then "pc"
|
531
532
|
when 'pie' then "p"
|
532
533
|
when 'venn' then "v"
|
533
534
|
when 'scatter' then "s"
|
data/lib/gchart/version.rb
CHANGED
data/spec/gchart_spec.rb
CHANGED
@@ -227,6 +227,12 @@ describe "generating different type of charts" do
|
|
227
227
|
expect(Gchart.pie).to include('cht=p')
|
228
228
|
end
|
229
229
|
|
230
|
+
it "should be able to generate a Concentric Pie Chart" do
|
231
|
+
expect(Gchart.pie_c).to be_an_instance_of(String)
|
232
|
+
expect(Gchart.pie_c).to include('cht=pc')
|
233
|
+
expect(Gchart.pie_c(size: '240x240', data: [[-1], [2,3]])).to include('-1|1,2,3')
|
234
|
+
end
|
235
|
+
|
230
236
|
it "should be able to generate a Google-O-Meter" do
|
231
237
|
expect(Gchart.meter).to be_an_instance_of(String)
|
232
238
|
expect(Gchart.meter).to include('cht=gom')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: googlecharts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Aimonetti
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: Generate charts using Google API & Ruby
|
16
16
|
email: mattaimonetti@gmail.com deriabin@gmail.com zukunft@gmail.com
|
@@ -40,7 +40,8 @@ files:
|
|
40
40
|
- spec/spec_helper.rb
|
41
41
|
- spec/theme_spec.rb
|
42
42
|
homepage: http://googlecharts.rubyforge.org/
|
43
|
-
licenses:
|
43
|
+
licenses:
|
44
|
+
- MIT
|
44
45
|
metadata: {}
|
45
46
|
post_install_message:
|
46
47
|
rdoc_options: []
|
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
59
|
version: '0'
|
59
60
|
requirements: []
|
60
61
|
rubyforge_project:
|
61
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.4.8
|
62
63
|
signing_key:
|
63
64
|
specification_version: 4
|
64
65
|
summary: Generate charts using Google API & Ruby
|