nexmo_markdown_renderer 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +54 -0
  4. data/config/code_languages.yml +138 -0
  5. data/config/dynamic_content.yml +1 -0
  6. data/config/locales/en.yml +176 -0
  7. data/lib/nexmo_markdown_renderer.rb +28 -0
  8. data/lib/nexmo_markdown_renderer/cli.rb +13 -0
  9. data/lib/nexmo_markdown_renderer/core_ext/html.rb +7 -0
  10. data/lib/nexmo_markdown_renderer/core_ext/string.rb +14 -0
  11. data/lib/nexmo_markdown_renderer/filters/anchor_filter.rb +14 -0
  12. data/lib/nexmo_markdown_renderer/filters/audio_filter.rb +18 -0
  13. data/lib/nexmo_markdown_renderer/filters/block_escape_filter.rb +21 -0
  14. data/lib/nexmo_markdown_renderer/filters/break_filter.rb +10 -0
  15. data/lib/nexmo_markdown_renderer/filters/code_filter.rb +62 -0
  16. data/lib/nexmo_markdown_renderer/filters/code_snippet_filter.rb +187 -0
  17. data/lib/nexmo_markdown_renderer/filters/code_snippet_list_filter.rb +26 -0
  18. data/lib/nexmo_markdown_renderer/filters/code_snippets_filter.rb +170 -0
  19. data/lib/nexmo_markdown_renderer/filters/collapsible_filter.rb +27 -0
  20. data/lib/nexmo_markdown_renderer/filters/columns_filter.rb +47 -0
  21. data/lib/nexmo_markdown_renderer/filters/concept_list_filter.rb +30 -0
  22. data/lib/nexmo_markdown_renderer/filters/dynamic_content_filter.rb +28 -0
  23. data/lib/nexmo_markdown_renderer/filters/external_link_filter.rb +29 -0
  24. data/lib/nexmo_markdown_renderer/filters/frontmatter_filter.rb +11 -0
  25. data/lib/nexmo_markdown_renderer/filters/heading_filter.rb +57 -0
  26. data/lib/nexmo_markdown_renderer/filters/i18n/frontmatter_filter.rb +16 -0
  27. data/lib/nexmo_markdown_renderer/filters/i18n/smartling_converter_filter.rb +22 -0
  28. data/lib/nexmo_markdown_renderer/filters/icon_filter.rb +19 -0
  29. data/lib/nexmo_markdown_renderer/filters/indent_filter.rb +17 -0
  30. data/lib/nexmo_markdown_renderer/filters/inline_escape_filter.rb +14 -0
  31. data/lib/nexmo_markdown_renderer/filters/js_sequence_diagram_filter.rb +18 -0
  32. data/lib/nexmo_markdown_renderer/filters/label_filter.rb +29 -0
  33. data/lib/nexmo_markdown_renderer/filters/language_filter.rb +12 -0
  34. data/lib/nexmo_markdown_renderer/filters/markdown_filter.rb +81 -0
  35. data/lib/nexmo_markdown_renderer/filters/mermaid_filter.rb +29 -0
  36. data/lib/nexmo_markdown_renderer/filters/modal_filter.rb +37 -0
  37. data/lib/nexmo_markdown_renderer/filters/partial_filter.rb +29 -0
  38. data/lib/nexmo_markdown_renderer/filters/php_inliner_filter.rb +11 -0
  39. data/lib/nexmo_markdown_renderer/filters/screenshot_filter.rb +22 -0
  40. data/lib/nexmo_markdown_renderer/filters/tab_filter.rb +298 -0
  41. data/lib/nexmo_markdown_renderer/filters/techio_filter.rb +20 -0
  42. data/lib/nexmo_markdown_renderer/filters/tooltip_filter.rb +18 -0
  43. data/lib/nexmo_markdown_renderer/filters/unfreeze_filter.rb +16 -0
  44. data/lib/nexmo_markdown_renderer/filters/use_case_list_filter.rb +20 -0
  45. data/lib/nexmo_markdown_renderer/initializers/doc_finder.rb +5 -0
  46. data/lib/nexmo_markdown_renderer/initializers/i18n.rb +4 -0
  47. data/lib/nexmo_markdown_renderer/initializers/redcarpet.rb +7 -0
  48. data/lib/nexmo_markdown_renderer/markdown_renderer.rb +47 -0
  49. data/lib/nexmo_markdown_renderer/models/code_language.rb +79 -0
  50. data/lib/nexmo_markdown_renderer/models/code_snippet.rb +72 -0
  51. data/lib/nexmo_markdown_renderer/models/concept.rb +83 -0
  52. data/lib/nexmo_markdown_renderer/models/tutorial.rb +148 -0
  53. data/lib/nexmo_markdown_renderer/models/use_case.rb +81 -0
  54. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/android.rb +25 -0
  55. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/base.rb +12 -0
  56. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/curl.rb +29 -0
  57. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/dotnet.rb +23 -0
  58. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/java.rb +32 -0
  59. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/javascript.rb +23 -0
  60. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/kotlin.rb +25 -0
  61. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/objective_c.rb +25 -0
  62. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/php.rb +23 -0
  63. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/python.rb +23 -0
  64. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/ruby.rb +23 -0
  65. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/swift.rb +25 -0
  66. data/lib/nexmo_markdown_renderer/services/doc_finder.rb +119 -0
  67. data/lib/nexmo_markdown_renderer/views/code_snippets/_application_messages_dispatch.html.erb +9 -0
  68. data/lib/nexmo_markdown_renderer/views/code_snippets/_application_rtc.html.erb +28 -0
  69. data/lib/nexmo_markdown_renderer/views/code_snippets/_application_voice.html.erb +24 -0
  70. data/lib/nexmo_markdown_renderer/views/code_snippets/_code_only.html.erb +6 -0
  71. data/lib/nexmo_markdown_renderer/views/code_snippets/_configure_client.html.erb +20 -0
  72. data/lib/nexmo_markdown_renderer/views/code_snippets/_dependencies.html.erb +11 -0
  73. data/lib/nexmo_markdown_renderer/views/code_snippets/_write_code.html.erb +13 -0
  74. data/lib/nexmo_markdown_renderer/views/code_snippets/list/plain.html.erb +10 -0
  75. data/lib/nexmo_markdown_renderer/views/concepts/list/plain.html.erb +5 -0
  76. data/lib/nexmo_markdown_renderer/views/use_case/_index.html.erb +41 -0
  77. data/lib/nexmo_markdown_renderer/views/use_case/index.html.erb +48 -0
  78. data/lib/nexmo_markdown_renderer/views/use_case/list/plain.html.erb +5 -0
  79. data/lib/nexmo_markdown_renderer/views/use_case/show.html.erb +8 -0
  80. data/lib/version.rb +7 -0
  81. metadata +322 -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,10 @@
