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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2be66080868d57d8bc41fa563991d88c68f559ccc0e83bc0019685224dd587ba
4
- data.tar.gz: 2562c2b4502515bc1df248ae4dea917bb960ef5fa1d18036fc74d5aa085490ec
3
+ metadata.gz: b0b3910279e971e6003cfedc98449efb5c4a5c9a60de1cfcb101bd5ef24ac7de
4
+ data.tar.gz: ec5d068a23ade33e59bb170bb2631164da5fd891af8b97c796cdaefeaf76001c
5
5
  SHA512:
6
- metadata.gz: 74fec168a220f9b1c1e91c43ca0fef4ae94a6cf3cd90a49db568bd60bcf2eb7d8068709cb5cefb6b331d7b7710c9afdb7947fcedb6bdfca13b3ad7d0eb142feb
7
- data.tar.gz: c3576c053c2ae757ba97625a19fe39ade6811055ce9af6d5f002807a062ac37b80e1b2f19861ef356e4e4c8b208332eef4f6a4ba731b7bf8934e7272c3183ada
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/info
6
- rails/mailers
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
- ].freeze
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
 
@@ -1,3 +1,3 @@
1
1
  module OasRails
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oas_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - a-chacon