googlecharts 1.6.8 → 1.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +4 -1
- data/.travis.yml +8 -0
- data/Gemfile +10 -0
- data/History.txt +10 -0
- data/README.markdown +6 -1
- data/Rakefile +12 -1
- data/googlecharts.gemspec +4 -3
- data/lib/gchart/aliases.rb +0 -1
- data/lib/gchart/version.rb +1 -1
- data/lib/gchart.rb +43 -21
- data/spec/gchart_spec.rb +224 -212
- data/spec/theme_spec.rb +8 -8
- metadata +26 -45
data/spec/theme_spec.rb
CHANGED
@@ -3,32 +3,32 @@ require File.dirname(__FILE__) + '/../lib/gchart'
|
|
3
3
|
|
4
4
|
describe "generating a default Gchart" do
|
5
5
|
it 'should be able to add additional theme files' do
|
6
|
-
Chart::Theme.theme_files.
|
6
|
+
expect(Chart::Theme.theme_files).not_to include("#{File.dirname(__FILE__)}/fixtures/another_test_theme.yml")
|
7
7
|
Chart::Theme.add_theme_file("#{File.dirname(__FILE__)}/fixtures/another_test_theme.yml")
|
8
|
-
Chart::Theme.theme_files.
|
8
|
+
expect(Chart::Theme.theme_files).to include("#{File.dirname(__FILE__)}/fixtures/another_test_theme.yml")
|
9
9
|
end
|
10
10
|
|
11
11
|
it 'should be able to load themes from the additional theme files' do
|
12
|
-
|
12
|
+
expect { Chart::Theme.load(:test_two) }.not_to raise_error
|
13
13
|
end
|
14
14
|
|
15
15
|
it 'should raise ThemeNotFound if theme does not exist' do
|
16
|
-
|
16
|
+
expect { Chart::Theme.load(:nonexistent) }.to raise_error(Chart::Theme::ThemeNotFound, "Could not locate the nonexistent theme ...")
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'should set colors array' do
|
20
|
-
Chart::Theme.load(:keynote).colors.
|
20
|
+
expect(Chart::Theme.load(:keynote).colors).to eql(["6886B4", "FDD84E", "72AE6E", "D1695E", "8A6EAF", "EFAA43", "FFFFFF", "000000"])
|
21
21
|
end
|
22
22
|
|
23
23
|
it 'should set bar colors array' do
|
24
|
-
Chart::Theme.load(:keynote).bar_colors.
|
24
|
+
expect(Chart::Theme.load(:keynote).bar_colors).to eql(["6886B4", "FDD84E", "72AE6E", "D1695E", "8A6EAF", "EFAA43"])
|
25
25
|
end
|
26
26
|
|
27
27
|
it 'should set background' do
|
28
|
-
Chart::Theme.load(:keynote).background.
|
28
|
+
expect(Chart::Theme.load(:keynote).background).to eql("000000")
|
29
29
|
end
|
30
30
|
|
31
31
|
it 'should set chart background' do
|
32
|
-
Chart::Theme.load(:keynote).chart_background.
|
32
|
+
expect(Chart::Theme.load(:keynote).chart_background).to eql("FFFFFF")
|
33
33
|
end
|
34
34
|
end
|
metadata
CHANGED
@@ -1,35 +1,26 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: googlecharts
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 6
|
9
|
-
- 8
|
10
|
-
version: 1.6.8
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.6.12
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Matt Aimonetti
|
14
8
|
- Andrey Deryabin
|
9
|
+
- Pedro Pimentel
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
date: 2011-05-21 00:00:00 +04:00
|
20
|
-
default_executable:
|
13
|
+
date: 2015-08-12 00:00:00.000000000 Z
|
21
14
|
dependencies: []
|
22
|
-
|
23
15
|
description: Generate charts using Google API & Ruby
|
24
|
-
email: mattaimonetti@gmail.com deriabin@gmail.com
|
16
|
+
email: mattaimonetti@gmail.com deriabin@gmail.com zukunft@gmail.com
|
25
17
|
executables: []
|
26
|
-
|
27
18
|
extensions: []
|
28
|
-
|
29
19
|
extra_rdoc_files: []
|
30
|
-
|
31
|
-
|
32
|
-
- .
|
20
|
+
files:
|
21
|
+
- ".gitignore"
|
22
|
+
- ".travis.yml"
|
23
|
+
- Gemfile
|
33
24
|
- History.txt
|
34
25
|
- License.txt
|
35
26
|
- README
|
@@ -48,41 +39,31 @@ files:
|
|
48
39
|
- spec/gchart_spec.rb
|
49
40
|
- spec/spec_helper.rb
|
50
41
|
- spec/theme_spec.rb
|
51
|
-
has_rdoc: true
|
52
42
|
homepage: http://googlecharts.rubyforge.org/
|
53
|
-
licenses:
|
54
|
-
|
43
|
+
licenses:
|
44
|
+
- MIT
|
45
|
+
metadata: {}
|
55
46
|
post_install_message:
|
56
47
|
rdoc_options: []
|
57
|
-
|
58
|
-
require_paths:
|
48
|
+
require_paths:
|
59
49
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
|
62
|
-
requirements:
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
63
52
|
- - ">="
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
version: "0"
|
69
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
|
-
requirements:
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
72
57
|
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0'
|
78
60
|
requirements: []
|
79
|
-
|
80
61
|
rubyforge_project:
|
81
|
-
rubygems_version:
|
62
|
+
rubygems_version: 2.4.8
|
82
63
|
signing_key:
|
83
|
-
specification_version:
|
64
|
+
specification_version: 4
|
84
65
|
summary: Generate charts using Google API & Ruby
|
85
|
-
test_files:
|
66
|
+
test_files:
|
86
67
|
- spec/fixtures/another_test_theme.yml
|
87
68
|
- spec/fixtures/test_theme.yml
|
88
69
|
- spec/gchart_spec.rb
|