webspicy 0.21.2 → 0.21.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/webspicy/tester.rb +1 -1
- data/lib/webspicy/version.rb +1 -1
- data/lib/webspicy/web/openapi/generator.rb +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adc3c1464cb9c8972496a11fedda7a0dfda39e34ba82c5ad60a71ccc574d712c
|
4
|
+
data.tar.gz: 892220efe2eadc8e1b62ea7e97039814de451f8949b5a89030cca027b3b4c383
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74243ff6d5c32357fa04da777ec9eede39a703405c8297abc7246b9f023dd1a34ed38c6ca6564326265fc9b59c46ae227ea0698de19c3256ffca2dc50d3a0ff0
|
7
|
+
data.tar.gz: 79ed95fa65038bfff561c1956f728de2cfa57f705bc6d7b73bf8ba541d53f30056fc99eb231c28a1a91a5c61e8ca9b2b0ad8eaf1c5d5b482f9178068c97472ad
|
data/lib/webspicy/tester.rb
CHANGED
@@ -60,7 +60,7 @@ module Webspicy
|
|
60
60
|
abort("KO") unless reporter.find(Reporter::SuccessOrNot).success?
|
61
61
|
end
|
62
62
|
|
63
|
-
def find_and_call(method, url, mutation)
|
63
|
+
def find_and_call(method, url, mutation, config = self.config)
|
64
64
|
unless tc = scope.find_test_case(method, url)
|
65
65
|
raise Error, "No such service `#{method} #{url}`"
|
66
66
|
end
|
data/lib/webspicy/version.rb
CHANGED
@@ -7,7 +7,9 @@ module Webspicy
|
|
7
7
|
|
8
8
|
def initialize(config)
|
9
9
|
@config = Configuration.dress(config)
|
10
|
-
@generator = config.generator || Finitio::Generation.new
|
10
|
+
@generator = config.generator || Finitio::Generation.new(
|
11
|
+
collection_size: 1..1
|
12
|
+
)
|
11
13
|
end
|
12
14
|
attr_reader :config, :generator
|
13
15
|
|
@@ -37,7 +39,7 @@ module Webspicy
|
|
37
39
|
def path_for(specification)
|
38
40
|
{
|
39
41
|
standardize(specification.url) => {
|
40
|
-
summary: specification.name
|
42
|
+
summary: specification.name.to_s || 'API Specification'
|
41
43
|
}.merge(verbs_for(specification))
|
42
44
|
}
|
43
45
|
end
|
@@ -49,7 +51,7 @@ module Webspicy
|
|
49
51
|
|
50
52
|
def verbs_for(specification)
|
51
53
|
specification.services.inject({}) do |verbs,service|
|
52
|
-
verb = service.method.downcase
|
54
|
+
verb = service.method.downcase.gsub(/_form$/, '')
|
53
55
|
verb_defn = {
|
54
56
|
description: service.description,
|
55
57
|
parameters: parameters_for(service),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webspicy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.21.
|
4
|
+
version: 0.21.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bernard Lambeau
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|