ziya 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -75,13 +75,15 @@ managers will love you for it !!
75
75
  :themes_dir => File.join( File.dirname(__FILE__), %w[.. .. public charts themes]) )
76
76
 
77
77
  This will initialize the gem. You can log the output to stdout as well using the ZiYa bundled logger
78
- or specify a file ie File.join( File.dirname(__FILE__), %w[.. log ziya.log]. If you choose to user the
78
+ or specify a file ie File.join( File.dirname(__FILE__), %w[.. log ziya.log]. If you choose to use the
79
79
  ZiYa logger, you can specify the :log_level option to either :warn :info :debug or :error.
80
80
  You will need to indicate your themes directory typically located under public/charts/themes or any location
81
- you'll choose. Otherwise ZiYa will used the default themes from the gem ie default or commando.
81
+ you'll choose. Otherwise ZiYa will used the default themes from <<the gem ie default or commando.
82
82
  Lastly you can specify a custom helper directory :helpers_dir, so you can use helper methods within your
83
83
  ZiYa stylesheets.
84
84
 
85
+ NOTE: You must create the app/helpers/ziya and public/chart/themes directory in your application
86
+
85
87
  * Creating a chart
86
88
 
87
89
  blee_controller.rb
@@ -111,13 +113,20 @@ managers will love you for it !!
111
113
 
112
114
  * Creating a gauge
113
115
 
116
+ You will need to modify the ziya initializer and add the following directive
117
+
118
+ Ziya.initialize( :logger => RAILS_DEFAULT_LOGGER,
119
+ :helpers_dir => File.join( File.dirname(__FILE__), %w[.. .. app helpers ziya] ),
120
+ :designs_dir => File.join( File.dirname(__FILE__), %w[.. .. public gauges designs] ), # => Add this !!
121
+ :themes_dir => File.join( File.dirname(__FILE__), %w[.. .. public charts themes]) )
122
+
114
123
  fred_controller.rb
115
124
 
116
125
  class FredController < ApplicationController
117
126
  def load_gauge
118
127
  gauge = Ziya::Gauges::Base.new( @license_key, 'my_gauge' )
119
128
  respond_to do |fmt|
120
- fmt.xml => { render :xml => chart.to_xml }
129
+ fmt.xml => { render :xml => gauge.to_xml }
121
130
  end
122
131
  end
123
132
  end
@@ -129,7 +138,7 @@ managers will love you for it !!
129
138
  config/route.rb
130
139
 
131
140
  # Creates a named route for the chart.
132
- map.load_chart '/fred/load_gauge', :controller => 'fred', :action => 'load_gauge'
141
+ map.load_gauge '/fred/load_gauge', :controller => 'fred', :action => 'load_gauge'
133
142
 
134
143
  public/gauges/designs/my_gauge.yml
135
144
 
data/lib/ziya/version.rb CHANGED
@@ -2,7 +2,7 @@ module Ziya
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  # Returns the version string for the library.
8
8
  #
data/release_notes.txt CHANGED
@@ -1,3 +1,4 @@
1
1
  2.0.0 - Gem release - Update to xml/swf 5.0.2 added xml/gauge 1.6
2
2
  2.0.1 - Update for xml/swf 5.0.3
3
- 2.0.2 - Changed logging required to 0.9.X - Update to xml/swf 5.0.4
3
+ 2.0.2 - Changed logging required to 0.9.X - Update to xml/swf 5.0.4
4
+ 2.0.3 - README file update - Thanks to Paul James !
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ziya
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernand Galiana
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-24 00:00:00 -06:00
12
+ date: 2008-08-25 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency