lazy_api_doc 0.1.4 → 0.1.5
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 -2
- 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: '09aa5462bb26a52e21045db9c381344ba15763862da9721008afd23e5d687a11'
|
|
4
|
+
data.tar.gz: 6cd0d98e7896978cbe3b06504de6f46121424f7fdc910b20dfb73356aef1d3bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3723c8d550b7f2f32669ef4d3f61d4cdd9c90221cb12f0e151bd8acb72b941f554915344f16c98695928406946661117b4df0ad49b66c1e37e1f059d45b4edf9
|
|
7
|
+
data.tar.gz: a5cb78c238bf3cfe81a620f280c73ce082bac3df6901afa041084836ad1513a6b4c63042ecffde979f6de6921cb761eb00d54d9d22f374fab3a7313f8c1e0285
|
data/Gemfile.lock
CHANGED
|
@@ -11,12 +11,13 @@ module LazyApiDoc
|
|
|
11
11
|
def add(example)
|
|
12
12
|
return if example[:controller] == "anonymous" # don't handle virtual controllers
|
|
13
13
|
|
|
14
|
-
@examples <<
|
|
14
|
+
@examples << example
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def result
|
|
18
18
|
result = {}
|
|
19
|
-
@examples.
|
|
19
|
+
@examples.map { |example| OpenStruct.new(example) }.sort_by(&:source_location)
|
|
20
|
+
.group_by { |ex| [ex.controller, ex.action] }.map do |_, examples|
|
|
20
21
|
first = examples.first
|
|
21
22
|
route = ::LazyApiDoc::RouteParser.new(first.controller, first.action, first.verb).route
|
|
22
23
|
doc_path = route[:doc_path]
|
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.5
|
|
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-29 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
|