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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eac05bcf070421eba5ebe21442773e9e91bf7791
4
- data.tar.gz: a8cd6440ac08915c40fb7bc66b0fd6e381d09ac1
3
+ metadata.gz: eabd1f229b4d6cc627d2842abc1b84378d797421
4
+ data.tar.gz: 919c0b32219c4409a030624c2561dd793b2a340e
5
5
  SHA512:
6
- metadata.gz: eb58c9b6ce5af8ebf18c0bbde1c43fc387205da047dffe9f0de91fdfe592e760b9e652d02e3bba3b19342b7a62981e9653f75a5b9fae216b00de76e5ef75ff6d
7
- data.tar.gz: 51d9d3aaa4710a9dfb2307a571f210015afa75dcc2e72379e8ec54e23c728f4164744a012d41b0498bb06171a24c6d2a2ad21e2eeb24cbb674531f7404a39b81
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? Fixnum
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
- return tin if tin.is_a? Time
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.13
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-18 00:00:00.000000000 Z
11
+ date: 2018-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shoulda