evt-clock 1.2.0.0 → 1.3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clock.rb +1 -1
- data/lib/clock/substitute.rb +5 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c1354e13b8320436532380642588cfdf216e69356052572300139f065283fc
|
4
|
+
data.tar.gz: 0b4c903dc52e6507a696f22775e25e8cf23c864fe35a0f4f869e215af14280fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26f6282775664e949fca4b9cb7ebcd8933374a6e5abc8288435312ca9f3c148f266c1b01b253616e66f3e825607d636d049ff072edbaa05e7562c8a9ce4826d7
|
7
|
+
data.tar.gz: 99b1fcfb742760817feaf2dfeaaea6fa11122957a25da0038b33ac9eb0b8110db2e389bb8b07c8b9f0dc5b11329591fa8cfab9213a725b73b77e339414b5aa46
|
data/lib/clock.rb
CHANGED
data/lib/clock/substitute.rb
CHANGED
@@ -5,7 +5,7 @@ module Clock
|
|
5
5
|
attr_writer :system_time
|
6
6
|
|
7
7
|
def system_time
|
8
|
-
@system_time ||=
|
8
|
+
@system_time ||= self.class.null_time
|
9
9
|
end
|
10
10
|
|
11
11
|
def now=(val)
|
@@ -22,9 +22,10 @@ module Clock
|
|
22
22
|
nil
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
def self.null_time
|
26
|
+
Mimic.(Object) do
|
27
|
+
def method_missing(*)
|
28
|
+
end
|
28
29
|
end
|
29
30
|
end
|
30
31
|
end
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-clock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: evt-mimic
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|