nexmo_markdown_renderer 0.7.6 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +20 -0
  3. data/config/locales/en.yml +2 -2
  4. data/lib/nexmo_markdown_renderer.rb +1 -1
  5. data/lib/nexmo_markdown_renderer/cli.rb +11 -0
  6. data/lib/nexmo_markdown_renderer/config/load_config.rb +2 -2
  7. data/lib/nexmo_markdown_renderer/filters/code_snippet/import_dependencies.rb +0 -1
  8. data/lib/nexmo_markdown_renderer/filters/code_snippet/initialize_dependencies.rb +0 -1
  9. data/lib/nexmo_markdown_renderer/filters/code_snippet/instructions.rb +0 -1
  10. data/lib/nexmo_markdown_renderer/filters/code_snippet/run.rb +0 -1
  11. data/lib/nexmo_markdown_renderer/filters/code_snippet_filter.rb +0 -1
  12. data/lib/nexmo_markdown_renderer/filters/concerns/prism_code_snippet.rb +3 -9
  13. data/lib/nexmo_markdown_renderer/filters/markdown_filter.rb +7 -8
  14. data/lib/nexmo_markdown_renderer/filters/partial_filter.rb +1 -1
  15. data/lib/nexmo_markdown_renderer/filters/tab_filter.rb +3 -1
  16. data/lib/nexmo_markdown_renderer/services/code_snippet_renderer/base.rb +1 -1
  17. data/lib/nexmo_markdown_renderer/services/doc_finder.rb +2 -2
  18. data/lib/nexmo_markdown_renderer/views/code_snippets/_application_rtc.html.erb +2 -2
  19. data/lib/nexmo_markdown_renderer/views/code_snippets/_application_voice.html.erb +2 -2
  20. data/lib/nexmo_markdown_renderer/views/code_snippets/_code_only.html.erb +1 -6
  21. data/lib/nexmo_markdown_renderer/views/code_snippets/_configure_client.html.erb +1 -7
  22. data/lib/nexmo_markdown_renderer/views/code_snippets/_dependencies.html.erb +1 -1
  23. data/lib/nexmo_markdown_renderer/views/code_snippets/_import_dependencies.html.erb +1 -7
  24. data/lib/nexmo_markdown_renderer/views/code_snippets/_write_code.html.erb +1 -7
  25. data/lib/version.rb +1 -1
  26. metadata +16 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7800ee97436dd0317d85c054ba7293f1207c2e0ac9e90b1f1f443df61319d51
4
- data.tar.gz: cf859ca6c2f8d165e4057242f460dc4e0bdabe4419a4e25f94e0c1611181ccf2
3
+ metadata.gz: b99304f43d7530fad183956d84883ee41eae9fe3fd124e212f0da02f4d4c5436
4
+ data.tar.gz: e79325576839554fcdd82fe761b6c74c539fc15c61046841d6e9f4fd3fa24a79
5
5
  SHA512:
