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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9de3ef63b994a6585d5795ebff3c5473d5b150a47b29abab37d8c306a813e4ee
4
- data.tar.gz: 0c8b4c52d63c38f4b1d6fb174b991544b185bedde24722b09428adfb0260cf05
3
+ metadata.gz: dff340fba9a0bb88736f22f6f2ca3c0842d3e71b1f51228ee693f831e411a654
4
+ data.tar.gz: da9ca92e4c14ce44112253508840a82a3855227b742707278ac6352bd0f471b8
5
5
  SHA512:
6
- metadata.gz: df9e196563d7a3430b228d9bc4fdaf13600a4db62ee0c8182506b30a4c890fb39a4bb3dc0ae194df63d6a48489ccaf8817dda54c6e6ab3c509a9fa5ee73421c2
7
- data.tar.gz: a140201ca99818ce637b39d80721a26a0c00a75beb5435778e41aacce5e60e953d6b62c285272295b48446c234c3992dd0b7c87c8670bad91d0601f64a7ded1e
6
+ metadata.gz: ed8f7776052d96e79ae59b75f4f60f94e48abd16cf25b8ecd7709b58860d17d4dbbfa370aa2058fbb7001517e3532d1f27837e200c8e9e7075b020924fd4334b
7
+ data.tar.gz: bbff5fdab51436db644ed6a6874cd7ffea8be3fe9d8566b57a0115195d8c328c2f4896aa72ef1a0d8466599b68864ff61ab27a301c74591bb9292585f6862039
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change log
2
2
 
3
+ ### 2.16.1 - 2021-02-10
4
+ * patch
5
+ * make prefix optional [#98](https://github.com/funbox/fitting/issues/98)
6
+
3
7
  ### 2.16.0 - 2021-02-10
4
8
 
5
9
  * features
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
@@ -1,3 +1,3 @@
1
1
  module Fitting
2
- VERSION = '2.16.0'.freeze
2
+ VERSION = '2.16.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fitting
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.0
4
+ version: 2.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - d.efimov