oas_rails 1.3.1 → 1.3.2
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/lib/oas_rails/extractors/route_extractor.rb +4 -15
- data/lib/oas_rails/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: b0b3910279e971e6003cfedc98449efb5c4a5c9a60de1cfcb101bd5ef24ac7de
|
4
|
+
data.tar.gz: ec5d068a23ade33e59bb170bb2631164da5fd891af8b97c796cdaefeaf76001c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bde3e335009615186c8ce30be0db4193f61da7a58ef73f94ed4ba6d819a247356e61f343e4168a6b835f68d16b9d6d3a0297a8a3616ebd640640a21dd5d18ec1
|
7
|
+
data.tar.gz: b5db64d6e6370982e7e84421b19eb2b1e7ba16b60b774c1acae44952f9d4c46ff3347ab8456460bcfcef2293c59a151a86594a726eb1bf9bf5154a4de83b2509
|
@@ -2,21 +2,11 @@ module OasRails
|
|
2
2
|
module Extractors
|
3
3
|
class RouteExtractor
|
4
4
|
RAILS_DEFAULT_CONTROLLERS = %w[
|
5
|
-
rails
|
6
|
-
|
7
|
-
active_storage/blobs
|
8
|
-
active_storage/disk
|
9
|
-
active_storage/direct_uploads
|
10
|
-
active_storage/representations
|
11
|
-
rails/conductor/continuous_integration
|
12
|
-
rails/conductor/multiple_databases
|
13
|
-
rails/conductor/action_mailbox
|
14
|
-
rails/conductor/action_text
|
5
|
+
rails
|
6
|
+
action_mailbox
|
15
7
|
action_cable
|
16
|
-
|
17
|
-
|
18
|
-
RAILS_DEFAULT_PATHS = %w[
|
19
|
-
/rails/action_mailbox/
|
8
|
+
active_storage
|
9
|
+
turbo/native
|
20
10
|
].freeze
|
21
11
|
|
22
12
|
class << self
|
@@ -64,7 +54,6 @@ module OasRails
|
|
64
54
|
def valid_api_route?(route)
|
65
55
|
return false unless valid_route_implementation?(route)
|
66
56
|
return false if RAILS_DEFAULT_CONTROLLERS.any? { |default| route.defaults[:controller].start_with?(default) }
|
67
|
-
return false if RAILS_DEFAULT_PATHS.any? { |path| route.path.spec.to_s.include?(path) }
|
68
57
|
return false unless route.path.spec.to_s.start_with?(OasRails.config.api_path)
|
69
58
|
return false if ignore_custom_actions?(route)
|
70
59
|
|
data/lib/oas_rails/version.rb
CHANGED