plot_simple 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -21,5 +21,5 @@ PlotSimple is able to handle the following charts at this current time:
21
21
 
22
22
  ##HELP!
23
23
 
24
- Help can be obtained using [Helpsheets.co](https://www.helpsheets.com) or [StackOverflow](http://stackoverflow.com)
24
+ Help can be obtained using [Helpsheets.co](https://www.helpsheets.co) or [StackOverflow](http://stackoverflow.com)
25
25
 
@@ -0,0 +1,17 @@
1
+ <chart>
2
+ <grid>
3
+ <title><%=chart[:title]%></title>
4
+ <background>transparent</background>
5
+ <borderColor><%=chart[:border_color]%></borderColor>
6
+ <lineColor><%=chart[:line_color]%></lineColor>
7
+ <width><%= chart[:chart_width] %></width>
8
+ <height><%= chart[:chart_height]%></height>
9
+ </grid>
10
+ <backgroundImage><%= chart[:background_image]%></backgroundImage>
11
+ <% chart[:categories].each do |cat| %>
12
+ <category>
13
+ <tick text="<%= cat[:tick] %>" />
14
+ <bar size="<%= cat[:bar_size] %>" link="<%= cat[:link]%>" />
15
+ </category>
16
+ <%end%>
17
+ </chart>
data/lib/plot_simple.rb CHANGED
@@ -34,5 +34,10 @@ module PlotSimple
34
34
  @chart[:categories] << category
35
35
  end
36
36
 
37
+ def renderXML(chart = nil)
38
+ chart ||= @chart
39
+ render :partial=>"plot_simple/chartxml",:locals=>{:chart=>chart}
40
+ end
41
+
37
42
  end
38
43
  end
data/plot_simple.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{plot_simple}
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
4
4
 
5
5
  s.required_ruby_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = %q{Travis Pessetto}
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.description = %q{A graphing engine for jqplot}
9
9
  s.email = %q{travis.pessetto@es3inc.com}
10
10
  s.extra_rdoc_files = [%q{README.md}, %q{lib/plot_simple.rb}]
11
- s.files = [%q{README.md}, %q{lib/plot_simple.rb},%q{lib/engine.rb}, %q{plot_simple.gemspec}]
11
+ s.files = [%q{README.md}, %q{lib/plot_simple.rb},%q{lib/engine.rb}, %q{plot_simple.gemspec},%q{app/views/plot_simple/_chartxml.xml.erb}]
12
12
  s.homepage = %q{http://www.es3inc.com}
13
13
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{plot_simple}, %q{--main}, %q{readme.rdoc}]
14
14
  s.require_paths = [%q{lib}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plot_simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-20 00:00:00.000000000 Z
12
+ date: 2012-07-20 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A graphing engine for jqplot
15
15
  email: travis.pessetto@es3inc.com
@@ -23,6 +23,7 @@ files:
23
23
  - lib/plot_simple.rb
24
24
  - lib/engine.rb
25
25
  - plot_simple.gemspec
26
+ - app/views/plot_simple/_chartxml.xml.erb
26
27
  homepage: http://www.es3inc.com
27
28
  licenses: []
28
29
  post_install_message:
@@ -49,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
50
  version: '0'
50
51
  requirements: []
51
52
  rubyforge_project: plot_simple
52
- rubygems_version: 1.8.24
53
+ rubygems_version: 1.7.2
53
54
  signing_key:
54
55
  specification_version: 3
55
56
  summary: A gem to simplify the creation of charts from the controller