oas_rails 0.17.0 → 0.17.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 +4 -4
- data/README.md +1 -1
- data/lib/oas_rails/builders/oas_route_builder.rb +0 -11
- data/lib/oas_rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfa0787c34b55b3a16ad7d606cee9c950c2d6b8bbefd0ff7529ed44fcd63b4b8
|
4
|
+
data.tar.gz: ebf135745a3c80267567e6eddc3064f25c89527cb155d0654fb94bcf9ca52b32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770939ee5caeb0bfae558a7479e2f0f94ca74b9880f5645ae5a1e0db06bd5c4243c939a63cd4a267e3ff8b85ef003b073f20a8c82240af8391fd89637a92447b
|
7
|
+
data.tar.gz: b71703565f950bc1b48dac836ce4e77a1627364f6ed9068bd565a97a46617ae576a6a01cf33661be9faf9825e03db32c6da65ee3f8213407e2e1966a10ea52e3
|
data/README.md
CHANGED
@@ -11,10 +11,7 @@ module OasRails
|
|
11
11
|
|
12
12
|
def build
|
13
13
|
OasCore::OasRoute.new(
|
14
|
-
controller_class: controller_class,
|
15
|
-
controller_action: controller_action,
|
16
14
|
controller: controller,
|
17
|
-
controller_path: controller_path,
|
18
15
|
method_name: method,
|
19
16
|
verb: verb,
|
20
17
|
path: path,
|
@@ -30,18 +27,10 @@ module OasRails
|
|
30
27
|
"#{@rails_route.defaults[:controller].camelize}Controller"
|
31
28
|
end
|
32
29
|
|
33
|
-
def controller_action
|
34
|
-
"#{controller_class}##{@rails_route.defaults[:action]}"
|
35
|
-
end
|
36
|
-
|
37
30
|
def controller
|
38
31
|
@rails_route.defaults[:controller]
|
39
32
|
end
|
40
33
|
|
41
|
-
def controller_path
|
42
|
-
Rails.root.join("app/controllers/#{controller}_controller.rb").to_s
|
43
|
-
end
|
44
|
-
|
45
34
|
def method
|
46
35
|
@rails_route.defaults[:action]
|
47
36
|
end
|
data/lib/oas_rails/version.rb
CHANGED
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: 0.17.
|
4
|
+
version: 0.17.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- a-chacon
|
@@ -29,14 +29,14 @@ dependencies:
|
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
32
|
+
version: 0.5.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.
|
39
|
+
version: 0.5.2
|
40
40
|
description: OasRails is a Rails engine for generating automatic interactive documentation
|
41
41
|
for your Rails APIs. It generates an OAS 3.1 document and displays it using RapiDoc.
|
42
42
|
email:
|