rails_routes_to_openapi 0.1.3 → 0.1.4
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/rails_routes_to_openapi/util/file_helpers.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: b481c0824545cfa8e8d3690e089c7b19620f8b0c2481512ac429dd5f060b06b0
|
4
|
+
data.tar.gz: f6231316fedbdff91d814c8c209ee9a95c518ede71492375ed886cae63f91049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b53dccd581788ec2a196ac7af30dc6ef172fa7ad37cb67150e7e6c9707e4233e3a887593777b86f85c660858fb7665852f483a246c3f41959a27439907f324fc
|
7
|
+
data.tar.gz: 59b3efe434d2210792b742c2c522bf5a871f4a914e87e6a84d5a48b58ee5e740a23b72d3c4ba375074930ffeb91db5702743111e44afcd3495c7574a5c18f049
|
@@ -30,7 +30,7 @@ module Util
|
|
30
30
|
# Use regex to split each line into prefix, verb, uri_pattern, and controller_action
|
31
31
|
file_data.flat_map { |line|
|
32
32
|
next if line.empty?
|
33
|
-
match = line.match(/^\s*(\S*)\s*(GET|POST|PUT|PATCH|DELETE|OPTIONS|HEAD)
|
33
|
+
match = line.match(/^\s*(\S*)\s*((?:(?:GET|POST|PUT|PATCH|DELETE|OPTIONS|HEAD)(?:\|)?)+)\s+(\S+)\s+(.+)\s*$/)
|
34
34
|
if match
|
35
35
|
prefix, verb, uri_pattern, controller_action = match.captures
|
36
36
|
# Split the verb by '|' if it exists, otherwise default to 'GET'
|