spectus 2.5.0 → 2.6.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
  SHA1:
3
- metadata.gz: dd7a1b7b057daf5d0165b3e8d5b7b2d7bae2fc1d
4
- data.tar.gz: 33f52d7e2a81e5369124481e4d251094eccf5a72
3
+ metadata.gz: 8a3039a54e17899bf8152949c5254f2bb408fa8f
4
+ data.tar.gz: 6ef7d675a023b8b09eecc7f3ea85a686911296b9
5
5
  SHA512:
6
- metadata.gz: 8e74c1c63a8493d7128bf1bdca786e9c7dbfe247f610f829d9222be3aa343a39944d540c02c0e86c283b0baded388ae8b64bfe07df937d828f7c57f672f4bb10
7
- data.tar.gz: 90d4b2fcbfe2265bf7ffdc5c11aa58d74eaaaf943c0fe21817a3dc903edbfd3fb791f30aaf06971e8d2e38f1f69cffdb56ac81a4af239dcc3b73624a0f64a52e
6
+ metadata.gz: 6a980d60f1deb2623454f5320bf831bc2609acff5af3d079ef568eaa331dbe4f76678ecc1cb493bd12c3c8cc1277ce5ec0e4181b3ad975cd74967dc7085c0335
7
+ data.tar.gz: b0ae2542483c949b299ffce9f60fc4a5438311d717c35c36adcc31e2ec4dbf0c656d3a274c889db596ee1a67fe4ca23305ad33416422ecd25f3d634009a70c5a
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.6.0
@@ -0,0 +1 @@
1
+ 821f1988a534c9e5e4273db904b7c025e017e851bad9b31f455de73baab0f9e13863425ae101fb1d1f88043fd9cd72866c7a97ef9303254756e9f59815d8d00b
@@ -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
@@ -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.5.0
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-11 00:00:00.000000000 Z
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