swagcov 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/swagcov/coverage.rb +5 -0
- data/lib/swagcov/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: d2973e06bae3594a017e460bb2729a55af6eb7a9c577d30e2eb7fdbc38ec2a4e
|
4
|
+
data.tar.gz: caf357b0caf1631d0d05cd33cbe72d89292be15435f7446c185b9310b458e7a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6bbf2610deff567d6e53af5aa5e6a6a698f8a8ddb41e950cfaa8b43671a4fa691e0f1efc026390b9ee0325be26122aadb6f0858c97d34d1ff6e0fc41661b6ed
|
7
|
+
data.tar.gz: 27b8c790681655912e0cf05622446b5782adc4b6b2441d745f0cf02fcc8b288a8cbeab856eb3285adc75d5a4a8750679d83b5898d76a03a4d641802b76c2b5f4
|
data/lib/swagcov/coverage.rb
CHANGED
@@ -22,6 +22,11 @@ module Swagcov
|
|
22
22
|
|
23
23
|
path = route.path.spec.to_s.sub(/\(\.:format\)$/, "")
|
24
24
|
|
25
|
+
# Exclude routes that are part of the rails gem that you would not write documentation for
|
26
|
+
# https://github.com/rails/rails/tree/main/activestorage/app/controllers/active_storage
|
27
|
+
# https://github.com/rails/rails/tree/main/actionmailbox/app/controllers/action_mailbox
|
28
|
+
next if path.include?("/active_storage/") || path.include?("/action_mailbox/")
|
29
|
+
|
25
30
|
if ignore_path?(path)
|
26
31
|
@ignored += 1
|
27
32
|
@routes_ignored << { verb: route.verb, path: path, status: "ignored" }
|
data/lib/swagcov/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swagcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sarah Ridge
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|