ziya 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.txt +13 -4
- data/lib/ziya/version.rb +1 -1
- data/release_notes.txt +2 -1
- metadata +2 -2
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
|
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 =>
|
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.
|
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
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.
|
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-
|
12
|
+
date: 2008-08-25 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|