gerbilcharts 0.10.13 → 0.10.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gerbilcharts/models/time_series_graph_model.rb +2 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eabd1f229b4d6cc627d2842abc1b84378d797421
|
4
|
+
data.tar.gz: 919c0b32219c4409a030624c2561dd793b2a340e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8113fb0b82359e1cd9ca9537142d6b75971bf3c644e7ace91c5e365309c4c3592af48792e1b296d6a824915489ca9af851c4da1b0c73c4c92b5df180a763ee82
|
7
|
+
data.tar.gz: 610d2b9196aaceafff9baa0946a36c2f145ba5f74e6896804437992a674bc2f192e4eac56b540c0596ab88350cbbf53474b459d29322e3c98b344abbbe15a7b6
|
@@ -34,9 +34,7 @@ class TimeSeriesGraphModel < MonotonousGraphModel
|
|
34
34
|
def normalize_time_input(tin)
|
35
35
|
if tin.is_a? Time
|
36
36
|
return tin
|
37
|
-
elsif tin.is_a?
|
38
|
-
return Time.at(tin)
|
39
|
-
elsif tin.is_a? Bignum
|
37
|
+
elsif tin.is_a? Integer
|
40
38
|
if tin > 0xffffffff
|
41
39
|
return Time.at(tin>>32)
|
42
40
|
else
|
@@ -44,10 +42,7 @@ class TimeSeriesGraphModel < MonotonousGraphModel
|
|
44
42
|
end
|
45
43
|
end
|
46
44
|
|
47
|
-
|
48
|
-
return Time.at(tin) if tin.is_a? Fixnum
|
49
|
-
return Time.at(tin>>32) if tin.is_a? Bignum
|
50
|
-
raise "Timeseries graph model expects Time,Bignum,Fixnum to represent time"
|
45
|
+
raise "Timeseries graph model expects Time, or Integer represent time"
|
51
46
|
end
|
52
47
|
|
53
48
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gerbilcharts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vivek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|