swagcov 1.1.0 → 1.1.1
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/CHANGELOG.md +5 -1
- data/lib/swagcov/coverage.rb +4 -3
- data/lib/swagcov/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec6ad3768491bc536da30337d3c83dcd649db257dc593372fd3f02120d47ef92
|
4
|
+
data.tar.gz: 478e23e0ec6b1b09584ad8f39659db1b58a682b046f1b80440ad009a71783302
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d0d49382adb3ff5928190d1254d42df6367ebb7bc844270f1f5d94941a98fa44f35c1d4db903e9cf673b3a2ceed911403014f9dfb5825e08e6d147b60d3160c
|
7
|
+
data.tar.gz: 12dd92e0f41fa78fa31fff91946794f49b4a780ad17d473aa8c4b025be1596cac306a9fe9f7b671ce05186e7f550b655b9913993f7b0faf731860cbb0747713e
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,11 @@
|
|
2
2
|
## main (unreleased)
|
3
3
|
-
|
4
4
|
|
5
|
-
## 1.1.
|
5
|
+
## 1.1.1 (2025-08-15)
|
6
|
+
### Fix
|
7
|
+
- Better matching for non api and turbo related routes ([#161](https://github.com/smridge/swagcov/pull/161))
|
8
|
+
|
9
|
+
## 1.1.0 (2025-08-08)
|
6
10
|
### Enhancement
|
7
11
|
- Exclude `new` and `edit` controller action routes that are non api routes by rails defaults/convention ([#155](https://github.com/smridge/swagcov/pull/155))
|
8
12
|
- For example the below routes are now automatically skipped since these are _generally_ `html` formats.
|
data/lib/swagcov/coverage.rb
CHANGED
@@ -83,13 +83,14 @@ module Swagcov
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def turbo_rails_route? route, path
|
86
|
-
|
87
|
-
path.include?("_historical_location") && route.name.include?("turbo_")
|
86
|
+
path.end_with?("_historical_location") && route.name.start_with?("turbo_")
|
88
87
|
end
|
89
88
|
|
90
89
|
def non_api_route? route, path
|
91
90
|
# By default/convention these are non api routes generated by rails
|
92
|
-
%w[new edit].include?(route.defaults[:action]) &&
|
91
|
+
%w[new edit].include?(route.defaults[:action]) &&
|
92
|
+
path.end_with?("/new", "/edit") &&
|
93
|
+
route.name.start_with?("new_", "edit_")
|
93
94
|
end
|
94
95
|
|
95
96
|
def update_data key, verb, path, status
|
data/lib/swagcov/version.rb
CHANGED