nexmo_markdown_renderer 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +54 -0
- data/config/code_languages.yml +138 -0
- data/config/dynamic_content.yml +1 -0
- data/config/locales/en.yml +176 -0
- data/lib/nexmo_markdown_renderer.rb +28 -0
- data/lib/nexmo_markdown_renderer/core_ext/string.rb +14 -0
- data/lib/nexmo_markdown_renderer/filters/anchor_filter.rb +14 -0
- data/lib/nexmo_markdown_renderer/filters/audio_filter.rb +18 -0
- data/lib/nexmo_markdown_renderer/filters/block_escape_filter.rb +21 -0
- data/lib/nexmo_markdown_renderer/filters/break_filter.rb +10 -0
- data/lib/nexmo_markdown_renderer/filters/code_filter.rb +62 -0
- data/lib/nexmo_markdown_renderer/filters/code_snippet_filter.rb +187 -0
- data/lib/nexmo_markdown_renderer/filters/code_snippet_list_filter.rb +26 -0
- data/lib/nexmo_markdown_renderer/filters/code_snippets_filter.rb +170 -0
- data/lib/nexmo_markdown_renderer/filters/collapsible_filter.rb +27 -0
- data/lib/nexmo_markdown_renderer/filters/columns_filter.rb +47 -0
- data/lib/nexmo_markdown_renderer/filters/concept_list_filter.rb +30 -0
- data/lib/nexmo_markdown_renderer/filters/dynamic_content_filter.rb +28 -0
- data/lib/nexmo_markdown_renderer/filters/external_link_filter.rb +29 -0
- data/lib/nexmo_markdown_renderer/filters/frontmatter_filter.rb +11 -0
- data/lib/nexmo_markdown_renderer/filters/heading_filter.rb +57 -0
- data/lib/nexmo_markdown_renderer/filters/i18n/frontmatter_filter.rb +16 -0
- data/lib/nexmo_markdown_renderer/filters/i18n/smartling_converter_filter.rb +22 -0
- data/lib/nexmo_markdown_renderer/filters/icon_filter.rb +19 -0
- data/lib/nexmo_markdown_renderer/filters/indent_filter.rb +17 -0
- data/lib/nexmo_markdown_renderer/filters/inline_escape_filter.rb +14 -0
- data/lib/nexmo_markdown_renderer/filters/js_sequence_diagram_filter.rb +18 -0
- data/lib/nexmo_markdown_renderer/filters/label_filter.rb +29 -0
- data/lib/nexmo_markdown_renderer/filters/language_filter.rb +12 -0
- data/lib/nexmo_markdown_renderer/filters/markdown_filter.rb +81 -0
- data/lib/nexmo_markdown_renderer/filters/mermaid_filter.rb +29 -0
- data/lib/nexmo_markdown_renderer/filters/modal_filter.rb +37 -0
- data/lib/nexmo_markdown_renderer/filters/partial_filter.rb +29 -0
- data/lib/nexmo_markdown_renderer/filters/php_inliner_filter.rb +11 -0
- data/lib/nexmo_markdown_renderer/filters/screenshot_filter.rb +22 -0
- data/lib/nexmo_markdown_renderer/filters/tab_filter.rb +298 -0
- data/lib/nexmo_markdown_renderer/filters/techio_filter.rb +20 -0
- data/lib/nexmo_markdown_renderer/filters/tooltip_filter.rb +18 -0
- data/lib/nexmo_markdown_renderer/filters/unfreeze_filter.rb +16 -0
- data/lib/nexmo_markdown_renderer/filters/use_case_list_filter.rb +20 -0
- data/lib/nexmo_markdown_renderer/initializers/doc_finder.rb +5 -0
- data/lib/nexmo_markdown_renderer/initializers/i18n.rb +4 -0
- data/lib/nexmo_markdown_renderer/initializers/redcarpet.rb +7 -0
- data/lib/nexmo_markdown_renderer/markdown_renderer.rb +47 -0
- data/lib/nexmo_markdown_renderer/models/code_language.rb +79 -0
- data/lib/nexmo_markdown_renderer/models/code_snippet.rb +72 -0
- data/lib/nexmo_markdown_renderer/models/concept.rb +83 -0
- data/lib/nexmo_markdown_renderer/models/tutorial.rb +148 -0
- data/lib/nexmo_markdown_renderer/models/use_case.rb +81 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/android.rb +25 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/base.rb +12 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/curl.rb +29 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/dotnet.rb +23 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/java.rb +32 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/javascript.rb +23 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/kotlin.rb +25 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/objective_c.rb +25 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/php.rb +23 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/python.rb +23 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/ruby.rb +23 -0
- data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/swift.rb +25 -0
- data/lib/nexmo_markdown_renderer/services/doc_finder.rb +119 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/_application_messages_dispatch.html.erb +9 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/_application_rtc.html.erb +28 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/_application_voice.html.erb +24 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/_code_only.html.erb +6 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/_configure_client.html.erb +20 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/_dependencies.html.erb +11 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/_write_code.html.erb +13 -0
- data/lib/nexmo_markdown_renderer/views/code_snippets/list/plain.html.erb +10 -0
- data/lib/nexmo_markdown_renderer/views/concepts/list/plain.html.erb +5 -0
- data/lib/nexmo_markdown_renderer/views/use_case/_index.html.erb +41 -0
- data/lib/nexmo_markdown_renderer/views/use_case/index.html.erb +48 -0
- data/lib/nexmo_markdown_renderer/views/use_case/list/plain.html.erb +5 -0
- data/lib/nexmo_markdown_renderer/views/use_case/show.html.erb +8 -0
- data/lib/version.rb +7 -0
- metadata +320 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
<div class="Vlt-box Vlt-box--lesspadding Nxd-accordion-emphasis">
|
2
|
+
<h5 class="Vlt-js-accordion__trigger Vlt-accordion__trigger" data-accordion="acc<%= id %>" tabindex="0">
|
3
|
+
<%= app['use_existing'] ? ::I18n.t('.code_snippets.use_your_app') : ::I18n.t('.code_snippets.create_an_app') %>
|
4
|
+
</h5>
|
5
|
+
|
6
|
+
<div id="acc<%=id %>" class="Vlt-js-accordion__content Vlt-accordion__content Vlt-accordion__content--noborder">
|
7
|
+
<%= ::I18n.t('.code_snippets.application_messages_dispatch.no_application_html') %>
|
8
|
+
</div>
|
9
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div class="Vlt-box Vlt-box--lesspadding Nxd-accordion-emphasis">
|
2
|
+
<h5 class="Vlt-js-accordion__trigger Vlt-accordion__trigger" data-accordion="acc<%= id %>" tabindex="0">
|
3
|
+
<%= ::I18n.t('.code_snippets.create_an_app') %>
|
4
|
+
</h5>
|
5
|
+
|
6
|
+
<div id="acc<%=id %>" class="Vlt-js-accordion__content Vlt-accordion__content Vlt-accordion__content--noborder">
|
7
|
+
<p><%= ::I18n.t('.code_snippets.nexmo_application_contains_html') %></p>
|
8
|
+
<h4><%= ::I18n.t('.code_snippets.install_the_cli') %></h4>
|
9
|
+
<pre class="highlight shell"><code>$ npm install -g nexmo-cli</code></pre>
|
10
|
+
|
11
|
+
<h4><%= ::I18n.t('.code_snippets.create_an_app') %></h4>
|
12
|
+
<p><%= ::I18n.t('.code_snippets.once_you_have_the_cli_installed_html') %></p>
|
13
|
+
|
14
|
+
<% unless app['disable_ngrok'] %>
|
15
|
+
<p><%= ::I18n.t('.code_snippets.nexmo_needs_to_connect_html') %></p>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<pre class="highlight shell"><code>$ nexmo app:create "<%=app['name'] %>" <%=app['answer_url'] %> <%=app['event_url'] %> --keyfile=private.key --type=rtc</code></pre>
|
19
|
+
|
20
|
+
<h4><%= ::I18n.t('.code_snippets.application_rtc.use_your_existing_app') %></h4>
|
21
|
+
|
22
|
+
<p><%= ::I18n.t('.code_snippets.application_rtc.use_an_app_to_authenticate') %></p>
|
23
|
+
<p><%= ::I18n.t('.code_snippets.application_rtc.see_the_docs_html') %></p>
|
24
|
+
<p><%= ::I18n.t('.code_snippets.application_rtc.alternatively_you_can_review_html') %></p>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
|
28
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div class="Vlt-box Vlt-box--lesspadding Nxd-accordion-emphasis">
|
2
|
+
<h5 class="Vlt-js-accordion__trigger Vlt-accordion__trigger" data-accordion="acc<%= id %>" tabindex="0">
|
3
|
+
<%= app['use_existing'] ? ::I18n.t('.code_snippets.use_your_app') : ::I18n.t('.code_snippets.create_an_app') %>
|
4
|
+
</h5>
|
5
|
+
|
6
|
+
<div id="acc<%=id %>" class="Vlt-js-accordion__content Vlt-accordion__content Vlt-accordion__content--noborder">
|
7
|
+
<% if app['use_existing'] %>
|
8
|
+
<p><%= app['use_existing'] %></p>
|
9
|
+
<% else %>
|
10
|
+
<p><%= ::I18n.t('.code_snippets.nexmo_application_contains_html') %></p>
|
11
|
+
<h4><%= ::I18n.t('.code_snippets.install_the_cli') %></h4>
|
12
|
+
<pre class="highlight bash dependencies"><code>npm install -g nexmo-cli</code></pre>
|
13
|
+
|
14
|
+
<h4><%= ::I18n.t('.code_snippets.create_an_app') %></h4>
|
15
|
+
<p><%= ::I18n.t('.code_snippets.once_you_have_the_cli_installed_html') %></p>
|
16
|
+
|
17
|
+
<% unless app['disable_ngrok'] %>
|
18
|
+
<p><%= ::I18n.t('.code_snippets.nexmo_needs_to_connect_html') %></p>
|
19
|
+
<% end %>
|
20
|
+
|
21
|
+
<pre class="highlight bash dependencies"><code>nexmo app:create "<%=app['name'] %>" <%=app['answer_url'] %> <%=app['event_url'] %> --keyfile private.key</code></pre>
|
22
|
+
<% end %>
|
23
|
+
</div>
|
24
|
+
</div>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<div class="copy-wrapper">
|
2
|
+
<div class="copy-button" data-lang="<%= lang %>" data-block="<%= config['source'] %>" data-section="code">
|
3
|
+
<%= octicon "clippy", :class => 'top left' %> <span><%= ::I18n.t('.copy-to-clipboad') %></span>
|
4
|
+
</div>
|
5
|
+
<pre class="highlight <%= lexer.tag %> main-code"><code><%= highlighted_code_source %></code></pre>
|
6
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<div class="Vlt-box Vlt-box--lesspadding Nxd-accordion-emphasis">
|
2
|
+
<h5 class="Vlt-js-accordion__trigger Vlt-accordion__trigger" data-accordion="acc<%= id %>" tabindex="0">
|
3
|
+
<%= ::I18n.t('.code_snippets.configure_client.initialize_dependencies') %>
|
4
|
+
</h5>
|
5
|
+
|
6
|
+
<div id="acc<%=id %>" class="Vlt-js-accordion__content Vlt-accordion__content Vlt-accordion__content--noborder">
|
7
|
+
<%= create_instructions %>
|
8
|
+
<div class="copy-wrapper">
|
9
|
+
|
10
|
+
<div class="copy-button" data-lang="<%= lang %>" data-block="<%= config['source'] %>" data-section="configure">
|
11
|
+
<%= octicon "clippy", :class => 'top left' %> <span>Copy to Clipboard</span>
|
12
|
+
</div>
|
13
|
+
<pre class="highlight copy-to-clipboard <%= config['title'] %>"><code><%= highlighted_client_source %></code></pre>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<p><a data-section="configure" data-lang="<%= lang %>" data-block="<%= config['source'] %>" href="<%= client_url %>">View full source</a></p>
|
17
|
+
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<div class="Vlt-box Vlt-box--lesspadding Nxd-accordion-emphasis">
|
2
|
+
<h5 class="Vlt-js-accordion__trigger Vlt-accordion__trigger" data-accordion="acc<%= id %>" tabindex="0"><%= title %></h5>
|
3
|
+
|
4
|
+
<div id="acc<%= id %>" class="Vlt-js-accordion__content Vlt-accordion__content Vlt-accordion__content--noborder">
|
5
|
+
<p><%=deps['text']%></p>
|
6
|
+
<% if deps['code'] %>
|
7
|
+
<pre class="highlight <%= deps['type'] || 'bash' %> dependencies"><code><%=deps['code']%></code></pre>
|
8
|
+
<% end %>
|
9
|
+
</div>
|
10
|
+
</div>
|
11
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<h2 class="Vlt-title--margin-top3"><%= ::I18n.t('.code_snippets.write_code.write_the_code') %></h2>
|
2
|
+
<%= add_instructions %>
|
3
|
+
|
4
|
+
<div class="copy-wrapper">
|
5
|
+
<div class="copy-button" data-lang="<%= lang %>" data-block="<%= config['source'] %>" data-section="code">
|
6
|
+
<%= octicon "clippy", :class => 'top left' %> <span><%= ::I18n.t('.code_snippets.copy_to_clipboard') %></span>
|
7
|
+
</div>
|
8
|
+
<pre class="highlight <%= lexer.tag %> main-code"><code><%= highlighted_code_source %></code></pre>
|
9
|
+
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<p><a data-section="code" data-lang="<%= lang %>" data-block="<%= config['source'] %>" href="<%= source_url %>"><%= ::I18n.t('.code_snippets.write_code.view_full_source') %></a></p>
|
13
|
+
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<ul class="Vlt-list Vlt-list--simple">
|
2
|
+
<% @concepts.each do |concept| %>
|
3
|
+
<li><a href="<%= concept.url %>"><%= concept.title %></a><% if concept.description %>: <%= concept.description.render_markdown.gsub(%r{^<p>},'').gsub(%r{^</p>}, '').strip %><% end %></li>
|
4
|
+
<% end %>
|
5
|
+
</ul>
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<% unless @use_cases.count.positive? %>
|
2
|
+
<div class="Vlt-callout Vlt-callout--warning">
|
3
|
+
<i></i>
|
4
|
+
<div class="Vlt-callout__content">
|
5
|
+
No use cases available in this language
|
6
|
+
</div>
|
7
|
+
</div>
|
8
|
+
<% else %>
|
9
|
+
<div class="masonry">
|
10
|
+
<% @use_cases.each_with_index do |use_case, index| %>
|
11
|
+
<div class="item">
|
12
|
+
<div class="Vlt-card Vlt-card--image Nxd-card--tutorials">
|
13
|
+
<div class="Vlt-card__image Vlt-card__image--tech Vlt-card__image--blue">
|
14
|
+
<a href="/<%= use_case.products.join("") %>/use-cases/<%= @language %>" class="Vlt-badge Vlt-badge--large Nxd-tutorials__product Nxd-tutorials__product--<%= use_case.subtitle %>"><%= use_case.subtitle %></a>
|
15
|
+
</div>
|
16
|
+
|
17
|
+
<a href="<%= use_case.path %>">
|
18
|
+
<div class="Vlt-card__content">
|
19
|
+
<h2>
|
20
|
+
<span><%= use_case.title %></span>
|
21
|
+
</h2>
|
22
|
+
<p><%= use_case.description %></p>
|
23
|
+
</a>
|
24
|
+
|
25
|
+
<% if use_case.languages.count > 0 %>
|
26
|
+
<% use_case.languages.each do |language| %>
|
27
|
+
<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>
|
28
|
+
<% end %>
|
29
|
+
<% end %>
|
30
|
+
|
31
|
+
<div class="Vlt-card__cta">
|
32
|
+
<a href="<%= use_case.path %>" class="Vlt-btn Vlt-btn--secondary">
|
33
|
+
Read more
|
34
|
+
</a>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
<% end %>
|
40
|
+
</div>
|
41
|
+
<% end %>
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<h1>Use Cases</h1>
|
2
|
+
|
3
|
+
|
4
|
+
<style>
|
5
|
+
.tutorial-language-link svg {
|
6
|
+
height: 15px;
|
7
|
+
width: 15px;
|
8
|
+
}
|
9
|
+
</style>
|
10
|
+
|
11
|
+
<strong>Filter: </strong>
|
12
|
+
|
13
|
+
<div class="Vlt-dropdown">
|
14
|
+
<button class="Vlt-dropdown__btn">
|
15
|
+
Choose a language
|
16
|
+
</button>
|
17
|
+
<div class="Vlt-dropdown__panel">
|
18
|
+
<div class="Vlt-dropdown__panel__content">
|
19
|
+
<ul>
|
20
|
+
<% @languages.each do |lang| %>
|
21
|
+
<li><a class="Vlt-dropdown__link" href="<%= "#{@base_path}/#{lang.key}" %>"><svg style="height: 20px; width: 20px;" ><use xlink:href=<%= GEM_ROOT %>/lib/nexmo_markdown_renderer/assets/images/brands/<%= lang.icon %>.svg#<%= lang.icon %>"></use></svg><span><%= lang.label %></span></a></li>
|
22
|
+
<% end %>
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
|
29
|
+
<div class="Vlt-dropdown">
|
30
|
+
<button class="Vlt-dropdown__btn">
|
31
|
+
Choose a product
|
32
|
+
</button>
|
33
|
+
<div class="Vlt-dropdown__panel">
|
34
|
+
<div class="Vlt-dropdown__panel__content">
|
35
|
+
<ul>
|
36
|
+
<% @products.each do |product| %>
|
37
|
+
<li><a class="Vlt-dropdown__link" href="/<%= product['path'] %>/use-cases/<%= @language %>"><svg style="height: 20px; width: 20px;" class="Vlt-<%= product['icon_colour'] %>"><use xlink:href="/symbol/volta-icons.svg#Vlt-icon-<%= product['icon'] %>"></use></svgc><span><%= product['name'] %></span></a></li>
|
38
|
+
<% end %>
|
39
|
+
</ul>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<br><br>
|
45
|
+
|
46
|
+
<p>Get started with Nexmo with tutorials that will walk you through building a variety of practical applications</p>
|
47
|
+
|
48
|
+
<%= render 'index' %>
|
data/lib/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,320 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nexmo_markdown_renderer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nexmo
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-02-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: banzai
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.1.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.1.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: octicons_helper
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '8.2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '8.2'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: nokogiri
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.10'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.10'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: redcarpet
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.4'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rouge
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.0.7
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.0.7
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: activemodel
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '6.0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '6.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: i18n
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.7'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.7'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: simplecov
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0.16'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0.16'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: coveralls
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.8.15
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.8.15
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '3.9'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '3.9'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rspec-rails
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '3.7'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '3.7'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rspec-collection_matchers
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.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: 1.2.0
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rspec-snapshot
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 0.1.2
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 0.1.2
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: rake
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - "~>"
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '13.0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - "~>"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '13.0'
|
209
|
+
description: Middleware to render Markdown Documents in Nexmo Developer Platform.
|
210
|
+
email:
|
211
|
+
- devrel@nexmo.com
|
212
|
+
executables: []
|
213
|
+
extensions: []
|
214
|
+
extra_rdoc_files: []
|
215
|
+
files:
|
216
|
+
- LICENSE.txt
|
217
|
+
- README.md
|
218
|
+
- config/code_languages.yml
|
219
|
+
- config/dynamic_content.yml
|
220
|
+
- config/locales/en.yml
|
221
|
+
- lib/nexmo_markdown_renderer.rb
|
222
|
+
- lib/nexmo_markdown_renderer/core_ext/string.rb
|
223
|
+
- lib/nexmo_markdown_renderer/filters/anchor_filter.rb
|
224
|
+
- lib/nexmo_markdown_renderer/filters/audio_filter.rb
|
225
|
+
- lib/nexmo_markdown_renderer/filters/block_escape_filter.rb
|
226
|
+
- lib/nexmo_markdown_renderer/filters/break_filter.rb
|
227
|
+
- lib/nexmo_markdown_renderer/filters/code_filter.rb
|
228
|
+
- lib/nexmo_markdown_renderer/filters/code_snippet_filter.rb
|
229
|
+
- lib/nexmo_markdown_renderer/filters/code_snippet_list_filter.rb
|
230
|
+
- lib/nexmo_markdown_renderer/filters/code_snippets_filter.rb
|
231
|
+
- lib/nexmo_markdown_renderer/filters/collapsible_filter.rb
|
232
|
+
- lib/nexmo_markdown_renderer/filters/columns_filter.rb
|
233
|
+
- lib/nexmo_markdown_renderer/filters/concept_list_filter.rb
|
234
|
+
- lib/nexmo_markdown_renderer/filters/dynamic_content_filter.rb
|
235
|
+
- lib/nexmo_markdown_renderer/filters/external_link_filter.rb
|
236
|
+
- lib/nexmo_markdown_renderer/filters/frontmatter_filter.rb
|
237
|
+
- lib/nexmo_markdown_renderer/filters/heading_filter.rb
|
238
|
+
- lib/nexmo_markdown_renderer/filters/i18n/frontmatter_filter.rb
|
239
|
+
- lib/nexmo_markdown_renderer/filters/i18n/smartling_converter_filter.rb
|
240
|
+
- lib/nexmo_markdown_renderer/filters/icon_filter.rb
|
241
|
+
- lib/nexmo_markdown_renderer/filters/indent_filter.rb
|
242
|
+
- lib/nexmo_markdown_renderer/filters/inline_escape_filter.rb
|
243
|
+
- lib/nexmo_markdown_renderer/filters/js_sequence_diagram_filter.rb
|
244
|
+
- lib/nexmo_markdown_renderer/filters/label_filter.rb
|
245
|
+
- lib/nexmo_markdown_renderer/filters/language_filter.rb
|
246
|
+
- lib/nexmo_markdown_renderer/filters/markdown_filter.rb
|
247
|
+
- lib/nexmo_markdown_renderer/filters/mermaid_filter.rb
|
248
|
+
- lib/nexmo_markdown_renderer/filters/modal_filter.rb
|
249
|
+
- lib/nexmo_markdown_renderer/filters/partial_filter.rb
|
250
|
+
- lib/nexmo_markdown_renderer/filters/php_inliner_filter.rb
|
251
|
+
- lib/nexmo_markdown_renderer/filters/screenshot_filter.rb
|
252
|
+
- lib/nexmo_markdown_renderer/filters/tab_filter.rb
|
253
|
+
- lib/nexmo_markdown_renderer/filters/techio_filter.rb
|
254
|
+
- lib/nexmo_markdown_renderer/filters/tooltip_filter.rb
|
255
|
+
- lib/nexmo_markdown_renderer/filters/unfreeze_filter.rb
|
256
|
+
- lib/nexmo_markdown_renderer/filters/use_case_list_filter.rb
|
257
|
+
- lib/nexmo_markdown_renderer/initializers/doc_finder.rb
|
258
|
+
- lib/nexmo_markdown_renderer/initializers/i18n.rb
|
259
|
+
- lib/nexmo_markdown_renderer/initializers/redcarpet.rb
|
260
|
+
- lib/nexmo_markdown_renderer/markdown_renderer.rb
|
261
|
+
- lib/nexmo_markdown_renderer/models/code_language.rb
|
262
|
+
- lib/nexmo_markdown_renderer/models/code_snippet.rb
|
263
|
+
- lib/nexmo_markdown_renderer/models/concept.rb
|
264
|
+
- lib/nexmo_markdown_renderer/models/tutorial.rb
|
265
|
+
- lib/nexmo_markdown_renderer/models/use_case.rb
|
266
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/android.rb
|
267
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/base.rb
|
268
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/curl.rb
|
269
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/dotnet.rb
|
270
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/java.rb
|
271
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/javascript.rb
|
272
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/kotlin.rb
|
273
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/objective_c.rb
|
274
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/php.rb
|
275
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/python.rb
|
276
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/ruby.rb
|
277
|
+
- lib/nexmo_markdown_renderer/services/code_snippet_renderer/swift.rb
|
278
|
+
- lib/nexmo_markdown_renderer/services/doc_finder.rb
|
279
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/_application_messages_dispatch.html.erb
|
280
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/_application_rtc.html.erb
|
281
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/_application_voice.html.erb
|
282
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/_code_only.html.erb
|
283
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/_configure_client.html.erb
|
284
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/_dependencies.html.erb
|
285
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/_write_code.html.erb
|
286
|
+
- lib/nexmo_markdown_renderer/views/code_snippets/list/plain.html.erb
|
287
|
+
- lib/nexmo_markdown_renderer/views/concepts/list/plain.html.erb
|
288
|
+
- lib/nexmo_markdown_renderer/views/use_case/_index.html.erb
|
289
|
+
- lib/nexmo_markdown_renderer/views/use_case/index.html.erb
|
290
|
+
- lib/nexmo_markdown_renderer/views/use_case/list/plain.html.erb
|
291
|
+
- lib/nexmo_markdown_renderer/views/use_case/show.html.erb
|
292
|
+
- lib/version.rb
|
293
|
+
homepage: https://github.com/Nexmo/nexmo-markdown-renderer
|
294
|
+
licenses:
|
295
|
+
- MIT
|
296
|
+
metadata:
|
297
|
+
homepage: https://github.com/Nexmo/nexmo-markdown-renderer
|
298
|
+
source_code_uri: https://github.com/Nexmo/nexmo-markdown-renderer
|
299
|
+
bug_tracker_uri: https://github.com/Nexmo/nexmo-markdown-renderer/issues
|
300
|
+
changelog_uri: https://github.com/Nexmo/nexmo-markdown-renderer/blob/master/CHANGES.md
|
301
|
+
post_install_message:
|
302
|
+
rdoc_options: []
|
303
|
+
require_paths:
|
304
|
+
- lib
|
305
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
306
|
+
requirements:
|
307
|
+
- - ">="
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '0'
|
310
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
|
+
requirements:
|
312
|
+
- - ">="
|
313
|
+
- !ruby/object:Gem::Version
|
314
|
+
version: '0'
|
315
|
+
requirements: []
|
316
|
+
rubygems_version: 3.0.3
|
317
|
+
signing_key:
|
318
|
+
specification_version: 4
|
319
|
+
summary: Middleware to render Markdown Documents in Nexmo Developer Platform.
|
320
|
+
test_files: []
|