sus 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b8522f7949cf5d7a523ff1e7496b6141bc0d122f9953d73b4ce9b94b8f89d4b
4
- data.tar.gz: fdaf10677d1ca3933bc5ccdff4cd9e8ebfd912bc4347fb6db0e20e982e2b7914
3
+ metadata.gz: 1c425b82649b8f50e5976153a010975266ed1484f41507cf81b3c1353223e489
4
+ data.tar.gz: a67daffd36d952add4e867f2f8abb8f35a8b77b5c15daf7110bf022078142db0
5
5
  SHA512:
6
- metadata.gz: 5083ba29bcdfe6e408dce0df6639eb053463af08e23e82fafc9442e2f2b65f90972ac21449885d0b14b2ba6fca25479fb584f624b4f4335bf53e319e39a6483f
7
- data.tar.gz: 8ad0800f437d7e76496fdce3b9407bec4d8e0bc57700e45c3d3df3bcf3708965080bf080f128ac4c72811a84363304f2ac282ad1328b0fb1f6be387dda50cfff
6
+ metadata.gz: 8bcda2c3ad36727e6a4654216e7d82b1311c2194978f463b16798030dfec2bcdadf8daf3df48a00705d4831c1e1d8b24fae62e48c5d452027a13b0f66a9f6a58
7
+ data.tar.gz: 31dacb8749146bcfb29a8ccd4a041e515dc03ecebc87b1cd9c02a1a09d5cd75b00f4b80396d1665ccdc10bfff047bc75e69bc0464be84d95ac1cfb9e33d5bcc6
@@ -18,24 +18,6 @@ module Sus
18
18
  end
19
19
  end
20
20
 
21
- class << self
22
- def < duration
23
- new(Be < duration)
24
- end
25
-
26
- def <= duration
27
- new(Be <= duration)
28
- end
29
-
30
- def > duration
31
- new(Be > duration)
32
- end
33
-
34
- def >= duration
35
- new(Be >= duration)
36
- end
37
- end
38
-
39
21
  private
40
22
 
41
23
  def measure(subject)
@@ -52,12 +34,8 @@ module Sus
52
34
  end
53
35
 
54
36
  class Base
55
- def have_duration(*arguments)
56
- if arguments.any?
57
- HaveDuration.new(be_within(*arguments))
58
- else
59
- HaveDuration
60
- end
37
+ def have_duration(...)
38
+ HaveDuration.new(...)
61
39
  end
62
40
  end
63
41
  end
data/lib/sus/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sus
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams