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: 77ca5e9a51e8e1d8d1e0d3e0fad14c48fb01ab3fc67e893e2c2e45f1061b0d5d
4
- data.tar.gz: d83bcc9efe2cd831553a5dc9c362f2f6db75fd3553ebad6d312172571fdcf23a
3
+ metadata.gz: 667e3ba4a5588d4ae37789765a14a2e0128a80518bd698985ca0782f53e0b5db
4
+ data.tar.gz: 1c9ded00f8c04e6eb4f6d1a3289f8028f1d008de5b373a6ee4aad52813a74aa7
5
5
  SHA512:
6
- metadata.gz: 951a51a1bdebc045a64769796ce16aaa1262c3f889730485aff1051a320f4b21c658505ace846cfc0b7dd9ed6db75d8cb1046eba2481c4b4ec79b623980ce6c7
7
- data.tar.gz: 4b93e1a292a403cc32726d63ff18eba1ebb6f26fc6e28e944fa4fb87eebd5682466edfa83620d21d6e1b3bf5386da4963900b620e9ec65e439552fc63b244871
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
- raise "#{key} does not have a description" unless details['description']
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
- `#{key}` | #{details['description']}
25
+ `#{title}` | #{details}
22
26
  HEREDOC
23
27
  end
24
28
 
@@ -1,7 +1,7 @@
1
1
  # :nocov:
2
2
  module Nexmo
3
3
  module Markdown
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.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.7.0
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-26 00:00:00.000000000 Z
11
+ date: 2020-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: banzai