nexmo_markdown_renderer 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 667e3ba4a5588d4ae37789765a14a2e0128a80518bd698985ca0782f53e0b5db
|
4
|
+
data.tar.gz: 1c9ded00f8c04e6eb4f6d1a3289f8028f1d008de5b373a6ee4aad52813a74aa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59839bd637e03586cd4e2d099dcad44e12784cbd3959175348fce0f0a3435c986b32e6396fccf200fc6b4ef28cac4cabe2ef7fda6f41bc1555f2163a81d903e9
|
7
|
+
data.tar.gz: 0e7378afc7bf66953d4b81bc9e822c0e161cac787f368397bd6ec77be72158c0d47d8047b3a850e21cd77051e0b2978c989492e54f8e3ab1ac390f7d2e2874c5
|
@@ -13,12 +13,16 @@ module Nexmo
|
|
13
13
|
-- | --
|
14
14
|
HEREDOC
|
15
15
|
config.each do |key|
|
16
|
+
|
16
17
|
details = variables[key]
|
17
18
|
raise "#{key} is not a valid snippet variable" unless details
|
18
|
-
|
19
|
+
|
20
|
+
# We have some variables in the format TO_NUMBER.SMS etc, and we only want to render the first segment
|
21
|
+
# This can be multiple segments e.g. UUID.MODIFY.VOICE will be rendered as UUID
|
22
|
+
title = key.split('.').first
|
19
23
|
|
20
24
|
output += <<~HEREDOC
|
21
|
-
`#{
|
25
|
+
`#{title}` | #{details}
|
22
26
|
HEREDOC
|
23
27
|
end
|
24
28
|
|
data/lib/version.rb
CHANGED
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.
|
4
|
+
version: 0.7.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-11-
|
11
|
+
date: 2020-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: banzai
|