rbgct 0.0.6 → 0.0.7

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.
@@ -6,7 +6,7 @@ module Rbgct::Charts
6
6
  DEFAULT_HEIGHT = 400
7
7
 
8
8
  attr_accessor :data, :type
9
- attr_accessor :width, :height, :dom_id, :title, :h_title, :v_title, :top, :left, :legend, :x_strftime, :y_strftime
9
+ attr_accessor :width, :height, :dom_id, :title, :h_title, :v_title, :top, :left, :legend, :x_strftime, :y_strftime, :time_offset
10
10
 
11
11
  def jsapi
12
12
  <<-EOL
@@ -49,8 +49,8 @@ module Rbgct::Charts
49
49
  end
50
50
 
51
51
  def eval_x_strftime(val)
52
- if respond_to?(:x_strftime) && x_strftime && val.respond_to?(:strftime)
53
- val.send(:strftime, x_strftime)
52
+ if val.respond_to?(:strftime)
53
+ respond_to?(:x_strftime) && x_strftime ? val.getlocal(time_offset).send(:strftime, x_strftime) : val.getlocal(time_offset)
54
54
  else
55
55
  val
56
56
  end
data/lib/rbgct/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rbgct
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rbgct
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.6
5
+ version: 0.0.7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Emanuele Tozzato
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-28 00:00:00 Z
13
+ date: 2011-06-29 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: "Google Chart Tools provide a perfect way to visualize data on your website: now on Ruby"