spectus 2.9.2 → 2.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/VERSION.semver +1 -1
- data/checksum/spectus-2.9.2.gem.sha512 +1 -0
- data/lib/spectus/expectation_target.rb +19 -9
- metadata +2 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfcbf350bb48d6622bcfdc564ee7a9908e1d0339
|
4
|
+
data.tar.gz: fd04d8e59ed8c78246f5a647e293c49e0e9dba97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1960978b6ba9f518fdb09af4d97cad7ac42b9c172ac386e19ca70d036948384349f5c9cddf762f668bc49446f013571bcd3e94e31ed2739eef37ef0763ef9c29
|
7
|
+
data.tar.gz: 0ce52d6e6c8561b388f1277f74f348b8bd8e238dd09758127752022897bcec3b831b60e24a525b914ecf871cab35419aba8116a832f2efc8020d597eb65bf90b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.10.0
|
@@ -0,0 +1 @@
|
|
1
|
+
0e83a8381978176c2bc6fb82ad3b73d6dc3fc9bfa96ad0f7c09d97af253374545d6869ab6f6fd98f0c1bfa024d788ddb349adc36f0e3578727210d7a9f6fa56a
|
@@ -3,11 +3,15 @@ require 'defi'
|
|
3
3
|
module Spectus
|
4
4
|
# Wraps the target of an expectation.
|
5
5
|
#
|
6
|
+
# @api public
|
7
|
+
#
|
6
8
|
# @example
|
7
9
|
# this { actual value } # => ExpectationTarget wrapping the block
|
8
10
|
class ExpectationTarget < BasicObject
|
9
11
|
# Create a new expection target
|
10
12
|
#
|
13
|
+
# @api private
|
14
|
+
#
|
11
15
|
# @param subject [Proc] The value which is compared with the expected value.
|
12
16
|
def initialize(&subject)
|
13
17
|
@subject = subject
|
@@ -16,6 +20,8 @@ module Spectus
|
|
16
20
|
|
17
21
|
# rubocop:disable Style/MethodName
|
18
22
|
|
23
|
+
# @api public
|
24
|
+
#
|
19
25
|
# This word, or the terms "REQUIRED" or "SHALL", mean that the
|
20
26
|
# definition is an absolute requirement of the specification.
|
21
27
|
#
|
@@ -136,24 +142,28 @@ module Spectus
|
|
136
142
|
RequirementLevel::Low.new(req, false, subject, *challenges).result(true)
|
137
143
|
end
|
138
144
|
|
139
|
-
private
|
140
|
-
|
141
|
-
# The challenge for blocks.
|
142
|
-
#
|
143
|
-
# @return [Defi] The challenge for blocks.
|
144
|
-
def block_challenge
|
145
|
-
::Defi.send(:call)
|
146
|
-
end
|
147
|
-
|
148
145
|
# @!attribute [r] subject
|
149
146
|
#
|
150
147
|
# @return [BasicObject] The front object to be tested.
|
151
148
|
attr_reader :subject
|
149
|
+
private :subject
|
152
150
|
|
153
151
|
# @!attribute [r] challenges
|
154
152
|
#
|
155
153
|
# @return [Array] The challenges to call on the subject.
|
156
154
|
attr_reader :challenges
|
155
|
+
private :challenges
|
156
|
+
|
157
|
+
private
|
158
|
+
|
159
|
+
# The first default challenge for blocks.
|
160
|
+
#
|
161
|
+
# @since 2.10.0
|
162
|
+
#
|
163
|
+
# @return [Defi] The challenge for blocks.
|
164
|
+
def block_challenge
|
165
|
+
::Defi.send(:call)
|
166
|
+
end
|
157
167
|
end
|
158
168
|
end
|
159
169
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spectus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Wack
|
@@ -185,6 +185,7 @@ files:
|
|
185
185
|
- checksum/spectus-2.8.0.gem.sha512
|
186
186
|
- checksum/spectus-2.9.0.gem.sha512
|
187
187
|
- checksum/spectus-2.9.1.gem.sha512
|
188
|
+
- checksum/spectus-2.9.2.gem.sha512
|
188
189
|
- lib/spectus.rb
|
189
190
|
- lib/spectus/expectation_target.rb
|
190
191
|
- lib/spectus/report.rb
|
metadata.gz.sig
CHANGED
Binary file
|