lazy_api_doc 0.1.4 → 0.1.5

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: cade623543ec18c5e5801b2a48759a15c07bb9db03456a677ce8f56f1d746d2d
4
- data.tar.gz: 82896a7629500e91c5485d6f55b7253fe47d3a6ebe77a77230a61337769b68e1
3
+ metadata.gz: '09aa5462bb26a52e21045db9c381344ba15763862da9721008afd23e5d687a11'
4
+ data.tar.gz: 6cd0d98e7896978cbe3b06504de6f46121424f7fdc910b20dfb73356aef1d3bb
5
5
  SHA512:
6
- metadata.gz: 191327130ee28424e080044703c76677db0763c7706344eb1e091ee6a7518cc3e950a2fab7efa48c6b02c6fe9adeefb472c96e186c71471f127ae4b32090ad55
7
- data.tar.gz: d6c2ffb1d18af8b61fed0d4256018cd014dcc9ba7d9a2b6c625e525828471691a729e6f8be3f65125845e13dd1072fcfb49e9e89e4cdda504767949afd3982cf
6
+ metadata.gz: 3723c8d550b7f2f32669ef4d3f61d4cdd9c90221cb12f0e151bd8acb72b941f554915344f16c98695928406946661117b4df0ad49b66c1e37e1f059d45b4edf9
7
+ data.tar.gz: a5cb78c238bf3cfe81a620f280c73ce082bac3df6901afa041084836ad1513a6b4c63042ecffde979f6de6921cb761eb00d54d9d22f374fab3a7313f8c1e0285
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lazy_api_doc (0.1.4)
4
+ lazy_api_doc (0.1.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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 << OpenStruct.new(example)
14
+ @examples << example
15
15
  end
16
16
 
17
17
  def result
18
18
  result = {}
19
- @examples.sort_by(&:source_location).group_by { |ex| [ex.controller, ex.action] }.map do |_, 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]
@@ -1,3 +1,3 @@
1
1
  module LazyApiDoc
2
- VERSION = "0.1.4".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
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
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-17 00:00:00.000000000 Z
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