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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25a95a511f8848ad55e88aba10b52e91b98b4a763f3c459e8d7167115846b9b0
4
- data.tar.gz: 8ef18bdf421bf494882c799d76146804af7dc5b92fc8333c26c80c087231cec2
3
+ metadata.gz: ec6ad3768491bc536da30337d3c83dcd649db257dc593372fd3f02120d47ef92
4
+ data.tar.gz: 478e23e0ec6b1b09584ad8f39659db1b58a682b046f1b80440ad009a71783302
5
5
  SHA512:
6
- metadata.gz: 37f8c1fb82a83466f03c3c12026d23f749a8fb6fc84a643030d7e11c9ac44299dc628642a2f2742ca7decd54103aaf2e3567c775378ad940028dac192b329558
7
- data.tar.gz: 84e0bc9fb5808202680ab6f7ac740f61c8b16edacf7b4b362483ccd727df41e80ac17bf5f3b0f1eb6be8811d7cb027b2c84c2bea7c76686feced9446416e5826
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.0 (2025-08-07)
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.
@@ -83,13 +83,14 @@ module Swagcov
83
83
  end
84
84
 
85
85
  def turbo_rails_route? route, path
86
- # TODO: add route.source_location.include?("turbo-rails") - working on local machine but not in test env
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]) && (path.include?("/new") || path.include?("/edit"))
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Swagcov
4
4
  module Version
5
- STRING = "1.1.0"
5
+ STRING = "1.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swagcov
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sarah Ridge