spectus 2.9.1 → 2.9.2

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
  SHA1:
3
- metadata.gz: ff23d3bdd10601a3c52063d4f757a9d06cd82041
4
- data.tar.gz: 8696fa07b80141829bb7f17af5d1be7dde4d913c
3
+ metadata.gz: 618bf93934dcd288533fdfd8a3f1c526badf1529
4
+ data.tar.gz: 653371e935c8e36c1cdce20ddd8c76f625f9d67c
5
5
  SHA512:
6
- metadata.gz: 851aa0faafecbcb42c0c43fc64cf08032d51ec8e420c7498932995725736b192206a09f16de7d43607860f95f597ad75f98f511f547dbe7ee556745132908636
7
- data.tar.gz: e33540869c597f4c37267b8a04af64834b4b526bd39e5554c488f2bd9e112f6e0e00a4a891e742dc792256e328ef4bbeccd74bec4dcb88ca398d9e6e7fffa829
6
+ metadata.gz: 5883590c3edce2fe6c2f779e7cff5156d5be0833953052f6899282db7a099da74d753e5316b7c47a4950f82663a1da8b8627666b894227194998b60e24f403de
7
+ data.tar.gz: 5b6c0d15519b0c576c0f0de7f67edcd3382bee01b11e1c6fb6b309c5aea2e67dc81cbb48750020b4daf21c549c72fd1e1bdbab27fe25a91cd2ee8f03b7ba37f6
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- / �/43����ީE��u�<�h�kVzv�QQS�;�����b��GH��s���"�����X�>���I ���Nޣ�%������r7�d�E3ӺU����U�{dn���~W"%��A��g�(+����@R�����&� �JxU��q�Hc��7f|�,���p[^�E��5����H��O��}��!3e�+��2sb�~�)�o��娨�إ����������a�E,���
2
- ePYn����-]�ݠ'
1
+ s}��g�<�+L��.��Z�����#�#q"A���x3u#���W1�^X
2
+ �;�窯�O�(3鐖�$�i��9A{�����Y��D �8����۳4|4�i�� ��
data.tar.gz.sig CHANGED
Binary file
data/VERSION.semver CHANGED
@@ -1 +1 @@
1
- 2.9.1
1
+ 2.9.2
@@ -0,0 +1 @@
1
+ 74fe82ac666429be2cb19b7c0e40936e972a739b536865927d40ae7909bbe4dbf41ac24d76a65f1d7e77da1bd813ea5c08305cc33ed7afb43f61b62bc81311fd
@@ -11,19 +11,9 @@ module Spectus
11
11
  # @param subject [Proc] The value which is compared with the expected value.
12
12
  def initialize(&subject)
13
13
  @subject = subject
14
- @challenges = [::Defi.send(:call)]
14
+ @challenges = [block_challenge]
15
15
  end
16
16
 
17
- # @!attribute [r] subject
18
- #
19
- # @return [BasicObject] The front object to be tested.
20
- attr_reader :subject
21
-
22
- # @!attribute [r] challenges
23
- #
24
- # @return [Array] The challenges to call on the subject.
25
- attr_reader :challenges
26
-
27
17
  # rubocop:disable Style/MethodName
28
18
 
29
19
  # This word, or the terms "REQUIRED" or "SHALL", mean that the
@@ -145,6 +135,25 @@ module Spectus
145
135
  def MAY!(req)
146
136
  RequirementLevel::Low.new(req, false, subject, *challenges).result(true)
147
137
  end
138
+
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
+ # @!attribute [r] subject
149
+ #
150
+ # @return [BasicObject] The front object to be tested.
151
+ attr_reader :subject
152
+
153
+ # @!attribute [r] challenges
154
+ #
155
+ # @return [Array] The challenges to call on the subject.
156
+ attr_reader :challenges
148
157
  end
149
158
  end
150
159
 
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.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Wack
@@ -30,7 +30,7 @@ cert_chain:
30
30
  dzJvWzQ1+dJU6WQv75E9ddSkaQrK3nhdgQVu+/wgvGSrsMvOGNz+LXaSDxQqZuwX
31
31
  0KNQFuIukfrdk8URwRnHoAnvx4U93iUw
32
32
  -----END CERTIFICATE-----
33
- date: 2015-10-14 00:00:00.000000000 Z
33
+ date: 2015-10-18 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: aw
@@ -184,6 +184,7 @@ files:
184
184
  - checksum/spectus-2.7.1.gem.sha512
185
185
  - checksum/spectus-2.8.0.gem.sha512
186
186
  - checksum/spectus-2.9.0.gem.sha512
187
+ - checksum/spectus-2.9.1.gem.sha512
187
188
  - lib/spectus.rb
188
189
  - lib/spectus/expectation_target.rb
189
190
  - lib/spectus/report.rb
metadata.gz.sig CHANGED
Binary file