nexmo_markdown_renderer 0.4.2 → 0.4.3

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: 0e59f591809378750a638211130816a1078cbec2c59554d8c17f32614bc2a6e6
4
- data.tar.gz: c02910693d90ed94f3527142b8e240287ebb30203629419ee0aae5168c5c09bc
3
+ metadata.gz: fe9250e32774af04ea28ec4dc345d674abe07e513b41e99ca99747101988d035
4
+ data.tar.gz: 062731fbb4162919f74a193f413454691347543b86f8b52283864a0ddc7d9b6f
5
5
  SHA512:
6
- metadata.gz: e099d0cccd97ef619df411cb603469295e1d76b7b2e0bf9c42bb02a18b72219b221046878e78a8718b567c6d47529f302566bad9569fcd04db0c627e69d205ea
7
- data.tar.gz: 79f005800a2711e02020a343ef60d87878023623bc632769af4e79b1f1eda00bc8d34e42576ca2565b3948cc19f6b7cacdf1a7b1a45ad7c9c9c7af1180523b6c
6
+ metadata.gz: 2f880c2e23c71f0e64fc5520567224a1ed19e3ba6c075985d0e0c587ceb44c56b1ee06fdb4d62e27fb9f305b24f550f1ac2c9d83705a0feb27b474cc9ebdf7dc
7
+ data.tar.gz: e87719a922f7ad01a9896a26eaffbb05c8d693392f6f153a4a34b954d3249afc8274e0499ba4f5c677533e5cc2866148abbe92a5d95007b34bf3fe7faf0adbd0
@@ -109,6 +109,15 @@ languages:
109
109
  icon: ios
110
110
  dependencies: []
111
111
 
112
+ go:
113
+ weight: 12
114
+ label: Go
115
+ lexer: go
116
+ icon: curl
117
+ dependencies:
118
+ - 'vonage/vonage-go-sdk'
119
+ run_command: 'go run {filename}'
120
+
112
121
  platforms:
113
122
  ios:
114
123
  languages:
@@ -24,6 +24,7 @@ require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/php'
24
24
  require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/python'
25
25
  require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/ruby'
26
26
  require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/swift'
27
+ require_relative 'nexmo_markdown_renderer/services/code_snippet_renderer/go'
27
28
 
28
29
  require_relative 'nexmo_markdown_renderer/services/doc_finder'
29
30
  require_relative 'nexmo_markdown_renderer/services/doc_finder/doc'
@@ -43,6 +43,8 @@ module Nexmo
43
43
  Nexmo::Markdown::CodeSnippetRenderer::ObjectiveC
44
44
  when 'swift'
45
45
  Nexmo::Markdown::CodeSnippetRenderer::Swift
46
+ when 'go'
47
+ Nexmo::Markdown::CodeSnippetRenderer::Go
46
48
  else
47
49
  raise "Unknown language: #{normalized_language}"
48
50
  end
@@ -0,0 +1,23 @@
1
+ module Nexmo
2
+ module Markdown
3
+ module CodeSnippetRenderer
4
+ class Go < Base
5
+ def self.dependencies(deps, _version)
6
+ { 'code' => "go get #{deps.join(' ')}" }
7
+ end
8
+
9
+ def self.run_command(command, _filename, _file_path)
10
+ ::I18n.t('services.code_snippet_renderer.run_command', command: command)
11
+ end
12
+
13
+ def self.create_instructions(filename)
14
+ ::I18n.t('services.code_snippet_renderer.create_instructions', filename: filename)
15
+ end
16
+
17
+ def self.add_instructions(_filename)
18
+ ::I18n.t('services.code_snippet_renderer.add_instructions_to_code')
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,7 +1,7 @@
1
1
  # :nocov:
2
2
  module Nexmo
3
3
  module Markdown
4
- VERSION = '0.4.2'
4
+ VERSION = '0.4.3'
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.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nexmo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-09 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: banzai
@@ -297,6 +297,7 @@ files:
297
297
  - lib/nexmo_markdown_renderer/services/code_snippet_renderer/base.rb
298
298
  - lib/nexmo_markdown_renderer/services/code_snippet_renderer/curl.rb
299
299
  - lib/nexmo_markdown_renderer/services/code_snippet_renderer/dotnet.rb
300
+ - lib/nexmo_markdown_renderer/services/code_snippet_renderer/go.rb
300
301
  - lib/nexmo_markdown_renderer/services/code_snippet_renderer/java.rb
301
302
  - lib/nexmo_markdown_renderer/services/code_snippet_renderer/javascript.rb
302
303
  - lib/nexmo_markdown_renderer/services/code_snippet_renderer/kotlin.rb
@@ -344,7 +345,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
344
345
  - !ruby/object:Gem::Version
345
346
  version: '0'
346
347
  requirements: []
347
- rubygems_version: 3.0.1
348
+ rubyforge_project:
349
+ rubygems_version: 2.7.6.2
348
350
  signing_key:
349
351
  specification_version: 4
350
352
  summary: Middleware to render Markdown Documents in Nexmo Developer Platform.