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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4ed553ffebc5521719b8ae05848942894671b9fc5599af596697bb774d3503d
4
- data.tar.gz: 40c18bb7c4f4e6549a81d9cff8f671d5dc239bca5bf44a7f205c08cde901af09
3
+ metadata.gz: adc3c1464cb9c8972496a11fedda7a0dfda39e34ba82c5ad60a71ccc574d712c
4
+ data.tar.gz: 892220efe2eadc8e1b62ea7e97039814de451f8949b5a89030cca027b3b4c383
5
5
  SHA512:
6
- metadata.gz: 0f5ca666ad6d74f5a070671bf7ec97e9f40922322b24fdbfb20767afe08b2bbd31db7801b2c5d580d6e9a5adcbc44040a5431f23943941a9828c9cea04c40b4b
7
- data.tar.gz: cbf46a595dc6365e65b38442097f617c5f845a7daea54c18aeac2a374dec46949061b5a534577a57ba68ea19bfe627abae2e6f2b9b0fa59f1ffa35ac5494316d
6
+ metadata.gz: 74243ff6d5c32357fa04da777ec9eede39a703405c8297abc7246b9f023dd1a34ed38c6ca6564326265fc9b59c46ae227ea0698de19c3256ffca2dc50d3a0ff0
7
+ data.tar.gz: 79ed95fa65038bfff561c1956f728de2cfa57f705bc6d7b73bf8ba541d53f30056fc99eb231c28a1a91a5c61e8ca9b2b0ad8eaf1c5d5b482f9178068c97472ad
@@ -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
@@ -2,7 +2,7 @@ module Webspicy
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 21
5
- TINY = 2
5
+ TINY = 3
6
6
  end
7
7
  VERSION = "#{Version::MAJOR}.#{Version::MINOR}.#{Version::TINY}"
8
8
  end
@@ -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.2
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-07-26 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake