googlecharts 1.6.8 → 1.6.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.should_not include("#{File.dirname(__FILE__)}/fixtures/another_test_theme.yml")
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.should include("#{File.dirname(__FILE__)}/fixtures/another_test_theme.yml")
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
- lambda { Chart::Theme.load(:test_two) }.should_not raise_error
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
- lambda { Chart::Theme.load(:nonexistent) }.should raise_error(Chart::Theme::ThemeNotFound, "Could not locate the nonexistent theme ...")
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.should eql(["6886B4", "FDD84E", "72AE6E", "D1695E", "8A6EAF", "EFAA43", "FFFFFF", "000000"])
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.should eql(["6886B4", "FDD84E", "72AE6E", "D1695E", "8A6EAF", "EFAA43"])
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.should eql("000000")
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.should eql("FFFFFF")
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
- hash: 31
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
- files:
32
- - .gitignore
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
- none: false
62
- requirements:
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
63
51
  - - ">="
64
- - !ruby/object:Gem::Version
65
- hash: 3
66
- segments:
67
- - 0
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
- hash: 3
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: 1.5.2
61
+ rubygems_version: 2.2.2
82
62
  signing_key:
83
- specification_version: 3
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