fitting 2.16.0 → 2.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +9 -0
- data/lib/fitting/report/prefixes.rb +3 -1
- data/lib/fitting/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: dff340fba9a0bb88736f22f6f2ca3c0842d3e71b1f51228ee693f831e411a654
|
4
|
+
data.tar.gz: da9ca92e4c14ce44112253508840a82a3855227b742707278ac6352bd0f471b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed8f7776052d96e79ae59b75f4f60f94e48abd16cf25b8ecd7709b58860d17d4dbbfa370aa2058fbb7001517e3532d1f27837e200c8e9e7075b020924fd4334b
|
7
|
+
data.tar.gz: bbff5fdab51436db644ed6a6874cd7ffea8be3fe9d8566b57a0115195d8c328c2f4896aa72ef1a0d8466599b68864ff61ab27a301c74591bb9292585f6862039
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -125,6 +125,15 @@ More information on action coverage
|
|
125
125
|
|
126
126
|
![exmaple2](example2.png)
|
127
127
|
|
128
|
+
## prefix name
|
129
|
+
|
130
|
+
Setting the prefix name is optional. For example, you can do this:
|
131
|
+
|
132
|
+
```yaml
|
133
|
+
prefixes:
|
134
|
+
- openapi2_json_path: doc.json
|
135
|
+
```
|
136
|
+
|
128
137
|
## Contributing
|
129
138
|
|
130
139
|
Bug reports and pull requests are welcome on GitHub at [github.com/funbox/fitting](https://github.com/funbox/fitting).
|
@@ -22,6 +22,8 @@ module Fitting
|
|
22
22
|
|
23
23
|
def is_there_a_suitable_prefix?(test_path)
|
24
24
|
@prefixes.map do |prefix|
|
25
|
+
return true if prefix.name.nil?
|
26
|
+
return true if prefix.name == ''
|
25
27
|
return true if test_path[0..prefix.name.size - 1] == prefix.name
|
26
28
|
end
|
27
29
|
|
@@ -30,7 +32,7 @@ module Fitting
|
|
30
32
|
|
31
33
|
def cram_into_the_appropriate_prefix(test)
|
32
34
|
@prefixes.map do |prefix|
|
33
|
-
if test.path[0..prefix.name.size - 1] == prefix.name
|
35
|
+
if prefix.name.nil? || prefix.name == '' || test.path[0..prefix.name.size - 1] == prefix.name
|
34
36
|
prefix.add_test(test)
|
35
37
|
return
|
36
38
|
end
|
data/lib/fitting/version.rb
CHANGED