1
+ <ul class="Vlt-list Vlt-list--simple">
2
+ <% @blocks.each do |block| %>
3
+ <li><a href="<%= block.url %>">
4
+ <% if block.category %>
5
+ <%= block.category %> /
6
+ <% end %>
7
+ <%= block.title %></a>
8
+ </li>
9
+ <% end %>
10
+ </ul>
@@ -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: &nbsp;&nbsp;</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' %>
@@ -0,0 +1,5 @@
1
+ <ul class="Vlt-list Vlt-list--simple">
2
+ <% @use_cases.each do |use_case| %>
3
+ <li><a href="<%= use_case.path %>"><%= use_case.title %></a></li>
4
+ <% end %>
5
+ </ul>
@@ -0,0 +1,8 @@
1
+ <div class="Vlt-grid ">
2
+ <div class="Vlt-col Vlt-col--3of4 Nxd-tutorial">
3
+ <%= @content.html_safe %>
4
+ </div>
5
+ <div class="Vlt-col Vlt-col--1of4 Vlt-sidenav Nxd-tutorial-sidenav">
6
+ <%= navigation_from_content(content: @content) %>
7
+ </div>
8
+ </div>
@@ -0,0 +1,7 @@
1
+ # :nocov:
2
+ module Nexmo
3
+ module Markdown
4
+ VERSION = '0.0.1'
5
+ end
6
+ end
7
+ # :nocov:
metadata ADDED
@@ -0,0 +1,322 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nexmo_markdown_renderer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
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: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '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: byebug
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '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/cli.rb
223
+ - lib/nexmo_markdown_renderer/core_ext/html.rb
224
+ - lib/nexmo_markdown_renderer/core_ext/string.rb
225
+ - lib/nexmo_markdown_renderer/filters/anchor_filter.rb
226
+ - lib/nexmo_markdown_renderer/filters/audio_filter.rb
227
+ - lib/nexmo_markdown_renderer/filters/block_escape_filter.rb
228
+ - lib/nexmo_markdown_renderer/filters/break_filter.rb
229
+ - lib/nexmo_markdown_renderer/filters/code_filter.rb
230
+ - lib/nexmo_markdown_renderer/filters/code_snippet_filter.rb
231
+ - lib/nexmo_markdown_renderer/filters/code_snippet_list_filter.rb
232
+ - lib/nexmo_markdown_renderer/filters/code_snippets_filter.rb
233
+ - lib/nexmo_markdown_renderer/filters/collapsible_filter.rb
234
+ - lib/nexmo_markdown_renderer/filters/columns_filter.rb
235
+ - lib/nexmo_markdown_renderer/filters/concept_list_filter.rb
236
+ - lib/nexmo_markdown_renderer/filters/dynamic_content_filter.rb
237
+ - lib/nexmo_markdown_renderer/filters/external_link_filter.rb
238
+ - lib/nexmo_markdown_renderer/filters/frontmatter_filter.rb
239
+ - lib/nexmo_markdown_renderer/filters/heading_filter.rb
240
+ - lib/nexmo_markdown_renderer/filters/i18n/frontmatter_filter.rb
241
+ - lib/nexmo_markdown_renderer/filters/i18n/smartling_converter_filter.rb
242
+ - lib/nexmo_markdown_renderer/filters/icon_filter.rb
243
+ - lib/nexmo_markdown_renderer/filters/indent_filter.rb
244
+ - lib/nexmo_markdown_renderer/filters/inline_escape_filter.rb
245
+ - lib/nexmo_markdown_renderer/filters/js_sequence_diagram_filter.rb
246
+ - lib/nexmo_markdown_renderer/filters/label_filter.rb
247
+ - lib/nexmo_markdown_renderer/filters/language_filter.rb
248
+ - lib/nexmo_markdown_renderer/filters/markdown_filter.rb
249
+ - lib/nexmo_markdown_renderer/filters/mermaid_filter.rb
250
+ - lib/nexmo_markdown_renderer/filters/modal_filter.rb
251
+ - lib/nexmo_markdown_renderer/filters/partial_filter.rb
252
+ - lib/nexmo_markdown_renderer/filters/php_inliner_filter.rb
253
+ - lib/nexmo_markdown_renderer/filters/screenshot_filter.rb
254
+ - lib/nexmo_markdown_renderer/filters/tab_filter.rb
255
+ - lib/nexmo_markdown_renderer/filters/techio_filter.rb
256
+ - lib/nexmo_markdown_renderer/filters/tooltip_filter.rb
257
+ - lib/nexmo_markdown_renderer/filters/unfreeze_filter.rb
258
+ - lib/nexmo_markdown_renderer/filters/use_case_list_filter.rb
259
+ - lib/nexmo_markdown_renderer/initializers/doc_finder.rb
260
+ - lib/nexmo_markdown_renderer/initializers/i18n.rb
261
+ - lib/nexmo_markdown_renderer/initializers/redcarpet.rb
262
+ - lib/nexmo_markdown_renderer/markdown_renderer.rb
263
+ - lib/nexmo_markdown_renderer/models/code_language.rb
264
+ - lib/nexmo_markdown_renderer/models/code_snippet.rb
265
+ - lib/nexmo_markdown_renderer/models/concept.rb
266
+ - lib/nexmo_markdown_renderer/models/tutorial.rb
267
+ - lib/nexmo_markdown_renderer/models/use_case.rb
268
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/android.rb
269
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/base.rb
270
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/curl.rb
271
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/dotnet.rb
272
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/java.rb
273
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/javascript.rb
274
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/kotlin.rb
275
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/objective_c.rb
276
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/php.rb
277
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/python.rb
278
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/ruby.rb
279
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/swift.rb
280
+ - lib/nexmo_markdown_renderer/services/doc_finder.rb
281
+ - lib/nexmo_markdown_renderer/views/code_snippets/_application_messages_dispatch.html.erb
282
+ - lib/nexmo_markdown_renderer/views/code_snippets/_application_rtc.html.erb
283
+ - lib/nexmo_markdown_renderer/views/code_snippets/_application_voice.html.erb
284
+ - lib/nexmo_markdown_renderer/views/code_snippets/_code_only.html.erb
285
+ - lib/nexmo_markdown_renderer/views/code_snippets/_configure_client.html.erb
286
+ - lib/nexmo_markdown_renderer/views/code_snippets/_dependencies.html.erb
287
+ - lib/nexmo_markdown_renderer/views/code_snippets/_write_code.html.erb
288
+ - lib/nexmo_markdown_renderer/views/code_snippets/list/plain.html.erb
289
+ - lib/nexmo_markdown_renderer/views/concepts/list/plain.html.erb
290
+ - lib/nexmo_markdown_renderer/views/use_case/_index.html.erb
291
+ - lib/nexmo_markdown_renderer/views/use_case/index.html.erb
292
+ - lib/nexmo_markdown_renderer/views/use_case/list/plain.html.erb
293
+ - lib/nexmo_markdown_renderer/views/use_case/show.html.erb
294
+ - lib/version.rb
295
+ homepage: https://github.com/Nexmo/nexmo-markdown-renderer
296
+ licenses:
297
+ - MIT
298
+ metadata:
299
+ homepage: https://github.com/Nexmo/nexmo-markdown-renderer
300
+ source_code_uri: https://github.com/Nexmo/nexmo-markdown-renderer
301
+ bug_tracker_uri: https://github.com/Nexmo/nexmo-markdown-renderer/issues
302
+ changelog_uri: https://github.com/Nexmo/nexmo-markdown-renderer/blob/master/CHANGES.md
303
+ post_install_message:
304
+ rdoc_options: []
305
+ require_paths:
306
+ - lib
307
+ required_ruby_version: !ruby/object:Gem::Requirement
308
+ requirements:
309
+ - - ">="
310
+ - !ruby/object:Gem::Version
311
+ version: '0'
312
+ required_rubygems_version: !ruby/object:Gem::Requirement
313
+ requirements:
314
+ - - ">="
315
+ - !ruby/object:Gem::Version
316
+ version: '0'
317
+ requirements: []
318
+ rubygems_version: 3.0.3
319
+ signing_key:
320
+ specification_version: 4
321
+ summary: Middleware to render Markdown Documents in Nexmo Developer Platform.
322
+ test_files: []