nexmo_markdown_renderer 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d556fff7ca8b92dfaa71da286fd16d2e54d4ce8d13b2d11433d55bf4f049d69
4
- data.tar.gz: 3d38cdbd687132a0e4a014893ada68e292c723d1698a97aa9761ac1275374c24
3
+ metadata.gz: 602526bb4c23634caec1d2f64ccdc7fc233f22e6689e5119f44af6da093cdcd8
4
+ data.tar.gz: ad8bd68ac0472fd15e428ee380625ded6bfd0348cdd496ba19da65dc058482a5
5
5
  SHA512:
6
- metadata.gz: 5d748be0b975cdc9cc403719e06b1bb9ba0ac2532823bd48c770c1234c85fc240c3060b5ab9367c09698db6f759c973a178362a9b4d05e98876b0c30a06f4516
7
- data.tar.gz: ed02f86a2d2c91f66e6c8419998831ca2ae9119f5ec50a48a7e3dd9b294487dc50771863b76d3d63a0ea85f4680b995c7ada2fce663be9d96a18666b871f0447
6
+ metadata.gz: ee40af02f55f416a8d370f9ba3b103a9de1914bf2d8bcbc60af8bb2beb29433cb65505ef8509ab360863658c561ae534b5d3df91749c0b35bc8d387c846dff6e
7
+ data.tar.gz: 6a82418e449c7fd9aed46303179962c458b0e63f46b32b4a1138b244a94bb7409096b4464937e2b23c0239acc8d9f7c57ecd66f6ca4b6a5af966bf38dcf9f4cf
@@ -254,7 +254,7 @@ module Nexmo
254
254
  lexer = content[:language].lexer
255
255
  highlighted_source = @formatter.format(lexer.lex(content[:source]))
256
256
  body = <<~HEREDOC
257
- <pre class="highlight #{content[:language_key]}"><code>#{highlighted_source}</code></pre>
257
+ <pre class="Vlt-prism--dark language-#{lexer.tag} Vlt-prism--copy-disabled"><code>#{highlighted_source}</code></pre>
258
258
  HEREDOC
259
259
 
260
260
  content.merge!({ body: body })
@@ -6,7 +6,7 @@
6
6
  <div id="acc<%=id %>" class="Vlt-js-accordion__content Vlt-accordion__content Vlt-accordion__content--noborder">
7
7
  <p><%= ::I18n.t('.code_snippets.nexmo_application_contains_html') %></p>
8
8
  <h4><%= ::I18n.t('.code_snippets.install_the_cli') %></h4>
9
- <pre class="highlight shell"><code>$ npm install -g nexmo-cli</code></pre>
9
+ <pre class="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>npm install -g nexmo-cli</code></pre>
10
10
 
11
11
  <h4><%= ::I18n.t('.code_snippets.create_an_app') %></h4>
12
12
  <p><%= ::I18n.t('.code_snippets.once_you_have_the_cli_installed_html') %></p>
@@ -15,7 +15,7 @@
15
15
  <p><%= ::I18n.t('.code_snippets.nexmo_needs_to_connect_html') %></p>
16
16
  <% end %>
17
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>
18
+ <pre class="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>nexmo app:create "<%=app['name'] %>" <%=app['answer_url'] %> <%=app['event_url'] %> --keyfile=private.key --type=rtc</code></pre>
19
19
 
20
20
  <h4><%= ::I18n.t('.code_snippets.application_rtc.use_your_existing_app') %></h4>
21
21
 
@@ -9,7 +9,7 @@
9
9
  <% else %>
10
10
  <p><%= ::I18n.t('.code_snippets.nexmo_application_contains_html') %></p>
11
11
  <h4><%= ::I18n.t('.code_snippets.install_the_cli') %></h4>
12
- <pre class="highlight bash dependencies"><code>npm install -g nexmo-cli</code></pre>
12
+ <pre class="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>npm install -g nexmo-cli</code></pre>
13
13
 
14
14
  <h4><%= ::I18n.t('.code_snippets.create_an_app') %></h4>
15
15
  <p><%= ::I18n.t('.code_snippets.once_you_have_the_cli_installed_html') %></p>
@@ -18,7 +18,7 @@
18
18
  <p><%= ::I18n.t('.code_snippets.nexmo_needs_to_connect_html') %></p>
19
19
  <% end %>
20
20
 
21
- <pre class="highlight bash dependencies"><code>nexmo app:create "<%=app['name'] %>" <%=app['answer_url'] %> <%=app['event_url'] %> --keyfile private.key</code></pre>
21
+ <pre class="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>nexmo app:create "<%=app['name'] %>" <%=app['answer_url'] %> <%=app['event_url'] %> --keyfile private.key</code></pre>
22
22
  <% end %>
23
23
  </div>
24
24
  </div>
data/lib/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # :nocov:
2
2
  module Nexmo
3
3
  module Markdown
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
6
6
  end
7
7
  # :nocov:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexmo_markdown_renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nexmo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-17 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: banzai