lazy-check 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/lazy/check/reporter.rb +5 -0
- data/lib/lazy/check/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4540dba4a1ad89f81bd1bb54e043eb34f25713e4d2ccf42c2641973980354bd
|
4
|
+
data.tar.gz: c858d4a60f915abf1d48536573f47333b54c6db6aeaaa10bdff05a4c686b2e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 940d1b4d6923e86683567e14da74632f877bad2666cda026a5804812d96ff2a824978e4c18951fe1edbaff259c534e0f5cc487c7648ee6056cc2fe6f197376b1
|
7
|
+
data.tar.gz: b36023a7a8711fe75c5df0851ee81ce9f28f23ee52523e7363402c89e7516641b3d39ccefcff3cf3d47c9cb9166e58154bca1b0c952d515744c2677d020ee026
|
data/README.md
CHANGED
@@ -8,6 +8,7 @@ Add this line to your application's Gemfile:
|
|
8
8
|
|
9
9
|
```ruby
|
10
10
|
gem 'lazy-check'
|
11
|
+
gem 'lazy/check'
|
11
12
|
```
|
12
13
|
|
13
14
|
And then execute:
|
@@ -25,7 +26,8 @@ Or install it yourself as:
|
|
25
26
|
Si on a juste du code XML-like à tester, on peut utiliser la méthode `Lazy::Checker.check`.
|
26
27
|
|
27
28
|
~~~ruby
|
28
|
-
|
29
|
+
gem 'lazy-check'
|
30
|
+
require 'lazy/check'
|
29
31
|
|
30
32
|
code = "<root><div class="contient">du texte</div></root>"
|
31
33
|
check = {tag: 'div.contient', text: "du texte"}
|
data/lib/lazy/check/reporter.rb
CHANGED
@@ -17,6 +17,7 @@ class Checker
|
|
17
17
|
# Affichage du rapport
|
18
18
|
#
|
19
19
|
def display
|
20
|
+
clear unless debug?
|
20
21
|
puts "\n\n"
|
21
22
|
puts "#{checker.name}".jaune
|
22
23
|
puts "-"* checker.name.length
|
@@ -57,6 +58,10 @@ class Checker
|
|
57
58
|
end
|
58
59
|
|
59
60
|
def start
|
61
|
+
clear unless debug?
|
62
|
+
puts "\n\n"
|
63
|
+
puts "#{checker.name}".jaune
|
64
|
+
puts "Merci de patienter…".bleu
|
60
65
|
@start_time = Time.now
|
61
66
|
@successs = []
|
62
67
|
@failures = []
|
data/lib/lazy/check/version.rb
CHANGED