gvis 1.0.2 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 [name of plugin creator]
1
+ Copyright (c) 2009 [Jeremy Olliver]
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README CHANGED
@@ -2,6 +2,8 @@ Gvis
2
2
  ====
3
3
 
4
4
  Rails plugin that provides a Ruby wrapper for easily loading the Google Visualization API, and simple generation of the javascript required to plot the graphs
5
+ For a full list of the graphs provided by google's visualization api see: http://code.google.com/apis/visualization/documentation/gallery.html
6
+ For documentation on how to use each graph type see: http://code.google.com/apis/visualization/documentation/
5
7
 
6
8
  version 2.X - Rails 3.X
7
9
  version 1.X - Rails 2.X
@@ -12,7 +14,7 @@ Installation
12
14
 
13
15
  Rails 3:
14
16
  # Gemfile
15
- gem 'gvis', '>= 2.0.1'
17
+ gem 'gvis', '>= 2.0.0'
16
18
 
17
19
  Rails 2.X:
18
20
  # config/environment.rb
@@ -15,7 +15,7 @@ module GoogleVisualization
15
15
  # Include the Visualization API code from google.
16
16
  # (Omit this call if you prefer to include the API in your own js package)
17
17
  def include_visualization_api
18
- %Q(<!--Load the AJAX API--><script type="text/javascript" src="http://www.google.com/jsapi"></script>)
18
+ javascript_include_tag("http://www.google.com/jsapi")
19
19
  end
20
20
 
21
21
  # This code actually inserts the visualization data
@@ -36,9 +36,9 @@ module GoogleVisualization
36
36
  output += generate_visualization(id, vis[0], vis[1], vis[2])
37
37
  end
38
38
  output += "} </script>"
39
- output + "<!-- Rendered Google Visualizations /-->"
39
+ raw(output + "<!-- Rendered Google Visualizations /-->")
40
40
  else
41
- "<!-- No graphs on this page /-->"
41
+ raw("<!-- No graphs on this page /-->")
42
42
  end
43
43
  end
44
44
 
@@ -69,7 +69,7 @@ module GoogleVisualization
69
69
  html_options.each do |key, value|
70
70
  html += %Q(#{key}="#{value}" )
71
71
  end
72
- concat %Q(<div id="#{id}" #{html}><!-- /--></div>), block.binding
72
+ concat raw(%Q(<div id="#{id}" #{html}><!-- /--></div>))
73
73
  nil
74
74
  end
75
75
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gvis
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
- - 1
8
- - 0
9
7
  - 2
10
- version: 1.0.2
8
+ - 0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeremy Olliver