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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4563b8b80ce8a8552e65f69921ba983f1b1d37ae7ab79f99fbe698c098b966dc
4
- data.tar.gz: e41335c9d4337ce20117a17191c2da5b0aaae15527ed26992c1ffcc02e2f01fc
3
+ metadata.gz: b481c0824545cfa8e8d3690e089c7b19620f8b0c2481512ac429dd5f060b06b0
4
+ data.tar.gz: f6231316fedbdff91d814c8c209ee9a95c518ede71492375ed886cae63f91049
5
5
  SHA512:
6
- metadata.gz: 9ec8476c18ec6b77fdd400615fdc5903e8714cab4e9bcdd4ed53b54cbb12d015ba9856fcdf137d1780a0b7134fbd0f0c88c0e3381ee45fc73127df95211bf41c
7
- data.tar.gz: 5131e6b31ba09cd5623972159b24c134b3c97716f90e77ce069750eac0671946c8a1724acd09ca92e8fa6f138c4a04874ca845c0b5f522ffe87de8d732f2dd7b
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)?\s+(\S+)\s+(.+)\s*$/)
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_routes_to_openapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Camel Chang