acos_jekyll_openapi_helper 1.2.0 → 1.3.0
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/acos_jekyll_openapi.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6971e64e6acb6936e636507398370874a6cec7fc35cb498d24a378aaa94cd99b
|
|
4
|
+
data.tar.gz: 220741cc25c2b908c39c9e793a743cfde7467e0a2954ee22e9d70cdcd9866507
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 769018537da87ae8556e030f0fd9c6acb4c55d0819396fc28b317aa7605d2e7159d11d710ec67128caff03cba59c2338265aa9e1c15a23d2ee0872e832e9f812
|
|
7
|
+
data.tar.gz: 61391f622e5de7d6d2a862730dc9cd123a82b8dd4939ed24c0479ed767bab4a4be3ef2a864ce50efcc411144a060947424b0f50e68231c06c6f7e2a4c8fc8f83
|
data/lib/acos_jekyll_openapi.rb
CHANGED
|
@@ -52,9 +52,9 @@ class AcosOpenApiHelper::PageEngine
|
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def generate
|
|
55
|
-
puts "
|
|
55
|
+
puts "Generating pages..."
|
|
56
56
|
cnt = 0
|
|
57
|
-
puts "Open API version %s" % @data['openapi']
|
|
57
|
+
puts "Open API version %s in .json file" % @data['openapi']
|
|
58
58
|
docTitle = @data["info"]["title"]
|
|
59
59
|
sidebar = "%s_sidebar" % docTitle
|
|
60
60
|
menu = AcosOpenApiHelper::SidebarMenu.new()
|
|
@@ -64,7 +64,7 @@ class AcosOpenApiHelper::PageEngine
|
|
|
64
64
|
_methods = @data['paths'][_path]
|
|
65
65
|
#puts "Path: %s has methods: %s " % [_path, _methods]
|
|
66
66
|
# puts "Methods: %s" % _methods
|
|
67
|
-
puts "Path: %s" % [_path]
|
|
67
|
+
#puts "Path: %s" % [_path]
|
|
68
68
|
#Should not need this. yet...
|
|
69
69
|
# _methods.each do | _method |
|
|
70
70
|
# puts "Method: %s " % _method
|
|
@@ -110,6 +110,7 @@ class AcosOpenApiHelper::SidebarMenu
|
|
|
110
110
|
|
|
111
111
|
def write (output_path, name, menuTitle)
|
|
112
112
|
_standardLines = [
|
|
113
|
+
"# THIS PAGE IS GENERATED. ANY CHANGES TO PAGE WILL POTENTIALLY BE OVERWRITTEN.",
|
|
113
114
|
"# This is your sidebar TOC. The sidebar code loops through sections here and provides the appropriate formatting.",
|
|
114
115
|
"entries:",
|
|
115
116
|
"- title: sidebar",
|
|
@@ -123,7 +124,7 @@ class AcosOpenApiHelper::SidebarMenu
|
|
|
123
124
|
]
|
|
124
125
|
puts "Writing menu with length: %s" % @@entries.length
|
|
125
126
|
@@entries.each do | item |
|
|
126
|
-
puts "Entry: %s, url: %s" % [item.title, item.url]
|
|
127
|
+
#puts "Entry: %s, url: %s" % [item.title, item.url]
|
|
127
128
|
_standardLines << " - title: %s" % item.title
|
|
128
129
|
_standardLines << " url: /%s.html" % item.url
|
|
129
130
|
_standardLines << " output: web, pdf"
|
|
@@ -183,6 +184,7 @@ class AcosOpenApiHelper::PageCreator
|
|
|
183
184
|
@permalink = AcosOpenApiHelper::PermalinkGenerator.create(path, @swaggerfile)
|
|
184
185
|
@lines = [
|
|
185
186
|
"---",
|
|
187
|
+
"# THIS PAGE IS GENERATED. ANY CHANGES TO PAGE WILL POTENTIALLY BE OVERWRITTEN.",
|
|
186
188
|
"title: User API %s" % path,
|
|
187
189
|
"keywords: json, openapi",
|
|
188
190
|
"# summary: test med json fil",
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acos_jekyll_openapi_helper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Acos AS
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-05-
|
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|