google_otg 1.1.1 → 1.1.2
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/VERSION +1 -1
- data/google_otg.gemspec +2 -2
- data/lib/google_otg.rb +3 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.1.
|
|
1
|
+
1.1.2
|
data/google_otg.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{google_otg}
|
|
8
|
-
s.version = "1.1.
|
|
8
|
+
s.version = "1.1.2"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["esilverberg"]
|
|
12
|
-
s.date = %q{2009-12-
|
|
12
|
+
s.date = %q{2009-12-16}
|
|
13
13
|
s.description = %q{Include Google's Over Time Graph in your app}
|
|
14
14
|
s.email = %q{eric@ericsilverberg.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/google_otg.rb
CHANGED
|
@@ -217,7 +217,9 @@ module GoogleOtg
|
|
|
217
217
|
|
|
218
218
|
# override this if you have a better way of retrieving time zones
|
|
219
219
|
def get_time_zone
|
|
220
|
-
return defined?(current_user) &&
|
|
220
|
+
return current_user.time_zone if defined?(current_user) && current_user.respond_to?(:time_zone)
|
|
221
|
+
return @current_user.time_zone if defined?(@current_user) && @current_user.respond_to?(:time_zone)
|
|
222
|
+
return ActiveSupport::TimeZone["UTC"]
|
|
221
223
|
end
|
|
222
224
|
|
|
223
225
|
def setup_time_range()
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google_otg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- esilverberg
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-12-
|
|
12
|
+
date: 2009-12-16 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|