spectus 2.5.0 → 2.6.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/VERSION.semver +1 -1
- data/checksum/spectus-2.5.0.gem.sha512 +1 -0
- data/lib/spectus/result/fail.rb +5 -3
- data/lib/spectus/result/pass.rb +5 -3
- metadata +3 -2
- 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: 8a3039a54e17899bf8152949c5254f2bb408fa8f
|
4
|
+
data.tar.gz: 6ef7d675a023b8b09eecc7f3ea85a686911296b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a980d60f1deb2623454f5320bf831bc2609acff5af3d079ef568eaa331dbe4f76678ecc1cb493bd12c3c8cc1277ce5ec0e4181b3ad975cd74967dc7085c0335
|
7
|
+
data.tar.gz: b0ae2542483c949b299ffce9f60fc4a5438311d717c35c36adcc31e2ec4dbf0c656d3a274c889db596ee1a67fe4ca23305ad33416422ecd25f3d634009a70c5a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.0
|
@@ -0,0 +1 @@
|
|
1
|
+
821f1988a534c9e5e4273db904b7c025e017e851bad9b31f455de73baab0f9e13863425ae101fb1d1f88043fd9cd72866c7a97ef9303254756e9f59815d8d00b
|
data/lib/spectus/result/fail.rb
CHANGED
@@ -15,12 +15,14 @@ module Spectus
|
|
15
15
|
|
16
16
|
# Identify the state of the result.
|
17
17
|
#
|
18
|
+
# @param color [Boolean] Enable the color.
|
19
|
+
#
|
18
20
|
# @return [String] The char that identify the state of the result.
|
19
|
-
def to_char
|
21
|
+
def to_char(color = false)
|
20
22
|
if error.nil?
|
21
|
-
'F'
|
23
|
+
color ? "\e[35mF\e[0m" : 'F'
|
22
24
|
else
|
23
|
-
'E'
|
25
|
+
color ? "\e[31mE\e[0m" : 'E'
|
24
26
|
end
|
25
27
|
end
|
26
28
|
end
|
data/lib/spectus/result/pass.rb
CHANGED
@@ -20,12 +20,14 @@ module Spectus
|
|
20
20
|
|
21
21
|
# Identify the state of the result.
|
22
22
|
#
|
23
|
+
# @param color [Boolean] Enable the color.
|
24
|
+
#
|
23
25
|
# @return [String] The char that identify the state of the result.
|
24
|
-
def to_char
|
26
|
+
def to_char(color = false)
|
25
27
|
if got
|
26
|
-
'.'
|
28
|
+
color ? "\e[32m.\e[0m" : '.'
|
27
29
|
else
|
28
|
-
'I'
|
30
|
+
color ? "\e[33mI\e[0m" : 'I'
|
29
31
|
end
|
30
32
|
end
|
31
33
|
end
|
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.6.0
|
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-09-
|
33
|
+
date: 2015-09-12 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: defi
|
@@ -163,6 +163,7 @@ files:
|
|
163
163
|
- checksum/spectus-2.3.0.gem.sha512
|
164
164
|
- checksum/spectus-2.3.1.gem.sha512
|
165
165
|
- checksum/spectus-2.4.0.gem.sha512
|
166
|
+
- checksum/spectus-2.5.0.gem.sha512
|
166
167
|
- lib/spectus.rb
|
167
168
|
- lib/spectus/expectation_target.rb
|
168
169
|
- lib/spectus/level/base.rb
|
metadata.gz.sig
CHANGED
Binary file
|