mumuki-text-runner 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/checker.rb +3 -1
- data/lib/comparators/comparator.rb +3 -1
- data/lib/options/lenient_blank.rb +5 -0
- data/lib/options/multiline.rb +5 -0
- data/lib/test_hook.rb +3 -1
- data/lib/version_hook.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b6cf60acdbbbea2a93591a35f6798f31e97138768b7f715f9be0b5fdd945901
|
4
|
+
data.tar.gz: 38891926782f7edb4d5a40928162ae66e507727c7dda9b35cd72840e33853239
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8f03d8e82ebf3bd9e72aef871e5aa2e429d022c0d332a3f59cd6e6067346618dc1b43d850fa096d803fd97b22a8e037ce60ecec581c094ed35b0cf8bea9de5e
|
7
|
+
data.tar.gz: 5515417742c30efe5b90b2b3675ce565950d8056ee51b0c3e84bc5f08a0533628144a1f265b2dce6d6f95e04af7a6e5a2dba13fa929071f58d3f73da356fd024
|
data/lib/checker.rb
CHANGED
@@ -5,8 +5,10 @@ class TextChecker < Mumukit::Metatest::Checker
|
|
5
5
|
require_relative './comparators/regexp_comparator'
|
6
6
|
require_relative './comparators/valid_ip_comparator'
|
7
7
|
|
8
|
-
require_relative './options/
|
8
|
+
require_relative './options/lenient_blank'
|
9
9
|
require_relative './options/ignore_case'
|
10
|
+
require_relative './options/ignore_whitespace'
|
11
|
+
require_relative './options/multiline'
|
10
12
|
|
11
13
|
COMPARATORS = {
|
12
14
|
match: TextChecker::RegexpComparator,
|
@@ -15,8 +15,10 @@ class TextChecker::Comparator
|
|
15
15
|
|
16
16
|
def modifiers
|
17
17
|
modifiers = []
|
18
|
-
modifiers << TextChecker::IgnoreWhitespace if @config[:ignore_whitespace]
|
19
18
|
modifiers << TextChecker::IgnoreCase if @config[:ignore_case]
|
19
|
+
modifiers << TextChecker::LenientBlank if @config[:lenient_blank]
|
20
|
+
modifiers << TextChecker::IgnoreWhitespace if @config[:ignore_whitespace]
|
21
|
+
modifiers << TextChecker::Multiline if @config[:multiline]
|
20
22
|
modifiers
|
21
23
|
end
|
22
24
|
|
data/lib/test_hook.rb
CHANGED
@@ -30,7 +30,9 @@ class TextTestHook < Mumukit::Hook
|
|
30
30
|
postconditions: { equal: {
|
31
31
|
expected: parsed_test['equal'],
|
32
32
|
ignore_case: parsed_test['ignore_case'].present?,
|
33
|
-
ignore_whitespace: parsed_test['ignore_whitespace'].present
|
33
|
+
ignore_whitespace: parsed_test['ignore_whitespace'].present?,
|
34
|
+
lenient_blank: parsed_test['lenient_blank'].present?,
|
35
|
+
multiline: parsed_test['multiline'].present? } }
|
34
36
|
}]
|
35
37
|
end
|
36
38
|
|
data/lib/version_hook.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-text-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit
|
@@ -126,6 +126,8 @@ files:
|
|
126
126
|
- lib/metadata_hook.rb
|
127
127
|
- lib/options/ignore_case.rb
|
128
128
|
- lib/options/ignore_whitespace.rb
|
129
|
+
- lib/options/lenient_blank.rb
|
130
|
+
- lib/options/multiline.rb
|
129
131
|
- lib/test_hook.rb
|
130
132
|
- lib/text_runner.rb
|
131
133
|
- lib/version_hook.rb
|
@@ -148,8 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
150
|
- !ruby/object:Gem::Version
|
149
151
|
version: '0'
|
150
152
|
requirements: []
|
151
|
-
|
152
|
-
rubygems_version: 2.7.7
|
153
|
+
rubygems_version: 3.0.3
|
153
154
|
signing_key:
|
154
155
|
specification_version: 4
|
155
156
|
summary: Text Runner for Mumuki
|