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 +4 -4
- data/lib/ravelin/three_d_secure.rb +8 -3
- data/lib/ravelin/version.rb +1 -1
- 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: aaa5da9d1f3fc50c8b03c0a6f95058112833f7ed
|
4
|
+
data.tar.gz: 8e199ac248873e996a057c1ca564c4d3aa74ae6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/ravelin/version.rb
CHANGED
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.
|
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:
|
14
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: faraday
|