ravelin 0.1.9 → 0.1.10

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: 874c8568169626855d02fb3f4792e2ebf7b5ee15
4
- data.tar.gz: 4119a2786f38144b463410ab645d6259635f8526
3
+ metadata.gz: aaa5da9d1f3fc50c8b03c0a6f95058112833f7ed
4
+ data.tar.gz: 8e199ac248873e996a057c1ca564c4d3aa74ae6a
5
5
  SHA512:
6
- metadata.gz: e883f0bd98a2ae55114e9d44e0d6363c22507518df21f2769680932a757872a2713f45926ed5a19280522e6b405d4d84460dcb5545f4a93e499d650cea7deed3
7
- data.tar.gz: 5324dc77ebc2c39163d2064ef2e1e236f2159a328f6daaacea73c70cc95111b25373a7b8ba0db0434497c01a0b8dbeeff627052fe1a1164892535e20fb235589
6
+ metadata.gz: 1025ad5b7c36c681cc78caaed16d192daf4e3042caa93f66e171747d94a4ca54ce6b77f258f26defc3831f9e4cf252bc71c04114b4fe5ae088d72ffd1557ef8f
7
+ data.tar.gz: 1da15861ec5b8f55a8bb30481aa3055020236828044ba65bfd47d438f238fce5a600c7734fecb71d79d20d4b646933f172e795e394f3313a6513bc4b330d17e7
@@ -7,13 +7,14 @@ module Ravelin
7
7
  :timed_out
8
8
 
9
9
  def serializable_hash
10
- {
10
+ hash = {
11
11
  'attempted' => boolean(attempted),
12
12
  'success' => boolean(success),
13
- 'startTime' => timestamp(start_time),
14
- 'endTime' => timestamp(end_time),
15
13
  'timedOut' => boolean(timed_out)
16
14
  }
15
+ hash['startTime'] = timestamp(start_time) if valid?(start_time)
16
+ hash['endTime'] = timestamp(end_time) if valid?(end_time)
17
+ hash
17
18
  end
18
19
 
19
20
  private
@@ -25,5 +26,9 @@ module Ravelin
25
26
  def timestamp(time)
26
27
  time.to_i
27
28
  end
29
+
30
+ def valid?(time)
31
+ timestamp(time) >= 100
32
+ end
28
33
  end
29
34
  end
@@ -1,3 +1,3 @@
1
1
  module Ravelin
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ravelin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Levy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2017-08-01 00:00:00.000000000 Z
14
+ date: 2018-01-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faraday