nexmo-oas-renderer 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.example +1 -0
- data/.gitignore +5 -0
- data/CHANGELOG.md +2 -0
- data/CONTRIBUTING.md +46 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +183 -0
- data/LICENSE.txt +21 -0
- data/README.md +73 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/nexmo-oas-renderer +5 -0
- data/lib/nexmo/oas/engine.rb +9 -0
- data/lib/nexmo/oas/renderer.rb +13 -0
- data/lib/nexmo/oas/renderer/app.rb +116 -0
- data/lib/nexmo/oas/renderer/config.ru +7 -0
- data/lib/nexmo/oas/renderer/config/code_languages.yml +138 -0
- data/lib/nexmo/oas/renderer/config/dynamic_content.yml +1 -0
- data/lib/nexmo/oas/renderer/config/redirects.yml +8 -0
- data/lib/nexmo/oas/renderer/constraints/open_api.rb +76 -0
- data/lib/nexmo/oas/renderer/constraints/redirector.rb +17 -0
- data/lib/nexmo/oas/renderer/decorators/response_parser_decorator.rb +55 -0
- data/lib/nexmo/oas/renderer/filters/anchor.rb +17 -0
- data/lib/nexmo/oas/renderer/filters/audio.rb +21 -0
- data/lib/nexmo/oas/renderer/filters/block_escape.rb +24 -0
- data/lib/nexmo/oas/renderer/filters/break.rb +13 -0
- data/lib/nexmo/oas/renderer/filters/code.rb +64 -0
- data/lib/nexmo/oas/renderer/filters/code_snippet.rb +194 -0
- data/lib/nexmo/oas/renderer/filters/code_snippet_list.rb +33 -0
- data/lib/nexmo/oas/renderer/filters/code_snippets.rb +158 -0
- data/lib/nexmo/oas/renderer/filters/collapsible.rb +27 -0
- data/lib/nexmo/oas/renderer/filters/columns.rb +50 -0
- data/lib/nexmo/oas/renderer/filters/concept_list.rb +33 -0
- data/lib/nexmo/oas/renderer/filters/dynamic_content.rb +30 -0
- data/lib/nexmo/oas/renderer/filters/external_link.rb +32 -0
- data/lib/nexmo/oas/renderer/filters/frontmatter.rb +14 -0
- data/lib/nexmo/oas/renderer/filters/heading.rb +61 -0
- data/lib/nexmo/oas/renderer/filters/icon.rb +22 -0
- data/lib/nexmo/oas/renderer/filters/indent.rb +20 -0
- data/lib/nexmo/oas/renderer/filters/inline_escape.rb +17 -0
- data/lib/nexmo/oas/renderer/filters/js_sequence_diagram.rb +21 -0
- data/lib/nexmo/oas/renderer/filters/label.rb +32 -0
- data/lib/nexmo/oas/renderer/filters/language.rb +15 -0
- data/lib/nexmo/oas/renderer/filters/markdown.rb +85 -0
- data/lib/nexmo/oas/renderer/filters/modal.rb +41 -0
- data/lib/nexmo/oas/renderer/filters/partial.rb +28 -0
- data/lib/nexmo/oas/renderer/filters/php_inliner.rb +15 -0
- data/lib/nexmo/oas/renderer/filters/screenshot.rb +26 -0
- data/lib/nexmo/oas/renderer/filters/tab.rb +250 -0
- data/lib/nexmo/oas/renderer/filters/techio.rb +24 -0
- data/lib/nexmo/oas/renderer/filters/tooltip.rb +22 -0
- data/lib/nexmo/oas/renderer/filters/tutorial_link.rb +27 -0
- data/lib/nexmo/oas/renderer/filters/tutorials.rb +28 -0
- data/lib/nexmo/oas/renderer/filters/unfreeze.rb +20 -0
- data/lib/nexmo/oas/renderer/filters/user_personalization.rb +43 -0
- data/lib/nexmo/oas/renderer/helpers/navigation.rb +66 -0
- data/lib/nexmo/oas/renderer/helpers/render.rb +24 -0
- data/lib/nexmo/oas/renderer/helpers/summary.rb +30 -0
- data/lib/nexmo/oas/renderer/helpers/url.rb +17 -0
- data/lib/nexmo/oas/renderer/lib/core_ext/string.rb +14 -0
- data/lib/nexmo/oas/renderer/lib/redcarpet.rb +14 -0
- data/lib/nexmo/oas/renderer/models/code_snippet.rb +75 -0
- data/lib/nexmo/oas/renderer/models/tutorial.rb +83 -0
- data/lib/nexmo/oas/renderer/pipelines/markdown_pipeline.rb +52 -0
- data/lib/nexmo/oas/renderer/presenters/api_specification.rb +42 -0
- data/lib/nexmo/oas/renderer/presenters/groups.rb +35 -0
- data/lib/nexmo/oas/renderer/presenters/navigation.rb +24 -0
- data/lib/nexmo/oas/renderer/presenters/open_api_specification.rb +68 -0
- data/lib/nexmo/oas/renderer/presenters/versions.rb +40 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Black.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Black.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Heavy.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Heavy.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Regular.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Regular.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Semibold.woff +0 -0
- data/lib/nexmo/oas/renderer/public/assets/fonts/Lato-Semibold.woff2 +0 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/android.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/curl.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/dotnet.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/ios.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/java.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/javascript.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/node.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/php.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/python.svg +11 -0
- data/lib/nexmo/oas/renderer/public/assets/images/brands/ruby.svg +1 -0
- data/lib/nexmo/oas/renderer/public/assets/images/lost.svg +37 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/components/format.js +42 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.accordion.js +249 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.core.js +230 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.modal.js +300 -0
- data/lib/nexmo/oas/renderer/public/assets/javascripts/volta.tabs.js +139 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/api.css +95 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/buttons.css +80 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/core.css +79 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/mediaqueries.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/mediaqueries.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/navigation.css +79 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo.css +68 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/api.scss +147 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/core.scss +133 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/mediaqueries.scss +48 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/navigation.scss +106 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/nexmo.scss +61 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/style.scss +10 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/syntax.scss +63 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/typography.scss +248 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/variables.scss +91 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/sass/volta-templates.scss +119 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/style.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/style.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/syntax.css +79 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/typography.css +86 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/variables.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/variables.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta-templates.css +2 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta-templates.css.map +7 -0
- data/lib/nexmo/oas/renderer/public/assets/stylesheets/volta.min.css +1 -0
- data/lib/nexmo/oas/renderer/public/assets/symbol/volta-icons.svg +1 -0
- data/lib/nexmo/oas/renderer/public/favicon.ico +0 -0
- data/lib/nexmo/oas/renderer/services/code_language_api.rb +98 -0
- data/lib/nexmo/oas/renderer/services/oas_parser.rb +21 -0
- data/lib/nexmo/oas/renderer/services/open_api_definition_resolver.rb +33 -0
- data/lib/nexmo/oas/renderer/version.rb +7 -0
- data/lib/nexmo/oas/renderer/views/api/show.erb +1 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_application_messages_dispatch.html.erb +9 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_application_rtc.html.erb +41 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_application_voice.html.erb +24 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_code_only.html.erb +6 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_configure_client.html.erb +20 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_dependencies.html.erb +11 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/_write_code.html.erb +13 -0
- data/lib/nexmo/oas/renderer/views/code_snippets/list/plain.html.erb +10 -0
- data/lib/nexmo/oas/renderer/views/concepts/list/plain.html.erb +5 -0
- data/lib/nexmo/oas/renderer/views/layouts/_head.erb +4 -0
- data/lib/nexmo/oas/renderer/views/layouts/_javascripts.erb +9 -0
- data/lib/nexmo/oas/renderer/views/layouts/api.erb +23 -0
- data/lib/nexmo/oas/renderer/views/layouts/open_api.erb +10 -0
- data/lib/nexmo/oas/renderer/views/open_api/_callback.erb +5 -0
- data/lib/nexmo/oas/renderer/views/open_api/_callback_endpoint.erb +48 -0
- data/lib/nexmo/oas/renderer/views/open_api/_code_examples.erb +16 -0
- data/lib/nexmo/oas/renderer/views/open_api/_endpoint.erb +156 -0
- data/lib/nexmo/oas/renderer/views/open_api/_model.erb +38 -0
- data/lib/nexmo/oas/renderer/views/open_api/_navigation.erb +80 -0
- data/lib/nexmo/oas/renderer/views/open_api/_parameter_groups.erb +50 -0
- data/lib/nexmo/oas/renderer/views/open_api/_parameters.erb +165 -0
- data/lib/nexmo/oas/renderer/views/open_api/_response_description_parameters.erb +61 -0
- data/lib/nexmo/oas/renderer/views/open_api/_response_descriptions.erb +41 -0
- data/lib/nexmo/oas/renderer/views/open_api/show.erb +104 -0
- data/lib/nexmo/oas/renderer/views/static/404.erb +6 -0
- data/lib/nexmo/oas/renderer/views/tutorials/_index.html.erb +32 -0
- data/lib/nexmo/oas/renderer/views/tutorials/index.html.erb +7 -0
- data/lib/nexmo/oas/renderer/views/tutorials/list/plain.html.erb +5 -0
- data/lib/nexmo/oas/renderer/views/tutorials/show.html.erb +8 -0
- data/nexmo-oas-renderer.gemspec +49 -0
- metadata +399 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
<div class="masonry" data-turbolinks="false">
|
2
|
+
<% @tutorials.each_with_index do |tutorial, index| %>
|
3
|
+
<div class="item">
|
4
|
+
<div class="Vlt-card Vlt-card--image Nxd-card--tutorials">
|
5
|
+
<div class="Vlt-card__image Vlt-card__image--tech Vlt-card__image--blue">
|
6
|
+
<a href="/<%= tutorial.products.join("") %>/tutorials/<%= @language %>" class="Vlt-badge Vlt-badge--large Nxd-tutorials__product Nxd-tutorials__product--<%= tutorial.subtitle %>"><%= tutorial.subtitle %></a>
|
7
|
+
</div>
|
8
|
+
|
9
|
+
<a href="<%= tutorial.path %>">
|
10
|
+
<div class="Vlt-card__content">
|
11
|
+
<h2>
|
12
|
+
<span><%= tutorial.title %></span>
|
13
|
+
</h2>
|
14
|
+
<p><%= tutorial.description %></p>
|
15
|
+
</a>
|
16
|
+
|
17
|
+
<% if tutorial.languages.count > 0 %>
|
18
|
+
<% tutorial.languages.each do |language| %>
|
19
|
+
<a href="<%= "#{@base_path}/#{language.downcase}" %>"><small class="Vlt-grey-darker Nxd-tutorials__language Nxd-tutorials__language--<%= language %>"><span>●</span> <%= language == "Objective_C" ? "Objective-C" : language %></small></a>
|
20
|
+
<% end %>
|
21
|
+
<% end %>
|
22
|
+
|
23
|
+
<div class="Vlt-card__cta">
|
24
|
+
<a href="<%= tutorial.path %>" class="Vlt-btn Vlt-btn--secondary">
|
25
|
+
Read more
|
26
|
+
</a>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<% end %>
|
32
|
+
</div>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "nexmo/oas/renderer/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "nexmo-oas-renderer"
|
7
|
+
spec.version = Nexmo::OAS::Renderer::VERSION
|
8
|
+
spec.authors = ["Fabian Rodriguez"]
|
9
|
+
spec.email = ["fabian.rodriguez@vonage.com"]
|
10
|
+
|
11
|
+
spec.summary = %q{OpenAPI Specification renderer.}
|
12
|
+
spec.homepage = "https://github.com/Nexmo/nexmo-oas-renderer"
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
16
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
17
|
+
if spec.respond_to?(:metadata)
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/Nexmo/nexmo-oas-renderer"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
# Specify which files should be added to the gem when it is released.
|
26
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
27
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
28
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
29
|
+
end
|
30
|
+
spec.bindir = "exe"
|
31
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
|
+
spec.require_paths = ["lib"]
|
33
|
+
|
34
|
+
spec.add_runtime_dependency 'sinatra', '~> 2.0'
|
35
|
+
spec.add_runtime_dependency 'shotgun', '~> 0.9'
|
36
|
+
spec.add_runtime_dependency 'rouge', '2.0.7'
|
37
|
+
spec.add_runtime_dependency 'oas_parser', '0.18.1'
|
38
|
+
spec.add_runtime_dependency 'neatjson', '~> 0.8'
|
39
|
+
spec.add_runtime_dependency 'activesupport', '~> 5.2'
|
40
|
+
spec.add_runtime_dependency 'banzai', '~> 0.1.2'
|
41
|
+
spec.add_runtime_dependency 'octicons_helper', '~> 8.2'
|
42
|
+
spec.add_runtime_dependency 'redcarpet', '3.4.0'
|
43
|
+
spec.add_runtime_dependency 'sass', '~> 3.1'
|
44
|
+
spec.add_runtime_dependency 'activemodel', '~> 5.2'
|
45
|
+
|
46
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
47
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
48
|
+
spec.add_development_dependency "dotenv", "~> 2.7"
|
49
|
+
end
|
metadata
ADDED
@@ -0,0 +1,399 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nexmo-oas-renderer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Fabian Rodriguez
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sinatra
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: shotgun
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.9'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.9'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rouge
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.0.7
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.0.7
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: oas_parser
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.18.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.18.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: neatjson
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.8'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.8'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: activesupport
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.2'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '5.2'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: banzai
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.1.2
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.1.2
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: octicons_helper
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '8.2'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '8.2'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: redcarpet
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 3.4.0
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 3.4.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sass
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '3.1'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '3.1'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: activemodel
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '5.2'
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '5.2'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: bundler
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '2.0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '2.0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rake
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '10.0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '10.0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: dotenv
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '2.7'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '2.7'
|
209
|
+
description:
|
210
|
+
email:
|
211
|
+
- fabian.rodriguez@vonage.com
|
212
|
+
executables:
|
213
|
+
- nexmo-oas-renderer
|
214
|
+
extensions: []
|
215
|
+
extra_rdoc_files: []
|
216
|
+
files:
|
217
|
+
- ".env.example"
|
218
|
+
- ".gitignore"
|
219
|
+
- CHANGELOG.md
|
220
|
+
- CONTRIBUTING.md
|
221
|
+
- Gemfile
|
222
|
+
- Gemfile.lock
|
223
|
+
- LICENSE.txt
|
224
|
+
- README.md
|
225
|
+
- Rakefile
|
226
|
+
- bin/console
|
227
|
+
- bin/setup
|
228
|
+
- exe/nexmo-oas-renderer
|
229
|
+
- lib/nexmo/oas/engine.rb
|
230
|
+
- lib/nexmo/oas/renderer.rb
|
231
|
+
- lib/nexmo/oas/renderer/app.rb
|
232
|
+
- lib/nexmo/oas/renderer/config.ru
|
233
|
+
- lib/nexmo/oas/renderer/config/code_languages.yml
|
234
|
+
- lib/nexmo/oas/renderer/config/dynamic_content.yml
|
235
|
+
- lib/nexmo/oas/renderer/config/redirects.yml
|
236
|
+
- lib/nexmo/oas/renderer/constraints/open_api.rb
|
237
|
+
- lib/nexmo/oas/renderer/constraints/redirector.rb
|
238
|
+
- lib/nexmo/oas/renderer/decorators/response_parser_decorator.rb
|
239
|
+
- lib/nexmo/oas/renderer/filters/anchor.rb
|
240
|
+
- lib/nexmo/oas/renderer/filters/audio.rb
|
241
|
+
- lib/nexmo/oas/renderer/filters/block_escape.rb
|
242
|
+
- lib/nexmo/oas/renderer/filters/break.rb
|
243
|
+
- lib/nexmo/oas/renderer/filters/code.rb
|
244
|
+
- lib/nexmo/oas/renderer/filters/code_snippet.rb
|
245
|
+
- lib/nexmo/oas/renderer/filters/code_snippet_list.rb
|
246
|
+
- lib/nexmo/oas/renderer/filters/code_snippets.rb
|
247
|
+
- lib/nexmo/oas/renderer/filters/collapsible.rb
|
248
|
+
- lib/nexmo/oas/renderer/filters/columns.rb
|
249
|
+
- lib/nexmo/oas/renderer/filters/concept_list.rb
|
250
|
+
- lib/nexmo/oas/renderer/filters/dynamic_content.rb
|
251
|
+
- lib/nexmo/oas/renderer/filters/external_link.rb
|
252
|
+
- lib/nexmo/oas/renderer/filters/frontmatter.rb
|
253
|
+
- lib/nexmo/oas/renderer/filters/heading.rb
|
254
|
+
- lib/nexmo/oas/renderer/filters/icon.rb
|
255
|
+
- lib/nexmo/oas/renderer/filters/indent.rb
|
256
|
+
- lib/nexmo/oas/renderer/filters/inline_escape.rb
|
257
|
+
- lib/nexmo/oas/renderer/filters/js_sequence_diagram.rb
|
258
|
+
- lib/nexmo/oas/renderer/filters/label.rb
|
259
|
+
- lib/nexmo/oas/renderer/filters/language.rb
|
260
|
+
- lib/nexmo/oas/renderer/filters/markdown.rb
|
261
|
+
- lib/nexmo/oas/renderer/filters/modal.rb
|
262
|
+
- lib/nexmo/oas/renderer/filters/partial.rb
|
263
|
+
- lib/nexmo/oas/renderer/filters/php_inliner.rb
|
264
|
+
- lib/nexmo/oas/renderer/filters/screenshot.rb
|
265
|
+
- lib/nexmo/oas/renderer/filters/tab.rb
|
266
|
+
- lib/nexmo/oas/renderer/filters/techio.rb
|
267
|
+
- lib/nexmo/oas/renderer/filters/tooltip.rb
|
268
|
+
- lib/nexmo/oas/renderer/filters/tutorial_link.rb
|
269
|
+
- lib/nexmo/oas/renderer/filters/tutorials.rb
|
270
|
+
- lib/nexmo/oas/renderer/filters/unfreeze.rb
|
271
|
+
- lib/nexmo/oas/renderer/filters/user_personalization.rb
|
272
|
+
- lib/nexmo/oas/renderer/helpers/navigation.rb
|
273
|
+
- lib/nexmo/oas/renderer/helpers/render.rb
|
274
|
+
- lib/nexmo/oas/renderer/helpers/summary.rb
|
275
|
+
- lib/nexmo/oas/renderer/helpers/url.rb
|
276
|
+
- lib/nexmo/oas/renderer/lib/core_ext/string.rb
|
277
|
+
- lib/nexmo/oas/renderer/lib/redcarpet.rb
|
278
|
+
- lib/nexmo/oas/renderer/models/code_snippet.rb
|
279
|
+
- lib/nexmo/oas/renderer/models/tutorial.rb
|
280
|
+
- lib/nexmo/oas/renderer/pipelines/markdown_pipeline.rb
|
281
|
+
- lib/nexmo/oas/renderer/presenters/api_specification.rb
|
282
|
+
- lib/nexmo/oas/renderer/presenters/groups.rb
|
283
|
+
- lib/nexmo/oas/renderer/presenters/navigation.rb
|
284
|
+
- lib/nexmo/oas/renderer/presenters/open_api_specification.rb
|
285
|
+
- lib/nexmo/oas/renderer/presenters/versions.rb
|
286
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Black.woff
|
287
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Black.woff2
|
288
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Heavy.woff
|
289
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Heavy.woff2
|
290
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Regular.woff
|
291
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Regular.woff2
|
292
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Semibold.woff
|
293
|
+
- lib/nexmo/oas/renderer/public/assets/fonts/Lato-Semibold.woff2
|
294
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/android.svg
|
295
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/curl.svg
|
296
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/dotnet.svg
|
297
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/ios.svg
|
298
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/java.svg
|
299
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/javascript.svg
|
300
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/node.svg
|
301
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/php.svg
|
302
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/python.svg
|
303
|
+
- lib/nexmo/oas/renderer/public/assets/images/brands/ruby.svg
|
304
|
+
- lib/nexmo/oas/renderer/public/assets/images/lost.svg
|
305
|
+
- lib/nexmo/oas/renderer/public/assets/javascripts/components/format.js
|
306
|
+
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.accordion.js
|
307
|
+
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.core.js
|
308
|
+
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.modal.js
|
309
|
+
- lib/nexmo/oas/renderer/public/assets/javascripts/volta.tabs.js
|
310
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/api.css
|
311
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/buttons.css
|
312
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/core.css
|
313
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/mediaqueries.css
|
314
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/mediaqueries.css.map
|
315
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/navigation.css
|
316
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/nexmo.css
|
317
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/api.scss
|
318
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/core.scss
|
319
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/mediaqueries.scss
|
320
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/navigation.scss
|
321
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/nexmo.scss
|
322
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/style.scss
|
323
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/syntax.scss
|
324
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/typography.scss
|
325
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/variables.scss
|
326
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/sass/volta-templates.scss
|
327
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/style.css
|
328
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/style.css.map
|
329
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/syntax.css
|
330
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/typography.css
|
331
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/variables.css
|
332
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/variables.css.map
|
333
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/volta-templates.css
|
334
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/volta-templates.css.map
|
335
|
+
- lib/nexmo/oas/renderer/public/assets/stylesheets/volta.min.css
|
336
|
+
- lib/nexmo/oas/renderer/public/assets/symbol/volta-icons.svg
|
337
|
+
- lib/nexmo/oas/renderer/public/favicon.ico
|
338
|
+
- lib/nexmo/oas/renderer/services/code_language_api.rb
|
339
|
+
- lib/nexmo/oas/renderer/services/oas_parser.rb
|
340
|
+
- lib/nexmo/oas/renderer/services/open_api_definition_resolver.rb
|
341
|
+
- lib/nexmo/oas/renderer/version.rb
|
342
|
+
- lib/nexmo/oas/renderer/views/api/show.erb
|
343
|
+
- lib/nexmo/oas/renderer/views/code_snippets/_application_messages_dispatch.html.erb
|
344
|
+
- lib/nexmo/oas/renderer/views/code_snippets/_application_rtc.html.erb
|
345
|
+
- lib/nexmo/oas/renderer/views/code_snippets/_application_voice.html.erb
|
346
|
+
- lib/nexmo/oas/renderer/views/code_snippets/_code_only.html.erb
|
347
|
+
- lib/nexmo/oas/renderer/views/code_snippets/_configure_client.html.erb
|
348
|
+
- lib/nexmo/oas/renderer/views/code_snippets/_dependencies.html.erb
|
349
|
+
- lib/nexmo/oas/renderer/views/code_snippets/_write_code.html.erb
|
350
|
+
- lib/nexmo/oas/renderer/views/code_snippets/list/plain.html.erb
|
351
|
+
- lib/nexmo/oas/renderer/views/concepts/list/plain.html.erb
|
352
|
+
- lib/nexmo/oas/renderer/views/layouts/_head.erb
|
353
|
+
- lib/nexmo/oas/renderer/views/layouts/_javascripts.erb
|
354
|
+
- lib/nexmo/oas/renderer/views/layouts/api.erb
|
355
|
+
- lib/nexmo/oas/renderer/views/layouts/open_api.erb
|
356
|
+
- lib/nexmo/oas/renderer/views/open_api/_callback.erb
|
357
|
+
- lib/nexmo/oas/renderer/views/open_api/_callback_endpoint.erb
|
358
|
+
- lib/nexmo/oas/renderer/views/open_api/_code_examples.erb
|
359
|
+
- lib/nexmo/oas/renderer/views/open_api/_endpoint.erb
|
360
|
+
- lib/nexmo/oas/renderer/views/open_api/_model.erb
|
361
|
+
- lib/nexmo/oas/renderer/views/open_api/_navigation.erb
|
362
|
+
- lib/nexmo/oas/renderer/views/open_api/_parameter_groups.erb
|
363
|
+
- lib/nexmo/oas/renderer/views/open_api/_parameters.erb
|
364
|
+
- lib/nexmo/oas/renderer/views/open_api/_response_description_parameters.erb
|
365
|
+
- lib/nexmo/oas/renderer/views/open_api/_response_descriptions.erb
|
366
|
+
- lib/nexmo/oas/renderer/views/open_api/show.erb
|
367
|
+
- lib/nexmo/oas/renderer/views/static/404.erb
|
368
|
+
- lib/nexmo/oas/renderer/views/tutorials/_index.html.erb
|
369
|
+
- lib/nexmo/oas/renderer/views/tutorials/index.html.erb
|
370
|
+
- lib/nexmo/oas/renderer/views/tutorials/list/plain.html.erb
|
371
|
+
- lib/nexmo/oas/renderer/views/tutorials/show.html.erb
|
372
|
+
- nexmo-oas-renderer.gemspec
|
373
|
+
homepage: https://github.com/Nexmo/nexmo-oas-renderer
|
374
|
+
licenses:
|
375
|
+
- MIT
|
376
|
+
metadata:
|
377
|
+
homepage_uri: https://github.com/Nexmo/nexmo-oas-renderer
|
378
|
+
source_code_uri: https://github.com/Nexmo/nexmo-oas-renderer
|
379
|
+
post_install_message:
|
380
|
+
rdoc_options: []
|
381
|
+
require_paths:
|
382
|
+
- lib
|
383
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
384
|
+
requirements:
|
385
|
+
- - ">="
|
386
|
+
- !ruby/object:Gem::Version
|
387
|
+
version: '0'
|
388
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
389
|
+
requirements:
|
390
|
+
- - ">="
|
391
|
+
- !ruby/object:Gem::Version
|
392
|
+
version: '0'
|
393
|
+
requirements: []
|
394
|
+
rubyforge_project:
|
395
|
+
rubygems_version: 2.7.6.2
|
396
|
+
signing_key:
|
397
|
+
specification_version: 4
|
398
|
+
summary: OpenAPI Specification renderer.
|
399
|
+
test_files: []
|