nexmo_markdown_renderer 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nexmo_markdown_renderer.rb +15 -15
- data/lib/version.rb +1 -1
- metadata +10 -12
- data/lib/nexmo_markdown_renderer/cli.rb +0 -13
- data/lib/nexmo_markdown_renderer/core_ext/html.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da578e278c9eecde5391aa32fbb81f2e35e6417c01d2b83f0316012fba3bc2c
|
4
|
+
data.tar.gz: '091ec00d65a87d97a7834162cf6d1b6aaa06c7b483eb15a98505ca2b5331eefb'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c314657631aaf4972361ef8615d1edc935f5778b7ad8252cfd331bc1a32a8e40611fdc00eda9858e35f273d2db63962af13bc4f97a3c31115c46b3c3867e6780
|
7
|
+
data.tar.gz: fbf0460036c6b3fdaf034258c2292d2d654b8a6f6e9716064afb021a186623cafb7816dfc85090d17ac880d97c7953b922188bd8c929797459c30b4cedb712cf
|
@@ -6,21 +6,21 @@ require 'nokogiri'
|
|
6
6
|
require 'open-uri'
|
7
7
|
require 'active_model'
|
8
8
|
require 'i18n'
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
9
|
+
require_relative 'nexmo_markdown_renderer/initializers/redcarpet'
|
10
|
+
require_relative 'nexmo_markdown_renderer/initializers/i18n'
|
11
|
+
require_relative 'nexmo_markdown_renderer/core_ext/string'
|
12
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/base'
|
13
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/android'
|
14
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/curl'
|
15
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/dotnet'
|
16
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/java'
|
17
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/javascript'
|
18
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/kotlin'
|
19
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/objective_c'
|
20
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/php'
|
21
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/python'
|
22
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/ruby'
|
23
|
+
require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/swift'
|
24
24
|
Dir[File.join(__dir__, 'nexmo_markdown_renderer/services', '*.rb')].each { |file| require_relative file }
|
25
25
|
Dir[File.join(__dir__, 'nexmo_markdown_renderer/models', '*.rb')].each { |file| require_relative file }
|
26
26
|
Dir[File.join(__dir__, 'nexmo_markdown_renderer/filters', '*.rb')].each { |file| require_relative file }
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nexmo_markdown_renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nexmo
|
@@ -168,16 +168,16 @@ dependencies:
|
|
168
168
|
name: rspec-collection_matchers
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
|
-
- - "
|
171
|
+
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 1.2.0
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- - "
|
178
|
+
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 1.2.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rspec-snapshot
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,19 +193,19 @@ dependencies:
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: 0.1.2
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: rake
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - "
|
199
|
+
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '0'
|
201
|
+
version: '13.0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - "
|
206
|
+
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '0'
|
208
|
+
version: '13.0'
|
209
209
|
description: Middleware to render Markdown Documents in Nexmo Developer Platform.
|
210
210
|
email:
|
211
211
|
- devrel@nexmo.com
|
@@ -219,8 +219,6 @@ files:
|
|
219
219
|
- config/dynamic_content.yml
|
220
220
|
- config/locales/en.yml
|
221
221
|
- lib/nexmo_markdown_renderer.rb
|
222
|
-
- lib/nexmo_markdown_renderer/cli.rb
|
223
|
-
- lib/nexmo_markdown_renderer/core_ext/html.rb
|
224
222
|
- lib/nexmo_markdown_renderer/core_ext/string.rb
|
225
223
|
- lib/nexmo_markdown_renderer/filters/anchor_filter.rb
|
226
224
|
- lib/nexmo_markdown_renderer/filters/audio_filter.rb
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require "thor"
|
2
|
-
require_relative "../nexmo_markdown_renderer"
|
3
|
-
require_relative "./initializers/doc_finder"
|
4
|
-
|
5
|
-
module Nexmo::Markdown
|
6
|
-
class CLI < Thor
|
7
|
-
|
8
|
-
desc "renders FILE", "passes FILE throught the pipeline and renders it as html"
|
9
|
-
def render(file)
|
10
|
-
puts Nexmo::Markdown::Renderer.new.call(File.read("#{ENV['DOCS_BASE_PATH']}/#{file}")).to_s
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|