googlecharts 1.6.8 → 1.6.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -1
- data/.travis.yml +8 -0
- data/Gemfile +10 -0
- data/History.txt +6 -0
- data/README.markdown +6 -1
- data/Rakefile +12 -1
- data/googlecharts.gemspec +3 -3
- data/lib/gchart.rb +41 -20
- data/lib/gchart/aliases.rb +0 -1
- data/lib/gchart/version.rb +1 -1
- data/spec/gchart_spec.rb +218 -212
- data/spec/theme_spec.rb +8 -8
- metadata +24 -44
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.10
|
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: 2014-12-15 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,30 @@ 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
43
|
licenses: []
|
54
|
-
|
44
|
+
metadata: {}
|
55
45
|
post_install_message:
|
56
46
|
rdoc_options: []
|
57
|
-
|
58
|
-
require_paths:
|
47
|
+
require_paths:
|
59
48
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
-
|
62
|
-
requirements:
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
63
51
|
- - ">="
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
version: "0"
|
69
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
|
-
requirements:
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
72
56
|
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
version: "0"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
78
59
|
requirements: []
|
79
|
-
|
80
60
|
rubyforge_project:
|
81
|
-
rubygems_version:
|
61
|
+
rubygems_version: 2.2.2
|
82
62
|
signing_key:
|
83
|
-
specification_version:
|
63
|
+
specification_version: 4
|
84
64
|
summary: Generate charts using Google API & Ruby
|
85
|
-
test_files:
|
65
|
+
test_files:
|
86
66
|
- spec/fixtures/another_test_theme.yml
|
87
67
|
- spec/fixtures/test_theme.yml
|
88
68
|
- spec/gchart_spec.rb
|