lazy_api_doc 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/lazy_api_doc/generator.rb +3 -3
- data/lib/lazy_api_doc/version.rb +1 -1
- 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: ccdc2ffb40c35f3a3fbbf811ee7d755377f4f12d741abe285a77c04c88489ae4
|
|
4
|
+
data.tar.gz: 4cd6dbe6fbf87222053c2ebfc8ef9a9600d16f9dc578e839709a58ef2e6dbd07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b0027216bd106842a42c8d0e9be34988a701e4bbf3e65502fb0a47cb36cbc27b6c13c736710ed5c0d9db547217575cc22fcb57582f543239907c78130350892
|
|
7
|
+
data.tar.gz: 0f0d4c726dc0059cc98a94e0fa12e90217f21f23482347a60438dbfbfc9d0e7e27c80ae52a865a1877469a0bac72ba2f172aed597f6fde0641e4db6106dd5db2
|
data/Gemfile.lock
CHANGED
|
@@ -28,7 +28,7 @@ module LazyApiDoc
|
|
|
28
28
|
|
|
29
29
|
def example_group(example, examples, route) # rubocop:disable Metrics/AbcSize
|
|
30
30
|
{
|
|
31
|
-
|
|
31
|
+
example['verb'].downcase => {
|
|
32
32
|
"tags" => [example.controller],
|
|
33
33
|
"description" => example["description"].capitalize,
|
|
34
34
|
"summary" => example.action,
|
|
@@ -95,9 +95,9 @@ module LazyApiDoc
|
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
def body_params(route, examples)
|
|
98
|
-
return if route[:verb] == "GET"
|
|
99
|
-
|
|
100
98
|
first = examples.first
|
|
99
|
+
return unless %w[POST PATCH].include?(first['verb'])
|
|
100
|
+
|
|
101
101
|
variants = examples.map { |example| example.params.except("controller", "action", *route[:path_params]) }
|
|
102
102
|
{
|
|
103
103
|
'content' => {
|
data/lib/lazy_api_doc/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lazy_api_doc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bogdan Guban
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-04-
|
|
11
|
+
date: 2020-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: The gem collects all requests and responses from your request specs and
|
|
14
14
|
generates documentationbased on it
|