6
- metadata.gz: 00fa691a0b76fabaa820fbc90bd68b87ab0a9a7bf4fa87a949f153fa4031845000375ec661f721154932db2f357bc4358ff1e6f8cc28d7808c52288db655ecee
7
- data.tar.gz: fb66fcd2e4582e40ac53dfc1bd74af9ddaa13c22f71e9f0d62ab45bcc9986a51ad5c5801bc6e0dccfbe42f93e50682fc3bfd26d18eb0e2616f10f7ea90227419
6
+ metadata.gz: 10e9ee85633c905346fcca22afc6e60425971740866b17fb3b95da36c5c2c2abba2799d1fb5358c785c2af27c42fb2f59b3924233420a9d4fba3f7b4975e32e5
7
+ data.tar.gz: b3ec25cfa5e861d617d97e0a6a20da1ff8b74c4dd02196642a160875970acbaf225cfe995e47ed0a8d3401d52fc1e5c45cf3e468d86f16b348b5d49fa3f14331
data/README.md CHANGED
@@ -6,11 +6,15 @@
6
6
  This gem facilitates the presentation of markdown documents in a Rails app by applying custom filters for tabs, code snippets, icons, indentation and more. It is used in the [Nexmo Developer Platform](https://developer.nexmo.com).
7
7
 
8
8
  * [Installation and Usage](#installation-and-usage)
9
+ * [In An Application](#in-an-application)
10
+ * [CLI Standlone](#cli-standalone)
9
11
  * [Contributing](#contributing)
10
12
  * [License](#license)
11
13
 
12
14
  ## Installation and Usage
13
15
 
16
+ ### In An Application
17
+
14
18
  To use this gem you must install it in your application's Gemfile:
15
19
 
16
20
  ```ruby
@@ -45,6 +49,22 @@ Passing in a markdown file:
45
49
  rendered = content.call("/_documentation/example/example_markdown.md")
46
50
  ```
47
51
 
52
+ ### CLI Standalone
53
+
54
+ To use the markdown renderer with the built-in CLI, you first must install the gem locally:
55
+
56
+ ```bash
57
+ $ gem install nexmo-markdown-renderer
58
+ ```
59
+
60
+ Once the gem is installed you can use the CLI to generate HTML output for a provided markdown file. To do so, you must specify both a path to the documentation folder and the specific markdown file you wish to render:
61
+
62
+ ```bash
63
+ $ DOCS_BASE_PATH=path/to/docs bundle exec nexmo-markdown-renderer render _documentation/path/sample.md
64
+ ```
65
+
66
+ The converted HTML output will be displayed in your console.
67
+
48
68
  ## Contributing
49
69
 
50
70
  We ❤️ contributions from everyone! [Bug reports](https://github.com/Nexmo/nexmo-markdown-renderer/issues), [bug fixes](https://github.com/Nexmo/nexmo-markdown-renderer/pulls) and feedback on the gem is always appreciated. Look at the [Contributor Guidelines](https://github.com/Nexmo/nexmo-markdown-renderer/blob/master/CONTRIBUTING.md) for more information.
@@ -153,7 +153,7 @@ en:
153
153
  run_command: >-
154
154
  ## Run your code
155
155
  Save this file to your machine and run it:
156
- <pre class="Vlt-prism--dark command-line language-bash Vlt-prism--copy-disabled" data-prompt="$"><code>%{command}</code></pre>
156
+ <pre class="Vlt-prism--dark command-line language-bash" data-prompt="$"><code>%{command}</code></pre>
157
157
 
158
158
  curl:
159
159
  only_permitted_dependency: The only permitted curl dependency is `jwt`
@@ -174,4 +174,4 @@ en:
174
174
 
175
175
  Run the following `gradle` command to execute your application, replacing `%{chomped_package}` with the package containing `%{file}`:
176
176
 
177
- <pre class="language-shell Vlt-prism--dark command-line Vlt-prism--copy-disabled" data-prompt="$"><code>gradle run -Pmain=%{main}</code></pre>
177
+ <pre class="language-shell Vlt-prism--dark command-line" data-prompt="$"><code>gradle run -Pmain=%{main}</code></pre>
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
  GEM_ROOT = File.expand_path("../..", __FILE__)
3
3
  require 'banzai'
4
- require 'octicons_helper'
5
4
  require 'nokogiri'
6
5
  require 'open-uri'
7
6
  require 'active_model'
7
+ require 'action_view'
8
8
  require 'i18n'
9
9
 
10
10
  require_relative 'nexmo_markdown_renderer/config/load_config'
@@ -0,0 +1,11 @@
1
+ require "thor"
2
+ require_relative "../nexmo_markdown_renderer"
3
+ require_relative "initializers/doc_finder"
4
+ module Nexmo::Markdown
5
+ class CLI < Thor
6
+ desc "render FILE", "passes FILE throught the pipeline and renders it as html"
7
+ def render(file)
8
+ puts Nexmo::Markdown::Renderer.new.call(File.read("#{ENV['DOCS_BASE_PATH']}/#{file}")).to_s
9
+ end
10
+ end
11
+ end
@@ -2,8 +2,8 @@ module Nexmo
2
2
  module Markdown
3
3
  class Config
4
4
  def self.docs_base_path
5
- @docs_base_path ||= (defined?(Rails) && Rails.application != nil && Rails.application.configuration.docs_base_path) || ENV.fetch('DOCS_BASE_PATH', '.')
5
+ @docs_base_path ||= ENV.fetch('DOCS_BASE_PATH', '.')
6
6
  end
7
7
  end
8
8
  end
9
- end
9
+ end
@@ -3,7 +3,6 @@ module Nexmo
3
3
  module Filters
4
4
  module CodeSnippet
5
5
  class ImportDependencies
6
- include OcticonsHelper
7
6
  include Renderable
8
7
 
9
8
  attr_reader :config
@@ -3,7 +3,6 @@ module Nexmo
3
3
  module Filters
4
4
  module CodeSnippet
5
5
  class InitializeDependencies
6
- include OcticonsHelper
7
6
  include Renderable
8
7
 
9
8
  def initialize(config, snippet)
@@ -3,7 +3,6 @@ module Nexmo
3
3
  module Filters
4
4
  module CodeSnippet
5
5
  class Instructions
6
- include OcticonsHelper
7
6
  include Renderable
8
7
 
9
8
  attr_reader :config
@@ -3,7 +3,6 @@ module Nexmo
3
3
  module Filters
4
4
  module CodeSnippet
5
5
  class Run
6
- include OcticonsHelper
7
6
  include Renderable
8
7
 
9
8
  def initialize(config, snippet)
@@ -1,7 +1,6 @@
1
1
  module Nexmo
2
2
  module Markdown
3
3
  class CodeSnippetFilter < Banzai::Filter
4
- include OcticonsHelper
5
4
 
6
5
  def call(input)
7
6
  input.gsub(/```single_code_snippet(.+?)```/m) do |_s|
@@ -2,16 +2,10 @@ module Nexmo
2
2
  module Markdown
3
3
  module Concerns
4
4
  module PrismCodeSnippet
5
- include OcticonsHelper
6
5
 
7
- def code_snippet_body(lexer, body)
6
+ def code_snippet_body(lexer, body, options = {})
8
7
  <<~HEREDOC
9
- <div class="copy-wrapper">
10
- <div class="copy-button" data-lang="#{code_language_to_prism(lexer.tag)}" data-section="code">
11
- #{octicon "clippy", :class => 'top left'} <span>#{::I18n.t('code_snippets.copy_to_clipboard') }</span>
12
- </div>
13
- <pre class="#{prism_css_classes(lexer)}"><code>#{body}</code></pre>
14
- </div>
8
+ <pre class="#{prism_css_classes(lexer)}" data-lang="#{code_language_to_prism(lexer.tag)}" data-section="code" data-block="#{options[:block]}"><code>#{body}</code></pre>
15
9
  HEREDOC
16
10
  end
17
11
 
@@ -21,7 +15,7 @@ module Nexmo
21
15
 
22
16
  def prism_css_classes(lexer)
23
17
  code_language = code_language_to_prism(lexer.tag)
24
- "main-code Vlt-prism--dark language-#{code_language} Vlt-prism--copy-disabled"
18
+ "main-code Vlt-prism--dark language-#{code_language}"
25
19
  end
26
20
  end
27
21
  end
@@ -60,13 +60,12 @@ module Nexmo
60
60
  end
61
61
 
62
62
  def image(link, _title, _alt_text)
63
- '<figure>' \
64
- '<img src="'\
65
- "#{link}"\
66
- '" alt="'\
67
- "#{_alt_text}"\
68
- '">' \
69
- '</figure>'
63
+ <<~IMAGE
64
+ <figure>
65
+ <img src="#{link}" alt="#{_alt_text}">
66
+ <figcaption class="Vlt-center"><em>#{_alt_text}</em></figcaption>
67
+ </figure>
68
+ IMAGE
70
69
  end
71
70
 
72
71
  def list(contents, list_type)
@@ -94,7 +93,7 @@ module Nexmo
94
93
  formatter ||= Rouge::Formatters::HTML.new
95
94
  highlighted_source = formatter.format(lexer.lex(code))
96
95
 
97
- code_snippet_body(lexer, highlighted_source)
96
+ code_snippet_body(lexer, highlighted_source, @options)
98
97
  end
99
98
  end
100
99
  end
@@ -4,7 +4,7 @@ module Nexmo
4
4
  def call(input)
5
5
  input.gsub(/```partial(.+?)```/m) do |_s|
6
6
  config = YAML.safe_load($1)
7
- file_path = if config['source'].starts_with? 'app/views'
7
+ file_path = if config['source'].start_with? 'app/views'
8
8
  "#{Rails.root}/#{config['source']}"
9
9
  else
10
10
  "#{Nexmo::Markdown::Config.docs_base_path}/#{config['source']}"
@@ -209,7 +209,9 @@ module Nexmo
209
209
  content[:language_key] = content[:frontmatter]['language']
210
210
  content[:platform_key] = content[:frontmatter]['platform']
211
211
  content[:tab_title] = content[:frontmatter]['title']
212
- content[:body] = Nexmo::Markdown::Renderer.new(options).call(source)
212
+ content[:body] = Nexmo::Markdown::Renderer.new(
213
+ options.merge(block: content[:tab_title].parameterize)
214
+ ).call(source)
213
215
 
214
216
  content
215
217
  end
@@ -3,7 +3,7 @@ module Nexmo
3
3
  module CodeSnippetRenderer
4
4
  class Base
5
5
  def self.inherited(base)
6
- base.extend ActionView::Helpers::TranslationHelper
6
+ base.extend ::ActionView::Helpers::TranslationHelper
7
7
  base.instance_variable_set :@virtual_path, "services.#{base.name.underscore.tr('/', '.')}"
8
8
  end
9
9
  end
@@ -56,7 +56,7 @@ module Nexmo
56
56
  # rubocop:enable Metrics/ParameterLists
57
57
 
58
58
  def self.build_doc(root:, language:, key:)
59
- if root.starts_with?('app/views')
59
+ if root.start_with?('app/views')
60
60
  DocFinder::Doc.new(path: dictionary.fetch(key) && key, available_languages: ['en'])
61
61
  else
62
62
  available_languages = dictionary.fetch(key)
@@ -92,7 +92,7 @@ module Nexmo
92
92
 
93
93
  def self.load_english
94
94
  paths.each do |path|
95
- if defined?(Rails) && path.starts_with?("#{Rails.root}/app/views")
95
+ if defined?(Rails::Application) && path.start_with?("#{Rails.root}/app/views")
96
96
  Dir["#{path}/**/*.*"].each do |file|
97
97
  dictionary[file.gsub("#{Rails.root}/", '')][::I18n.default_locale.to_s] = ::I18n.default_locale.to_s
98
98
  end
@@ -6,7 +6,7 @@
6
6
  <div id="acc<%=id %>" class="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="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>npm install -g nexmo-cli</code></pre>
9
+ <pre class="Vlt-prism--dark dependencies command-line 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="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>nexmo app:create "<%= name %>" <%= answer_url %> <%= event_url %> --keyfile=private.key --type=rtc</code></pre>
18
+ <pre class="Vlt-prism--dark dependencies command-line language-bash" data-prompt='$'><code>nexmo app:create "<%= name %>" <%= answer_url %> <%= 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="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>npm install -g nexmo-cli</code></pre>
12
+ <pre class="Vlt-prism--dark dependencies command-line 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="Vlt-prism--dark dependencies command-line Vlt-prism--copy-disabled language-bash" data-prompt='$'><code>nexmo app:create "<%= name %>" <%= answer_url %> <%= event_url %> --keyfile private.key</code></pre>
21
+ <pre class="Vlt-prism--dark dependencies command-line language-bash" data-prompt='$'><code>nexmo app:create "<%= name %>" <%= answer_url %> <%= event_url %> --keyfile private.key</code></pre>
22
22
  <% end %>
23
23
  </div>
24
24
  </div>
@@ -1,6 +1 @@
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="language-<%= lexer.tag %> main-code Vlt-prism--dark Vlt-prism--copy-disabled"><code><%= highlighted_code_source %></code></pre>
6
- </div>
1
+ <pre class="language-<%= lexer.tag %> main-code Vlt-prism--dark" data-lang="<%= lang %>" data-block="<%= config['source'] %>" data-section="code"><code><%= highlighted_code_source %></code></pre>
@@ -5,13 +5,7 @@
5
5
 
6
6
  <div id="acc<%=id %>" class="Vlt-accordion__content Vlt-accordion__content--noborder">
7
7
  <%= create_instructions %>
8
- <div class="copy-wrapper">
9
-
10
- <div class="copy-button" data-lang="<%= lang %>" data-block="<%= source %>" data-section="configure">
11
- <%= octicon "clippy", :class => 'top left' %> <span>Copy to Clipboard</span>
12
- </div>
13
- <pre class="Vlt-prism--dark language-<%= lexer.tag %> Vlt-prism--copy-disabled"><code><%= highlighted_client_source %></code></pre>
14
- </div>
8
+ <pre class="Vlt-prism--dark language-<%= lexer.tag %>" data-lang="<%= lang %>" data-block="<%= source %>" data-section="configure"><code><%= highlighted_client_source %></code></pre>
15
9
 
16
10
  <p><a data-section="configure" data-lang="<%= lang %>" data-block="<%= source %>" href="<%= client_url %>">View full source</a></p>
17
11
 
@@ -4,7 +4,7 @@
4
4
  <div id="acc<%= id %>" class="Vlt-accordion__content Vlt-accordion__content--noborder">
5
5
  <p><%=deps['text']%></p>
6
6
  <% if deps['code'] %>
7
- <pre class="Vlt-prism--dark language-<%= deps['type'] || 'bash' %> dependencies command-line Vlt-prism--copy-disabled" data-prompt='$'><code><%=deps['code']%></code></pre>
7
+ <pre class="Vlt-prism--dark language-<%= deps['type'] || 'bash' %> dependencies command-line" data-prompt='$'><code><%=deps['code']%></code></pre>
8
8
  <% end %>
9
9
  </div>
10
10
  </div>
@@ -5,13 +5,7 @@
5
5
 
6
6
  <div id="acc<%=id %>" class="Vlt-accordion__content Vlt-accordion__content--noborder">
7
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="Vlt-prism--dark language-<%= lexer.tag %> Vlt-prism--copy-disabled"><code><%= highlighted_import_source %></code></pre>
14
- </div>
8
+ <pre class="Vlt-prism--dark language-<%= lexer.tag %>" data-lang="<%= lang %>" data-block="<%= config['source'] %>" data-section="configure"><code><%= highlighted_import_source %></code></pre>
15
9
 
16
10
  <p><a data-section="configure" data-lang="<%= lang %>" data-block="<%= config['source'] %>" href="<%= client_url %>">View full source</a></p>
17
11
  </div>
@@ -1,13 +1,7 @@
1
1
  <h2 class="Vlt-title--margin-top3"><%= ::I18n.t('.code_snippets.write_code.write_the_code') %></h2>
2
2
  <%= add_instructions %>
3
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="language-<%= lexer.tag %> main-code Vlt-prism--dark Vlt-prism--copy-disabled"><code><%= highlighted_code_source %></code></pre>
9
-
10
- </div>
4
+ <pre class="language-<%= lexer.tag %> main-code Vlt-prism--dark" data-lang="<%= lang %>" data-block="<%= config['source'] %>" data-section="code"><code><%= highlighted_code_source %></code></pre>
11
5
 
12
6
  <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
7
 
@@ -1,7 +1,7 @@
1
1
  # :nocov:
2
2
  module Nexmo
3
3
  module Markdown
4
- VERSION = '0.7.6'
4
+ VERSION = '0.8.0'
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.7.6
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nexmo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-14 00:00:00.000000000 Z
11
+ date: 2021-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: banzai
@@ -25,63 +25,63 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.1.2
27
27
  - !ruby/object:Gem::Dependency
28
- name: octicons_helper
28
+ name: nokogiri
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '8.2'
33
+ version: '1.10'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '8.2'
40
+ version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
- name: nokogiri
42
+ name: redcarpet
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.10'
47
+ version: '3.4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.10'
54
+ version: '3.4'
55
55
  - !ruby/object:Gem::Dependency
56
- name: redcarpet
56
+ name: rouge
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.4'
61
+ version: 2.0.7
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.4'
68
+ version: 2.0.7
69
69
  - !ruby/object:Gem::Dependency
70
- name: rouge
70
+ name: activemodel
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 2.0.7
75
+ version: '6.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 2.0.7
82
+ version: '6.0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: activemodel
84
+ name: actionview
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
@@ -233,6 +233,7 @@ files:
233
233
  - config/dynamic_content.yml
234
234
  - config/locales/en.yml
235
235
  - lib/nexmo_markdown_renderer.rb
236
+ - lib/nexmo_markdown_renderer/cli.rb
236
237
  - lib/nexmo_markdown_renderer/config/load_config.rb
237
238
  - lib/nexmo_markdown_renderer/core_ext/string.rb
238
239
  - lib/nexmo_markdown_renderer/filters/anchor_filter.rb