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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2487c966ed521f4c043edc04a2616dd62129d26581671f0a8169fa49651b36ad
4
- data.tar.gz: aca594f07c48514f7c2f449fa7b4c413e73ad54386b9d84c924c05af1e4adeaa
3
+ metadata.gz: f8c1354e13b8320436532380642588cfdf216e69356052572300139f065283fc
4
+ data.tar.gz: 0b4c903dc52e6507a696f22775e25e8cf23c864fe35a0f4f869e215af14280fe
5
5
  SHA512:
6
- metadata.gz: 40dd68449aaebbe783430db7e7944ecb06a9ffec1619e39c57923e24527580e1f59b522b6349f5feb28d8b6c02f66dbe1033dd99c36f64229b455f40e48be245
7
- data.tar.gz: d5e4bcc6528fee0bdbad02349c660a383a293f8594941b9fba5d835437972b095030a80ddade84a80c6b7787dfee17fb57d3832eb2c775abb07582df29ba673c
6
+ metadata.gz: 26f6282775664e949fca4b9cb7ebcd8933374a6e5abc8288435312ca9f3c148f266c1b01b253616e66f3e825607d636d049ff072edbaa05e7562c8a9ce4826d7
7
+ data.tar.gz: 99b1fcfb742760817feaf2dfeaaea6fa11122957a25da0038b33ac9eb0b8110db2e389bb8b07c8b9f0dc5b11329591fa8cfab9213a725b73b77e339414b5aa46
data/lib/clock.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'time'
2
2
  require 'ostruct'
3
- require 'naught'
3
+ require 'mimic'
4
4
 
5
5
  require 'clock/clock'
6
6
  require 'clock/substitute'
@@ -5,7 +5,7 @@ module Clock
5
5
  attr_writer :system_time
6
6
 
7
7
  def system_time
8
- @system_time ||= NullTime.build
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
- class NullTime < Naught.build
26
- def self.build
27
- new
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.2.0.0
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-04-25 00:00:00.000000000 Z
11
+ date: 2019-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: naught
14
+ name: evt-mimic
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="