ziya 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  ziya
2
2
  by Fernand Galiana
3
3
  ziya.rubyforge.org
4
+ git://github.com/derailed/ziya.git
4
5
 
5
6
  == RELEASES
6
7
 
@@ -8,8 +9,9 @@ ziya
8
9
  2.0.1 - Additional support for 5.02 + Added donut chart from 5.03
9
10
  2.0.2 - Changed logging required to 0.9.X - Update to xml/swf 5.0.4
10
11
  2.0.3 - README file update - Thanks to Paul James !
11
- 2.0.4 - Fixed missing encoding on composite urls
12
-
12
+ 2.0.4 - Fixed missing encoding on composite urls - published gem on github
13
+ 2.0.5 - Fixed merb app support issue
14
+
13
15
  == DESCRIPTION:
14
16
 
15
17
  ZiYa allows you to easily display graphs in your ruby based applications by leveraging
@@ -25,6 +27,8 @@ managers will love you for it !!
25
27
  Video : http://www.youtube.com/watch?v=axIMmMHdXzo ( Out of date but you'll get the basics... )
26
28
  Documentation : http://ziya.liquidrail.com/docs
27
29
  Forum : http://groups.google.com/group/ziya-plugin
30
+ Repositories : http://rubyforge.org/projects/ziya
31
+ git://github.com/derailed/ziya.git
28
32
 
29
33
 
30
34
  == FEATURES:
@@ -50,6 +54,27 @@ managers will love you for it !!
50
54
 
51
55
  * Theme support. You can change the appearance and behavior of any charts by introducing
52
56
  new themes under the public/charts/themes directory.
57
+
58
+ == REQUIREMENTS:
59
+
60
+ ZiYa depends on the logging gem version > 0.9.0
61
+
62
+ == INSTALL:
63
+
64
+ On rubyforge
65
+
66
+ sudo gem install ziya
67
+
68
+ or github
69
+
70
+ sudo gem install derailed-ziya
71
+
72
+ cd to your application directory and issue the following command
73
+
74
+ > ziyafy
75
+
76
+ This will copy the necessary themes and flash files to run ziya in your application
77
+ public/charts directory.
53
78
 
54
79
  == SYNOPSIS:
55
80
 
@@ -191,21 +216,6 @@ managers will love you for it !!
191
216
  radius: 5
192
217
  fill_alpha: 80
193
218
 
194
- == REQUIREMENTS:
195
-
196
- ZiYa depends on the logging gem version > 0.9.0
197
-
198
- == INSTALL:
199
-
200
- sudo gem install ziya
201
-
202
- cd to your application directory and issue the following command
203
-
204
- > ziyafy
205
-
206
- This will copy the necessary themes and flash files to run ziya in your application
207
- public/charts directory.
208
-
209
219
  == LICENSE:
210
220
 
211
221
  (The MIT License)
@@ -56,7 +56,7 @@ module Ziya::Charts
56
56
  @options = {}
57
57
  @series_desc = []
58
58
  @theme = default_theme
59
- @render_mode = Base.all_styles
59
+ @render_mode = Base.mode_reset
60
60
  initialize_components
61
61
  load_helpers( Ziya.helpers_dir ) if Ziya.helpers_dir
62
62
  end
@@ -67,10 +67,10 @@ module Ziya::Charts
67
67
  end
68
68
 
69
69
  # don't render stylesheets just gen code for chart stylesheet and data
70
- def self.data_only() 1; end
70
+ def self.mode_data() 1; end
71
71
 
72
72
  # renders everything
73
- def self.all_styles() 0; end
73
+ def self.mode_reset() 0; end
74
74
 
75
75
  # -------------------------------------------------------------------------
76
76
  # Default ZiYa theme
@@ -84,7 +84,12 @@ module Ziya::Charts
84
84
  Dir.foreach(helper_dir) do |helper_file|
85
85
  next unless helper_file =~ /^([a-z][a-z_]*_helper).rb$/
86
86
  Ziya.logger.debug( ">>> ZiYa loading custom helper `#{$1}" )
87
- require_dependency File.join(helper_dir, $1)
87
+ # check rails env for autoloader ?
88
+ if defined?(RAILS_ROOT)
89
+ require_dependency File.join(helper_dir, $1)
90
+ else
91
+ require File.join(helper_dir, $1)
92
+ end
88
93
  helper_module_name = "Ziya::" + $1.gsub(/(^|_)(.)/) { $2.upcase }
89
94
  # helper_module_name = $1.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
90
95
  # if Ziya::Helpers.const_defined?(helper_module_name)
@@ -451,7 +456,7 @@ module Ziya::Charts
451
456
  # -------------------------------------------------------------------------
452
457
  # Check if we should do the all monty or just render the instance styles
453
458
  def render_parents?
454
- (@render_mode == Base.all_styles)
459
+ (@render_mode == Base.mode_reset)
455
460
  end
456
461
 
457
462
  # -------------------------------------------------------------------------
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 = 4
5
+ TINY = 5
6
6
 
7
7
  # Returns the version string for the library.
8
8
  #
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
4
+ version: 2.0.5
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-31 00:00:00 -06:00
12
+ date: 2008-09-02 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency